Fast Discrete FET-Switch ALU

For discussing the 65xx hardware itself or electronics projects.
barnacle
Posts: 1831
Joined: 19 Jan 2004
Location: Potsdam, DE
Contact:

Re: Fast Discrete FET-Switch ALU

Post by barnacle »

Sadly, though, Digikey list no AND parts in any logic family with more than four inputs, which limits the possibilities for building this from discrete logic. The fastest listed x283 (unless I missed one?) looks to be the 54/74F283 at just under 6ns to valid carry out, but obviously with the concomitant voltage limits and power consumption.

(still ten times the speed of my discrete 8080-style alu at 3.3v, though... though that includes routing, function select, and most significantly a ripple carry chain in the design, and would probably speed up at 5v).

Neil
User avatar
BigDumbDinosaur
Posts: 9425
Joined: 28 May 2009
Location: Midwestern USA (JB Pritzker’s dystopia)
Contact:

Re: Fast Discrete FET-Switch ALU

Post by BigDumbDinosaur »

barnacle wrote:
Sadly, though, Digikey list no AND parts in any logic family with more than four inputs, which limits the possibilities for building this from discrete logic.

Can you reverse the logic and use a 74AHC30?  Or, how about using a 16V8 PLD as an eight-input AND?  Only thing you have to watch out for with the PLD is the TTL-level VOH.
x86?  We ain't got no x86.  We don't NEED no stinking x86!
Squonk
Posts: 68
Joined: 11 Apr 2017

Re: Fast Discrete FET-Switch ALU

Post by Squonk »

Removed by author
Last edited by Squonk on Tue Oct 03, 2023 7:40 pm, edited 1 time in total.
Squonk
Posts: 68
Joined: 11 Apr 2017

Re: Fast Discrete FET-Switch ALU

Post by Squonk »

Removed by author
Last edited by Squonk on Tue Oct 03, 2023 7:41 pm, edited 1 time in total.
Chromatix
Posts: 1462
Joined: 21 May 2018

Re: Fast Discrete FET-Switch ALU

Post by Chromatix »

