mirror of
https://github.com/lowRISC/ibex.git
synced 2025-04-22 04:47:25 -04:00
Reduce width of mcause
CSR
This commit is contained in:
parent
b22a6a10de
commit
8ed9ff5bde
1 changed files with 2 additions and 2 deletions
|
@ -154,7 +154,7 @@ module ibex_cs_registers #(
|
|||
// CSRs
|
||||
Status_t mstatus_q, mstatus_n;
|
||||
logic [31:0] mepc_q, mepc_n;
|
||||
logic [31:0] mcause_q, mcause_n;
|
||||
logic [5:0] mcause_q, mcause_n;
|
||||
logic [31:0] mtval_q, mtval_n;
|
||||
Dcsr_t dcsr_q, dcsr_n;
|
||||
logic [31:0] depc_q, depc_n;
|
||||
|
@ -421,7 +421,7 @@ module ibex_cs_registers #(
|
|||
mstatus_n.mie = 1'b0;
|
||||
mstatus_n.mpp = PRIV_LVL_M;
|
||||
mepc_n = exception_pc;
|
||||
mcause_n = csr_cause_i;
|
||||
mcause_n = {csr_cause_i};
|
||||
mtval_n = csr_mtval_i;
|
||||
end
|
||||
end //csr_save_cause_i
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue