Skip to content

Commit

Permalink
Merge pull request #32 from nblei/master
Browse files Browse the repository at this point in the history
Removed unneeded conditional
  • Loading branch information
darsnack authored Mar 19, 2024
2 parents 68f6437 + d0f4a18 commit 7b06d4b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions verilog-stdlib/stochastic/stoch_add.sv
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ always @(posedge CLK) begin
else counter <= next_counter;
end

always @(c, y) begin
if (~|c & y) next_counter <= {COUNTER_SIZE{1'b0}};
else next_counter <= c - y;
end
assign next_counter = c - y;

endmodule

0 comments on commit 7b06d4b

Please sign in to comment.