From 286b063f417626d76775e02afda3527d55d8df72 Mon Sep 17 00:00:00 2001 From: Christopher RYU Date: Fri, 10 Mar 2023 06:38:33 +0900 Subject: [PATCH] Sync to tested version. --- gal/ssc_gal_wincupl.pld | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gal/ssc_gal_wincupl.pld b/gal/ssc_gal_wincupl.pld index 17400e5..30e5e7b 100755 --- a/gal/ssc_gal_wincupl.pld +++ b/gal/ssc_gal_wincupl.pld @@ -32,7 +32,7 @@ Pin 18 = eprom_a9; Pin 19 = eprom_a10; Pin 20 = rom_enable; Pin 21 = PHI2; -Pin 22 = d0; + /* Latch (RS flip-flop) definition: Q = (Q & RESET) # !SET; @@ -40,14 +40,17 @@ Pin 22 = d0; PHI2 = !slot_select; /* per schematic */ -cf00_access = io_C800 # !A8 # !A9 # !A10; /* CF00 access, pull low */ +cf00_access = io_C800 # !(A8 & A9 & A10); /* CF00 access, pull low */ /* if either reset or cf00 access is pulled low, then rom_latch = 1 if io_slot_access is 0, then rom_latch = 0 if io_slot_access is 1, then rom_latch = no change */ + +/* Q = ROM_LATCH RESET = io_slot_access SET = (reset & cf00_access) */ rom_latch = (rom_latch & io_slot_access) # !(reset & cf00_access); + rom_c800_enable = rom_latch # io_C800; /* enable if both pulled low */ ls245_enable = ( io_slot_access & rom_c800_enable & slot_select); /* c800 ? */ @@ -55,4 +58,4 @@ rom_enable = (io_slot_access & rom_c800_enable); eprom_a8 = A8 # !A11; eprom_a9 = A9 # !A11; -eprom_a10 = A10 # !A11; \ No newline at end of file +eprom_a10 = A10 # !A11;