1
0
mirror of https://github.com/olofk/serv.git synced 2026-05-04 23:35:17 +00:00

Separate rf_ready and dbus_ack

This commit is contained in:
Olof Kindgren
2019-09-16 19:15:20 +02:00
parent 27621a285e
commit 3d6eb3feca
2 changed files with 4 additions and 2 deletions

View File

@@ -3,6 +3,7 @@ module serv_state
input wire i_clk, input wire i_clk,
input wire i_rst, input wire i_rst,
input wire i_new_irq, input wire i_new_irq,
input wire i_dbus_ack,
input wire i_rf_ready, input wire i_rf_ready,
input wire i_take_branch, input wire i_take_branch,
input wire i_branch_op, input wire i_branch_op,
@@ -102,7 +103,7 @@ module serv_state
case (state) case (state)
IDLE : begin IDLE : begin
if (i_rf_ready) begin if (i_rf_ready | i_dbus_ack) begin
state <= RUN; state <= RUN;
if (two_stage_op & !stage_two_pending) if (two_stage_op & !stage_two_pending)
state <= INIT; state <= INIT;

View File

@@ -140,7 +140,8 @@ module serv_top
.i_clk (clk), .i_clk (clk),
.i_rst (i_rst), .i_rst (i_rst),
.i_new_irq (new_irq), .i_new_irq (new_irq),
.i_rf_ready (rf_ready | i_dbus_ack), .i_dbus_ack (i_dbus_ack),
.i_rf_ready (rf_ready),
.i_take_branch (take_branch), .i_take_branch (take_branch),
.i_branch_op (branch_op), .i_branch_op (branch_op),
.i_mem_op (mem_op), .i_mem_op (mem_op),