mirror of
https://github.com/olofk/serv.git
synced 2026-02-25 07:49:57 +00:00
privilege tests fixed for rv32i
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
module serv_state
|
||||
#(parameter RESET_STRATEGY = "MINI",
|
||||
parameter [0:0] WITH_CSR = 1,
|
||||
parameter [0:0] COMPRESSED =0,
|
||||
parameter [0:0] ALIGN =0,
|
||||
parameter [0:0] MDU = 0)
|
||||
(
|
||||
input wire i_clk,
|
||||
@@ -187,7 +187,7 @@ module serv_state
|
||||
|
||||
//trap_pending is only guaranteed to have correct value during the
|
||||
// last cycle of the init stage
|
||||
wire trap_pending = WITH_CSR & ((take_branch & i_ctrl_misalign & !COMPRESSED) |
|
||||
wire trap_pending = WITH_CSR & ((take_branch & i_ctrl_misalign & !ALIGN) |
|
||||
(i_dbus_en & i_mem_misalign));
|
||||
|
||||
always @(posedge i_clk) begin
|
||||
|
||||
@@ -224,7 +224,7 @@ module serv_top
|
||||
#(.RESET_STRATEGY (RESET_STRATEGY),
|
||||
.WITH_CSR (WITH_CSR),
|
||||
.MDU(MDU),
|
||||
.COMPRESSED(COMPRESSED))
|
||||
.ALIGN(ALIGN))
|
||||
state
|
||||
(
|
||||
.i_clk (clk),
|
||||
|
||||
Reference in New Issue
Block a user