S
Steven Wilson
Guest
I have a question for the assembled masses.
I have a declaration similar to the following:
integer my_q[$] = {1,2,3,4,5,6};
This is accepted by Modelsim using the -sv switch.
If I compile this with ncverilog +sv I get the following gripes:
ncvlog: *E,TYCMPAT (queue.sv,5|18): assignment operator type check
failed (expecting datatype compatible with 'queue of integer' but
found 'packed array' instead).
integer my_q[$] = {1,2,3,4,5,6};
|
ncvlog: *E,NONOWD (queue.sv,5|19): Illegal use of a constant without
an explicit width specification [4.1.14(IEEE)].
integer my_q[$] = {1,2,3,4,5,6};
etc...
Any suggestions as to what I'm doing wrong here?
Thanks!
Steve Wilson
--- news://freenews.netfront.net/ - complaints: news@netfront.net ---
I have a declaration similar to the following:
integer my_q[$] = {1,2,3,4,5,6};
This is accepted by Modelsim using the -sv switch.
If I compile this with ncverilog +sv I get the following gripes:
ncvlog: *E,TYCMPAT (queue.sv,5|18): assignment operator type check
failed (expecting datatype compatible with 'queue of integer' but
found 'packed array' instead).
integer my_q[$] = {1,2,3,4,5,6};
|
ncvlog: *E,NONOWD (queue.sv,5|19): Illegal use of a constant without
an explicit width specification [4.1.14(IEEE)].
integer my_q[$] = {1,2,3,4,5,6};
etc...
Any suggestions as to what I'm doing wrong here?
Thanks!
Steve Wilson
--- news://freenews.netfront.net/ - complaints: news@netfront.net ---