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:
authorCluster <clusterrr@clusterrr.com>2020-07-28 16:04:23 +0300
committerCluster <clusterrr@clusterrr.com>2020-07-28 16:04:23 +0300
commit049c5915d12f6faa832ccbbdcb1446a7f31fbd6f (patch)
treea4ce61564828ea38173fdcf93fa85f001bdf2df3
parent1f228694df992bcd0c19ac0929ac941bf60cd9da (diff)
Hotfix for hotfix
-rw-r--r--CoolGirl.v6
1 files changed, 4 insertions, 2 deletions
diff --git a/CoolGirl.v b/CoolGirl.v
index cd30aac..01384d5 100644
--- a/CoolGirl.v
+++ b/CoolGirl.v
@@ -67,6 +67,7 @@ module CoolGirl # (
reg [1:0] new_dendy_init_a13h = 2'b11;
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] = {cpu_base[26:14] | (cpu_addr_mapped[20:14] & ~prg_mask[20:14]), cpu_addr_mapped[13]};
@@ -77,14 +78,15 @@ module CoolGirl # (
wire flash_ce_w = ~(~romsel | (m2 & map_rom_on_6000 & cpu_addr_in[14] & cpu_addr_in[13]));
assign flash_ce = flash_ce_w
| cpu_data_out_enabled;
- assign flash_oe = (~cpu_rw_in | flash_ce_w)
+ assign flash_oe = (~cpu_rw_in | flash_ce_w
+ | sram_oe // for version 3.0 only
+ )
& ~cpu_data_out_enabled; // to switch data direction
assign flash_we = cpu_rw_in | flash_ce_w | ~prg_write_enabled;
wire sram_ce_w = ~(cpu_addr_in[14] & cpu_addr_in[13] & m2 & romsel & sram_enabled & ~map_rom_on_6000);
assign sram_ce = sram_ce_w;
assign sram_we = cpu_rw_in | sram_ce_w;
assign sram_oe = ~cpu_rw_in | sram_ce_w | cpu_data_out_enabled;
- assign cpu_shifers_oe = ~sram_ce_w;
assign ppu_rd_out = ppu_rd_in | (ppu_addr_in[13] & ~ext_ntram_access);
assign ppu_wr_out = ppu_wr_in | ((ppu_addr_in[13] | ~chr_write_enabled) & ~ext_ntram_access);
wire ext_ntram_access = USE_FOUR_SCREEN && four_screen && ppu_addr_in[13] && ~ppu_addr_in[12]; // four-screen and $2000-$2FFF accessed