[myhdl-list] mydhl and cver interactive
Brought to you by:
jandecaluwe
From: Terry B. <tt...@ve...> - 2004-03-21 19:16:02
|
I have been using myhdl with the cver simulator all running under cygwin. It would be really cool to be able to access the interactive debugger with cver from python code. Briefly, I would like to be able to use sim.run(time) to run the simulator for a time (I can do this now), then poke about within the verilog simulation using cver interactive, then run again from Python. Currently, I can drop into cver interactive only when a $stop is executed within the verilog code, and once I am in cver interactive a $finish must be executed before I return to the python code. I have built a little interactive monitor for my simulation using the cmd module from Python, and this is nice, but I want to be able to send commands to cver interactive and read the responses from with Python. I played a bit with using popen2 to run cver, but cver behaves quite differently when connected to a pipe rather than "real" stdin (i.e. tty), and I didn't have a lot of success. Anybody have an idea if this is a huge amount of work, or not so big if I only knew what I was doing?? Thanks for the help. Terry Brown Tyzx, Inc. |