mirror of
https://github.com/myhdl/myhdl.git
synced 2024-12-14 07:44:38 +08:00
d3b17a56f2
Fixed the VPI tests for Windows
12 lines
343 B
Python
12 lines
343 B
Python
import os
|
|
|
|
from myhdl import Cosimulation
|
|
|
|
cmd = 'vsim -c -quiet -pli ../myhdl_vpi.dll -do cosim.do dut_inc'
|
|
|
|
def inc(count, enable, clock, reset, n):
|
|
os.system('vlog -quiet +define+n=%s ../../test/verilog/inc.v' % (n))
|
|
os.system('vlog -quiet +define+n=%s ../../test/verilog/dut_inc.v' % (n))
|
|
|
|
return Cosimulation(cmd, **locals())
|