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

13 lines
309 B
Python
Raw Normal View History

2003-04-24 19:24:37 +00:00
import os
from myhdl import Cosimulation
2005-10-03 15:49:36 +00:00
cmd = "iverilog -o inc.o -Dn=%s " + \
2003-04-24 19:24:37 +00:00
"../../test/verilog/inc.v " + \
"../../test/verilog/dut_inc.v "
def inc(count, enable, clock, reset, n):
os.system(cmd % n)
2005-10-03 15:49:36 +00:00
return Cosimulation("vvp -m ../myhdl.vpi inc.o", **locals())
2003-04-24 19:24:37 +00:00