Skip to content

Commit

Permalink
CVXIF : Add mode info in the CVA6 req to the coprocessor (fix issue #880
Browse files Browse the repository at this point in the history
) (#1298)
  • Loading branch information
AyoubJalali authored Jul 20, 2023
1 parent 1ddbab3 commit c467062
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/cvxif_fu.sv
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module cvxif_fu import ariane_pkg::*; #(
input logic clk_i,
input logic rst_ni,
input fu_data_t fu_data_i,
input riscv::priv_lvl_t priv_lvl_i,
//from issue
input logic x_valid_i,
output logic x_ready_o,
Expand All @@ -42,6 +43,7 @@ module cvxif_fu import ariane_pkg::*; #(
if (x_valid_i) begin
cvxif_req_o.x_issue_valid = x_valid_i;
cvxif_req_o.x_issue_req.instr = x_off_instr_i;
cvxif_req_o.x_issue_req.mode = priv_lvl_i;
cvxif_req_o.x_issue_req.id = fu_data_i.trans_id;
cvxif_req_o.x_issue_req.rs[0] = fu_data_i.operand_a;
cvxif_req_o.x_issue_req.rs[1] = fu_data_i.operand_b;
Expand Down
1 change: 1 addition & 0 deletions core/ex_stage.sv
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ module ex_stage import ariane_pkg::*; #(
.clk_i,
.rst_ni,
.fu_data_i,
.priv_lvl_i,
.x_valid_i,
.x_ready_o,
.x_off_instr_i,
Expand Down

0 comments on commit c467062

Please sign in to comment.