1
0
mirror of https://github.com/olofk/serv.git synced 2026-01-16 16:17:43 +00:00

Reverse polarity of bufreg_hold signal

This commit is contained in:
Olof Kindgren 2020-12-02 23:07:27 +01:00
parent 75ee4954d0
commit 116e370589
2 changed files with 5 additions and 5 deletions

View File

@ -42,7 +42,7 @@ module serv_state
output wire [1:0] o_mem_bytecnt,
input wire i_mem_misalign,
output reg o_cnt_done,
output wire o_bufreg_hold);
output wire o_bufreg_en);
wire cnt4;
@ -96,7 +96,7 @@ module serv_state
assign o_rf_rd_en = i_rd_op & o_cnt_en & !o_init;
//Shift operations require bufreg to hold for one cycle between INIT and RUN before shifting
assign o_bufreg_hold = !o_cnt_en & (stage_two_req | ~i_shift_op);
assign o_bufreg_en = o_cnt_en | (!stage_two_req & i_shift_op);
initial if (RESET_STRATEGY == "NONE") o_cnt_r = 4'b0001;

View File

@ -102,7 +102,7 @@ module serv_top
wire cnt_done;
wire bufreg_hold;
wire bufreg_en;
wire bufreg_rs1_en;
wire bufreg_imm_en;
wire bufreg_loop;
@ -176,7 +176,7 @@ module serv_top
.o_cnt3 (cnt3),
.o_cnt7 (cnt7),
.o_cnt_done (cnt_done),
.o_bufreg_hold (bufreg_hold),
.o_bufreg_en (bufreg_en),
.o_ctrl_pc_en (ctrl_pc_en),
.o_ctrl_jump (jump),
.o_ctrl_trap (trap),
@ -281,7 +281,7 @@ module serv_top
//State
.i_cnt0 (cnt0),
.i_cnt1 (cnt1),
.i_en (!bufreg_hold),
.i_en (bufreg_en),
.i_init (init),
.o_lsb (lsb),
//Control