Skip to content

Commit

Permalink
cva6: swap parameters to original order
Browse files Browse the repository at this point in the history
  • Loading branch information
mp-17 committed Dec 20, 2024
1 parent 70b0f90 commit 40ba10c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions core/cva6.sv
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ module cva6
rvfi_probes_instr_t instr;
},

// branchpredict scoreboard entry
// this is the struct which we will inject into the pipeline to guide the various
// units towards the correct branch decision and resolve
localparam type branchpredict_sbe_t = struct packed {
cf_t cf; // type of control flow prediction
logic [CVA6Cfg.VLEN-1:0] predict_address; // target address at which to jump, or not
},

parameter type exception_t = struct packed {
logic [CVA6Cfg.XLEN-1:0] cause; // cause of exception
logic [CVA6Cfg.XLEN-1:0] tval; // additional information of causing exception (e.g.: instruction causing it),
Expand All @@ -41,14 +49,6 @@ module cva6
logic valid;
},

// branchpredict scoreboard entry
// this is the struct which we will inject into the pipeline to guide the various
// units towards the correct branch decision and resolve
localparam type branchpredict_sbe_t = struct packed {
cf_t cf; // type of control flow prediction
logic [CVA6Cfg.VLEN-1:0] predict_address; // target address at which to jump, or not
},

// cache request ports
// I$ address translation requests
localparam type icache_areq_t = struct packed {
Expand Down

0 comments on commit 40ba10c

Please sign in to comment.