[aes/rtl] Change order of `ctrl_reg_t` struct members
This commit changes the order of the `ctrl_reg_t` struct members to
match the documentation. This has no impact on functionality or software
but it simplifies DV.
This resolves lowRISC/OpenTitan#3635.
Signed-off-by: Pirmin Vogel <vogelpi@lowrisc.org>
diff --git a/hw/ip/aes/rtl/aes_pkg.sv b/hw/ip/aes/rtl/aes_pkg.sv
index 7ac22c9..531edb3 100644
--- a/hw/ip/aes/rtl/aes_pkg.sv
+++ b/hw/ip/aes/rtl/aes_pkg.sv
@@ -112,17 +112,17 @@
} add_so_sel_e;
typedef struct packed {
- aes_op_e operation;
- aes_mode_e mode;
- key_len_e key_len;
logic manual_operation;
+ key_len_e key_len;
+ aes_mode_e mode;
+ aes_op_e operation;
} ctrl_reg_t;
parameter ctrl_reg_t CTRL_RESET = '{
- operation: AES_ENC,
- mode: AES_NONE,
+ manual_operation: '0,
key_len: AES_128,
- manual_operation: '0
+ mode: AES_NONE,
+ operation: AES_ENC
};
// Multiplication by {02} (i.e. x) on GF(2^8)