mirror of
https://github.com/myhdl/myhdl.git
synced 2024-12-14 07:44:38 +08:00
13 lines
309 B
Python
13 lines
309 B
Python
import os
|
|
|
|
from myhdl import Cosimulation
|
|
|
|
cmd = "cver -q +loadvpi=../myhdl_vpi:vpi_compat_bootstrap +define+width=%s " + \
|
|
"../../test/verilog/bin2gray.v " + \
|
|
"../../test/verilog/dut_bin2gray.v "
|
|
|
|
def bin2gray(B, G, width):
|
|
return Cosimulation(cmd % width, B=B, G=G)
|
|
|
|
|