Skip to content

Commit

Permalink
Add parameters to enable Zicfiss and Zicfilp
Browse files Browse the repository at this point in the history
  • Loading branch information
emanueleparisi committed Apr 15, 2024
1 parent dbaecc5 commit ed868dc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions core/cva6.sv
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ module cva6
CVA6Cfg.XFVec,
CVA6Cfg.CvxifEn,
CVA6Cfg.ZiCondExtEn,
CVA6Cfg.ZiCfiSSEn,
CVA6Cfg.ZiCfiLPEn,
CVA6Cfg.RVSCLIC,
// Extended
bit'(RVF),
Expand Down
6 changes: 5 additions & 1 deletion core/include/config_pkg.sv
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ package config_pkg;
bit CvxifEn;
// Zicond RISC-V extension
bit ZiCondExtEn;
// Control-Flow Integrity - Zicfiss extension
bit ZiCfiSSEn;
// Control-Flow Integrity - Zicfilp extension
bit ZiCfiLPEn;
// CLIC extension
bit RVSCLIC;
// Single precision FP RISC-V extension
Expand Down Expand Up @@ -108,7 +112,7 @@ package config_pkg;
bit RVU;
// Address to jump when halt request
logic [63:0] HaltAddress;
// Address to jump when exception
// Address to jump when exception
logic [63:0] ExceptionAddress;
// Return address stack depth
int unsigned RASDepth;
Expand Down
4 changes: 4 additions & 0 deletions core/include/cv64a6_imafdcsclic_sv39_config_pkg.sv
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ package cva6_config_pkg;
localparam CVA6ConfigVExtEn = 0;
localparam CVA6ConfigHExtEn = 1;
localparam CVA6ConfigZiCondExtEn = 1;
localparam CVA6ConfigZiCfiSSEn = 1;
localparam CVA6ConfigZiCfiLPEn = 1;
localparam CVA6ConfigSclicExtEn = 1;

localparam CVA6ConfigAxiIdWidth = 4;
Expand Down Expand Up @@ -98,6 +100,8 @@ package cva6_config_pkg;
XFVec: bit'(CVA6ConfigFVecEn),
CvxifEn: bit'(CVA6ConfigCvxifEn),
ZiCondExtEn: bit'(CVA6ConfigZiCondExtEn),
ZiCfiSSEn: bit'(CVA6ConfigZiCfiSSEn),
ZiCfiLPEn: bit'(CVA6ConfigZiCfiLPEn),
RVSCLIC: bit'(CVA6ConfigSclicExtEn),
// Extended
RVF:
Expand Down

0 comments on commit ed868dc

Please sign in to comment.