0

enter image description here

My textbook says that this figure requires twelve pins. Can anyone explain why this combination of gates requires twelve pins?

user17534
  • 471
  • 2
  • 5
  • 5

2 Answers2

3

Using individual gates, externally connected (so you connect them as you see fit) , 3 per gate + 1 for power + 1 for ground. That's 11 pins. Round up because most dual inline chips (DIP, soic, etc) only come in even numbers. 12 pins, one NC (non-connected). Smaller chips occasionally come in odd number of pins, 5 pin SOT-23 being a good example. You can get single gate ics in sot-23 5 pin.

This is essentially a duplicate of your other question What exactly are pins in the package?.

Passerby
  • 72,580
  • 7
  • 90
  • 202
  • Hereby you do assume there are chips available with a combination of AND, NAND and XOR. Is that true? I always thought it was four of the same gates in a 14-pin package. Unless this is strict theoretically of course. –  Jan 06 '13 at 18:38
0

If you're trying to calculate the "pins required" to do a design, the reason is probably to try to minimize the cost of the design, if it were to be implemented in 1980's-era logic ICs. This calculation is essentially irrelevant to design in the technology you would use for it today, like an FPGA, CPLD or 1- and 2-gate logic.

In discrete logic, you would minimize the cost of this logic by first minimizing the number of packages you buy, then minimizing the number of gates you use within those parts (which reduces cost only if you can actually share these gates with other logic in your design).

To implement this circuit, you have the choice between buying a chip of OR gates (likely 4 gates per chip), a chip of NAND gates, and a chip of AND gates (and wasting all but one gate on each chip), or, implement the AND gate as a cascade of two NANDs, and then just buy a chip of OR gates and a chip of NAND gates.

Since the second choice is more economical, you can actually view G3 as a gate requiring 6 pins --- three for the first NAND gate, and three for a NAND gate wired as an inverter.

enter image description here

The Photon
  • 126,425
  • 3
  • 159
  • 304
  • One thing I've often wondered with early 74xx logic--since the amount of stuff in a chip seemed primarily a function of a desire to have a uniform 14-pin package size, I wonder why there weren't any common chips which e.g. contained two pairs of NANDs, with the output of the first NAND in each pair tied to the second (as well as being exposed), along with an extra inverter? In a lot of circuit of the day, a lot of NAND's would have one input coming from another NAND, and inverters were often useful. I would think a chip as described would have allowed many designs to use fewer chips. – supercat Jan 06 '13 at 18:35