1
0
mirror of https://github.com/olofk/serv.git synced 2026-05-03 14:58:38 +00:00

Optimize dbus_cyc

This commit is contained in:
Olof Kindgren
2019-09-13 22:18:58 +02:00
parent 8cd9742b53
commit e20e0eef8f
3 changed files with 5 additions and 11 deletions

View File

@@ -40,6 +40,7 @@ module serv_decode
output wire o_alu_sh_right,
input wire i_alu_sh_done,
output reg [1:0] o_alu_rd_sel,
output wire o_dbus_cyc,
output wire o_mem_en,
output wire o_mem_cmd,
output wire o_mem_init,
@@ -298,6 +299,8 @@ module serv_decode
assign o_rf_rs_en = two_stage_op ? (state == INIT) : o_ctrl_pc_en;
assign o_dbus_cyc = (state == IDLE) & stage_one_done & mem_op & !i_mem_misalign;
always @(posedge clk) begin
if (state == INIT)
o_ctrl_jump <= take_branch;