Array Assignement in System Verilog

S

sghosh

Guest
Here is a code snipet from System verilog array assignment.

module test(out1, in1);
input [3:0] in1;
output reg [9:0] out1;

bit signed [1:0] mem1[1:0];
bit signed [2:0] mem [1:0];

always @*
begin
mem1[1] = in1[3:2];
mem1[0] = in1[1:0];
mem = mem1;
out1 = mem[1];
end

Is the assignment mem=mem1 permitted under SV array assignment rules.
Here unpacked dimension and size are same in both array, but packed
size
is different,

Thanks in advance!

Subhankar
 
VCS 7.1.1 apparently allows it (with +v2k and +sysvcs
options). Depending on simulator YMMV.

- Swapnajit.
--
SystemVerilog, DPI, Verilog PLI and all other good stuffs.
Project VeriPage: http://www.project-veripage.com
For subscribing to the mailing list:
<URL: http://www.project-veripage.com/list/?p=subscribe&id=1>
 

Welcome to EDABoard.com

Sponsor

Back
Top