From 67b3c305c334bf4837dbb8f9fba6f9fbb7683ce1 Mon Sep 17 00:00:00 2001 From: Luca Date: Sun, 29 Dec 2024 02:00:37 +0100 Subject: [PATCH] fix(dvi): simulation --- dvi.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dvi.v b/dvi.v index 808865b..f4b31c6 100644 --- a/dvi.v +++ b/dvi.v @@ -119,8 +119,8 @@ module dvi #( end always @(negedge bus_clk) begin - if (output_state == OUTPUT_IDLE) ck <= 0; - else ck <= ~ck; + if (output_state == OUTPUT_IDLE || ck == 1) ck <= 0; + else ck <= 1; if (y == 11'b0) begin bus_addr <= BASE_ADDR;