Presentation is loading. Please wait.

Presentation is loading. Please wait.

Power Point Presentation Donald Bearden CS 147 September 13, 2001.

Similar presentations


Presentation on theme: "Power Point Presentation Donald Bearden CS 147 September 13, 2001."— Presentation transcript:

1 Power Point Presentation Donald Bearden CS 147 September 13, 2001

2 Topics Covered: n Sec 1.3.5: Adders and Subtractors n Sec 1.3.6: Memory n Sec 1.4.1: BCD to 7-segment Decoder n Sec 1.4.2: Data Sorters

3 1.3.5: Adders and Subtractors n The circuits used to perform arithmetic operations are constructed using combinatorial logic. ADDERS are the most commonly used. n HALF ADDERS are the most basic of the adders. It inputs two 1-bit values, X and Y and outputs their 2-bit sum as bits C(carry) and S(sum).

4 A half adder: n Truth table: n X Y | C S n ------------- n 0 0 | 0 0 n 0 1 | 0 1 n 1 0 | 0 1 n 1 1 | 1 0 Half adder X Y C S

5 1.3.5: Adders and Subtractors n FULL ADDER was developed to add numbers that are more than one bit wide. It has three inputs: the two data inputs and a carry input(Cin). The output is the same as the half adder.

6 FULL ADDER: n Truth table: n X Y Cin | C S n ------------------- n 0 0 0 | 0 0 n 0 0 1 | 0 1 n 0 1 0 | 0 1 n 0 1 1 | 1 0 n 1 0 0 | 0 1 n 1 0 1 | 1 0 n 1 1 1 | 1 0 n 1 1 1 | 1 1 n Full adder Cin X Y S C

7 1.3.5: Adders and Subtractors n RIPPLE ADDER: full adders cascaded to produce an n-bit adder by connecting output C of an adder to Cin of th enext adder. The reason it’s called a ripple adder is the carry bits ripple through the adder. n Each full adder has a small PROPAGATION DELAY, which adds up as the carry bits are propagated, or ripple, from right to left. n One solution to the delay problem is the CARRY LOOKAHEAD ADDER. This adder breaks the implementation of the carry into two parts: the GENERATE, g part and the PROPAGATE, p.

8 1.3.5: Adders and Subtractors n FULL SUBTRACTORS are logic components that directly subtract two values. It has three inputs: two data inputs and a borrow input. n TWO’s COMPLEMENT can also be used to implement subtraction. Two’s complement of a value is the negative of that value. It is generated by complementing the value and adding 1.

9 1.3.6: MEMORY n MEMORY is a group of circuits used to store data. Although not strictly combinatorial in design, it can be used as combinatorial components in digital circuits. n A memory component has some number of memory locations, each of which stores a binary value of some fixed length. n The number of locations and the size of each location vary from memory chip to memory chip, but are fixed within an individual chip. n The size of the chip is denoted as the number of locations times the number of bits in each location. A memory chip of size 512 x 8 has 512 memory. n A memory chip with 2(n) locations requires n ADDRESS inputs., n The DATA pins on a memory chip are used to access the data.

10 1.3.6: Memory n The two primary classes of chips are: ROM(Read only memory) and RAM(Random access memory). n Data is programmed into the ROM chip using a separate ROM programmer. The circuit does not change the contents of the ROM. n PC’s use ROM to store the instructions that constitute their BIOS(Basic input/output system).When power is removed from a ROM chip, it still maintains its data. ROM is nonvolatile. n RAM is often referred to as read/write memory. Unlike ROM, it initially contains no data. Data can flow in to or out of the chip, as opposed to ROM, which are output only. RAM loses its data once power is removed; it is volatile.

11 Combinatorial Circuit Designs: n Many circuits can be designed using gates and components. Two of these designs are: BINARY CODED DECIMAL(BCD) to 7-segment decode and a simple DATA SORTER.

12 1.4.1: BCD to 7-segment Decoder n BCD(Binary coded decimal) to 7-segment decoder is used in digital displays.It converts the binary representation of a decimal digit, 0000 to 1001 to the signals needed to show the digit on a 7-segment LED display. n This circuit is actually seven distinct circuits, one for each segment, a through g. The design process for each is the same. For many applications, it is preferable to use ACTIVE LOW display-that is, a 0 lights the display and a 1 blanks the display.

13 7-Segment LED display a f b e c g d Segment labels: Patterns: 0 1 2 3 4 5 6 7 8 9

14 1.4.2: Data Sorter n A simple DATA SORTER will input a 4-bit values and output them in descending order. The basic building block of this circuit is the compare-and- swap modules. It receives two data inputs and compares them using the 4-bit comparator.

15 Four-input data sorter max min max min max min max min X Y XYXY XYXY XYXY XYXY abab CdCd


Download ppt "Power Point Presentation Donald Bearden CS 147 September 13, 2001."

Similar presentations


Ads by Google