Squonk wrote:
…if you can get combined AND/OR/NEGATE gates, which are not available as discrete chips, unfortunately :(
Are you sure about that?
Attachments
Screenshot 2023-09-17 at 3.59.00 pm.png
Squonk
Posts: 68
Joined: 11 Apr 2017

Re: Fast Discrete FET-Switch ALU

Post by Squonk »

Removed by author
Last edited by Squonk on Tue Oct 03, 2023 7:41 pm, edited 1 time in total.
Ken KD5ZXG
Posts: 34
Joined: 22 Sep 2023

Re: Fast Discrete FET-Switch ALU

Post by Ken KD5ZXG »

Not really 6502, but maybe relevant to this thread.
AUC_ALUv4.png
Abuse of 74AUC2G53 Inhibit pin allows for one less gate.
If it doesn't make sense, just ask. Not my clearest drawing.

Series prefixed Manchester Carry, Borrow, or Magnitude.
Karnaugh 0110 XOR for addition, 1001 NXOR for subtraction.
Propagation rules can be inferred from the Karnaugh map.
No wasted time or control line to XORvert the B input.

Generate and Annihilate are not wired as constants here.
Determined by replacement rules LessThan and GreaterThan.
Allowing < = > magnitude comparisons, A-B, B-A, and A+A.

A+A RLTC isn't using addition, but leftward replacement.
Rotate Right TC relies on an external reversing loopback.
RP loops back to reverse order 76543210 ~ 01234567.
No attempt made to flip a reversed result back to normal.
Just keep Rotating Left Through Carry (your other right).

These rules neck down to a single capacitive load when inhibited.
So not to burden a long chain of tranmission gated propagation.
I also triple 1G66 propagation gates to better handle fanout...

CBT doesn't switch as fast, but far less series resistance.
Not entirely sure AUC is better. Depends chain length.
Last edited by Ken KD5ZXG on Fri Sep 22, 2023 9:06 pm, edited 11 times in total.
Ken KD5ZXG
Posts: 34
Joined: 22 Sep 2023

Re: Fast Discrete FET-Switch ALU

Post by Ken KD5ZXG »

CBT slices are super easy to build.
Not AUC fast, and can't rotate right.
Even A+A requires pre-load B with A.
But low part count and 5V compatible.
MUX20221002.png
4bit.png
74CBT3257 might be stronger for adjusting FLAG to make CBEQn=0.
Overflow (not drawn) is a simple XOR of CBEQ3 vs CBEQ4.

To ADD and nothing else, this slice might be faster.
AddOnly.png
Series prefixes are decoded for free, internally by MUX4.
Same for all above, even those wired to borrow or compare.
User avatar
Dr Jefyll
Posts: 3525
Joined: 11 Dec 2009
Location: Ontario, Canada
Contact:

Re: Fast Discrete FET-Switch ALU

Post by Dr Jefyll »

Welcome, Ken! And a big thank-you to you and to Squonk for your attention to this subject.
Ken KD5ZXG wrote:
Not really 6502, but maybe relevant to this thread.
There actually is a 6502 connection! Back in 2015, forum member Drass presented a Logisim circuit which, with help from ttlworks and me, he eventually developed into a functional 6502 built mostly out of 74-series CMOS logic. The forum thread is here, there's a C74 web site here, and a 2018 video of Drass presenting a talk on the subject can be found here.

Not satisfied with the C74's 20 MHz operation (!), in 2020 Drass started a new thread to explore a dramatically faster approach in which the use of transmission-gate logic (FET switches) would be expanded to include the ALU. Squonk in turn became inspired :) and started this thread; also one which precedes it, 1-Bit FET-Switch Macrocell.

-- Jeff
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html
Squonk
Posts: 68
Joined: 11 Apr 2017

Re: Fast Discrete FET-Switch ALU

Post by Squonk »

Removed by author
Last edited by Squonk on Tue Oct 03, 2023 7:41 pm, edited 1 time in total.
Ken KD5ZXG
Posts: 34
Joined: 22 Sep 2023

Re: Fast Discrete FET-Switch ALU

Post by Ken KD5ZXG »

The least resistive and capacitive are N pass gate 74CBT overvolted to 7V.

Think of 74CB3Q internal charge pump power limit of 20 Megaswitch/Sec.
I don't want to be limited so few switch events, but resistance is crazy low.
Obviously these parts exist to prove VDD=7V without pump is worth trying.

Amazingly, I have a batch of CBT3253 that survive 7V magic smoke test.
Aside from lack of internal pump, probably the very same pass gate.
Series resistance only 3 Ohms while passing 5V through. Even less 2.5V.
Self-capping translation to whatever level passes is a feature, not a bug.

Attention needs given to capacitive burden upon the chain.
Abandoned 8way cause too many disabled gates remain wired.
Propagate or Replace should be no more than a 2way decision.
If you need more rules, hide them behind one disabled switch.
Last edited by Ken KD5ZXG on Sat Sep 23, 2023 7:00 am, edited 3 times in total.
Squonk
Posts: 68
Joined: 11 Apr 2017

Re: Fast Discrete FET-Switch ALU

Post by Squonk »

Removed by author
Last edited by Squonk on Tue Oct 03, 2023 7:43 pm, edited 1 time in total.
Ken KD5ZXG
Posts: 34
Joined: 22 Sep 2023

Re: Fast Discrete FET-Switch ALU

Post by Ken KD5ZXG »

AOI of any width can be done with discreet diodes, resistors, hex inverters.
Got 5000 Schottkys and tubes of 74S04 for that experiment some day.
Once you factor spaghettis, the plan unravels without a custom PCB.

OTOH, an entire slice of CBT fits on a generic SSOP to DIP28 converter.
Only 2 SSOP ICs with plenty o wiggle room between...

74AUC2G53 MUX2 propagate through 15 Ohm and 9pF CIO_ON
74CBT3253 TwinMUX4 propagate through 3 or 5 Ohm and 18.6pF CIO_ON
Maybe 4pF less CIO_ON, depending stuff the spec sheet isn't clear about.
Reading both TI and NXP sheets to help fill in those blanks...
Still, external spaghettis could easily be much worse than internal.

The asymmetry you mention, less resistance to GND than VDD.
Either might propagate faster from a pre-charged high state.
Not exactly Domino, but maybe interleave ALUs to pre-charge?
Give the idle ALU some dummy task that results in all Carrys...

Too much Sphagetti. Doubt IC parasitics are the limiting factor...
ALU_Breadboard1.jpg
Too little Sphagetti. Unreproducible construction method...
ChainSide.jpg
Striking a better balance.
EightSlices.jpg
Squonk
Posts: 68
Joined: 11 Apr 2017

Re: Fast Discrete FET-Switch ALU

Post by Squonk »

Removed by author
Last edited by Squonk on Tue Oct 03, 2023 7:43 pm, edited 1 time in total.
Squonk
Posts: 68
Joined: 11 Apr 2017

Re: Fast Discrete FET-Switch ALU

Post by Squonk »

Removed by author
Last edited by Squonk on Tue Oct 03, 2023 7:44 pm, edited 1 time in total.
Post Reply