1
0
mirror of https://github.com/myhdl/myhdl.git synced 2024-12-14 07:44:38 +08:00
2003-05-12 16:57:17 +00:00

13 lines
280 B
Python

import os
from myhdl import Cosimulation
cmd = "iverilog -o dff " + \
"../../test/verilog/dff.v " + \
"../../test/verilog/dut_dff.v "
def dff(q, d, clk, reset):
os.system(cmd)
return Cosimulation("vvp -m ../myhdl.vpi dff", **locals())