Can parallax propeller be programed using VHDL?
stefaniecg
Posts: 1
Can parallax propeller be programed using VHDL? Is there any relation from propeller to VHDL or FPGA?
Comments
VHDL is a hardware description language. You can not compare this with a usual programming language. VHDL describes how hardware should behave and it's massively parallel. In an FPGA or CPLD you really change the connections of the matrix. You can not change the hardware of a propeller.
Even on a PC you can not easily write VHDL. It needs very complex simulation.
Of couse you can use an FPGA to implement your own propeller. If I remember correctly someone already did - at least for one COG.
You are right but I have to comment on :
VHDL is actually a very big language, somewhat inspired by ADA. It is quite possible to use it as a general purpose programming language. One can very easily write VHDL and run it on a PC using the GHDL compiler and run time support. http://ghdl.free.fr/
Anyone who wants to learn VHDL would be served well by GHDL in quickly trying out the language features without all the heavy weight of FPGA development software from Alter or Xylinx.
This flexibility of VHDL has a downside in that it is easy to find oneself writing VHDL programs that won't synthesise into any FPGA. One has to be careful to keep to a subset of the language that will work with ones chosen hardware and tool chain.
In the extreme, given that it is possible to use ADA on AVR mcus it would seem quite possible to use VHDL for the Prop, if anyone took the trouble to create the compiler that is:)
That depends how you look at it. In an FPGA you have simple logic blocks, hooked up with a mass of configurable connections. The VHDL ends up specifying the connectivity to get the functionality you want.
Now look at the Prop:
1) Instead of logic blocks we have COGs.
2) Instead of a mass of switchable connections we have HUB RAM through which to "connections" can be made.
3) The COGs run in parallel as do logic blocks of an FPGA or whatever.
Conclusion: VHDL would be an excellent language to program Props in.
stefaneicg: Welcome to the propeller forum. You will find us a friendly bunch here where you will get a lot of help.
I am sorry, but in the context that the question you asked of VHDL (or Verilog for that matter), the short answer is No. The prop is not an FPGA nor a CPLD, although we can program the counters and I/O to do lots of functions via software, such as UARTs, I2C, VGA, TV, PS2, etc we cannot program the prop in VHDL.
Yes, welcome to the forum, I did not notice that was your first post.
As you have already noticed we are prone to some wild speculation here occasionally. As Cluso points out, the short answer to your question is "no forget VHDL on the Prop".
Whilst my ramblings on VHDL are indeed wild speculation it should be borne in mind that not long ago that the idea of programming the Prop in C was just a pipe dream. "It's just not suitable" they said. Now it happens every day.
That said it would be even more pointless for someone to spend months and years creating VHDL for the Prop than some of the things I get up to:)