diff --git a/src/audio_engine.v b/src/audio_engine.v index 2595d4c..71323b7 100644 --- a/src/audio_engine.v +++ b/src/audio_engine.v @@ -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; diff --git a/src/graphics_engine.v b/src/graphics_engine.v index 81d08a6..5219490 100644 --- a/src/graphics_engine.v +++ b/src/graphics_engine.v @@ -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