Skip to content

Commit

Permalink
Update pwm_generator.v
Browse files Browse the repository at this point in the history
  • Loading branch information
MateaSamuel authored Sep 2, 2024
1 parent 8154a6b commit 532a4b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pwm_generator.v
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module pwm_generator(
end

wire [12:0] t_on = (period_reg * duty_reg) / 100;
reg [11:0] counter;
reg [12:0] counter;

always@ (posedge clk or negedge rst_n) begin
if((rst_n == 1'b0) || (counter == period_reg-1)) begin
Expand Down

0 comments on commit 532a4b9

Please sign in to comment.