PLD SDRAM controller ?

General discussions or ideas about hardware.
terriblefire
Moderator Team
Moderator Team
Posts: 5389
Joined: Mon Aug 28, 2017 10:56 pm
Location: Glasgow, UK

Re: PLD SDRAM controller ?

Post by terriblefire »

exxos wrote: Fri Jan 15, 2021 11:04 pm If you think a smaller chip wont do, I can probably just port the TF stuff right over..I think that is what you basically suggested a while back anyway.. I need to do the address decoding in the thing, so thats 23 address lines gone right off the bat.
Inputs:
----------
1 CLK
23 Address lines
2 AS + RW
2 LDS + UDS (either you need to pass them through the CPLD or put buffers in as the SDRAM is 3.3V)

Outputs:
---------
1 CLK
1 CLKE (BTW i tested some rams with CLKE tied high on the TF4060 due to a f*ckup and it worked)
13 Address lines
2 Bank address lines
3 RAS,CAS,WE
1 Chip Select (optional?)
2 LDS,UDS
———
"It is not necessarily a supply voltage at no load, but the amount of current it can provide when touched that
indicates how much hurting you shall receive."
User avatar
exxos
Site Admin
Site Admin
Posts: 23724
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: PLD SDRAM controller ?

Post by exxos »

DTACK...

Though I don't tend to use LDS UDS , might not be relivant with just 1 ram chip anyway..

I could always pass the address bus though some in buffers.. I guess it depends on price of the PLD vs a couple more buffer chips..
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
terriblefire
Moderator Team
Moderator Team
Posts: 5389
Joined: Mon Aug 28, 2017 10:56 pm
Location: Glasgow, UK

Re: PLD SDRAM controller ?

Post by terriblefire »

exxos wrote: Fri Jan 15, 2021 11:47 pm DTACK...
Ooops yes.
exxos wrote: Fri Jan 15, 2021 11:47 pm Though I don't tend to use LDS UDS , might not be relivant with just 1 ram chip anyway.
Need to be able to write bytes! (UDS/LDS encode A0). For reads you don't care.
———
"It is not necessarily a supply voltage at no load, but the amount of current it can provide when touched that
indicates how much hurting you shall receive."
User avatar
exxos
Site Admin
Site Admin
Posts: 23724
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: PLD SDRAM controller ?

Post by exxos »

terriblefire wrote: Fri Jan 15, 2021 11:50 pm Need to be able to write bytes! (UDS/LDS encode A0). For reads you don't care.
Ah yep. Good point.
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
cmorley
Posts: 291
Joined: Tue May 28, 2019 5:46 pm

Re: PLD SDRAM controller ?

Post by cmorley »

exxos wrote: Fri Jan 15, 2021 11:04 pm I need to do the address decoding in the thing, so thats 23 address lines gone right off the bat.
You don't necessarily need to route all the address lines through the CPLD. You need the SDRAM address lines to set up the mode but you can externally MUX the address with 74 series buffers and just have two OE from the CPLD & set the CPLD outputs high-Z when the mode is complete. Then you only route in the high address lines as needed for address decoding.

If you want to keep cost down then you need to delete as much as you can from the SDRAM controller or else your CPLD is going to be a £7-15 part & you might as well have used 5v EDO RAM + a £1 PLD.
User avatar
Badwolf
Posts: 2249
Joined: Tue Nov 19, 2019 12:09 pm

Re: PLD SDRAM controller ?

Post by Badwolf »

terriblefire wrote: Fri Jan 15, 2021 10:25 pm There is the TF sources... officially here..
https://github.com/hologenics
My original SDRAM controller is...
https://github.com/mist-devel/archimede ... /rtl/sdram
Thanks for linking these :dualthumbup:

BW
DFB1 Open source 50MHz 030 and TT-RAM accelerator for the Falcon
DSTB1 Open source 16Mhz 68k and AltRAM accelerator for the ST
Smalliermouse ST-optimised USB mouse adapter based on SmallyMouse2
FrontBench The Frontier: Elite 2 intro as a benchmark
User avatar
exxos
Site Admin
Site Admin
Posts: 23724
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: PLD SDRAM controller ?

