[myhdl-list] Re: signals in $to_myhdl can't exceed 64?
Brought to you by:
jandecaluwe
From: Jan D. <ja...@ja...> - 2005-05-30 08:37:50
|
Arnold wrote: > Jan, > > I got the error message said that signals in $to_myhdl can't exceed 64 when > using MyHDL as HVL in my project. Could you give me a clue how to solve this > issue if my project had to have more than 64 signals monitored by MyHDL? Yes, you'll have to increase some constants in the C code of the PLI module and recompile. These constants are macro's at the top of the code, so you only have to change one or two lines. Look for these definitions: #define MAXLINE 4096 #define MAXWIDTH 10 #define MAXARGS 64 MAXARGS is the maximum number of arguments supported by the PLI module. Change it to the value you need. Depending on how large MAXARGS is, you may want to increase MAXLINE also. MAXLINE is the width of a line containing all signal names in a $to_myhdl or $from_myhdl call, plus some overhead (e.g. 8 chars per argument). Just make it large enough. (There is currently no check on this, this needs to be added in the future.) Jan -- Jan Decaluwe - Resources bvba - http://jandecaluwe.com Losbergenlaan 16, B-3010 Leuven, Belgium Using Python as a hardware description language: http://jandecaluwe.com/Tools/MyHDL/Overview.html |