Re: [myhdl-list] Simulation control
Brought to you by:
jandecaluwe
From: Henry G. <he...@ca...> - 2015-04-05 21:43:14
|
On 05/04/15 21:06, Juan Pablo Caram wrote: > I would like to be able to simulate until signal X toggles or changes, > get the time, run spice until this time is reached, update signals in > myhdl and spice, resume myhdl simulation, etc. > You can always have your own MyHDL generator instance that does programmatic control. In each call, it just checks some IO and does something suitable. Remember, you have the full power of Python available to the running code. So, you just run the simulator forever, handling state changes from whatever external source you want inside the running code, and then when you want to stop, raise StopSimulation. It could even be a real physical source if you wanted :) If anything, programmatic control is much easier, since that's what programming languages are for! cheers, Henry |