6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Tue May 07, 2024 6:45 am

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Memory decoding options
PostPosted: Tue Mar 22, 2016 3:22 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10799
Location: England
Every 6502 system needs some kind of memory decode, and there are several options with various tradeoffs. If I can, I'd like to summarise some options here, with links where possible - please comment so I can update this post with the best information. (I won't get into choosing among the several 74 series families, it's covered elsewhere.)

- Very few TTL gates like Garth's 3-gate single chip decode which splits memory into four 16k blocks - I/O devices can each decode a single address bit so you can have up to 10 devices in the 16k I/O block, if each has a CS and a \CS pin.

- The obvious but slowish 3-to-8 decoder 74*138 divides memory into 8 blocks of 8k, two of them cascaded gives finer granularity but double the propagation delay. Or the 4-to-16 decode 74*154 for a finer split.

- A magnitude comparator like the 4-bit 74*85 or 8-bit 74*688 or 74*521. [Is this preferable to a 138 in some ways?]

- preprogrammed logic such as PAL or GAL (e.g. Daryl's standard part gives one page of I/O, nearly 32k of RAM and a full 32k of ROM. Edit: Daryl also offers custom configurations - see below.)

- your own PAL or GAL, for similar granularity but however you want it, once you've got the capability to program such a device.

- programmable logic such as CPLD or FPGA for pretty much any scheme you care to code, once you've set up the tools and the programming dongle.

(In all cases, add a latch or VIA to add banking. I think that's probably another topic.)


Last edited by BigEd on Mon Apr 04, 2016 7:28 am, edited 2 times in total.

Top
 Profile  
Reply with quote  
PostPosted: Tue Mar 22, 2016 8:17 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8432
Location: Southern California
BigEd wrote:
Or the 4-to-16 decode 74*154 for a finer split.

I have not seen the beloved '154 available in any of the faster versions. If anyone knows of one, I'd like to hear of (and use) it.

For myself and others who may have an aversion to modern programmable logic due to factors like 5V versions disappearing, the near requirement for Windows, the cost of a programmer, and that the program is not guaranteed to last even half the number of years I've already been using my current workbench computer, Jeff has gotten me thinking along the lines of making a very small "programmable" logic board that's programmable with a soldering iron. PCBs getting super cheap for hobbyists (for example http://www.dirtypcbs.com/, http://www.pcbway.com/, and http://pcbshopper.com/), and 74LVC1G__ tiny SMT logic building blocks are available with delays under 2ns(!) for even gate pairs. It is becoming feasible to make postage-stamp-sized modules that could be "programmed" with solder blobs on tiny split circles on the PCB, and/or by soldering wire-wrap wire jumpers into .015" holes. It's re-programmable too, not having to cut traces to program it. With greater difficulty, the tiny 6-pin SMT gates could be changed out. (Jeff's post that got my imagination going is here.)

Quote:
- A magnitude comparator like the 4-bit 74*85 or 8-bit 74*688 or 74*521. [Is this preferable to a 138 in some ways?]

Thanks (both to you and to Brad) for pointing out the 74xx85 cascadable 4-bit comparator with trichotomy outputs. I had forgotten about that one.

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Top
 Profile  
Reply with quote  
PostPosted: Tue Mar 22, 2016 9:12 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8176
Location: Midwestern USA
GARTHWILSON wrote:

When I click on that link I get a status message telling me "You are not authorised to view, download or link from/to this site."

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
PostPosted: Tue Mar 22, 2016 9:44 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8432
Location: Southern California
BigDumbDinosaur wrote:
GARTHWILSON wrote:

When I click on that link I get a status message telling me "You are not authorised to view, download or link from/to this site."

Here it is, attached and inlined:
Attachment:
sampling of one-gate functions.png
sampling of one-gate functions.png [ 51.45 KiB | Viewed 1075 times ]

They're in 6-pin SOT-23's.

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Top
 Profile  
Reply with quote  
PostPosted: Tue Mar 22, 2016 10:42 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 9:02 pm
Posts: 1684
Location: Sacramento, CA
BigEd wrote:
...
- preprogrammed logic such as PAL or GAL (e.g. Daryl's gives one page of I/O, nearly 32k of RAM and a full 32k of ROM.)


Hi Ed,

I have an open offer to help program the Lattice GAL22V10D's with any kind of decoding that can be squeezed into it. I do not charge for the programming and am happy to help with the required WinCUPL code. I can either sell the 22V10 at my cost plus shipping to the end user, or they can send me their chips with return postage and I'll program and return them.

I have done so for several users. Most want the IO in a different page, or different granularity of decoding.

For everyone reading this - I cannot program the Atmel devices and I believe the current 22V10's available online as "Lattice" parts are actually Chinese "copies". They do work and I have not had any issues with them... I am just trying to give full disclosure up front. Lattice stopped making the GAL's several years ago.

Daryl

_________________
Please visit my website -> https://sbc.rictor.org/


Top
 Profile  
Reply with quote  
PostPosted: Wed Mar 23, 2016 9:19 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10799
Location: England
Even better - thanks for the note and thanks for the service to the community!


Top
 Profile  
Reply with quote  
PostPosted: Wed Mar 23, 2016 7:18 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8176
Location: Midwestern USA
8BIT wrote:
I have an open offer to help program the Lattice GAL22V10D's with any kind of decoding that can be squeezed into it...For everyone reading this - I cannot program the Atmel devices and I believe the current 22V10's available online as "Lattice" parts are actually Chinese "copies".

I'll make a similar offer to anyone who is interested in using Atmel's ATF15xx line of 5 volt CPLDs.

I am using the PLCC44 version of the ATF1504AS in POC V2 (which will get built as soon as I resolve my vision issues) and although I maxxed out the pin usage in my design, I wasn't even close to maxxing out the 1504's logic capabilities. As the available sources for GALs dry up small CPLDs such as the ATF1504AS are increasingly viable alternatives, offering far more logic functions and I/O pins than any GAL. The ATF15xx series offers 7.5ns or 10ns pin-to-pin prop time, so glue logic delays generally will not be a factor in a well-designed 65C02 or 65C816 circuit.

I have here the Atmel test rig for those devices, as well as adapters for several different device packages, including PLCC44 and PLCC84. If you send me your CUPL source code or a properly formatted JEDEC fuse map I can program a device for you. I can also furnish a device, which will be at our cost plus whatever shipping/postage is required to get it to your location.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
PostPosted: Wed Mar 23, 2016 7:31 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10799
Location: England
Nice one BDD!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: