Fix exc controller ack not being sent

This commit is contained in:
Sven Stucki 2015-10-23 16:49:16 +02:00
parent 3f6ba69413
commit 9ee009a219

View file

@ -136,8 +136,14 @@ module riscv_exc_controller
begin
req_o = req_int;
if (req_int)
if (req_int) begin
exc_ctrl_ns = WAIT_CONTROLLER;
if (ack_i) begin
save_cause_o = 1'b1;
exc_ctrl_ns = IN_ISR;
end
end
end
WAIT_CONTROLLER: