]> git.zerfleddert.de Git - fpga-games/commitdiff
clocks...
authorMichael Gernoth <michael@gernoth.net>
Thu, 15 May 2008 20:35:09 +0000 (22:35 +0200)
committerMichael Gernoth <michael@gernoth.net>
Thu, 15 May 2008 20:35:09 +0000 (22:35 +0200)
galaxian/src/mc_clock.v

index a88d95c0ebe39e892df205613d666f958cd4c835..5ccfbd606fe31e7d7637cb7141e420caf9bc3b7e 100644 (file)
@@ -42,7 +42,7 @@ initial state = 0;
 initial clk_12m = 0;\r
 \r
 // 2/3 clock         (duty 66%)\r
 initial clk_12m = 0;\r
 \r
 // 2/3 clock         (duty 66%)\r
-always @(negedge I_CLK_36M)\r
+always @(posedge I_CLK_36M)\r
 begin\r
    case (state)\r
       2'd0: state <= 2'd1;\r
 begin\r
    case (state)\r
       2'd0: state <= 2'd1;\r
@@ -52,9 +52,9 @@ begin
    endcase\r
 \r
    if (state == 2'd2)\r
    endcase\r
 \r
    if (state == 2'd2)\r
-      clk_12m = 1;\r
-   else\r
       clk_12m = 0;\r
       clk_12m = 0;\r
+   else\r
+      clk_12m = 1;\r
 end\r
 \r
 assign O_CLK_12M = clk_12m;\r
 end\r
 \r
 assign O_CLK_12M = clk_12m;\r
Impressum, Datenschutz