Initial Commit - Forked from PeakRDL-regblock @ a440cc19769069be831d267505da4f3789a26695
This commit is contained in:
61
tests/test_onread_onwrite/regblock.rdl
Normal file
61
tests/test_onread_onwrite/regblock.rdl
Normal file
@@ -0,0 +1,61 @@
|
||||
addrmap top {
|
||||
|
||||
reg {
|
||||
field {
|
||||
sw=rw; hw=na;
|
||||
onread = rclr;
|
||||
} f1[7:0] = 0xF0;
|
||||
|
||||
field {
|
||||
sw=rw; hw=na;
|
||||
onread = rset;
|
||||
} f2[15:8] = 0x0F;
|
||||
} r1;
|
||||
|
||||
|
||||
reg {
|
||||
field {
|
||||
sw=rw; hw=na;
|
||||
onwrite = woset;
|
||||
} f1[3:0] = 0x0;
|
||||
|
||||
field {
|
||||
sw=rw; hw=na;
|
||||
onwrite = woclr;
|
||||
} f2[7:4] = 0xF;
|
||||
|
||||
field {
|
||||
sw=rw; hw=na;
|
||||
onwrite = wot;
|
||||
} f3[11:8] = 0x0;
|
||||
} r2;
|
||||
|
||||
reg {
|
||||
field {
|
||||
sw=rw; hw=na;
|
||||
onwrite = wzs;
|
||||
} f1[3:0] = 0x0;
|
||||
|
||||
field {
|
||||
sw=rw; hw=na;
|
||||
onwrite = wzc;
|
||||
} f2[7:4] = 0xF;
|
||||
|
||||
field {
|
||||
sw=rw; hw=na;
|
||||
onwrite = wzt;
|
||||
} f3[11:8] = 0x0;
|
||||
} r3;
|
||||
|
||||
reg {
|
||||
field {
|
||||
sw=rw; hw=na;
|
||||
onwrite = wclr;
|
||||
} f1[7:0] = 0xF0;
|
||||
|
||||
field {
|
||||
sw=rw; hw=na;
|
||||
onwrite = wset;
|
||||
} f2[15:8] = 0x0F;
|
||||
} r4;
|
||||
};
|
||||
Reference in New Issue
Block a user