mirror of
https://github.com/myhdl/myhdl.git
synced 2024-12-14 07:44:38 +08:00
32c8b7f3e8
- Use myhdl_vpi.so from parent directory - Automatically delete and create work library - Add test target to main makefile
13 lines
313 B
Python
13 lines
313 B
Python
import os
|
|
|
|
from myhdl import Cosimulation
|
|
|
|
cmd = 'vsim -c -quiet -pli ../myhdl_vpi.so -do cosim.do dut_dff'
|
|
|
|
def dff(q, d, clk, reset):
|
|
os.system('vlog -quiet ../../test/verilog/dff.v')
|
|
os.system('vlog -quiet ../../test/verilog/dut_dff.v')
|
|
|
|
return Cosimulation(cmd, **locals())
|
|
|