Page 2 of 37

Re: TF536 + 68000 relocator and ROM board project.

Posted: Sun Sep 27, 2020 7:28 pm
by DoG
stephen_usher wrote: Sun Sep 27, 2020 6:49 pm @exxos What model eeprom do you use for your dualtos?
AT27C4096-55JU

Re: TF536 + 68000 relocator and ROM board project.

Posted: Sun Sep 27, 2020 7:53 pm
by stephen_usher
Thanks.

Re: TF536 + 68000 relocator and ROM board project.

Posted: Sun Sep 27, 2020 10:14 pm
by stephen_usher
Does this logic for the ROM decode look OK? The GAL will match the address patterns for both possible ROM address ranges.

I've used /AS for the ROM /CE as according to the spec. /CE should be enabled before /OE and given the logic delays this should work due to the logic delays in the GAL and 74LS08.

I'm using A17 on the EEPROM to switch between TOS images.
IMG_2037.jpg
IMG_2037.jpg (28.72 KiB) Viewed 2931 times

Re: TF536 + 68000 relocator and ROM board project.

Posted: Sun Sep 27, 2020 10:17 pm
by stephen_usher
I've just noticed a mistake. The second AND gate will not work and can be left out. Though really the /OE activation on the EEPROM should require /AS to be asserted as otherwise it could be reacting to a spurious address on the bus.

OK, I'll have to use a NOR gate in an 74LS02.

Re: TF536 + 68000 relocator and ROM board project.

Posted: Sun Sep 27, 2020 10:23 pm
by stephen_usher
Or I can use a second GAL, but that's slower.

Re: TF536 + 68000 relocator and ROM board project.

Posted: Sun Sep 27, 2020 10:57 pm
by stephen_usher
Just a mo... The EPROM is only 256Kx16, so how do you fit two (potentially 256K) TOS images in there?!

Re: TF536 + 68000 relocator and ROM board project.

Posted: Sun Sep 27, 2020 11:06 pm
by PhilC
stephen_usher wrote: Sun Sep 27, 2020 10:57 pm Just a mo... The EPROM is only 256Kx16, so how do you fit two (potentially 256K) TOS images in there?!
For two tos versions you'll need something like a 27c400 or 27c4096.

Re: TF536 + 68000 relocator and ROM board project.

Posted: Sun Sep 27, 2020 11:12 pm
by stephen_usher
I'm getting confused by the Axx notation differences between the m68k (starts at A1) and the chip (starts at A0).

Re: TF536 + 68000 relocator and ROM board project.

Posted: Mon Sep 28, 2020 12:58 am
by exxos
I'm not really following your circuit.. You have a gal, so why external gates ? You just decode TOS206 space and do a OR type equation in the GAL for ROM2.. I am making the assumption ROM2 is the one the glue set low on address zero. Or just run all 3 ROM limes to the GAL.. Then your GAL logic will set ROM OE low on valid address range OR ROM2 for address zero decode.

You also run /AS as a condition in the GAL logic to only allow any decoding when /AS is low. Otherwise you end up with glitches on ROM OE due to his transitions etc.

As for DTACK, have the GAL set low at the same time as ROM OE, the TF536 should be able to cope with that AFAIK. In general a 8mhz CPU won't read DTACK until after 55ns (ROM access time) so DTACK speed isn't really relevant in this case.

Re: TF536 + 68000 relocator and ROM board project.

Posted: Mon Sep 28, 2020 5:13 am
by stephen_usher
Because I’ll not be using the standard ROM sockets I’ll have to decode the TOS 1.xx addresses too, so I need the 8 address lines into the GAL to do this. The GAL16V8 only has 8 general purpose inputs, so they’re all used up. The other two lines are more restricted, being i1/CLK and i’ve forgotten what i10 ‘s main function is.

As for /ROM2, I was basing this on the decoder DoG referenced. Yes, /ROM2 is asserted for the zero reads. Actually, looking at the Atari schematics it may also be asserted for the TOS 1.xx address space too, so that would mean I wouldn’t need the more complicated GAL logic and I could use only 6 address lines, freeing up two inputs for /AS and /ROM2.

I should really stop /ROE if /RW is low so as to cause a bus error on an attempted write to the address space.