Re: [myhdl-list] co-simulation: vpi file
Brought to you by:
jandecaluwe
From: <dan...@we...> - 2005-12-05 02:19:49
|
George Pantazopoulos wrote: > Hi all, in the example taken from the docs below, where is the myhdl.vpi > file supposed to come from? > > Thanks, > George > > > import os > > from myhdl import Cosimulation > > cmd = "iverilog -o bin2gray -Dwidth=%s bin2gray.v dut_bin2gray.v" > def bin2gray(B, G, width): > os.system(cmd % width) > return Cosimulation("vvp -m ./myhdl.vpi bin2gray", B=B, G=G) > I did not pay attention whether one of the development snapshots Jan put on the page are complete. But if you download the 0.4 code and unpack it, there is a cosimulation directory with an Icarus folder. In there is a myhdl.c file which needs to be compiled and put in the folder, specified in the README.txt file. I saw you are using cygwin. I had trouble getting cosimulation going under it, but that might be because of my strange setup with python. I have the native windows python and that does not support the os.fork command, which the myhdl cosimulation is relying on. Now I tried the cygwin python version, which solved the os.fork problem, but got some other error message. As I also use Linux I did not follow up on that problem. I wonder whether it comes form the fact that I have Icarus as windows package. I probably would need to compile it from scratch under cygwin too to get it working. Hope that helps. Cheers, Guenter |