[myhdl-list] Cosimulation signal name definitions
Brought to you by:
jandecaluwe
From: Terry B. <tt...@ve...> - 2004-03-10 16:39:02
|
From an email conversation, Jan Decaluwe wrote: >- Often the signal names in myhdl and Verilog will be the same. You >can save some typing by letting the Cosimulation class do the lookup >in some predefined dictionary such as globals() or locals(), e.g.: > >cosim = Cosimulation("cver -q +loadvpi=../myhdl.so:vpi_compat_bootstrap >tb.v matrix3x3.v", **globals()) > I don't know Python well enough to understand this. I built a dictionary globals, but the reference to **globals() doesn't work. Is globals in this case a function that returns a string which is the contents of the dictionary? Terry Brown |