6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Tue Nov 12, 2024 12:01 am

All times are UTC




Post new topic Reply to topic  [ 100 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7  Next
Author Message
PostPosted: Tue Sep 12, 2023 5:04 am 
Offline

Joined: Mon Jan 19, 2004 12:49 pm
Posts: 959
Location: Potsdam, DE
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


Top
 Profile  
Reply with quote  
PostPosted: Tue Sep 12, 2023 6:03 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8482
Location: Midwestern USA
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!


Top
 Profile  
Reply with quote  
PostPosted: Tue Sep 12, 2023 7:02 am 
Offline

Joined: Tue Apr 11, 2017 5:28 am
Posts: 68
Removed by author


Last edited by Squonk on Tue Oct 03, 2023 7:40 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
PostPosted: Sun Sep 17, 2023 9:43 am 
Offline

Joined: Tue Apr 11, 2017 5:28 am
Posts: 68
Removed by author


Last edited by Squonk on Tue Oct 03, 2023 7:41 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
PostPosted: Sun Sep 17, 2023 1:00 pm 
Offline

Joined: Mon May 21, 2018 8:09 pm
Posts: 1462
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
Screenshot 2023-09-17 at 3.59.00 pm.png [ 54.96 KiB | Viewed 9447 times ]
Top
 Profile  
Reply with quote  
PostPosted: Sun Sep 17, 2023 7:06 pm 
Offline

Joined: Tue Apr 11, 2017 5:28 am
Posts: 68
Removed by author


Last edited by Squonk on Tue Oct 03, 2023 7:41 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
PostPosted: Fri Sep 22, 2023 9:52 am 
Offline

Joined: Fri Sep 22, 2023 9:42 am
Posts: 34
Not really 6502, but maybe relevant to this thread.
Attachment:
AUC_ALUv4.png
AUC_ALUv4.png [ 84.44 KiB | Viewed 9347 times ]

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.

Top
 Profile  
Reply with quote  
PostPosted: Fri Sep 22, 2023 11:08 am 
Offline

Joined: Fri Sep 22, 2023 9:42 am
Posts: 34
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.
Attachment:
MUX20221002.png
MUX20221002.png [ 192.38 KiB | Viewed 9333 times ]

Attachment:
4bit.png
4bit.png [ 38.57 KiB | Viewed 9328 times ]

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.
Attachment:
AddOnly.png
AddOnly.png [ 58.67 KiB | Viewed 9324 times ]

Series prefixes are decoded for free, internally by MUX4.
Same for all above, even those wired to borrow or compare.


Top
 Profile  
Reply with quote  
PostPosted: Fri Sep 22, 2023 1:11 pm 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3367
Location: Ontario, Canada
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


Top
 Profile  
Reply with quote  
PostPosted: Fri Sep 22, 2023 8:18 pm 
Offline

Joined: Tue Apr 11, 2017 5:28 am
Posts: 68
Removed by author


Last edited by Squonk on Tue Oct 03, 2023 7:41 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
PostPosted: Fri Sep 22, 2023 9:26 pm 
Offline

Joined: Fri Sep 22, 2023 9:42 am
Posts: 34
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.

Top
 Profile  
Reply with quote  
PostPosted: Fri Sep 22, 2023 10:38 pm 
Offline

Joined: Tue Apr 11, 2017 5:28 am
Posts: 68
Removed by author


Last edited by Squonk on Tue Oct 03, 2023 7:43 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
PostPosted: Sat Sep 23, 2023 5:54 am 
Offline

Joined: Fri Sep 22, 2023 9:42 am
Posts: 34
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...
Attachment:
ALU_Breadboard1.jpg
ALU_Breadboard1.jpg [ 457.74 KiB | Viewed 9243 times ]

Too little Sphagetti. Unreproducible construction method...
Attachment:
ChainSide.jpg
ChainSide.jpg [ 237.33 KiB | Viewed 9243 times ]

Striking a better balance.
Attachment:
EightSlices.jpg
EightSlices.jpg [ 336.75 KiB | Viewed 9243 times ]


Top
 Profile  
Reply with quote  
PostPosted: Sat Sep 23, 2023 8:23 am 
Offline

Joined: Tue Apr 11, 2017 5:28 am
Posts: 68
Removed by author


Last edited by Squonk on Tue Oct 03, 2023 7:43 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
PostPosted: Sat Sep 23, 2023 9:36 am 
Offline

Joined: Tue Apr 11, 2017 5:28 am
Posts: 68
Removed by author


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

Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 100 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 5 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: