mirror of
https://github.com/olofk/serv.git
synced 2026-03-02 17:44:43 +00:00
Avoid resetting bufreg
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
module serv_bufreg
|
||||
(
|
||||
input wire i_clk,
|
||||
input wire i_rst,
|
||||
input wire [4:2] i_cnt,
|
||||
input wire [1:0] i_cnt_r,
|
||||
input wire i_en,
|
||||
@@ -28,9 +27,7 @@ module serv_bufreg
|
||||
//Clear carry when not in INIT state
|
||||
c_r <= c & i_init;
|
||||
|
||||
if (i_rst)
|
||||
data <= 32'd0;
|
||||
else if (i_en)
|
||||
if (i_en)
|
||||
data <= {(i_loop & !i_init) ? o_q : q, data[31:1]};
|
||||
|
||||
if ((i_cnt[4:2] == 3'd0) & i_cnt_r[0] & i_init)
|
||||
|
||||
@@ -250,7 +250,6 @@ module serv_top
|
||||
serv_bufreg bufreg
|
||||
(
|
||||
.i_clk (clk),
|
||||
.i_rst (i_rst),
|
||||
.i_cnt (cnt[4:2]),
|
||||
.i_cnt_r (cnt_r[1:0]),
|
||||
.i_en (!bufreg_hold),
|
||||
|
||||
Reference in New Issue
Block a user