PLD SDRAM controller ?

General discussions or ideas about hardware.
terriblefire
Admin sponsor
Admin sponsor
Posts: 5686
Joined: 28 Aug 2017 22:56
Location: Glasgow, UK

Re: PLD SDRAM controller ?

Post by terriblefire »

exxos wrote: 15 Jan 2021 23:04 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: 28365
Joined: 16 Aug 2017 23:19
Location: UK

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..
terriblefire
Admin sponsor
Admin sponsor
Posts: 5686
Joined: 28 Aug 2017 22:56
Location: Glasgow, UK

Re: PLD SDRAM controller ?

Post by terriblefire »

exxos wrote: 15 Jan 2021 23:47 DTACK...
Ooops yes.
exxos wrote: 15 Jan 2021 23:47 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: 28365
Joined: 16 Aug 2017 23:19
Location: UK

Re: PLD SDRAM controller ?

Post by exxos »

terriblefire wrote: 15 Jan 2021 23:50 Need to be able to write bytes! (UDS/LDS encode A0). For reads you don't care.
Ah yep. Good point.
cmorley
Posts: 296
Joined: 28 May 2019 17:46

Re: PLD SDRAM controller ?

Post by cmorley »

exxos wrote: 15 Jan 2021 23:04 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
Site sponsor
Site sponsor
Posts: 3043
Joined: 19 Nov 2019 12:09

Re: PLD SDRAM controller ?

Post by Badwolf »

terriblefire wrote: 15 Jan 2021 22:25 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
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: 28365
Joined: 16 Aug 2017 23:19
Location: UK

Re: PLD SDRAM controller ?

Post by exxos »

cmorley wrote: 16 Jan 2021 07:03 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.
User avatar
Badwolf
Site sponsor
Site sponsor
Posts: 3043
Joined: 19 Nov 2019 12:09

Re: PLD SDRAM controller ?

Post by Badwolf »

exxos wrote: 17 Jan 2021 02:42
cmorley wrote: 16 Jan 2021 07:03 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
Look at all that room on the back for caps! :lol:

They are £8 parts, though.

BW
You do not have the required permissions to view the files attached to this post.
DFB1 Open source 50MHz 030 and TT-RAM accelerator for the Falcon
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: 28365
Joined: 16 Aug 2017 23:19
Location: UK

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 ;)
User avatar
Badwolf
Site sponsor
Site sponsor
Posts: 3043
Joined: 19 Nov 2019 12:09

Re: PLD SDRAM controller ?

Post by Badwolf »

exxos wrote: 17 Jan 2021 20:28 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
Smalliermouse ST-optimised USB mouse adapter based on SmallyMouse2
FrontBench The Frontier: Elite 2 intro as a benchmark

Return to “HARDWARE DISCUSSIONS”

Who is online

Users browsing this forum: ClaudeBot, Google [Bot], trendiction [bot] and 11 guests