1
0
mirror of https://github.com/myhdl/myhdl.git synced 2024-12-14 07:44:38 +08:00
myhdl/cosimulation/icarus/test/dff_clkout.py
2005-10-03 15:49:36 +00:00

16 lines
416 B
Python

import os
import os.path as path
from myhdl import Cosimulation
cmd = "iverilog -o dff_clkout.o " + \
"../../test/verilog/dff_clkout.v " + \
"../../test/verilog/dut_dff_clkout.v "
def dff_clkout(clkout, q, d, clk, reset):
if path.exists("dff_clkout"):
os.remove("dff_clkout")
os.system(cmd)
return Cosimulation("vvp -m ../myhdl.vpi dff_clkout.o", **locals())