1
0
mirror of https://github.com/myhdl/myhdl.git synced 2024-12-14 07:44:38 +08:00
Guenter Dannoritzer 3f7f2fe37c Added Cver Makefile for x86_64
The added Makefile will compile myhdl_vpi.so properly for Cver on a
x86_64 architecture. Cver is compiled as a 32-bit application on x86_64
architecture and the current makefile.lnx will compile the PLI
application as 64-bit library, which does not work together with Cver.
2008-08-22 16:07:58 +02:00
..
2004-03-19 12:15:36 +00:00
2008-07-21 23:21:18 +02:00
2008-08-22 16:07:58 +02:00
2005-10-03 15:49:57 +00:00
2008-07-21 23:21:18 +02:00

MyHDL co-simulation relies on Unix-style interprocess communication.
To run co-simulation on Windows, compile and use all tools involved
(including Python itself) on a Unix-like environment for Windows, such
as cygwin.

For co-simulation with cver, the following is required:
  * a working cver installation
  * a 'myhdl_vpi.so' file, generated from 'myhdl_vpi.c'

For Linux, a makefile 'makefile.lnx' is provided to generate 'myhdl_vpi.so'. 
However, you will have to edit the makefile to point to the correct
pli include files for cver. See the makefile for instructions.

To test whether it works, go to the 'test' subdirectory and run the
tests with 'python test_all.py'. 

For co-simulation with MyHDL, 'cver' should be run with the 'myhdl_vpi.so'
PLI module, using the '+loadvpi' option, and with the 'vpi_compat_bootstrap'
routine as the bootstrap routine. The Verilog code should contain the 
appropriate calls to the '$to_myhdl' and 'from_myhdl' tasks.

The 'myhdl_vpi.c' module was developed and verified with cver version
GPLCVER_1.10f on Linux.