From: Michael Gernoth Date: Thu, 15 May 2008 20:35:09 +0000 (+0200) Subject: clocks... X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/fpga-games/commitdiff_plain/0a770302362dc726e170ba3245d086d506230b05?ds=sidebyside;hp=c3bcc38aaf21ce2036ea66b9e5f764e6d3e7ac7f clocks... --- diff --git a/galaxian/src/mc_clock.v b/galaxian/src/mc_clock.v index a88d95c..5ccfbd6 100644 --- a/galaxian/src/mc_clock.v +++ b/galaxian/src/mc_clock.v @@ -42,7 +42,7 @@ initial state = 0; initial clk_12m = 0; // 2/3 clock (duty 66%) -always @(negedge I_CLK_36M) +always @(posedge I_CLK_36M) begin case (state) 2'd0: state <= 2'd1; @@ -52,9 +52,9 @@ begin endcase if (state == 2'd2) - clk_12m = 1; - else clk_12m = 0; + else + clk_12m = 1; end assign O_CLK_12M = clk_12m;