From: Michael Gernoth Date: Thu, 1 May 2008 00:04:31 +0000 (+0200) Subject: picture getting better again X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/fpga-games/commitdiff_plain/37f1bdd7020c4818e43d611a83c11e554e954943?hp=b884ab49c82cc350e3d74264cff4b9da0d664878 picture getting better again --- diff --git a/galaxian/src/mc_top.v b/galaxian/src/mc_top.v index d8508d1..5f123fd 100644 --- a/galaxian/src/mc_top.v +++ b/galaxian/src/mc_top.v @@ -425,6 +425,7 @@ wire [7:0]ROM_D; // = I_ROM_DB; //assign O_ROM_WEn = 1'b1; galaxian_roms ROMS( +.I_CLK_18432M(I_CLK_18432M), .I_CLK_12M(WB_CLK_12M), .I_ADDR(ROM_A), .O_DATA(ROM_D) diff --git a/galaxian/src/roms.v b/galaxian/src/roms.v index 2ca0d07..ee71dc9 100644 --- a/galaxian/src/roms.v +++ b/galaxian/src/roms.v @@ -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