From 0a770302362dc726e170ba3245d086d506230b05 Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Thu, 15 May 2008 22:35:09 +0200 Subject: [PATCH 1/1] clocks... --- galaxian/src/mc_clock.v | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 2.39.5