Skip to content

Commit

Permalink
Zvkned: add infrastructure for Zvkned
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Charalampos Mitrodimas and KotorinMinami committed Feb 24, 2025
1 parent 80c4928 commit 9826514
Show file tree
Hide file tree
Showing 5 changed files with 436 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile.old
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ SAIL_DEFAULT_INST += riscv_insts_vext_fp_red.sail
SAIL_DEFAULT_INST += riscv_insts_zicbom.sail
SAIL_DEFAULT_INST += riscv_insts_zicboz.sail

SAIL_DEFAULT_INST += riscv_insts_zvkned.sail

SAIL_SEQ_INST = $(SAIL_DEFAULT_INST) riscv_jalr_seq.sail
SAIL_RMEM_INST = $(SAIL_DEFAULT_INST) riscv_jalr_rmem.sail riscv_insts_rmem.sail

Expand Down
2 changes: 2 additions & 0 deletions model/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ foreach (xlen IN ITEMS 32 64)
"riscv_insts_zbkx.sail"
"riscv_insts_zicond.sail"
${vext_srcs}
"riscv_insts_zvkned.sail"
"riscv_insts_zicbom.sail"
"riscv_insts_zicboz.sail"
)
Expand Down Expand Up @@ -166,6 +167,7 @@ foreach (xlen IN ITEMS 32 64)
${sail_vm_srcs}
# Shared/common code for the cryptography extension.
"riscv_types_kext.sail"
"riscv_types_zvk.sail"
)

if (variant STREQUAL "rvfi")
Expand Down
3 changes: 3 additions & 0 deletions model/riscv_extensions.sail
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ enum clause extension = Ext_Zksed
// Scalar & Entropy Source Instructions: ShangMi Suite: SM3 Hash Cipher Instructions
enum clause extension = Ext_Zksh

// Vector Instructions: NIST Suite: Vector AES Block Cipher
enum clause extension = Ext_Zvkned

// Floating-Point in Integer Registers (half precision)
enum clause extension = Ext_Zhinx

Expand Down
Loading

0 comments on commit 9826514

Please sign in to comment.