Post by exxos »

cmorley wrote: Sat Jan 16, 2021 7:03 am If you want to keep cost down then you need to delete as much as you can from the SDRAM controller or else your CPLD is going to be a £7-15 part & you might as well have used 5v EDO RAM + a £1 PLD.
It needs to fit in a 68k footprint. So a sdram of like £2 is fine.. Plus some data buffers ., plus whatever pld I can get away with.

I want to keep the full address bus input as I may well add other stuff in at a later date.
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
User avatar
Badwolf
Posts: 2249
Joined: Tue Nov 19, 2019 12:09 pm

Re: PLD SDRAM controller ?

Post by Badwolf »

exxos wrote: Sun Jan 17, 2021 2:42 am
cmorley wrote: Sat Jan 16, 2021 7:03 am If you want to keep cost down then you need to delete as much as you can from the SDRAM controller or else your CPLD is going to be a £7-15 part & you might as well have used 5v EDO RAM + a £1 PLD.
It needs to fit in a 68k footprint. So a sdram of like £2 is fine.. Plus some data buffers ., plus whatever pld I can get away with.

I want to keep the full address bus input as I may well add other stuff in at a later date.
The 100-pin version of the XC95144XL would give you 81 IOs -- not enough to buffer the address lines, but enough for everything else with a bit to spare.

It could be made to fit with a bit of creative routeing and decent number of layers, I reckon.
Screenshot 2021-01-17 at 20.11.41.png
Screenshot 2021-01-17 at 20.11.41.png (36.11 KiB) Viewed 5206 times
Look at all that room on the back for caps! :lol:

They are £8 parts, though.

BW
DFB1 Open source 50MHz 030 and TT-RAM accelerator for the Falcon
DSTB1 Open source 16Mhz 68k and AltRAM accelerator for the ST
Smalliermouse ST-optimised USB mouse adapter based on SmallyMouse2
FrontBench The Frontier: Elite 2 intro as a benchmark
User avatar
exxos
Site Admin
Site Admin
Posts: 23724
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: PLD SDRAM controller ?

Post by exxos »

So it does have the address inputs to the PLD ? would either need to find 5V RAM or use the larger PLD I guess. Though with cost of RAM its probably just going to look like going with the larger PLD.. assuming it would fit in the 68K footprint.. which I am guessing wont ?

@Icky is the creative routing expert these days ;)
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
User avatar
Badwolf
Posts: 2249
Joined: Tue Nov 19, 2019 12:09 pm

Re: PLD SDRAM controller ?

Post by Badwolf »

exxos wrote: Sun Jan 17, 2021 8:28 pm So it does have the address inputs to the PLD ? would either need to find 5V RAM or use the larger PLD I guess. Though with cost of RAM its probably just going to look like going with the larger PLD.. assuming it would fit in the 68K footprint.. which I am guessing wont ?

@Icky is the creative routing expert these days ;)
Can use the 3.3.

That QFP-100 represents the CPLD, there are two 8-bit buffers for the data lines plus a regulator and RAM. They do just about fit within the 68k footprint. The RAM chip I've put on there is the 16-bit 64MB one I'm using -- overkill on a 68k so should be even more room, TBH. Need to squeeze programming pads/header on there too, though.

I reckon even with all address pins you won't need more than 60 IOs, so I think it'd fit and you'd have ~24 spare. Not *quite* enough to buffer the address too (hence the two 8 bit level shifting buffers), but close and I may have overestimated pin count.

Edit: just thought, the controller would fit in the XC9572XL too -- that has only 72 IOs on the 100 pin version, but still more than enough. £4 chip instead!

BW
DFB1 Open source 50MHz 030 and TT-RAM accelerator for the Falcon
DSTB1 Open source 16Mhz 68k and AltRAM accelerator for the ST
Smalliermouse ST-optimised USB mouse adapter based on SmallyMouse2
FrontBench The Frontier: Elite 2 intro as a benchmark
Post Reply

Return to “HARDWARE DISCUSSIONS”