Re: [myhdl-list] 0.8 Type mismatch in enum item comparison
Brought to you by:
jandecaluwe
From: Christopher F. <chr...@gm...> - 2012-06-04 11:14:54
|
On 6/4/2012 6:01 AM, Jan Coombs wrote: > On 01/06/12 02:55, Christopher Felton wrote: > . . . >> >> I sometimes like my testbenches to have three sim >> modes selectable >> >> if simType == 'trace': >> dut = traceSignals(ModuleToTest, ...) >> elif simType == 'cosim': >> dut = CoSimulation(ModuleToTest, ...) >> else >> dut = ModuleToTest(..., ) >> > Thanks, looks neat, however, after a couple of hours I still > couldn't see how to integrate this with my cutrent test code. > > I also have similar problems with some of the material on > myhdl.org. As expert to expert communication it is very good, but > often lacks enough repetitive or common code for me to be able to > spot the design patterns. > > In order to use your code above I would either need to have a full > understanding of what is happening, which would allow me to work > out how to integrate this code fragment, or have you provide a full > test harness code sample which I could modify to suit myself. > > Jan Coombs. This might help as an example, select traceSignal vs. no traceSignal, http://www.myhdl.org/doku.php/users:cfelton:projects:recursivefft Regards, Chris |