J
Jason Zheng
Guest
perltcl@yahoo.com wrote:
means a memory of 32X1, where the lower 5 rows gets assigned to value of
3 and middle 12 bits gets the value of 4. This requires that all rows of
the memory can be read/write at the same time, which is very hard to
implement (most memory blocks have 1-2 read/write ports).
One alternative is that if you have a small amount of memory to manage,
just use registers or register files.
Another alternative, if you just need to initialize the ram, is to load
the initial values from a rom, and use a state machine (which should be
little more than a counter) to drive the address bus.
cheers,
jz
Think about this would mean in terms of hardware. In your example, itHi
Does any tool so far support synthesizable "part select memory" like:
reg kkk [0:31];
....
kkk [0:4] = 3;
kkk [5:16] =4;
....
...etc.
synplify?
Thanks.
means a memory of 32X1, where the lower 5 rows gets assigned to value of
3 and middle 12 bits gets the value of 4. This requires that all rows of
the memory can be read/write at the same time, which is very hard to
implement (most memory blocks have 1-2 read/write ports).
One alternative is that if you have a small amount of memory to manage,
just use registers or register files.
Another alternative, if you just need to initialize the ram, is to load
the initial values from a rom, and use a state machine (which should be
little more than a counter) to drive the address bus.
cheers,
jz