1
0
mirror of https://github.com/myhdl/myhdl.git synced 2025-01-24 21:52:56 +08:00
2005-10-03 15:49:36 +00:00

13 lines
309 B
Python

import os
from myhdl import Cosimulation
cmd = "iverilog -o inc.o -Dn=%s " + \
"../../test/verilog/inc.v " + \
"../../test/verilog/dut_inc.v "
def inc(count, enable, clock, reset, n):
os.system(cmd % n)
return Cosimulation("vvp -m ../myhdl.vpi inc.o", **locals())