Skip to content

Commit

Permalink
Trying to fix the reset issues
Browse files Browse the repository at this point in the history
  • Loading branch information
SagarDevAchar authored Aug 31, 2024
1 parent e3dd2d8 commit f7ac146
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/audio_engine.v
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ module audio_engine(
assign synth_clk = counter[10];
assign seq_clk = counter[17];

always @(posedge seq_clk) begin
always @(posedge seq_clk, negedge rst_n) begin
if (~rst_n) begin
seq_ctr <= 5'd0;
seq_time <= 7'd0;
Expand Down
2 changes: 1 addition & 1 deletion src/graphics_engine.v
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module graphics_engine(

always @ (posedge v_sync) begin
if (~rst_n)
ctr <= 0;
ctr <= 10'd0;
else
ctr <= ctr + 1'd1;
end
Expand Down

0 comments on commit f7ac146

Please sign in to comment.