From f7ac146b446b8a2b74a9df350e5400a6ca422d40 Mon Sep 17 00:00:00 2001 From: Seemebadnekai <51400137+SagarDevAchar@users.noreply.github.com> Date: Sat, 31 Aug 2024 13:16:39 +0530 Subject: [PATCH] Trying to fix the reset issues --- src/audio_engine.v | 2 +- src/graphics_engine.v | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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