aboutsummaryrefslogtreecommitdiff
path: root/verilog_constants.h
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2018-08-15 17:30:14 -0400
committerPaul Selkirk <paul@psgd.org>2018-08-15 17:30:14 -0400
commit255ebc59bf1000af6715217679bc82d5bc4d536b (patch)
treedc2250e980c5aea753b781fc3b7641f898e000ad /verilog_constants.h
parenta0940d97b4aa3d45c77fbec95092829ca90b1eaf (diff)
Add support for Joachim's keywrap core.
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_ */
/*