124 points · by mmastrac · 9y ago · 21 comments
http://i.imgur.com/OwLkx4A.png
I plan to explain how the 74181 implements its 32 functions and fast carry in a future article, so keep watching.
I look forward to reading that, but meanwhile here is one guide to the 74181 which I found quite lucid (starts near the bottom, continues for 2 more pages --- the rest of the series on ALU design is worth reading too):
http://6502.org/users/dieter/a2/a2_3.htm
The key takeaway from that is, once you decide to make a carry-lookahead adder and compute "G" and "P", and add inversion to one (or both) of the inputs to enable subtraction too, you already have much of what it takes to compute all the logic functions too.
It would be very interesting to have an interview with the original designer(s) of the '181, although from a quick search I can't find exactly who designed it.
The quick summary is the 74181 looks at first like they picked 32 random functions but there's a rational explanation why it has functions like AB PLUS (A OR NOT B). And the gate arrangement makes sense once you realize it's all based on carry-lookahead.
"The first half of the chip's circuitry computes the four 1-bit sums of A with f(A,B). (Specifically it is creating the Generate and Propagate signals that are used for carry lookahead. This lets the 74181 work in parallel, rather than using a ripple carry.)."
Can you elaborate on "it is creating the Generate and Propagate signals.", I thought that the electrical pulse that drove combinatorial circuit was simply just the clock input on the chip. And that this was propagated to the whole chip instantaneously similar to a broadcast. Do I have this completely wrong?
The '181 has no clock input, the outputs will change after some propagation delay whenever an input changes.
This explanation of CLA adding may also help: https://www.cs.umd.edu/class/sum2003/cmsc311/Notes/Comb/look...
It uses four 74181s. I probably won't get around to building one, but it might be fun to write a processor simulator.
The interest in this design is modern eproms can be quite large, of course the largest ones are serial which is quite useless for this purpose, but 8 bit ALUs are possible.
In the bottom half of the second picture, in the rendering of the transistor, what is the long thin purple rectangle marked N+ above the P substrate's purpose?
Why don't they use N+ instead of N everywhere? Less doping in the collector-base junction improves the breakdown voltage. It's also possible to extend the N+ region under the collector until it meets the buried N+ layer, which reduces resistance even more, but that takes another processing step. So it's all tradeoffs.
Edit: Nevermind, it's mentioned in the article. I thought you had to grind the layers.