Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/coolgirl-multicart/coolgirl-famicom-multicart.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'CoolGirl_rev3.x/CoolGirl.v')
-rw-r--r--CoolGirl_rev3.x/CoolGirl.v5
1 files changed, 3 insertions, 2 deletions
diff --git a/CoolGirl_rev3.x/CoolGirl.v b/CoolGirl_rev3.x/CoolGirl.v
index a9bf58e..fa675a6 100644
--- a/CoolGirl_rev3.x/CoolGirl.v
+++ b/CoolGirl_rev3.x/CoolGirl.v
@@ -41,11 +41,12 @@ module CoolGirl # (
wire new_dendy_init_finished = new_dendy_init == 0;
reg new_dendy = 0;
assign cpu_shifers_oe = 1'b0;
- assign ppu_addr_out[18] = 1'b1; // reserved
assign cpu_addr_out[26:13] = {prg_base[26:14] | (prg_addr_mapped[20:14] & ~prg_mask[20:14]), prg_addr_mapped[13]};
assign sram_addr_out[14:13] = sram_page[1:0];
- assign ppu_addr_out[17:10] = ext_ntram_access ? {6'b111111, ppu_addr_in[11:10]} : {ppu_addr_mapped[17:13] & ~chr_mask[17:13], ppu_addr_mapped[12:10]};
+ assign ppu_addr_out[18:10] = ext_ntram_access
+ ? {7'b1111111, ppu_addr_in[11:10]}
+ : {{~chr_addr_mapped[18], chr_addr_mapped[17:13]} & ~chr_mask[18:13], chr_addr_mapped[12:10]};
assign cpu_data_in = cpu_data_out_enabled ? cpu_data_out : 8'bZZZZZZZZ;
wire flash_ce_w = ~(~romsel | (m2 & map_rom_on_6000 & cpu_addr_in[14] & cpu_addr_in[13]));