Presentation is loading. Please wait.

Presentation is loading. Please wait.

4/11/03 Minute Paper How does MS window work? Like how do we have the screen on the computer. Is it just a bunch of Binary #’s representing colors? When.

Similar presentations


Presentation on theme: "4/11/03 Minute Paper How does MS window work? Like how do we have the screen on the computer. Is it just a bunch of Binary #’s representing colors? When."— Presentation transcript:

1 4/11/03 Minute Paper How does MS window work? Like how do we have the screen on the computer. Is it just a bunch of Binary #’s representing colors? When you turn off your computer, how does the clock keep going? How does a transistor radio work?

2 Example of Gate Combinations Using the truth tables above, construct the truth table for the following combination of gates: What does this circuit accomplish? ABDEC 00010 01111 10111 11100 Detect whether the inputs are the same or not

3 Concept Check: Logic Gate Which of the following inputs yields D = 1? ABC a: 110 b: 001 c: 011 Answer: a and c

4 De Morgan’s Laws

5 Rules of Boolean Algebra 1.0+X=X 2.1+X=1 3.X+X=X 4.0·X=0 5.1·X=X 6.X·X=X 7.X·X=0 8.X·Y=Y·X 9.X+X·Y=X+Y 10.(X+Y)=X·Y 11.X+Y=X·Y Example: Simplify the following function

6 Several realization of NOT 1. This is how a NOT operation is often represented schematically. 2. Sometimes the NOT operation is shown explicitly as a gate. 3. Tying the inputs of a dual-input NAND gate will yield a NOT gate. 4. Tying the inputs of a dual-input NOR gate will similarly yield a NOT gate.

7 Truth Table Set-Ups for Karnaugh Maps Each truth table consists of 2 n cells, where n is the number of inputs (logic variables). Two Inputs (4 cells) B 0 1 A\ 0 __ 1 The row and column assignments for two or more variables are arranged so that adjacent terms change by only one bit. That is, the possibilities of AB are considered as 00, 01, 11, and 10 in turn, rather than 00, 01, 10, and 11 as often is written sequence in ordinary truth tables. (In going from 01 to 10, both bits would be changed.) This type of construction facilitates identification of supercells that are used to simplify gate combinations for realizing the desired truth table. Three Inputs (8 cells) C 0 1 AB\ 00 __ 01 __ 11 __ 10 __ BC 00 01 11 10 A\ 0 __ 1 OR

8 Truth Table Set-Ups for Karnaugh Maps Four Inputs (16 cells) CD 00 01 11 10 AB\ 00 __ 01 __ 11 __ 10 __

9 Box Ones for Sum of Products Consider the following truth table for three inputs: A B C O 000 0 001 0 010 1 011 1 100 1 101 0 110 1 111 0 The truth table expressed in a form suitable for Karnaugh mapping: BC 00 01 11 10 A\ 0 0 0 1 1 1 1 0 0 1 Boxing the ones: BC 00 01 11 10 A\ 0 0 0 1 1 1 1 0 0 1 The red cells form a 1x2 supercell represented by A'. B. The green cells form a 1x2 wrapped supercell represented by A·C'. The resulting Boolean expression for this truth table, a sum of products, is A'·B + A·C'. This realization requires five gates as shown below: Supercell has to contain 2 n ones Make cells as big as possible Edge of Karnaugh is considered connected Finish all the ones

10 Boxing Zeroes for Product of Sums Consider again the following truth table for three inputs: A B C O 000 0 001 0 010 1 011 1 100 1 101 0 110 1 111 0 The truth table expressed in a form suitable for Karnaugh mapping: BC 00 01 11 10 A\ 0 0 0 1 1 1 1 0 0 1 Boxing the zeroes: BC 00 01 11 10 A\ 0 0 0 1 1 1 1 0 0 1 The red cells form a 1x2 supercell represented by A'. B'. (A'. B' + A. C)' = (A'. B')'. (A. C)'by one application of De Morgan's theorem. = (A+B). (A. C)'by application of the other De Morgan's theorem. = (A+B). (A'+C')again by application of De Morgan's theorem. Thus results the product of sums! The green cells form a 1x2 supercell represented by A·C. The resulting Boolean expression for this truth table is the complement of the sum of these cells, (A'·B' + A·C)'. This still looks like a sum of products, just NOTted! Several applications of De Morgan's theorems will yield the desired product of sums:

11 Boxing zeroes: cont. NOTE: The minimum realization requires only three gates. This results from the next to last line in the application of De Morgan's theorems above. (A'·B' + A·C)'= (A+B) · (A'+C') =(A+B) · (A·C)' This realization again requires five gates as shown below:

12 Example: 7 Segment Displays BA 00 01 11 10 DC\ 00 1011 01 0111 11 xxxx 10 11xx Decimal Number Inputs Outputs DCBA abcdefg 01234567890123456789 00000000110000000011 00001111000000111100 00110011000011001100 01010101010101010101 10110111111011011111 11111001111111100111 11011111111101111111 10110110111011011011 10100010101010001010 10001110111000111011 00111110110011111011

13 Example: 7 Segment Displays, Segment a BA 00 01 11 10 DC\ 00 1011 01 0111 11 xxxx 10 11xx Red cells are represented by B; this is a 4x2 supercell. BA 00 01 11 10 DC\ 00 1011 01 0111 11 xxxx 10 11xx Green cells are represented by D; this is a 2x4 supercell. BA 00 01 11 10 DC\ 00 1011 01 0111 11 xxxx 10 11xx Blue cells are represented by A. C; BA 00 01 11 10 DC\ 00 1011 01 0111 11 xxxx 10 11xx Cyan cells are represented by A'. C'; All cells are represented by B + D + A·C + A' · C'


Download ppt "4/11/03 Minute Paper How does MS window work? Like how do we have the screen on the computer. Is it just a bunch of Binary #’s representing colors? When."

Similar presentations


Ads by Google