[myhdl-list] Re: co-simulation: vpi file
Brought to you by:
jandecaluwe
From: Jan D. <ja...@ja...> - 2005-12-09 15:53:06
|
George Pantazopoulos wrote: > Hi Jan, > >> - does co-simulation work at all ??? If it does work, the error messages >> you get should come from unittest assertion statements, not from >> the Cosimulation module. >> >> Note that the toVerilog tests (myhdl/test/toVerilog) have plenty of >> unit test modules that use co-simulation. All those tests have been >> run with cver and icarus. (Exception: test_signed fails with Icarus >> because it has bugs with signed arithmetic.) >> > In myhdl0.5a1/myhdl/test/ > test_Cosimulation.py and test_all.py both pass all their tests. This only tests the MyHDL side - there's no other HDL simulator involved. > However, in myhdl0.5a1/myhdl/test/toVerilog/ > running test_always_comb.py (or any of the other ones I've tried) > resulted in massive amounts of errors. Ok. In toVerilog/util.py I have added setup functions so that I can easily switch between Icarus and Cver. I prefer Cver these days, as it seems more reliable. So in the snapshot, the setup is apparently Cver by default. You'll have to go in the source code of util.py and make sure Icarus setup is used instead. I would be surprized if this alone would solve the issue. There may be other path/filenaming issues. You'll have to make sure that the icarus call from the setup functions is valid for your system. Good luck, Jan > > Below I pasted an excerpt from running test_always_comb.py: > > My system configuration is: > > Windows XP Professional SP2 > cygwin (cygwin dll version 1.5.18) > myHDL 0.5a1 > Icarus Verilog 0.8.2 (compiled on cygwin) > > HTH, > George > > Begin paste > ----------- > > test1 (__main__.AlwaysCombSimulationTest) ... ERROR > test2 (__main__.AlwaysCombSimulationTest) ... ERROR > test3 (__main__.AlwaysCombSimulationTest) ... ERROR > test4 (__main__.AlwaysCombSimulationTest) ... ERROR > test5 (__main__.AlwaysCombSimulationTest) ... ERROR > > ====================================================================== > ERROR: test1 (__main__.AlwaysCombSimulationTest) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "test_always_comb.py", line 130, in test1 > Simulation(self.bench(design1)).run(quiet=QUIET) > File "test_always_comb.py", line 103, in bench > design_v_inst = design_v(design.func_name, a, b, c, d, p_v, q_v, r_v) > File "test_always_comb.py", line 80, in design_v > return setupCosimulation(**locals()) > File "/tmp/myhdl-0.5a1/myhdl/test/toVerilog/util.py", line 22, in > setupCosimulationCver > return Cosimulation(cmd, **kwargs) > File "/usr/lib/python2.4/site-packages/myhdl/_Cosimulation.py", line > 84, in __init__ > raise CosimulationError(_error.OSError, str(e)) > CosimulationError: OSError: [Errno 2] No such file or directory > > ====================================================================== > ERROR: test2 (__main__.AlwaysCombSimulationTest) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "test_always_comb.py", line 133, in test2 > Simulation(self.bench(design2)).run(quiet=QUIET) > File "test_always_comb.py", line 103, in bench > design_v_inst = design_v(design.func_name, a, b, c, d, p_v, q_v, r_v) > File "test_always_comb.py", line 80, in design_v > return setupCosimulation(**locals()) > File "/tmp/myhdl-0.5a1/myhdl/test/toVerilog/util.py", line 22, in > setupCosimulationCver > return Cosimulation(cmd, **kwargs) > File "/usr/lib/python2.4/site-packages/myhdl/_Cosimulation.py", line > 84, in __init__ > raise CosimulationError(_error.OSError, str(e)) > CosimulationError: OSError: [Errno 2] No such file or directory > > ====================================================================== > ERROR: test3 (__main__.AlwaysCombSimulationTest) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "test_always_comb.py", line 136, in test3 > Simulation(self.bench(design3)).run(quiet=QUIET) > File "test_always_comb.py", line 103, in bench > design_v_inst = design_v(design.func_name, a, b, c, d, p_v, q_v, r_v) > File "test_always_comb.py", line 80, in design_v > return setupCosimulation(**locals()) > File "/tmp/myhdl-0.5a1/myhdl/test/toVerilog/util.py", line 22, in > setupCosimulationCver > return Cosimulation(cmd, **kwargs) > File "/usr/lib/python2.4/site-packages/myhdl/_Cosimulation.py", line > 84, in __init__ > raise CosimulationError(_error.OSError, str(e)) > CosimulationError: OSError: [Errno 2] No such file or directory > > ====================================================================== > ERROR: test4 (__main__.AlwaysCombSimulationTest) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "test_always_comb.py", line 139, in test4 > Simulation(self.bench(design4)).run(quiet=QUIET) > File "test_always_comb.py", line 103, in bench > design_v_inst = design_v(design.func_name, a, b, c, d, p_v, q_v, r_v) > File "test_always_comb.py", line 80, in design_v > return setupCosimulation(**locals()) > File "/tmp/myhdl-0.5a1/myhdl/test/toVerilog/util.py", line 22, in > setupCosimulationCver > return Cosimulation(cmd, **kwargs) > File "/usr/lib/python2.4/site-packages/myhdl/_Cosimulation.py", line > 84, in __init__ > raise CosimulationError(_error.OSError, str(e)) > CosimulationError: OSError: [Errno 2] No such file or directory > > ====================================================================== > ERROR: test5 (__main__.AlwaysCombSimulationTest) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "test_always_comb.py", line 142, in test5 > Simulation(self.bench(design5)).run(quiet=QUIET) > File "test_always_comb.py", line 103, in bench > design_v_inst = design_v(design.func_name, a, b, c, d, p_v, q_v, r_v) > File "test_always_comb.py", line 80, in design_v > return setupCosimulation(**locals()) > File "/tmp/myhdl-0.5a1/myhdl/test/toVerilog/util.py", line 22, in > setupCosimulationCver > return Cosimulation(cmd, **kwargs) > File "/usr/lib/python2.4/site-packages/myhdl/_Cosimulation.py", line > 84, in __init__ > raise CosimulationError(_error.OSError, str(e)) > CosimulationError: OSError: [Errno 2] No such file or directory > > ---------------------------------------------------------------------- > Ran 5 tests in 1.079s > > FAILED (errors=5) > ERROR > > >> > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click -- Jan Decaluwe - Resources bvba - http://www.jandecaluwe.com Losbergenlaan 16, B-3010 Leuven, Belgium From Python to silicon: http://myhdl.jandecaluwe.com |