 |
|
|
|
|
|
|
|
|
|
|
|
|
SVUG Community Forum
|
|
| Author |
Messages |
|
SAMEER
Posts:3
 |
| 01/20/2010 1:20 PM |
|
| Hi all, im a SV naive. im trying out to do some sv examples from sv-lrm. I'm facing some issues. i'm using irun tool. here is what im observing:
I'm trying to do a few examples related to Queues in System verilog LRM - 'Queue operators'.
I tried to put the following code in the test case:
int Q[$] = {2,4,8};
I'm getting nvclog error:
int Q[$] = {2,4,8};
|
ncvlog: *E,TYCMPAT (coverage_eg.sv,3|15): assignment operator type check failed (expecting datatype compatible with 'queue of int' but found 'packed array' instead).
int Q[$] = {2,4,8};
|
ncvlog: *E,NONOWD (coverage_eg.sv,3|16): Illegal use of a constant without an explicit width specification Β.1.14(IEEE)].
int Q[$] = {2,4,8};
|
ncvlog: *E,NONOWD (coverage_eg.sv,3|18): Illegal use of a constant without an explicit width specification Β.1.14(IEEE)].
int Q[$] = {2,4,8};
|
ncvlog: *E,NONOWD (coverage_eg.sv,3|20): Illegal use of a constant without an explicit width specification Β.1.14(IEEE)].
Why is this error occurring?
I also tried to execute the example shown in www.testbench.in:
http://www.testbench.in/CO_04_COVER_POINTS.html
While compiling the code, I'm getting the error:
bit Ύ:2] values[$] = '{3,5,6};
|
ncvlog: *E,NSPQDA (coverage_eg.sv,4|27): This feature is currently not supported for queues, dynamic arrays, strings and associative arrays..
I'm not using any special switch to 'irun'.
Thanks,
Kaushik |
|
|
|
|
SAMEER
Posts:3
 |
| 01/22/2010 6:49 AM |
|
I saw that the message i posted above got jumbled. Sorry for that. Here is the simplified question: Can we initialize queue during declaration? something like "int Q[$] = {2,4,8}; "? It is working fine with VCS, but not with iRUN. My NCSIM version is 9.2ius-s008. Can we do something like "bit Ύ:2] values[$]= '{3,5,6};" (observe the 'tick' before opening brace). Even this works fine with VCS and not with iRUN. |
|
|
|
|
|
| You are not authorized to post a reply. |
|
|
|
ActiveForums 3.7
|
|
|

|
|
|
|
|
|
|
|
|
|
 |
|