Skip to content

Commit efbc66d

Browse files
committed
Update SA1.vhd
1 parent 99bb55a commit efbc66d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fpga/core/rtl/chip/SA1/SA1.vhd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,8 +575,8 @@ begin
575575
end case;
576576
end process;
577577

578-
SA1_BWRAM_WE <= '1';--CBWE(7) when (P65_A(17 downto 8) and not BWRAM_WP_MASK) = "0000000000" and P65_A(23 downto 20) = x"4" else '1';--?? Kirby's Dream Land 3 enables write protection for SA-1, but does write to protected area
579-
SNES_BWRAM_WE <= SBWE(7) when (SNES_A(17 downto 8) and not BWRAM_WP_MASK) = "0000000000" and SNES_A(23 downto 20) = x"4" else '1';
578+
SA1_BWRAM_WE <= SBWE(7) or CBWE(7) when (P65_A(17 downto 8) and not BWRAM_WP_MASK) = "0000000000" and P65_A(23 downto 20) = x"4" else '1';
579+
SNES_BWRAM_WE <= SBWE(7) or CBWE(7) when (SNES_A(17 downto 8) and not BWRAM_WP_MASK) = "0000000000" and SNES_A(23 downto 20) = x"4" else '1';
580580
BWRAM_A <= CC1_BWRAM_RD_ADDR when CCDMA_SRC_BWRAM_SEL = '1' else
581581
SNES_BWRAM_MAP_A when SNES_BWRAM_SEL = '1' else
582582
SDA(17 downto 0) when DMA_SRC_BWRAM_SEL = '1' and DMA_BWRAM_WAIT = '0' else

0 commit comments

Comments
 (0)