From: Michael Gernoth Date: Thu, 1 May 2008 12:48:09 +0000 (+0200) Subject: change timing for rom access X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/fpga-games/commitdiff_plain/3f141b4135f7b5710b988f5fc204b24301240d2b?ds=inline;hp=e780c43942c20a824da2b01bc87e3585425c3fcd change timing for rom access --- diff --git a/galaxian/src/mc_top.v b/galaxian/src/mc_top.v index 360a2f4..08d25de 100644 --- a/galaxian/src/mc_top.v +++ b/galaxian/src/mc_top.v @@ -443,38 +443,34 @@ begin seq <= (~clk_d[1] & clk_d[0]) ? 0 : seq+1; case(seq) 0:begin - //sound ROM_A <= W_WAV_A0; W_CPU_ROM_DO <= ROM_D; end 2:begin - //sound ROM_A <= W_WAV_A1; W_WAV_D0 <= ROM_D; end 4:begin - //sound ROM_A <= {3'h0,W_A[15:0]}; W_WAV_D1 <= ROM_D; end 6:begin - //sound ROM_A <= W_WAV_A2; W_CPU_ROM_DO <= ROM_D; end - 8:W_WAV_D2 <= ROM_D; //sound + 8:W_WAV_D2 <= ROM_D; 10:ROM_A <= {3'h0,W_A[15:0]}; 12:W_CPU_ROM_DO <= ROM_D; - 16:ROM_A <= {3'h0,W_A[15:0]}; - 18:begin + 14:ROM_A <= {3'h0,W_A[15:0]}; + 16:begin ROM_A <= {3'h0,4'h4,1'b0,W_OBJ_ROM_A}; W_CPU_ROM_DO <= ROM_D; end - 20:begin + 18:begin ROM_A <= {3'h0,4'h5,1'b0,W_OBJ_ROM_A}; W_OBJ_ROM_A_D <= ROM_D; end - 22:begin + 20:begin ROM_A <= {3'h0,W_A[15:0]}; W_OBJ_ROM_B_D <= ROM_D; end diff --git a/galaxian/src/roms.v b/galaxian/src/roms.v index 4fcf362..8498a35 100644 --- a/galaxian/src/roms.v +++ b/galaxian/src/roms.v @@ -76,7 +76,6 @@ GALAXIAN_1H H_ROM( ); reg [7:0]DATA_OUT; -reg [7:0]DATA_OUT2; // address map //--------------------------------------------------