Discussion:
verilog limitation for array size
(too old to reply)
paz
2007-02-28 11:11:58 UTC
Permalink
what is the verilog limitation for array size.
I have an array of 128bits data and I would like to know what is the
maximum index that this array can have.
Homuncilus
2007-02-28 13:34:11 UTC
Permalink
Post by paz
what is the verilog limitation for array size.
I have an array of 128bits data and I would like to know what is the
maximum index that this array can have.
the limitation fo array size is just due to your resoures
Jerome
2007-02-28 13:56:22 UTC
Permalink
I think the limitation is the max integer number.
Jerome.
Post by paz
what is the verilog limitation for array size.
I have an array of 128bits data and I would like to know what is the
maximum index that this array can have.
s***@cadence.com
2007-02-28 20:34:51 UTC
Permalink
Post by paz
what is the verilog limitation for array size.
I have an array of 128bits data and I would like to know what is the
maximum index that this array can have.
The language standard requires implementations to support
vector widths of at least 2**16 (64K) bits, and arrays of at least
2**24 (16M) elements. Actual implementations will probably
have higher limits than these.
paz
2007-03-01 12:17:40 UTC
Permalink
Post by s***@cadence.com
Post by paz
what is the verilog limitation for array size.
I have an array of 128bits data and I would like to know what is the
maximum index that this array can have.
The language standard requires implementations to support
vector widths of at least 2**16 (64K) bits, and arrays of at least
2**24 (16M) elements. Actual implementations will probably
have higher limits than these.
Thanks!
Do you know what is the actual limit for ncverilog?
s***@cadence.com
2007-03-01 19:35:16 UTC
Permalink
Post by paz
Do you know what is the actual limit for ncverilog?
Maximum reg vector width is 10 million bits.

Arrays are limited to 2**31 (2G) elements. They are
also limited to fitting in about 2Gbytes of memory,
which is always a stricter requirement. That gives
you about a billion elements for a memory whose
width is a byte or less. And of course you have to
have the necessary memory available on your
computer.

If you are only using a subset of the elements of
the array, then you can use the sparse array
support. That removes the limits on number of
elements. Your computer storage limit then applies
to the storage for the sparse representation rather
than the entire memory.
Utku Özcan
2007-03-02 00:38:35 UTC
Permalink
Even if the storage is compressed by sparse arrays to save memory,
accesses to these OS objects through PLI might increase the simulation
runtime.

Utku.
Post by s***@cadence.com
Post by paz
Do you know what is the actual limit for ncverilog?
Maximum reg vector width is 10 million bits.
Arrays are limited to 2**31 (2G) elements. They are
also limited to fitting in about 2Gbytes of memory,
which is always a stricter requirement. That gives
you about a billion elements for a memory whose
width is a byte or less. And of course you have to
have the necessary memory available on your
computer.
If you are only using a subset of the elements of
the array, then you can use the sparse array
support. That removes the limits on number of
elements. Your computer storage limit then applies
to the storage for the sparse representation rather
than the entire memory.
Loading...