2 ms·
Seriously? A 1 bit "full adder" is too complicated to build with discrete gates? If you are going to show people how to build a discrete 4 bit ALU then you real
by ChuckMcM 10y ago
Seriously? A 1 bit "full adder" is too complicated to build with discrete gates? If you are going to show people how to build a discrete 4 bit ALU then you really need to own it and at least build it with simple gates, if not transistors if you want to seriously own the discrete bit. As you can see in this reference (https://en.wikibooks.org/wiki/Microprocessor_Design/Add_and_Subtract_Blocks https://en.wikibooks.org/wiki/Microprocessor_Design/Add_and_...) a single bit full adder is 2 xor, 2 and, and an or gate. For for a four bit addr, that is 8 XOR (2 chips), 8 AND (2 chips), and 4 OR (1 chip), so 5 chips instead of one MSI 4 bit adder.
- jleahy 10y agoBuilding the full adder might even make it less ICs overall. Lots of tricks are lost here, for example the subtraction logic can be used to implement a NOT function if you add to zero. Rather than having an extra XOR chip you can implement XOR by using the adder but cutting the cout->cin path. The 74x181 4-bit ALU IC implements all of this (plus quite a lot more) in 56 gates once you drop the carry-lookahead logic. That'd be about the same number of ICs as used in this project, but logic only. http://www.ti.com/lit/ds/symlink/sn74ls181.pdf http://www.ti.com/lit/ds/symlink/sn74ls181.pdf (page 5)
- beneater 10y agoAnd here's a video explaining and building just such a 4-bit adder: https://www.youtube.com/watch?v=wvJc9CZcvBc https://www.youtube.com/watch?v=wvJc9CZcvBc