1
0
mirror of https://github.com/myhdl/myhdl.git synced 2024-12-14 07:44:38 +08:00
Christopher Felton 4af569adf9 Added a cosimulation directory for modelsim
--HG--
branch : 0.8-dev
2011-07-22 15:21:49 -05:00

14 lines
372 B
Python

import os
import os.path as path
from myhdl import Cosimulation
cmd = 'vsim -c -quiet -pli myhdl_vpi.so -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())