]> git.zerfleddert.de Git - fpga-games/commitdiff
picture getting better again
authorMichael Gernoth <michael@gernoth.net>
Thu, 1 May 2008 00:04:31 +0000 (02:04 +0200)
committerMichael Gernoth <michael@gernoth.net>
Thu, 1 May 2008 00:04:31 +0000 (02:04 +0200)
galaxian/src/mc_top.v
galaxian/src/roms.v

index d8508d1a521f01e0587766d80bc209ff7ff91674..5f123fda4d1f0a97d212e1f26ce1e2b74e11f5e5 100644 (file)
@@ -425,6 +425,7 @@ wire   [7:0]ROM_D; // = I_ROM_DB;
 //assign O_ROM_WEn = 1'b1;\r
 \r
 galaxian_roms ROMS(\r
+.I_CLK_18432M(I_CLK_18432M),\r
 .I_CLK_12M(WB_CLK_12M),\r
 .I_ADDR(ROM_A),\r
 .O_DATA(ROM_D)\r
index 2ca0d07c7e0c4c96fd81aa991158a6ad04b9dc6d..ee71dc99ac8267c7d282b92320c84229721b1602 100644 (file)
@@ -1,9 +1,11 @@
 module galaxian_roms(
+I_CLK_18432M,
 I_CLK_12M,
 I_ADDR,
 O_DATA
 );
 
+input I_CLK_18432M;
 input I_CLK_12M;
 input [18:0]I_ADDR;
 output [7:0]O_DATA;
@@ -76,6 +78,7 @@ GALAXIAN_1H H_ROM(
 );
 
 reg [7:0]DATA_OUT;
+reg [7:0]DATA_OUT2;
 
 //    address map
 //--------------------------------------------------
@@ -126,6 +129,11 @@ begin
        end
 end
 
-assign O_DATA = DATA_OUT;
+always@(negedge I_CLK_18432M)
+begin
+       DATA_OUT2 <= DATA_OUT;
+end
+
+assign O_DATA = DATA_OUT2;
 
 endmodule
Impressum, Datenschutz