aboutsummaryrefslogtreecommitdiff
path: root/verilog_constants.h
diff options
context:
space:
mode:
Diffstat (limited to 'verilog_constants.h')
-rw-r--r--verilog_constants.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/verilog_constants.h b/verilog_constants.h
index 1b00b96..df808c4 100644
--- a/verilog_constants.h
+++ b/verilog_constants.h
@@ -40,6 +40,7 @@
#ifndef _VERILOG_CONSTANTS_H_
#define _VERILOG_CONSTANTS_H_
+
/*
* Common to all cores.
*/
@@ -298,6 +299,31 @@
#define MKMIF_ADDR_EMEM_ADDR (0x10)
#define MKMIF_ADDR_EMEM_DATA (0x20)
+/*
+ * AES Keywrap core
+ */
+
+#define KEYWRAP_ADDR_CONFIG (0x0a)
+#define KEYWRAP_CONFIG_ENCDEC (1)
+#define KEYWRAP_CONFIG_KEYLEN (2)
+
+#define KEYWRAP_ADDR_RLEN (0x0c)
+#define KEYWRAP_ADDR_R_BANK (0x0d)
+#define KEYWRAP_ADDR_A0 (0x0e)
+#define KEYWRAP_ADDR_A1 (0x0f)
+
+#define KEYWRAP_ADDR_KEY0 (0x10)
+#define KEYWRAP_ADDR_KEY1 (0x11)
+#define KEYWRAP_ADDR_KEY2 (0x12)
+#define KEYWRAP_ADDR_KEY3 (0x13)
+#define KEYWRAP_ADDR_KEY4 (0x14)
+#define KEYWRAP_ADDR_KEY5 (0x15)
+#define KEYWRAP_ADDR_KEY6 (0x16)
+#define KEYWRAP_ADDR_KEY7 (0x17)
+
+#define KEYWRAP_ADDR_R_DATA0 (0x80)
+#define KEYWRAP_ADDR_R_DATA127 (0xff)
+
#endif /* _VERILOG_CONSTANTS_H_ */
/*