Lably
Skip to content

74181

First arithmetic logic unit (ALU) on a single chip

  • 5 min read
  • 5 chapters

Related on Lably

Through Arithmetic logic unit, Logic gate and Microprocessor

The 74181 represents an evolutionary step between the CPUs of the 1960s, which were constructed using discrete logic gates, and single-chip microprocessors of the 1970s. Although no longer used in commercial products, the 74181 later was used in hands-on computer architecture courses and is still referenced in textbooks and technical papers.

Specifications

The 74181 is a 7400 series medium-scale integration (MSI) TTL integrated circuit, containing the equivalent of 75 logic gates and most commonly packaged as a 24-pin DIP. The 4-bit wide ALU can perform all the traditional add / subtract / decrement operations with or without carry, as well as AND / NAND, OR / NOR, XOR, and shift. Many variations of these basic functions are available, for a total of 16 arithmetic and 16 logical operations on two four-bit words. Multiply and divide functions are not provided but can be performed in multiple steps using the shift and add or subtract functions.

Shift is not an explicit function but can be derived from several available functions; e.g., selecting function "A plus A" with carry (M=0) will give an arithmetic left shift of the A input. Right shifts are not supported.

The 74181 performs operations on two four-bit operands generating a four-bit result with carry in 22 nanoseconds (45 MHz). The 74S181 performs the same operations in 11 nanoseconds (90 MHz), while the 74F181 performs the operations in 7 nanoseconds (143 MHz) (typical).

Multiple slices can be combined for arbitrarily large word sizes. For example, sixteen 74S181s and five 74S182 look ahead carry generators can be combined to perform the same operations on 64-bit operands in 28 nanoseconds (36 MHz). Although overshadowed by the performance of today's multi-gigahertz 64-bit microprocessors, this was quite impressive when compared to the single-digit megahertz clock speeds of the early eight-bit microprocessors.

Implemented functions

The 74181 implements all 16 possible logical functions with two variables. Its arithmetic functions include addition and subtraction with and without carry. It can be used with active-high data, in which a high logic level corresponds to 1, and active-low data, in which a low logic level corresponds to 1.

Inputs and outputs

There are four selection inputs, S0 to S3, to select the function. M is used to select between logical and arithmetic operation, and Cn is the carry-in. A and B is the data to be processed (four bits). F is the number output. There are also P and a G signals for a carry-lookahead adder, which can be implemented via one or several 74182 chips.

Function table for output F

In the following table, AND is denoted as a product, OR with a + sign, XOR with ⊕, logical NOT with an overbar and arithmetic plus and minus using the words plus and minus.

Sign in to keep reading

4 more chapters are free with a Lably account.

More in Computing and communication