mirror of
https://github.com/Silicon1602/srdl2sv.git
synced 2025-08-23 16:53:05 +00:00
Add directory that will contain SystemRDL files for tests
This commit is contained in:
46
tests/systemrdl/external_registers.rdl
Normal file
46
tests/systemrdl/external_registers.rdl
Normal file
@@ -0,0 +1,46 @@
|
||||
addrmap external_registers {
|
||||
|
||||
reg {
|
||||
field {} f1 [15:0];
|
||||
field {} f2 [31:16];
|
||||
f2->sw = w;
|
||||
} reg_int0;
|
||||
|
||||
// The registers below shall not be implemented by RTL that is
|
||||
// generated by srdl2sv but rather, the tool shall provide an
|
||||
// interface to communicate with the bus.
|
||||
external reg {
|
||||
field {} f1 [15:0];
|
||||
field {} f2 [31:16];
|
||||
f2->sw = w;
|
||||
} reg_ext0;
|
||||
|
||||
// Multi-dimensional registers must work
|
||||
external reg {
|
||||
field {} f1 [15:0];
|
||||
field {} f2 [31:20];
|
||||
f2->sw = w;
|
||||
} reg_ext1 [2];
|
||||
|
||||
external reg {
|
||||
field {} f1 [14:3];
|
||||
field {} f2 [31:20];
|
||||
f1->sw = rw;
|
||||
f2->sw = rw;
|
||||
} reg_ext2 [2];
|
||||
|
||||
// Add an alias to verify that alias capabilities work fine for
|
||||
// external registers
|
||||
reg reg_ext2_alias_t {
|
||||
field {} f1 [14:3];
|
||||
f1->sw = rw;
|
||||
};
|
||||
|
||||
external alias reg_ext2 reg_ext2_alias_t reg_ext2_alias;
|
||||
|
||||
reg {
|
||||
field {} f1 [15:0];
|
||||
field {} f2 [31:16];
|
||||
f2->sw = w;
|
||||
} reg_int1 [2];
|
||||
};
|
6
tests/systemrdl/simple_rw_reg.rdl
Normal file
6
tests/systemrdl/simple_rw_reg.rdl
Normal file
@@ -0,0 +1,6 @@
|
||||
addrmap simple_rw_reg {
|
||||
reg {
|
||||
field {sw=rw; hw=rw;} f1 [15:0];
|
||||
field {sw=rw; hw=rw;} f2 [31:16];
|
||||
} register_0 [2];
|
||||
};
|
Reference in New Issue
Block a user