Le 2014-02-27 09:02, Svenn Are Bjerkem a écrit :
Hi,
this is probably slightly off-topic, but maybe related.
The FPGA I am programming with VHDL is to be tested. It communicates
with the outside world through UART. I send a command, receive a
command and react to that command by sending a different command, or
in the case of error, resend the previous command. The commands are
long ASN.1 coded octet strings.
Currently I use Tcl to have the serial port in an event loop to be
able to react asynchronously to the results coming from the FPGA.
Writing the state-machine is a bit awkward, and it frustrates me that
I can write a hardware FSM fairly easy in VHDL, but not in any
programming language that I know (c, tcl, python)
I guess it is not easy to bind a serial port to ghdl and rely on the
concurrency in VHDL to read, interpret and send commands the way I do
in FPGA hardware, so my question is if there is a programming language
which would help me that I don't know about yet. Hopefully it should
run on both windows and Linux, but Linux-only is fine. Windows-only is
not so fine, but ok. Assume that I have only knowledge (and not deep
knowledge) of c, tcl, python, vhdl and ghdl.
Any comments welcome.
--
Svenn
You might like to write your own VHPI module, allowing GHDL to
talk to other OS things in C. Have a look at some examples at
http://ygdes.com/GHDL/ and a similar project at
http://tech.section5.ch/news/?p=124
Then you can make you C code blocking or not, and design the FSM
with all the expressive power of VHDL.
Good luck !
_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss