mirror of
https://github.com/myhdl/myhdl.git
synced 2024-12-14 07:44:38 +08:00
13 lines
280 B
Python
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())
|
|
|