1
0
mirror of https://github.com/myhdl/myhdl.git synced 2025-01-24 21:52:56 +08:00

13 lines
284 B
Python
Raw Normal View History

2003-05-09 21:11:41 +00:00
import os
from myhdl import Cosimulation
2005-10-03 15:49:36 +00:00
cmd = "iverilog -o dff.o " + \
2003-05-09 21:11:41 +00:00
"../../test/verilog/dff.v " + \
"../../test/verilog/dut_dff.v "
2003-05-12 16:57:17 +00:00
def dff(q, d, clk, reset):
2003-05-09 21:11:41 +00:00
os.system(cmd)
2005-10-03 15:49:36 +00:00
return Cosimulation("vvp -m ../myhdl.vpi dff.o", **locals())
2003-05-09 21:11:41 +00:00