new wfi behaviour

This commit is contained in:
Pasquale Davide Schiavone 2017-06-29 09:59:15 +02:00
parent c458439ed7
commit 0d782ba417
2 changed files with 2 additions and 5 deletions

View file

@ -254,10 +254,7 @@ module zeroriscy_controller
end else begin
// no debug request incoming, normal execution flow
if (irq_req_ctrl_i)
begin
ctrl_fsm_ns = FIRST_FETCH;
end
ctrl_fsm_ns = FIRST_FETCH;
end
end

View file

@ -260,7 +260,7 @@ module zeroriscy_core
assign dbg_busy = dbg_req | dbg_csr_req | dbg_jump_req | dbg_reg_wreq | debug_req_i;
assign clock_en = core_busy | dbg_busy | (irq_i & m_irq_enable);
assign clock_en = core_busy | dbg_busy | irq_i;
assign sleeping = (~core_busy);