Just tried the myhdl.vpi on my Windows machine. Did’nt get it to work.
First i used the following statement to run cosimulation:
return Cosimulation(“vvp -m ./myhdl.vpi unit_control.o”, CLKIN=CLKIN,RESET_N=RESET_N, FAULT_N=FAULT_N, CLK8M=CLK8M,PULSE8K=PULSE8K,RELAY=RELAY,S1=S1,S2=S2,S3=S3,S4=S4,S5=S5,S6=S6,S7=S7, y10=y10, y20=y20, y30=y30)
this worked in exactly the same project on my ubuntu Computer.
As the error statement was that it didnt find ./myhdl.vpi.vpi i left away the .vpi and still got a similar error.
I then used the following Statement:
return Cosimulation(“vvp -m myhdl unit_control.o”, CLKIN=CLKIN,RESET_N=RESET_N, FAULT_N=FAULT_N, CLK8M=CLK8M,PULSE8K=PULSE8K,RELAY=RELAY,S1=S1,S2=S2,S3=S3,S4=S4,S5=S5,S6=S6,S7=S7, y10=y10, y20=y20, y30=y30)
but still no success, the output is as follows:
myhdl: Unable to find a `myhdl.vpi' module on the search path.
tb_unit_control.v:21: Error: System task/function $from_myhdl() is not defined by any module.
tb_unit_control.v:27: Error: System task/function $to_myhdl() is not defined by any module.
unit_control.o: Program not runnable, 2 errors.
Traceback (most recent call last):
File "C:\Users\Stefan\Desktop\svn\fpga_bx\13control\tb_unitcontrol.py", line 115, in <module>
tb=tb_unitcontrol()
File "C:\Users\Stefan\AppData\Local\Programs\Python\Python37\lib\site-packages\myhdl\_block.py", line 196, in __call__
self.srcline, *args, **kwargs)
File "C:\Users\Stefan\AppData\Local\Programs\Python\Python37\lib\site-packages\myhdl\_block.py", line 218, in __init__
self.subs = _flatten(func(*args, **kwargs))
File "C:\Users\Stefan\Desktop\svn\fpga_bx\13control\tb_unitcontrol.py", line 105, in tb_unitcontrol
return instances() , unit_controlX()
File "C:\Users\Stefan\AppData\Local\Programs\Python\Python37\lib\site-packages\myhdl\_block.py", line 196, in __call__
self.srcline, *args, **kwargs)
File "C:\Users\Stefan\AppData\Local\Programs\Python\Python37\lib\site-packages\myhdl\_block.py", line 218, in __init__
self.subs = _flatten(func(*args, **kwargs))
File "C:\Users\Stefan\Desktop\svn\fpga_bx\13control\tb_unitcontrol.py", line 101, in unit_controlX
return Cosimulation("vvp -m myhdl unit_control.o", CLKIN=CLKIN,RESET_N=RESET_N, FAULT_N=FAULT_N, CLK8M=CLK8M,PULSE8K=PULSE8K,RELAY=RELAY,S1=S1,S2=S2,S3=S3,S4=S4,S5=S5,S6=S6,S7=S7, y10=y10, y20=y20, y30=y30)
File "C:\Users\Stefan\AppData\Local\Programs\Python\Python37\lib\site-packages\myhdl\_Cosimulation.py", line 104, in __init__
raise CosimulationError(_error.SimulationEnd)
myhdl.CosimulationError: Premature simulation end
Maybe there are other ideas how to address the myhdl.vpi which is located in the same Directory as all of the files involved (on a windows machine).