4 ms·
I think the XOR (or actually a XNOR) looks far easier to understand if it is drawn symmetrically, like the layout and its logic function suggests: http://i.img
by userbinator 10y ago
I think the XOR (or actually a XNOR) looks far easier to understand if it is drawn symmetrically, like the layout and its logic function suggests:
http://i.imgur.com/OwLkx4A.png 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 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.
- kens 10y agoI haven't had time to write up my full explanation of the 74181's logical implementation, but I have a summary on stackexchange that you might find interesting: http://electronics.stackexchange.com/questions/1489/what-is-the-reasoning-for-the-arithmetic-functions-on-the-74181 http://electronics.stackexchange.com/questions/1489/what-is-... 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.
- 2sk21 10y agoReally enjoyed this article! It seems a bit surprising that 45 year old chips are still available relatively easily.
- bogomipz 10y agoYou are the author? This is spectacular reading. Wonderful work, thank you. I have a question above about the transistor rendering in the second pic but I just now read your stackexchange link and have another question regarding this passage in the SE link: "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?
- userbinator 10y ago"Generate" and "Propagate" are referring to the names of the signals in the first stage of a carry-lookahead adder ( https://en.wikipedia.org/wiki/Carry-lookahead_adder https://en.wikipedia.org/wiki/Carry-lookahead_adder ). Generate is A AND B (AB), Propagate is A OR B (A + B). This is also where the AND and OR for the logic functionality comes from. 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/lookahead.html https://www.cs.umd.edu/class/sum2003/cmsc311/Notes/Comb/look...
- bogomipz 10y agoI see, this is very interesting. Thanks for the link and explanation.
- kens 10y agoGood idea on the XOR layout. I've redrawn it to be symmetric. Thanks for the suggestion.