Commit e2e710ed authored by Guillem's avatar Guillem
Browse files

fix reset, fix overflow intr generated when weight >=

parent 86443a68
......@@ -430,7 +430,7 @@ end
)
inst_MCCU(
.clk_i (clk_i),
.rstn_i (rstn_i || MCCU_softrst),
.rstn_i (rstn_i && !MCCU_softrst),//active low
.enable_i (MCCU_enable_int),// Software map
.events_i (MCCU_events_int),
.quota_i (regs_i[BASE_MCCU_LIMITS:END_MCCU_LIMITS]),//One register per core
......@@ -479,7 +479,7 @@ end
.CORE_EVENTS (RDC_N_EVENTS)
) inst_RDC(
.clk_i (clk_i),
.rstn_i (rstn_i || RDC_softrst ),
.rstn_i (rstn_i && !RDC_softrst ), //active low
.enable_i (RDC_enable_int),// Software map
.events_i (MCCU_events_int),
.events_weights_i (MCCU_events_weights_int),
......
......@@ -89,15 +89,16 @@
endgenerate
/*----------
Generate interruptions if the pulse width of a signal exceeds the
Interruption is only generated if the MCCU is enabled
Generate interruptions if the pulse width of a signal is equal or exceeds
the event wheight.
Interruption is only generated if the RDC is enabled
----------*/
wire [CORE_EVENTS-1:0] interruption_vector_int [0:N_CORES-1];
generate
for(x=0;x<N_CORES;x++) begin
for(y=0;y<CORE_EVENTS;y++) begin
assign interruption_vector_int[x][y] =
(max_value[(x*CORE_EVENTS)+y]>events_weights_i[x][y])?
(max_value[(x*CORE_EVENTS)+y]>=events_weights_i[x][y])?
1'b1 : 1'b0;
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment