From 37f1bdd7020c4818e43d611a83c11e554e954943 Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Thu, 1 May 2008 02:04:31 +0200 Subject: [PATCH] picture getting better again --- galaxian/src/mc_top.v | 1 + galaxian/src/roms.v | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) 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 -- 2.39.5