J
Jal
Guest
[POSTED to .cad.cadence and .lang.verilog]
Hi,
Can somebody please inform me as to whether multi-dimensional arrays
are supported by NC-verilog and simvision.
I couldn't get NC-verilog to compile the following bit of code.
//4*4 array of byte
wire [7:0] my_array [1:0] [1:0];
So, instead, I used a 'reg', and this compiled OK,
//4*4 array of byte
reg [7:0] my_array [1:0] [1:0];
BUT, when I simulate my design, and open my .trn file in Simvision
(also tried signalscan), I can't seem to see any of my
multi-dimensional signals. I even tried a simple memory like this:
reg [7:0] mem [0:1023].
and even this was not displayed in the "signal/Variables of scope"
window.
Can these tools not display multi-dimensional arrays, or do I have to
set some kind of option somewhere?
p.s I am new to Verilog (ex-VHDL) and the Cadence toolset.
thanks,
Jal.
Hi,
Can somebody please inform me as to whether multi-dimensional arrays
are supported by NC-verilog and simvision.
I couldn't get NC-verilog to compile the following bit of code.
//4*4 array of byte
wire [7:0] my_array [1:0] [1:0];
So, instead, I used a 'reg', and this compiled OK,
//4*4 array of byte
reg [7:0] my_array [1:0] [1:0];
BUT, when I simulate my design, and open my .trn file in Simvision
(also tried signalscan), I can't seem to see any of my
multi-dimensional signals. I even tried a simple memory like this:
reg [7:0] mem [0:1023].
and even this was not displayed in the "signal/Variables of scope"
window.
Can these tools not display multi-dimensional arrays, or do I have to
set some kind of option somewhere?
p.s I am new to Verilog (ex-VHDL) and the Cadence toolset.
thanks,
Jal.