Logic Design
-
Upload
percival-a-fernandez -
Category
Documents
-
view
215 -
download
1
description
Transcript of Logic Design
![Page 1: Logic Design](https://reader036.fdocuments.us/reader036/viewer/2022080100/56d6be501a28ab30169196fd/html5/thumbnails/1.jpg)
Logic Design and Digital Computer CircuitCMSC208
Percival A. Fernandez
![Page 2: Logic Design](https://reader036.fdocuments.us/reader036/viewer/2022080100/56d6be501a28ab30169196fd/html5/thumbnails/2.jpg)
Digital BasicsComponents of Digital BasicsBinary SystemsDigital Circuit TypesDesign TechniquesLogic OperationsNumber RepresentationsRepresentationsGatesKarnaugh Maps
![Page 3: Logic Design](https://reader036.fdocuments.us/reader036/viewer/2022080100/56d6be501a28ab30169196fd/html5/thumbnails/3.jpg)
Digital BasicsDigital vs Analog Signals
real world vs digital world Zero/low and One/high
Digital logicSwitching algebra (Boolean)Circuits to realize Boolean functions (gates)
![Page 4: Logic Design](https://reader036.fdocuments.us/reader036/viewer/2022080100/56d6be501a28ab30169196fd/html5/thumbnails/4.jpg)
Digital BasicsAnalog versus Digital ElectronicsMost (but not all) observables are analog
◦think of analog versus digital watchesBut the most convenient way to
represent and transmit information electronically is digital◦think of audio recordings vs original Edison wax
recordingsAnalog/Digital and Digital/Analog
conversion is essential (and nothing new)◦think of a piano keyboard vs violin
![Page 5: Logic Design](https://reader036.fdocuments.us/reader036/viewer/2022080100/56d6be501a28ab30169196fd/html5/thumbnails/5.jpg)
Logical Operations and Truth Tables
At first glance, it may not seem that the study of logic should be part of mathematics. For most of us, the word logic is associated with reasoning in a very nebulous way.
The purpose of logic is to enable the logician to construct valid arguments which satisfy the basic principle
![Page 6: Logic Design](https://reader036.fdocuments.us/reader036/viewer/2022080100/56d6be501a28ab30169196fd/html5/thumbnails/6.jpg)
Logical Operations
A logical variable can only have the value True or False. That is, True and False are the "numerical constants" of logic. And instead of the usual arithmetic operators (addition, subtraction, etc.), the logical operators are "AND", "OR", "NOT", "XOR" ("eXclusive OR"), "IMPLIES" and "EQUIVALENCE".
![Page 7: Logic Design](https://reader036.fdocuments.us/reader036/viewer/2022080100/56d6be501a28ab30169196fd/html5/thumbnails/7.jpg)
Truth Tables
In logic, we only have two "numbers": True and False. Therefore, any logical statement which contains a finite number of logical variables (which of course covers any problem we have to deal with) can be analyzed using a table which lists all possible values of the variables: a "truth table".
![Page 8: Logic Design](https://reader036.fdocuments.us/reader036/viewer/2022080100/56d6be501a28ab30169196fd/html5/thumbnails/8.jpg)
Truth TablesSince each variable can take only two
values, a statement with "n" variables requires a table with 2n rows. Using the letters "p", "q", "r", etc., to represent logical variables, we can construct truth tables for statements involving any number of variables (although we will usually limit ourselves to at most three variables per statement to simplify the matter): p
TF
![Page 9: Logic Design](https://reader036.fdocuments.us/reader036/viewer/2022080100/56d6be501a28ab30169196fd/html5/thumbnails/9.jpg)
Truth Tables• for statements with one variable,
p q rT T TT T FT F TT F FF T TF T FF F TF F F
![Page 10: Logic Design](https://reader036.fdocuments.us/reader036/viewer/2022080100/56d6be501a28ab30169196fd/html5/thumbnails/10.jpg)
Logic Operations – Logic Basics
Logic operations include any operations that manipulate Boolean values. Boolean values are either true or false.
They are named after English mathematician George Boole, who invented Boolean algebra, and is widely considered the founder of computer science theory. They can also be represented as 1 and 0. Normally, 1 represents true, and 0 represents false, but it could be the other way around.
The basic Boolean operators are and (^), or (v), and not ('). Boolean functions can be built from these three basic operators.
![Page 11: Logic Design](https://reader036.fdocuments.us/reader036/viewer/2022080100/56d6be501a28ab30169196fd/html5/thumbnails/11.jpg)
Truth Tables Given two
Boolean variables A and B, the Boolean expression A ^ B is true only if both A and B are true. The truth table below illustrates all possible combinations with the AND operator.
A B A ^ B
0 0 0
0 1 0
1 0 0
1 1 1
Table 1. The AND Operator
![Page 12: Logic Design](https://reader036.fdocuments.us/reader036/viewer/2022080100/56d6be501a28ab30169196fd/html5/thumbnails/12.jpg)
Truth Tables Not A is true
when A is false, and vice-versa.
Table 1. The NOT Operator
A A'0 11 0
![Page 13: Logic Design](https://reader036.fdocuments.us/reader036/viewer/2022080100/56d6be501a28ab30169196fd/html5/thumbnails/13.jpg)
The End
References: http://www.electronicsteacher.com/computer-
architectures/digital-circuits/combinatorial.php http://www.buzzle.com/articles/different-types-of-
computers.html Structured Computer Organization, Andrew S.
Tanembaum