mirror of
https://github.com/myhdl/myhdl.git
synced 2025-01-24 21:52:56 +08:00
d3b17a56f2
Fixed the VPI tests for Windows
12 lines
327 B
Python
12 lines
327 B
Python
import os
|
|
|
|
from myhdl import Cosimulation
|
|
|
|
cmd = 'vsim -c -quiet -pli ../myhdl_vpi.dll -do cosim.do dut_dff_clkout'
|
|
|
|
def dff_clkout(clkout, q, d, clk, reset):
|
|
os.system('vlog -quiet ../../test/verilog/dff_clkout.v')
|
|
os.system('vlog -quiet ../../test/verilog/dut_dff_clkout.v')
|
|
|
|
return Cosimulation(cmd, **locals())
|