About Variable Sized Arrays for system calls

This is a discussion on About Variable Sized Arrays for system calls within the verilog forums in Programming Languages category; hi All, Since Now system Verilog has added Variable Sized arrays, I need to know one thing For dynamic arrays as such initial begin int a[]; $readmemb("p1.dat",a); end SHould the readmemb call create a new array or error out, My questions in the more consolidated way are $readmemb, $readmemh, $fread 1. Dynamic Arrays a. Should they overwrite the current data and start from the end of the existing information. b. If a DA has not been newed , can data be written onto it. c. If a DA has been newed for 10 bytes but we are reading more than ...

Go Back   Application Development Forum > Programming Languages > verilog

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 07-30-2008, 07:33 AM
parag_paul@hotmail.com
Guest
 
Default About Variable Sized Arrays for system calls

hi All,
Since Now system Verilog has added Variable Sized arrays,
I need to know one thing


For dynamic arrays as such

initial
begin
int a[];
$readmemb("p1.dat",a);
end


SHould the readmemb call create a new array or error out,

My questions in the more consolidated way are
$readmemb, $readmemh, $fread
1. Dynamic Arrays
a. Should they overwrite the current data and start from the end of
the existing information.
b. If a DA has not been newed , can data be written onto it.
c. If a DA has been newed for 10 bytes but we are reading more than
than that, what is the case.
d. The data or the memory file could have addresses too( indices ) ,
Should they follow the same semantics as fixed unpacked arrays.

2. Smart Queues
a. Should they overwrite the current data or add it to the end
b. What are the semantics for the start address and end address that
$readmem calls usually take as 3rd and 4th argument
c. Same as 1.d

3. Assoc Arrays
a. Should they overwrite the current data or add to it
b. What should the choice of keys for the same. Should the user send
the memory or the data file with two lines for each member data , one
with the key and the other with the value.
c. What about the readmem calls with start index and end index. Do we
allow them.
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 03:18 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.