1
0
mirror of https://github.com/myhdl/myhdl.git synced 2024-12-14 07:44:38 +08:00
myhdl/cosimulation/cver/test/bin2gray.py
2004-03-19 12:15:36 +00:00

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)