SRAM 622256 vs FeRAM FM18W08 do we need OR GATE?
Moderator: Moderators
Forum rules
- For making cartridges of your Super NES games, see Reproduction.
SRAM 622256 vs FeRAM FM18W08 do we need OR GATE?
Hello to everyone.
I would like to remplace my SRAM by FeRAM but I see that some people adding OR GATE / AND GATE, like here:
https://github.com/soniccd123/SNES-FeRAM-Cart
Or here :
Can somebody explain me why we need to use other chips like OR GATE / AND GATE ?
When I see pinouts for both chips it's all the same, so SRAM can be simply remplacer by FeRAM, but some of users using OR GATE 4071 and AND GATE 4081
I would like to remplace my SRAM by FeRAM but I see that some people adding OR GATE / AND GATE, like here:
https://github.com/soniccd123/SNES-FeRAM-Cart
Or here :
Can somebody explain me why we need to use other chips like OR GATE / AND GATE ?
When I see pinouts for both chips it's all the same, so SRAM can be simply remplacer by FeRAM, but some of users using OR GATE 4071 and AND GATE 4081
Last edited by Kayumba on Tue Oct 18, 2022 9:52 am, edited 3 times in total.
Re: SRAM 622256 vs FeRAM FM18W08 way need OR GATE?
FM18W08 is a synchronous part, and only cares about the contents of the address change as the /CE signal falls.
Re: SRAM 622256 vs FeRAM FM18W08 way need OR GATE?
Thanks,
That's mean part like 62256 SRAM is an asynchronous ?
When I search on Google, the difference between is Clock signal.
So without that "Clock signal" SNES can not access to FeRAM, yes?
Synchronous SRAM = Happens at the same time. Requires a clock signal to validate its control signals.
Asynchronous SRAM = Doesn't happen at the same time. Is accessed without a clock.
Re: SRAM 622256 vs FeRAM FM18W08 way need OR GATE?
Correct. Hence having to construct a clock signal out of the /RD and /WR signals.
That said, it's definitely weird to use separate AND and OR chips for this. You can use three NOR gates (3/4 of 74'02) and deMorgan's law instead.
That said, it's definitely weird to use separate AND and OR chips for this. You can use three NOR gates (3/4 of 74'02) and deMorgan's law instead.
Re: SRAM 622256 vs FeRAM FM18W08 way need OR GATE?
Thank you lidnariq.
Can you share schematic for NOR GATE 74'02 to make works FeRAM, please ?
Shame on me, but i'am not so smart to do it alone
And one more thing lidnariq,
I found this shared project of FeRAM adapter with NAND GATE 74HC00D for original cartridge PCB.
Schematic should normally work's with both LoROM and HiROM.
But when I tried to use it with my custom PCB, it's works only for HiROM and not for LoROM games.
Why?
https://oshpark.com/shared_projects/vxdehsxC
Last edited by Kayumba on Tue Oct 11, 2022 1:54 pm, edited 1 time in total.
Re: SRAM 622256 vs FeRAM FM18W08 way need OR GATE?
deMorgan's law says that
NOR(A,B)
is the same as
AND(NOT(A),NOT(B))
you really should be able to figure out what to do with this
That schematic is utterly weird and I have no idea why it would work in one place and not anotherBut when I tried to use it with my custom PCB, it's works only for HiROM and not for LoROM games.
... For that matter, it's also critically flawed, one really really really shouldn't tie the output of the unused NAND gate to anything
Re: SRAM 622256 vs FeRAM FM18W08 way need OR GATE?
You changed the topology - why? The original was
AND(OR(/RD,/CE),OR(/WR,/CE))
what you have here (wouldn't work) could either be thought of as
AND(NOT(/CE),OR(/RD,/WR) (only deMorgan-ing the "1" NOR), or
NOR(/CE,AND(NOT(/RD),NOT(/WR)) (only deMorgan-ing the "2" NOR)
AND(OR(/RD,/CE),OR(/WR,/CE))
what you have here (wouldn't work) could either be thought of as
AND(NOT(/CE),OR(/RD,/WR) (only deMorgan-ing the "1" NOR), or
NOR(/CE,AND(NOT(/RD),NOT(/WR)) (only deMorgan-ing the "2" NOR)
Re: SRAM 622256 vs FeRAM FM18W08 way need OR GATE?
lidnariq wrote: ↑Tue Oct 11, 2022 6:25 pm You changed the topology - why? The original was
AND(OR(/RD,/CE),OR(/WR,/CE))
what you have here (wouldn't work) could either be thought of as
AND(NOT(/CE),OR(/RD,/WR) (only deMorgan-ing the "1" NOR), or
NOR(/CE,AND(NOT(/RD),NOT(/WR)) (only deMorgan-ing the "2" NOR)
Re: SRAM 622256 vs FeRAM FM18W08 way need OR GATE?
One more thing lidnariq.
About Decoder/Demultiplexer 74'139.
When I look at schema of Decoder 74HC139 that sonicd123 made, I see that for
Maybe it's better to tied this pin to GND?
Last edited by Kayumba on Thu Oct 13, 2022 12:26 pm, edited 1 time in total.
Re: SRAM 622256 vs FeRAM FM18W08 way need OR GATE?
It shouldn't be tied to ground, but you're right it shouldn't be floating. But the image you shared doesn't match what you said...
Re: SRAM 622256 vs FeRAM FM18W08 way need OR GATE?
Sorry I was talking about HiROM.
If It shouldn't be tied to ground and it shouldn't be floating. And it's need to be 0 (ACTIVE LOW).
How to do ?
If I understand right that schematic for 74'139...
For HiROM example :
To select inputs from pin 2 (A13) and pin 3 (A14), pin 1 (Enable) have to be "Active LOW' (means that a 0 V).
For LoROM example :
To select inputs from pin 2 (A14) and pin 3 (A13), pin 1 are tied to A15
That's the only difference.
Re: SRAM 622256 vs FeRAM FM18W08 way need OR GATE?
The MAD-1 decodes HiROM RAM ( https://problemkaputt.de/fullsnes.htm#s ... tsmadchips ) where
but A22 ("BA6") is already connected to the other half-'139, which seems wrong. And if I look at the github repository linked above it does something else altogether...
Code: Select all
A13 A14 A21 A22 /ROMSEL
HIGH HIGH HIGH LOW HIGH --> /SRAM.CS=LOW