1
0
mirror of https://github.com/myhdl/myhdl.git synced 2025-01-24 21:52:56 +08:00
Isaac Garzon e8def55da7 Removed python < 3.4 support code from cosimulation
Separated Windows and Linux ModelSim VPI code
2015-06-26 11:10:20 +03:00

14 lines
375 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())