RegisterLogin  
Update Profile
   
You are here: Forum  
Minimize 
SVUG Community Forum
Subject: Can't save in packed arrays...
Prev Next
You are not authorized to post a reply.

Author Messages
AndreaUser is Offline

Posts:1

10/17/2007 3:22 AM  
Hi all,

Here's my problem: I am tryng to sample the data written to a SSRAM by saving them in a packed array. But it doesn't work.

The memory is split in 3 consecutive banks 128k x 32 each: bus data is 96 bits wide. New data and address is provided eack clock period.

Here is a portion of the code I wrote down:

These are the declarations:

logic �:0] ⎫:0] bank_0;
logic �:0] ⎫:0] bank_1;
logic �:0] ⎫:0] bank_2;

This is my initial:

initial
begin

//[setup_of the system]

while (sramwen)
begin
@(posedge clock);
bank_0[sramaddr] <= sramdata⎫:0]
bank_1[sramaddr] <= sramdata⏋:32]
bank_2[sramaddr] <= sramdata⏫:64]
end

end


The data actually written to those array are xxxxxxxx.

Somewhere there must be a silly mistake, I know...

Thanks.
MalvikaUser is Offline

Posts:3

11/03/2008 10:48 PM  
your code is not clear:( some of the things are missing..
Please type it clearly
You are not authorized to post a reply.
Forums > SVUG Archive > Modelling memory > Can't save in packed arrays...



ActiveForums 3.7
  

 Copyright 2008 by SystemVerilog User Group Contact Us    Privacy Statement