Skip to content

Commit f36fada

Browse files
Charalampos MitrodimasKotorinMinami
Charalampos Mitrodimas
andcommitted
Zvkned: add infrastructure for Zvkned
To support the implementation of Zvkned extension in SAIL, this creates the necessary infrastructure(i.e., a file to hold it, and the extension macro), preparing the tree for the Zvkned implementation. Signed-off-by: Charalampos Mitrodimas <[email protected]> Co-authored-by: KotorinMinami <[email protected]>
1 parent ea495a5 commit f36fada

File tree

5 files changed

+403
-0
lines changed

5 files changed

+403
-0
lines changed

Makefile.old

+2
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ SAIL_DEFAULT_INST += riscv_insts_vext_fp_red.sail
6868
SAIL_DEFAULT_INST += riscv_insts_zicbom.sail
6969
SAIL_DEFAULT_INST += riscv_insts_zicboz.sail
7070

71+
SAIL_DEFAULT_INST += riscv_insts_zvkned.sail
72+
7173
SAIL_SEQ_INST = $(SAIL_DEFAULT_INST) riscv_jalr_seq.sail
7274
SAIL_RMEM_INST = $(SAIL_DEFAULT_INST) riscv_jalr_rmem.sail riscv_insts_rmem.sail
7375

model/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ foreach (xlen IN ITEMS 32 64)
7676
"riscv_insts_zbkx.sail"
7777
"riscv_insts_zicond.sail"
7878
${vext_srcs}
79+
"riscv_insts_zvkned.sail"
7980
"riscv_insts_zicbom.sail"
8081
"riscv_insts_zicboz.sail"
8182
"riscv_insts_zvbb.sail"
@@ -171,6 +172,7 @@ foreach (xlen IN ITEMS 32 64)
171172
${sail_vm_srcs}
172173
# Shared/common code for the cryptography extension.
173174
"riscv_types_kext.sail"
175+
"riscv_types_zvk.sail"
174176
)
175177

176178
if (variant STREQUAL "rvfi")

model/riscv_extensions.sail

+2
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ enum clause extension = Ext_Zvbb
113113
enum clause extension = Ext_Zvkb
114114
// Vector Carryless Multiplication
115115
enum clause extension = Ext_Zvbc
116+
// Vector Instructions: NIST Suite: Vector AES Block Cipher
117+
enum clause extension = Ext_Zvkned
116118

117119
// Count Overflow and Mode-Based Filtering
118120
enum clause extension = Ext_Sscofpmf

0 commit comments

Comments
 (0)