1
0
mirror of https://github.com/myhdl/myhdl.git synced 2025-01-24 21:52:56 +08:00
Keerthan Jaic 32c8b7f3e8 simplify modelsim cosim test process
- Use myhdl_vpi.so from parent directory
- Automatically delete and create work library
- Add test target to main makefile
2015-04-14 11:24:54 -04:00

13 lines
359 B
Python

import os
from myhdl import Cosimulation
cmd = 'vsim -c -quiet -pli ../myhdl_vpi.so -do cosim.do dut_inc'
def inc(count, enable, clock, reset, n):
os.system('vlog -quiet +define+n=%s ../../test/verilog/inc.v' % (n))
os.system('vlog -quiet +define+n=%s ../../test/verilog/dut_inc.v' % (n))
return Cosimulation(cmd, **locals())