File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change
1
+
2
+ reg some_4B_reg {
3
+ field { sw=rw; hw=r; } lsb_field[16] = 16'hffff;
4
+ field { sw=rw; hw=r; } msb_field[16] = 16'h0;
5
+ };
6
+
7
+ regfile my_regfile {
8
+ some_4B_reg regs1[8]; // 8 4B regs
9
+ };
10
+
11
+ addrmap my_addrmap {
12
+ some_4B_reg regs1[8]; // 8 4B regs
13
+ };
14
+
15
+ addrmap {
16
+ my_addrmap norep_map; // creates single interface from base decoder w 3b address
17
+ //my_addrmap rep_map[4]; // fails with replicated address map error
18
+ external my_regfile norep_rf; // creates single interface from base decoder w 3b address (same as addrmap)
19
+ external my_regfile rep_rf[4] @0x100; // creates single interface from base decoder w 5b address
20
+ regfile {
21
+ external my_regfile norep_rf; // creates 4 interfaces from base decoder each w 3b address
22
+ } rep_wrapper_rf[4] @0x200;
23
+ regfile {
24
+ my_addrmap norep_map; // creates 4 interfaces from base decoder each w 3b address
25
+ } rep_wrapper_rf[4] @0x300;
26
+ } top;
You can’t perform that action at this time.
0 commit comments