| Login | | Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name. | |
| Who's Online | There are currently, 49 guest(s) and 1 member(s) that are online.
You are Anonymous user. You can register for free by clicking here | |
 | |
|
Verification Guild: Forums |
|
| View previous topic :: View next topic |
| Author |
Message |
ericswa Junior


Joined: Feb 29, 2012 Posts: 5
|
Posted: Thu Apr 12, 2012 11:26 am Post subject: RAL supports generated instances of Memories? |
|
|
Can the VMM RAL [%g] specifier be used if a block has internal RAM-based memories? (The internal RAMs contain software registers that need to be in the RALF file; the RAMs are created by tools like Xillinx Coregen).
From RAL ug, RALF uses the [%g] format specifier to denote that a block, register, field, etc. is a "generated instance array". The snippet ('ralf-1') below shows an hdl_path set up to give two instances of "register r3". Could the same thing be done with RAM memories , or array of registers? See next code snippet, 'ralf-2', where 8 instances of 'memory m1' are needed.
ralf-1 | Code: |
system s1 {
. . .
block b3[2] (b3_gen_array[%g].blk) {
bytes 1
register r3 (dec.r3_reg) {
field f
}
}
}
|
ralf-2 | Code: |
block b3[8] (b3_gen_array[%g].blk) @0x1000 {
memory m1 (m1_reg) {
size 1k;
bits 16;
}
}
|
thanks,
Eric |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
| |
|
|