Skip to content

Commit

Permalink
[shim,rdl] Make aes.rdl register file specification conformant
Browse files Browse the repository at this point in the history
 - Fix typo in register declaration.
 - Use fixed offsets in place of increments.

Signed-off-by: Andrea Caforio <[email protected]>
  • Loading branch information
andrea-caforio authored and vogelpi committed Nov 15, 2024
1 parent 26617b6 commit fdf929c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions hw/ip/aes/data/aes.rdl
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ addrmap aes {
registers are ignored.
Upon reset, these registers are cleared with pseudo-random data.";
} KEY_SHARE0[31:0];
} KEY_SHARE0[8] @ 0x04 += 0x20;
reg0 {
} KEY_SHARE0[8] @ 0x04;
reg {
field {
sw = w;
onwrite = woclr;
Expand All @@ -40,7 +40,7 @@ addrmap aes {
registers are ignored. Upon reset, these registers are
cleared with pseudo-random data.";
} KEY_SHARE1[31:0];
} KEY_SHARE1[8] @ 0x24 += 0x20;
} KEY_SHARE1[8] @ 0x24;
reg {
field {
sw = rw;
Expand All @@ -62,7 +62,7 @@ addrmap aes {
configured. Upon reset, these registers are cleared with
pseudo-random data.";
} IV[31:0];
} IV[4] @ 0x44 += 0x10;
} IV[4] @ 0x44;
reg {
field {
sw = w;
Expand All @@ -79,7 +79,7 @@ addrmap aes {
registers (See INPUT_READY field of Status Register). Upon
reset, these registers are cleared with pseudo-random data.";
} DATA_IN[31:0];
} DATA_IN[4] @ 0x54 += 0x10;
} DATA_IN[4] @ 0x54;
reg {
field {
sw = r;
Expand All @@ -93,7 +93,7 @@ addrmap aes {
order in which the registers are read does not matter. Upon
reset, these registers are cleared with pseudo-random data.";
} DATA_OUT[31:0];
} DATA_OUT[4] @ 0x64 += 0x10;
} DATA_OUT[4] @ 0x64;
reg {
field {
sw = rw;
Expand Down Expand Up @@ -310,11 +310,11 @@ addrmap aes {
sw = r;
desc = "Name register.";
} NAME[31:0];
} NAME[2] @ 0x100 += 0x8;
} NAME[2] @ 0x100;
reg {
field {
sw = r;
desc = "Version register.";
} VERSION[31:0];
} VERSION[2] @ 0x108 += 0x8;
} VERSION[2] @ 0x108;
};

0 comments on commit fdf929c

Please sign in to comment.