mirror of
https://github.com/myhdl/myhdl.git
synced 2025-01-24 21:52:56 +08:00
13 lines
284 B
Python
13 lines
284 B
Python
import os
|
|
|
|
from myhdl import Cosimulation
|
|
|
|
cmd = "iverilog -o dff.o " + \
|
|
"../../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.o", **locals())
|
|
|