Skip to content

Commit

Permalink
revert changes to the timer reset_value setter
Browse files Browse the repository at this point in the history
  • Loading branch information
M0stafaRady committed Aug 27, 2023
1 parent a00c709 commit 5e426be
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions verilog/rtl/counter_timer_high.v
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,10 @@ always @(posedge clkin or negedge resetn) begin
if (resetn == 1'b0) begin
value_reset <= 32'd0;
end else begin
if (reg_dat_we[3]) value_reset[31:24] <= reg_val_di[31:24];
if (reg_dat_we[2]) value_reset[23:16] <= reg_val_di[23:16];
if (reg_dat_we[1]) value_reset[15:8] <= reg_val_di[15:8];
if (reg_dat_we[0]) value_reset[7:0] <= reg_val_di[7:0];
if (reg_val_we[3]) value_reset[31:24] <= reg_val_di[31:24];
if (reg_val_we[2]) value_reset[23:16] <= reg_val_di[23:16];
if (reg_val_we[1]) value_reset[15:8] <= reg_val_di[15:8];
if (reg_val_we[0]) value_reset[7:0] <= reg_val_di[7:0];
end
end

Expand Down
8 changes: 4 additions & 4 deletions verilog/rtl/counter_timer_low.v
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ always @(posedge clkin or negedge resetn) begin
if (resetn == 1'b0) begin
value_reset <= 32'd0;
end else begin
if (reg_dat_we[3]) value_reset[31:24] <= reg_val_di[31:24];
if (reg_dat_we[2]) value_reset[23:16] <= reg_val_di[23:16];
if (reg_dat_we[1]) value_reset[15:8] <= reg_val_di[15:8];
if (reg_dat_we[0]) value_reset[7:0] <= reg_val_di[7:0];
if (reg_val_we[3]) value_reset[31:24] <= reg_val_di[31:24];
if (reg_val_we[2]) value_reset[23:16] <= reg_val_di[23:16];
if (reg_val_we[1]) value_reset[15:8] <= reg_val_di[15:8];
if (reg_val_we[0]) value_reset[7:0] <= reg_val_di[7:0];
end
end

Expand Down

0 comments on commit 5e426be

Please sign in to comment.