Académique Documents
Professionnel Documents
Culture Documents
Digital circuits are frequently used for arithmetic operations Fundamental arithmetic operations on binary numbers and digital circuits which perform arithmetic operations will be examined. HDL will be used to describe arithmetic circuits.
Ronald Tocci/Neal Widmer/Gregory Moss Digital Systems: Principles and Applications, 10e
Copyright 2007 by Pearson Education, Inc. Columbus, OH 43235 All rights reserved...
An arithmetic/logic unit (ALU) accepts data stored in memory and executes arithmetic and logic operations as instructed by the control unit.
Ronald Tocci/Neal Widmer/Gregory Moss Digital Systems: Principles and Applications, 10e
Copyright 2007 by Pearson Education, Inc. Columbus, OH 43235 All rights reserved..
Control unit is instructed to add a specific number from a memory location to a number stored in the accumulator register. The number is transferred from memory to the B register. Number in B register and accumulator register are added in the logic circuit, with sum sent to accumulator for storage. The new number remains in the accumulator for further operations or can be transferred to memory for storage.
Ronald Tocci/Neal Widmer/Gregory Moss Digital Systems: Principles and Applications, 10e
Copyright 2007 by Pearson Education, Inc. Columbus, OH 43235 All rights reserved..
The A and B variables represent 2 binary numbers to be added. The C variables are the carries. The S variables are the sum bits.
Ronald Tocci/Neal Widmer/Gregory Moss Digital Systems: Principles and Applications, 10e
Copyright 2007 by Pearson Education, Inc. Columbus, OH 43235 All rights reserved..
Construct a truth table of 3 inputs (2 numbers to be added and carry in) and 2 outputs (sum and carry out). Use algebraic methods or K-maps to simplify the resulting SOP form. The result is the logic circuit shown in Figure 6-7. The design process for a half adder is similar, but there is no carry in so there will be only 2 input bits.
Ronald Tocci/Neal Widmer/Gregory Moss Digital Systems: Principles and Applications, 10e
Copyright 2007 by Pearson Education, Inc. Columbus, OH 43235 All rights reserved..
A transfer of data to or from a register is indicated with an arrow [B][A] means the contents of register B have been transferred to register A. This is a common form of notation and is also found in HDL.
Ronald Tocci/Neal Widmer/Gregory Moss Digital Systems: Principles and Applications, 10e
Copyright 2007 by Pearson Education, Inc. Columbus, OH 43235 All rights reserved..
The following describes adding binary 1001 and 0101 using the parallel adder: A CLR pulse is applied at t1 The first binary number 1001 is transferred from memory to the B register at t2 The sum of 1001 and 0000 is transferred to the A register at t3 0101 is loaded from memory to the B register at t4 The sum outputs are transferred to the A register at t5 The sum of the two numbers is now present in the accumulator.
Parallel adder speed is limited by carry propagation (also called carry ripple). Carry propagation results from having to wait for the carry bits to ripple through the device. Additional bits will introduce more delay. Various techniques have been developed to reduce the delay. The look-ahead carry scheme is commonly used in high speed devices.
Copyright 2007 by Pearson Education, Inc. Columbus, OH 43235 All rights reserved..
Ronald Tocci/Neal Widmer/Gregory Moss Digital Systems: Principles and Applications, 10e
The most common parallel adder is a 4 bit device with 4 interconnected FAs and look-ahead Carry circuits. The A and B lines each represent 4 bit numbers to be added. The C0 is the carry in, the C4 is the carry out, and the lines are the sum of the two numbers.
Ronald Tocci/Neal Widmer/Gregory Moss Digital Systems: Principles and Applications, 10e
Copyright 2007 by Pearson Education, Inc. Columbus, OH 43235 All rights reserved..
Parallel adders may be cascaded together as shown to add larger numbers, in this case two 8 bit numbers.
Ronald Tocci/Neal Widmer/Gregory Moss Digital Systems: Principles and Applications, 10e
Copyright 2007 by Pearson Education, Inc. Columbus, OH 43235 All rights reserved..
Addition of negative and positive numbers using adders is done by placing the negative number into 2s complement form and performing normal addition. Subtraction is done by converting the number to be subtracted (subtrahend) to 2s complement and adding to the minuend. An adder can be used to perform addition and subtraction by designing a way to take the 2s complement for subtraction as described in Figure 6-13. To calculate the 2s complement, read a binary number from right to left and complement all bits after the first 1.
Copyright 2007 by Pearson Education, Inc. Columbus, OH 43235 All rights reserved..
Ronald Tocci/Neal Widmer/Gregory Moss Digital Systems: Principles and Applications, 10e
ALUs can perform different arithmetic and logic functions as determined by a binary code on the function select inputs. There are many different devices. The 74LS382 (TTL) and HC382 (CMOS) is a typical device with 8 possible functions.
Ronald Tocci/Neal Widmer/Gregory Moss Digital Systems: Principles and Applications, 10e
Copyright 2007 by Pearson Education, Inc. Columbus, OH 43235 All rights reserved..
Ronald Tocci/Neal Widmer/Gregory Moss Digital Systems: Principles and Applications, 10e
Copyright 2007 by Pearson Education, Inc. Columbus, OH 43235 All rights reserved..
Prob. 6.22 Find the minimum time between the PGT of LOAD and PGT of TRANSFER for proper operation
Complete four-bit parallel adder with registers: tplh=tphl = 30 ns, ts=10ns, and the FA tp = 40ns.
Prob 6-40 Declare [a] and [b] 8-bit inputs and [z] output in VHDL
Prob 6-42 Given [a] = 10010111, [b] = 00101100. What is the value of the following.
Prob 6-44 Shift bits in [a] one bit to the right. The LSB should move to the MSB position.
6.53 For a 4-bit adder, design a circuit that will set the following flags on the transfer pulse: S (sign), Z(zero), and C (carry)