1
0
mirror of https://github.com/myhdl/myhdl.git synced 2024-12-14 07:44:38 +08:00
2003-04-24 19:24:37 +00:00

13 lines
305 B
Python

import os
from myhdl import Cosimulation
cmd = "iverilog -o inc -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", **locals())