SlideShare a Scribd company logo
1 of 40
VViiddeeoo LLeeccttuurreess ffoorr BBBBAA 
By: 
Video.edhole.com
Computer LLooggiicc aanndd DDiiggiittaall DDeessiiggnn 
CChhaapptteerr 11 
HHeennrryy HHeexxmmoooorr 
• An Overview of Computer Organization 
• Switches and Transistors 
• Boolean Algebra and Logic 
• Binary Arithmetic and Number Systems 
• Combinational Logic and Circuits 
• Sequential Logic and Circuits 
• Memory Logic Design 
• The DataPathUnit 
Henry Hexmoor 2 Video.edhole.com
BBaassiicc DDeeffiinniittiioonnss 
• Computer Architecture is the programmer’s perspective on 
functional behavior of a computer (e.g., 32 bits to represent an 
integer value) 
• Computer organization is the internal structural relationships 
not visible to a programmer…e.g., physical memory 
Henry Hexmoor 3 
Memory 
CPU = Control unit + 
datapath 
Video.edhole.com I/O
Hierarchy ooff CCoommppuutteerr AArrcchhiitteeccttuurree 
High-Level Language Programs 
Instr. Set Proc. I/O system 
Henry Hexmoor 4 
Compiler 
Operating 
System 
Application 
Digital Design 
Circuit Design 
Instruction Set 
Architecture 
Firmware 
Datapath & Control 
Layout 
Software 
Machine Language 
Program 
Software/Hardware 
Boundary 
Hardware 
Assembly Language 
Programs 
Microprogram 
Register Transfer 
Notation (RTN) 
Logic Diagrams 
Video.Circuit edhole.Diagrams 
com
BBaassiicc DDeeffiinniittiioonnss 
• Architectural levels: Programs and applications to transistors 
• Electrical Signals: discrete, atomic elements of a digital system…binary values… 
Henry Hexmoor 5 
input output 
An ideal switch 
Video.edhole.com
IInnttrroodduuccttiioonn ttoo DDiiggiittaall SSyysstteemmss 
Analog devices and systems process time-varying 
signals that can take on any value across 
a continuous range. 
Analog Signal 
Digital systems use digital circuits that process 
digital signals which can take on one of two 
values, we call: 
High 
Low 
0 and 1 (digits of the binary number system) 
or LOW and HIGH 
or FALSE and TRUE 
Digital Signal 
 Digital computers represent the most common digital systems. 
 Once-analog Systems that use digital systems today: 
◦ Audio recording (CDs, DAT, mp3) 
◦ Phone system switching 
◦ Automobile engine control 
◦ Movie effects 
◦ Still and video cameras…. 
Digital 
circuit 
inputs : : outputs 
Henry Hexmoor 6 
Video.edhole.com
Eight Advantages of Digital Systems OOvveerr AAnnaalloogg SSyysstteemmss 
1. Reproducibility of the results 
2. Accuracy of results 
3. More reliable than analog systems due to better 
immunity to noise. 
4. Ease of design: No special math skills needed to 
visualize the behavior of small digital (logic) circuits. 
5. Flexibility and functionality. 
6. Programmability. 
7. Speed: A digital logic element can produce an output in 
less than 10 nanoseconds (10-8 seconds). 
8. Economy: Due to the integration of millions of digital 
logic elements on a single miniature chip forming low 
cost integrated circuit (ICs). 
Henry Hexmoor 7 Video.edhole.com
BBoooolleeaann AAllggeebbrraa 
What is an Algebra? (e.g. algebra of integers) 
 Boolean Algebra named after George Boole who used it 
to study human logical reasoning – calculus of 
proposition. 
 Elements : true or false ( 0, 1) 
 Operations: a OR b; a AND b, NOT a 
e.g. 0 OR 1 = 1 0 OR 0 = 0 
1 AND 1 = 1 1 AND 0 = 0 
NOT 0 = 1 NOT 1 = 0 
Henry Hexmoor 8 
set of elements (e.g. 0,1,2,..) 
set of operations (e.g. +, -, *,..) 
postulates/axioms (e.g. 0+x=x,..) 
Video.edhole.com
DDiiggiittaall ((llooggiicc)) EElleemmeennttss:: GGaatteess 
 Digital devices or gates have one or more inputs and 
produce an output that is a function of the current input 
value(s). 
 All inputs and outputs are binary and can only take the 
values 0 or 1 
 A gate is called a combinational circuit because the output 
only depends on the current input combination. 
 Digital circuits are created by using a number of 
connected gates such as the output of a gate is connected 
to to the input of one or more gates in such a way to 
achieve specific outputs for input values. 
 Digital or logic design is concerned with the design of such 
circuits. 
Henry Hexmoor 9 Video.edhole.com
BBoooolleeaann AAllggeebbrraa 
 Set of Elements: {0,1} 
 Set of Operations: {., + , ¬ } 
Signals: High = 5V = 1; Low = 0V = 0 
Henry Hexmoor 10 
x y x . y 
0 0 0 
0 1 0 
1 0 0 
1 1 1 
x y x + y 
0 0 0 
0 1 1 
1 0 1 
1 1 1 
x ¬x 
0 1 
1 0 
x 
y 
x.y 
x 
y 
x+y x x' 
AND OR 
NOT 
Video.edhole.com
LLooggiicc GGaatteess 
Henry Hexmoor 11 
EXCLUSIVE OR 
a 
b a.b 
a 
b a+b 
a a' 
a 
b (a.b)' 
a 
b (a+b)' 
a 
b a Å b 
a 
b a.b & 
a 
b a+b + 
AND 
a 1 a' 
a 
b (a.b)' & 
a 
b (a+b)' ³1 
a 
b a Å b =1 
OR 
NOT 
NAND 
NOR 
Symbol set 1 Symbol set 2 
(ANSI/IEEE Standard 91-1984) 
Video.edhole.com
TTrruutthh TTaabblleess 
Provide a listing of every possible combination of values 
of binary inputs to a digital circuit and the 
corresponding outputs. 
inputs outputs 
x 
x . y 
y 
Henry Hexmoor 12 
x y x . y x + y 
0 0 0 0 
0 1 0 1 
1 0 0 1 
1 1 1 1 
INPUTS OUTPUTS 
… … 
… … 
• Example (2 inputs, 2 outputs): 
Digital 
circuit 
inputs outputs 
x + y 
Truth table 
Video.edhole.com
LLooggiicc GGaatteess:: TThhee AANNDD GGaattee 
 The AND Gate 
A B A . B 
0 0 0 
0 1 0 
1 0 0 
1 1 1 
Henry Hexmoor 13 
A 
B 
A.B 
Truth table 
14 13 12 11 10 9 8 
1 2 3 4 5 6 7 
Ground 
Vcc 
Top View of a TTL 74LS family 74LS08 Quad 2-input AND Gate IC Package Video.edhole.com
LLooggiicc GGaatteess:: TThhee OORR GGaattee 
 The OR Gate 
Henry Hexmoor 14 
A 
B 
A+B 
A B A + B 
0 0 0 
0 1 1 
1 0 1 
1 1 1 
Truth table 
Top View of a TTL 74LS family 74LS08 Quad 2-input OR Gate IC Package Video.edhole.com
LLooggiicc GGaatteess:: TThhee NNAANNDD GGaattee 
 The NAND Gate 
º (A.B)' 
• NAND gate is self-sufficient (can build any logic circuit with it). 
• Can be used to implement AND/OR/NOT. 
• Implementing an inverter using NAND gate: x x' 
Henry Hexmoor 15 
A 
B (A.B)' A 
B 
A B (A.B)' 
0 0 1 
0 1 1 
1 0 1 
1 1 0 
Truth table 
Video.edhole.com 
Top View of a TTL 74LS family 74LS00 Quad 2-input NAND Gate IC Package
LLooggiicc GGaatteess:: TThhee NNOORR GGaattee 
 The NOR Gate 
• NOR gate is also self-sufficient (can build any logic circuit with 
it). 
• Can be used to implement AND/OR/NOT. 
• Implementing an inverter using NOR gate: x x' 
Henry Hexmoor 16 
º A 
B 
(A+B)' A 
B 
(A+B)' 
A B (A+B)' 
0 0 1 
0 1 0 
1 0 0 
1 1 0 
Truth table 
Video.edhole.com 
Top View of a TTL 74LS family 74LS02 Quad 2-input NOR Gate IC Package
LLooggiicc GGaatteess:: TThhee XXOORR GGaattee 
 The XOR Gate 
Henry Hexmoor 17 
A 
B 
14 13 12 11 10 9 8 
1 2 3 4 5 6 7 
Ground 
Vcc 
A Å B 
A B A Å B 
0 0 0 
0 1 1 
1 0 1 
1 1 0 
Truth table 
Top View of a TTL 74LS family 74LS86 Quad 2-input XOR Gate IC Package Video.edhole.com
DDrraawwiinngg LLooggiicc CCiirrccuuiittss When a Boolean expression is provided, 
we can easily draw the logic circuit. 
Examples: 
F1 = xyz' 
(note the use of a 3-input AND gate) 
Henry Hexmoor 18 
x 
y 
z 
F1 
z' 
Video.edhole.com
AAnnaallyyzziinngg LLooggiicc CCiirrccuuiittss 
When a logic circuit is provided, we can analyze the circuit 
to obtain the logic expression. 
 Example: What is the Boolean expression of F4? 
A'B' A'B'+C (A'B'+C)' 
Henry Hexmoor 19 
A' 
B' 
C 
F4 
F4 = (A'B'+C)' 
Video.edhole.com
IInntteeggrraatteedd CCiirrccuuiittss  An Integrated circuit (IC) is a number of logic gated 
fabricated on a single silicon chip. 
 ICs can be classified according to how many gates they 
contain as follows: 
◦ Small-Scale Integration (SSI): Contain 1 to 20 gates. 
◦ Medium-Scale Integration (MSI): Contain 20 to 200 gates. 
Examples: Registers, decoders, counters. 
◦ Large-Scale Integration (LSI): Contain 200 to 200,000 gates. 
Include small memories, some microprocessors, programmable logic 
devices. 
◦ Very Large-Scale Integration (VLSI): Usually stated in terms of 
number of transistors contained usually over 1,000,000. Includes most 
microprocessors and memories. 
Henry Hexmoor 20 Video.edhole.com
CCoommppuutteerr HHaarrddwwaarree GGeenneerraattiioonnss 
The First Generation, 1946-59: Vacuum Tubes, Relays, 
Mercury Delay Lines: 
◦ ENIAC (Electronic Numerical Integrator and Computer): First electronic 
computer, 18000 vacuum tubes, 1500 relays, 5000 additions/sec. 
◦ First stored program computer: EDSAC (Electronic Delay Storage Automatic 
Calculator). 
The Second Generation, 1959-64: Discrete Transistors. 
(e.g IBM 7000 series, DEC PDP- 
1) 
The Third Generation, 1964-75: Small and Medium-Scale 
Integrated (SSI, MSI) Circuits. (e.g. IBM 360 mainframe) 
The Fourth Generation, 1975-Present: The Microcomputer. 
VLSI-based Microprocessors. 
Henry Hexmoor 21 Video.edhole.com
IInntteennttiioonnaallllyy lleefftt bbllaannkk 
Henry Hexmoor 22 Video.edhole.com
PPoossiittiioonnaall NNuummbbeerr SSyysstteemmss 
 A number system consists of an order set of symbols (digits) with 
relations defined for +,-,*, / 
 The radix (or base) of the number system is the total number of digits 
allowed in the the number system. 
◦ Example, for the decimal number system: 
 Radix, r = 10, Digits allowed = 0,1, 2, 3, 4, 5, 6, 7, 8, 9 
 In positional number systems, a number is represented by a string of 
digits, where each digit position has an associated weight. 
 The value of a number is the weighted sum of the digits. 
 The general representation of an unsigned number D with whole and 
fraction portions number in a number system with radix r: 
Dr = d p-1 d p-2 ….. d1 d0.d-1 d-2 …. D-n 
 The number above has p digits to the left of the radix point and n 
fraction digits to the right. 
 A digit in position i has as associated weight ri 
 The value of the number is the sum of the digits multiplied by the 
associated weight ri : 
i n i D=å ´ - 
p 1 d ri 
=- 
Henry Hexmoor 23 Video.edhole.com
Number SSyysstteemmss UUsseedd iinn CCoommppuutteerrss 
Name 
of Radix Radix Set of Digits Example 
Decimal r=10 
{0,1} 111111112 
Decimal 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 
Hex 0 1 2 3 4 5 6 7 8 9 A B C D E F 
Henry Hexmoor 24 
r=2 
r= 8 
r=16 
{0,1,2,3,4,5,6,7,8,9} 25510 
Binary 
{0,1,2,3,4,5,6,7} 3778 
{0,1,2,3,4,5,6,7,8,9,A, B, C, D, E, F} FF16 
Octal 
Hexadecimal 
Binary 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 
Video.edhole.com
BBiinnaarryy nnuummbbeerrss 
• a bit: a binary digit representing a 0 or a 1. 
• Binary numbers are base 2 as opposed to base 10 typically used. 
• Instead of decimal places such as 1s, 10s, 100s, 1000s, etc., binary uses 
powers of two to have 1s, 2s, 4s, 8s, 16s, 32s, 64s, etc. 
1012=(1×22)+(0×21)+(1×20)=410 + 110 = 510 
101112=(1×24)+(0×23)+(1×22)+(1×21)+(1×20)=2310 
4110 = 41/2 + remainder = 11LSB 
= 20/2 + remainder = 0 2SB 
= 10/2 + remainder = 0 3SB 
= 5/2 + remainder = 1  4SB 
= 4/2 + remainder = 0  5SB 
= 2/2 = 1  6SB 
1010012 
Henry Hexmoor 25 Video.edhole.com
LLaarrggeesstt nnuummbbeerrss 
• the largest number of d digits in base R is 
Rd- 1 
Examples: 
3 digits of base 10: 103-1 = 999 
2 digits of base 16: 162 -1 = 255 
Henry Hexmoor 26 Video.edhole.com
DDeecciimmaall-ttoo-BBiinnaarryy CCoonnvveerrssiioonn 
 Separate the decimal number into whole and fraction portions. 
 To convert the whole number portion to binary, use successive 
division by 2 until the quotient is 0. The remainders form the 
answer, with the first remainder as the least significant bit 
(LSB) and the last as the most significant bit (MSB). 
 Example: Convert 17910 to binary: 
179 / 2 = 89 remainder 1 (LSB) 
/ 2 = 44 remainder 1 
/ 2 = 22 remainder 0 
/ 2 = 11 remainder 0 
/ 2 = 5 remainder 1 
/ 2 = 2 remainder 1 
/ 2 = 1 remainder 0 
/ 2 = 0 
remainder 1 (MSB) 
17910 = 101100112 
Henry Hexmoor 27 Video.edhole.com
DDeecciimmaall-ttoo-BBiinnaarryy eexxaammpplleess 
108/2 = 54 
54 * 2 = 108, 
remainder 0 
54 /2 = 27 
27 * 2 = 54, 
remainder 0 
27/2 = 13.5 
13 * 2 = 26, 
remainder 1 
13 /2 = 6.5 
6 * 2 = 12, 
remainder 1 
6/2 = 3 
3 * 2 = 6, 
remainder 0 
3/2 = 1 
1 * 2 = 2, 
remainder 1 
11011002 
7/2 = 3.5 
3 * 2 = 6, remainder 1 
3/2 = 1 
1 * 2 = 2, remainder 1 
1/2 = 0 
0 * 2 = 0, remainder 1 
1112 
11/2 = 5.5 
5 * 2 = 10, remainder 1 
5/2 = 2.5 
2 * 2 = 4, remainder 1 
2/2 = 1 
1 * 2 = 2, remainder 0 
1 / 2 = 0 
0 * 2 = 0, remainder 1 
10112 
Henry Hexmoor 28 
90/2 = 45 
45 * 2 = 90, remainder 0 
45/2 = 22.5 
22 * 2 = 44, remainder 1 
22 * 2 = 44, remainder 0 
22/2 = 11 
11 * 2 = 22, remainder 0 
11/2 = 5.5 
5 * 2 = 10, remainder 1 
5/2 = 2.5 
2 * 2 = 4, remainder 1 
2/2 = 1 
1 * 2 = 2, remainder 0 
1 / 2 = 0 
0 * 2 = 0, remainder 1 
10110102 
Video.edhole.com
DDeecciimmaall-ttoo-HHeexx eexxaammpplleess 
108/16 = 6.75 
20/16 = 1 
6 * 16 = 96, 
1 * 16 = 16, remainder 4 
remainder 12 
1/16 = 0 
6 /16 = 0 
0 * 16 = 0, remainder 1 
0 * 16 = 0, 
1416 
remainder 6 
6C16 
32/16 = 2 
2 * 16 = 32, remainder 0 
2 /16 = 0 
0 * 16 = 0, remainder 2 
2016 
90/16 = 5.625 
5 * 16 = 80, remainder 10 
5 / 16 = 0 
0 * 16 = 0, remainder 5 
5A16 
Henry Hexmoor 29 
160/16 = 10 
10 * 16 = 160, remainder 0 
10/16 = 0 
0 * 16 = 0, remainder 10 
A016 
Video.edhole.com
DDeecciimmaall-ttoo-OOccttaall eexxaammppllee 
108/8 = 13.5 
13 * 8 = 104, 
remainder 4 
13/8 = 1 
1 * 8 = 8, remainder 5 
1 / 8 = 0 
0 * 8 = 0, remainder 1 
1548 
10/8 = 1 
1 * 8 = 8, remainder 2 
1/8 = 0 
0 * 8 = 0, remainder 1 
128 
16/8 = 2 
2 * 8 = 16, remainder 0 
2/8 = 0 
0 * 8 = 0, remainder 2 
208 
Henry Hexmoor 30 
24/8 = 3 
3 * 8 = 24, remainder 0 
3/8 = 0 
0 * 8 = 0, remainder 3 
308 
Video.edhole.com
DDeecciimmaall--ttoo--BBiinnaarryy CCoonnvveerrssiioonn 
 To convert decimal fractions to binary, repeated multiplication by 2 is used, until 
the fractional product is 0 (or until the desired number of binary places). The whole 
digits of the multiplication results produce the answer, with the first as the MSB, 
and the last as the LSB. 
 Example: Convert 0.312510 to binary 
Result Digit 
.3125 ´ 2 = 0.625 0 (MSB) 
.625 ´ 2 = 1.25 1 
.25 ´ 2 = 0.50 0 
.5 ´ 2 = 1.0 1 (LSB) 
0.312510 = .01012 
Henry Hexmoor 31 Video.edhole.com
Binary Arithmetic OOppeerraattiioonnss -- AAddddiittiioonn 
 Similar to decimal number addition, two binary numbers 
are added by adding each pair of bits together with carry 
propagation. 
 Addition Example: 
1 0 1 1 1 1 0 0 0 
Carry 
X 190 1 0 1 1 1 1 1 0 
Y + 141 + 1 0 0 0 1 1 0 1 
0 + 0 = 0 
0 + 1 = 1 
1 + 0 = 1 
1 + 1 = 0 with a carry of 1 
X + Y 331 1 0 1 0 0 1 0 1 1 
Henry Hexmoor 32 
Video.edhole.com
BBiinnaarryy AArriitthhmmeettiicc-- 
ssuubbttrraaccttiioonn 
Henry Hexmoor 33 
95 = 1011111 
-16 = 0010000 
79 = 1001111 
0 – 0 = 0 
1 – 0 = 1 
1 – 1 = 0 
0 – 1 = 1 with a borrow of 1 
Video.edhole.com
Binary Arithmetic OOppeerraattiioonnss:: SSuubbttrraaccttiioonn 
 Two binary numbers are subtracted by subtracting each 
pair of bits together with borrowing, where needed. 
 Subtraction Example: 
0 0 1 1 1 1 1 0 0 
Borrow 
X 229 1 1 1 0 0 1 0 1 
Y - 46 - 0 0 1 0 1 1 1 0 
183 1 0 1 1 0 1 1 1 
Henry Hexmoor 34 Video.edhole.com
BBiinnaarryy AArriitthhmmeettiicc -- 
MMuullttiipplliiccaattiioonn 
Henry Hexmoor 35 
1011 
*101 
1011 
0000 
1011 
110111 
0 * 0 = 0 
0 * 1 = 0 
1 * 0 = 0 
1 * 1 = 1 
Video.edhole.com
Negative Binary NNuummbbeerr RReepprreesseennttaattiioonnss 
Signed-Magnitude Representation: 
◦ For an n-bit binary number: 
Use the first bit (most significant bit, MSB) position to 
represent the sign where 0 is positive and 1 is negative. 
Ex. 1 1 1 1 1 1 1 12 = - 12710 
◦ Remaining n-1 bits represent the magnitude which may range 
from: 
-2(n-1) + 1 to 2(n-1) - 1 
◦ This scheme has two representations for 0; i.e., both positive 
and negative 0: for 8 bits: 00000000, 10000000 
◦ Arithmetic under this scheme uses the sign bit to indicate the 
nature of the operation and the sign of the result, but the sign bit 
is not used as part of the arithmetic. 
Henry Hexmoor 36 
Sign Magnitude 
Video.edhole.com
PPaarriittyy bbiitt 
• Pad an extra bit to MSB side to make the number of 1’s to be even or 
odd. 
• Sender and receiver of messages make sure that even/odd transmission 
patterns match 
Henry Hexmoor 37 Video.edhole.com
GGrraayy ccooddeess 
• In binary codes, number of bit changes are not constant, 
0000010100111001011101111000… 
• bit changes in gray codes are constant 
•000001011010110111000… 
Henry Hexmoor 38 Video.edhole.com
Alphanumeric BBiinnaarryy CCooddeess:: AASSCCIIII 
Seven bit codes are used to represent all upper and lower case letters, numbers, 
punctuation and control characters 
Henry Hexmoor 39 
MSBs 
LSBs 000 001 010 011 100 101 110 111 
0000 NUL DLE SP 0 @ P ` p 
0001 SOH DC1 ! 1 A Q a q 
0010 STX DC2 “ 2 B R b r 
0011 ETX DC3 # 3 C S c s 
0100 EOT DC4 $ 4 D T d t 
0101 ENQ NAK % 5 E U e u 
0110 ACK SYN & 6 F V f v 
0111 BEL ETB ‘ 7 G W g w 
1000 BS CAN ( 8 H X h x 
1001 HT EM ) 9 I Y i y 
1010 LF SUB * : J Z j z 
1011 VT ESC + ; K [ k { 
1100 FF FS , < L  l | 
1101 CR GS - = M ] m } 
1110 O RS . > N ^ n ~ 
1111 SI US / ? O _ o DEL 
Video.edhole.com
HHWW 11 
1. What is the decimal equivalent of the largest 
integer that can be represented with 12 binary 
bits. 
2. Convert the following decimal numbers to 
binary: 125, 610, 2003, 18944. 
Henry Hexmoor 40 Video.edhole.com

More Related Content

What's hot (19)

PST SC015 Chapter 2 Computer System (III) 2017/2018
PST SC015 Chapter 2 Computer System (III) 2017/2018PST SC015 Chapter 2 Computer System (III) 2017/2018
PST SC015 Chapter 2 Computer System (III) 2017/2018
 
PDT DC015 Chapter 2 Computer System 2017/2018 (f)
PDT DC015 Chapter 2 Computer System 2017/2018 (f)PDT DC015 Chapter 2 Computer System 2017/2018 (f)
PDT DC015 Chapter 2 Computer System 2017/2018 (f)
 
Digital logic design part1
Digital logic design part1Digital logic design part1
Digital logic design part1
 
3. multiplexer
3. multiplexer3. multiplexer
3. multiplexer
 
DLD Presentation By Team Reboot,Rafin Rayan,EUB
DLD Presentation By Team Reboot,Rafin Rayan,EUBDLD Presentation By Team Reboot,Rafin Rayan,EUB
DLD Presentation By Team Reboot,Rafin Rayan,EUB
 
Basic electronics
Basic electronicsBasic electronics
Basic electronics
 
System design using HDL - Module 3
System design using HDL - Module 3System design using HDL - Module 3
System design using HDL - Module 3
 
Saur lecture 16
Saur lecture 16Saur lecture 16
Saur lecture 16
 
Scope of signals and systems
Scope of signals and systemsScope of signals and systems
Scope of signals and systems
 
COMPUTER ORGANIZATION -Multiplexer,Demultiplexer, Encoder
COMPUTER ORGANIZATION -Multiplexer,Demultiplexer, EncoderCOMPUTER ORGANIZATION -Multiplexer,Demultiplexer, Encoder
COMPUTER ORGANIZATION -Multiplexer,Demultiplexer, Encoder
 
Mux decod pld2_vs2
Mux decod pld2_vs2Mux decod pld2_vs2
Mux decod pld2_vs2
 
Logic Design
Logic DesignLogic Design
Logic Design
 
Hash& mac algorithms
Hash& mac algorithmsHash& mac algorithms
Hash& mac algorithms
 
Lecture 01 dld 2018
Lecture 01 dld  2018Lecture 01 dld  2018
Lecture 01 dld 2018
 
dld 01-introduction
dld 01-introductiondld 01-introduction
dld 01-introduction
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
 
Decoder for digital electronics
Decoder for digital electronicsDecoder for digital electronics
Decoder for digital electronics
 
DESIGN OF COMBINATIONAL LOGIC
DESIGN OF COMBINATIONAL LOGICDESIGN OF COMBINATIONAL LOGIC
DESIGN OF COMBINATIONAL LOGIC
 
decoder and encoder
 decoder and encoder decoder and encoder
decoder and encoder
 

Similar to Video lectures for bba

computer logic and digital design chapter 1
computer logic and digital design chapter 1computer logic and digital design chapter 1
computer logic and digital design chapter 1tendaisigauke3
 
Programmable Logic Controllers (PLCs) and SCADA Systems
Programmable Logic Controllers (PLCs) and SCADA SystemsProgrammable Logic Controllers (PLCs) and SCADA Systems
Programmable Logic Controllers (PLCs) and SCADA SystemsLiving Online
 
Unit 2a combinational circuits
Unit 2a combinational circuitsUnit 2a combinational circuits
Unit 2a combinational circuitsanshul sharma
 
Practical Programmable Logic Controllers (PLCs) for Automation and Process Co...
Practical Programmable Logic Controllers (PLCs) for Automation and Process Co...Practical Programmable Logic Controllers (PLCs) for Automation and Process Co...
Practical Programmable Logic Controllers (PLCs) for Automation and Process Co...Living Online
 
Digital VLSI Design and FPGA Implementation
Digital VLSI Design and FPGA ImplementationDigital VLSI Design and FPGA Implementation
Digital VLSI Design and FPGA ImplementationAmber Bhaumik
 
Programming pic microcontrollers
Programming pic microcontrollersProgramming pic microcontrollers
Programming pic microcontrollersMAIYO JOSPHAT
 
Digital electronics nandhini kusuma
Digital electronics nandhini kusumaDigital electronics nandhini kusuma
Digital electronics nandhini kusumakusuma11
 
Digital electronics nandhini kusuma
Digital electronics nandhini kusumaDigital electronics nandhini kusuma
Digital electronics nandhini kusumakusuma11
 
Digital electronics nandhini kusuma
Digital electronics nandhini kusumaDigital electronics nandhini kusuma
Digital electronics nandhini kusumakusuma11
 
Short.course.introduction.to.vhdl
Short.course.introduction.to.vhdlShort.course.introduction.to.vhdl
Short.course.introduction.to.vhdlRavi Sony
 
f37-book-intarch-pres-pt1.ppt
f37-book-intarch-pres-pt1.pptf37-book-intarch-pres-pt1.ppt
f37-book-intarch-pres-pt1.pptrickjones250264
 
Introduction_to_Mechatronics_Chapter5.pdf
Introduction_to_Mechatronics_Chapter5.pdfIntroduction_to_Mechatronics_Chapter5.pdf
Introduction_to_Mechatronics_Chapter5.pdfBereket Walle
 
Computer architecture
Computer architectureComputer architecture
Computer architectureRvishnupriya2
 
Computer architecture
Computer architectureComputer architecture
Computer architecturevishnu973656
 

Similar to Video lectures for bba (20)

Chapter1.ppt
Chapter1.pptChapter1.ppt
Chapter1.ppt
 
computer logic and digital design chapter 1
computer logic and digital design chapter 1computer logic and digital design chapter 1
computer logic and digital design chapter 1
 
Programmable Logic Controllers (PLCs) and SCADA Systems
Programmable Logic Controllers (PLCs) and SCADA SystemsProgrammable Logic Controllers (PLCs) and SCADA Systems
Programmable Logic Controllers (PLCs) and SCADA Systems
 
Unit 2a combinational circuits
Unit 2a combinational circuitsUnit 2a combinational circuits
Unit 2a combinational circuits
 
Practical Programmable Logic Controllers (PLCs) for Automation and Process Co...
Practical Programmable Logic Controllers (PLCs) for Automation and Process Co...Practical Programmable Logic Controllers (PLCs) for Automation and Process Co...
Practical Programmable Logic Controllers (PLCs) for Automation and Process Co...
 
Lecture 1& 2.pptx
Lecture 1& 2.pptxLecture 1& 2.pptx
Lecture 1& 2.pptx
 
Digital VLSI Design and FPGA Implementation
Digital VLSI Design and FPGA ImplementationDigital VLSI Design and FPGA Implementation
Digital VLSI Design and FPGA Implementation
 
Programming pic microcontrollers
Programming pic microcontrollersProgramming pic microcontrollers
Programming pic microcontrollers
 
Digital electronics nandhini kusuma
Digital electronics nandhini kusumaDigital electronics nandhini kusuma
Digital electronics nandhini kusuma
 
Digital electronics nandhini kusuma
Digital electronics nandhini kusumaDigital electronics nandhini kusuma
Digital electronics nandhini kusuma
 
Digital electronics nandhini kusuma
Digital electronics nandhini kusumaDigital electronics nandhini kusuma
Digital electronics nandhini kusuma
 
341-12-4-2001.ppt
341-12-4-2001.ppt341-12-4-2001.ppt
341-12-4-2001.ppt
 
Short.course.introduction.to.vhdl
Short.course.introduction.to.vhdlShort.course.introduction.to.vhdl
Short.course.introduction.to.vhdl
 
f37-book-intarch-pres-pt1.ppt
f37-book-intarch-pres-pt1.pptf37-book-intarch-pres-pt1.ppt
f37-book-intarch-pres-pt1.ppt
 
Introduction_to_Mechatronics_Chapter5.pdf
Introduction_to_Mechatronics_Chapter5.pdfIntroduction_to_Mechatronics_Chapter5.pdf
Introduction_to_Mechatronics_Chapter5.pdf
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
 
LOGIC CKT.ppt
LOGIC CKT.pptLOGIC CKT.ppt
LOGIC CKT.ppt
 
ECAD lab manual
ECAD lab manualECAD lab manual
ECAD lab manual
 
Picmico
PicmicoPicmico
Picmico
 

More from Edhole.com

Chartered accountant in dwarka
Chartered accountant in dwarkaChartered accountant in dwarka
Chartered accountant in dwarkaEdhole.com
 
Ca firm in dwarka
Ca firm in dwarkaCa firm in dwarka
Ca firm in dwarkaEdhole.com
 
Website development company surat
Website development company suratWebsite development company surat
Website development company suratEdhole.com
 
Website designing company in surat
Website designing company in suratWebsite designing company in surat
Website designing company in suratEdhole.com
 
Website dsigning company in india
Website dsigning company in indiaWebsite dsigning company in india
Website dsigning company in indiaEdhole.com
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhiEdhole.com
 
Chartered accountant in dwarka
Chartered accountant in dwarkaChartered accountant in dwarka
Chartered accountant in dwarkaEdhole.com
 
Ca firm in dwarka
Ca firm in dwarkaCa firm in dwarka
Ca firm in dwarkaEdhole.com
 
Website development company surat
Website development company suratWebsite development company surat
Website development company suratEdhole.com
 
Website designing company in surat
Website designing company in suratWebsite designing company in surat
Website designing company in suratEdhole.com
 
Website designing company in india
Website designing company in indiaWebsite designing company in india
Website designing company in indiaEdhole.com
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhiEdhole.com
 
Website designing company in mumbai
Website designing company in mumbaiWebsite designing company in mumbai
Website designing company in mumbaiEdhole.com
 
Website development company surat
Website development company suratWebsite development company surat
Website development company suratEdhole.com
 
Website desinging company in surat
Website desinging company in suratWebsite desinging company in surat
Website desinging company in suratEdhole.com
 
Website designing company in india
Website designing company in indiaWebsite designing company in india
Website designing company in indiaEdhole.com
 

More from Edhole.com (20)

Ca in patna
Ca in patnaCa in patna
Ca in patna
 
Chartered accountant in dwarka
Chartered accountant in dwarkaChartered accountant in dwarka
Chartered accountant in dwarka
 
Ca in dwarka
Ca in dwarkaCa in dwarka
Ca in dwarka
 
Ca firm in dwarka
Ca firm in dwarkaCa firm in dwarka
Ca firm in dwarka
 
Website development company surat
Website development company suratWebsite development company surat
Website development company surat
 
Website designing company in surat
Website designing company in suratWebsite designing company in surat
Website designing company in surat
 
Website dsigning company in india
Website dsigning company in indiaWebsite dsigning company in india
Website dsigning company in india
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhi
 
Ca in patna
Ca in patnaCa in patna
Ca in patna
 
Chartered accountant in dwarka
Chartered accountant in dwarkaChartered accountant in dwarka
Chartered accountant in dwarka
 
Ca firm in dwarka
Ca firm in dwarkaCa firm in dwarka
Ca firm in dwarka
 
Ca in dwarka
Ca in dwarkaCa in dwarka
Ca in dwarka
 
Website development company surat
Website development company suratWebsite development company surat
Website development company surat
 
Website designing company in surat
Website designing company in suratWebsite designing company in surat
Website designing company in surat
 
Website designing company in india
Website designing company in indiaWebsite designing company in india
Website designing company in india
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhi
 
Website designing company in mumbai
Website designing company in mumbaiWebsite designing company in mumbai
Website designing company in mumbai
 
Website development company surat
Website development company suratWebsite development company surat
Website development company surat
 
Website desinging company in surat
Website desinging company in suratWebsite desinging company in surat
Website desinging company in surat
 
Website designing company in india
Website designing company in indiaWebsite designing company in india
Website designing company in india
 

Recently uploaded

Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 

Recently uploaded (20)

TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 

Video lectures for bba

  • 1. VViiddeeoo LLeeccttuurreess ffoorr BBBBAA By: Video.edhole.com
  • 2. Computer LLooggiicc aanndd DDiiggiittaall DDeessiiggnn CChhaapptteerr 11 HHeennrryy HHeexxmmoooorr • An Overview of Computer Organization • Switches and Transistors • Boolean Algebra and Logic • Binary Arithmetic and Number Systems • Combinational Logic and Circuits • Sequential Logic and Circuits • Memory Logic Design • The DataPathUnit Henry Hexmoor 2 Video.edhole.com
  • 3. BBaassiicc DDeeffiinniittiioonnss • Computer Architecture is the programmer’s perspective on functional behavior of a computer (e.g., 32 bits to represent an integer value) • Computer organization is the internal structural relationships not visible to a programmer…e.g., physical memory Henry Hexmoor 3 Memory CPU = Control unit + datapath Video.edhole.com I/O
  • 4. Hierarchy ooff CCoommppuutteerr AArrcchhiitteeccttuurree High-Level Language Programs Instr. Set Proc. I/O system Henry Hexmoor 4 Compiler Operating System Application Digital Design Circuit Design Instruction Set Architecture Firmware Datapath & Control Layout Software Machine Language Program Software/Hardware Boundary Hardware Assembly Language Programs Microprogram Register Transfer Notation (RTN) Logic Diagrams Video.Circuit edhole.Diagrams com
  • 5. BBaassiicc DDeeffiinniittiioonnss • Architectural levels: Programs and applications to transistors • Electrical Signals: discrete, atomic elements of a digital system…binary values… Henry Hexmoor 5 input output An ideal switch Video.edhole.com
  • 6. IInnttrroodduuccttiioonn ttoo DDiiggiittaall SSyysstteemmss Analog devices and systems process time-varying signals that can take on any value across a continuous range. Analog Signal Digital systems use digital circuits that process digital signals which can take on one of two values, we call: High Low 0 and 1 (digits of the binary number system) or LOW and HIGH or FALSE and TRUE Digital Signal  Digital computers represent the most common digital systems.  Once-analog Systems that use digital systems today: ◦ Audio recording (CDs, DAT, mp3) ◦ Phone system switching ◦ Automobile engine control ◦ Movie effects ◦ Still and video cameras…. Digital circuit inputs : : outputs Henry Hexmoor 6 Video.edhole.com
  • 7. Eight Advantages of Digital Systems OOvveerr AAnnaalloogg SSyysstteemmss 1. Reproducibility of the results 2. Accuracy of results 3. More reliable than analog systems due to better immunity to noise. 4. Ease of design: No special math skills needed to visualize the behavior of small digital (logic) circuits. 5. Flexibility and functionality. 6. Programmability. 7. Speed: A digital logic element can produce an output in less than 10 nanoseconds (10-8 seconds). 8. Economy: Due to the integration of millions of digital logic elements on a single miniature chip forming low cost integrated circuit (ICs). Henry Hexmoor 7 Video.edhole.com
  • 8. BBoooolleeaann AAllggeebbrraa What is an Algebra? (e.g. algebra of integers)  Boolean Algebra named after George Boole who used it to study human logical reasoning – calculus of proposition.  Elements : true or false ( 0, 1)  Operations: a OR b; a AND b, NOT a e.g. 0 OR 1 = 1 0 OR 0 = 0 1 AND 1 = 1 1 AND 0 = 0 NOT 0 = 1 NOT 1 = 0 Henry Hexmoor 8 set of elements (e.g. 0,1,2,..) set of operations (e.g. +, -, *,..) postulates/axioms (e.g. 0+x=x,..) Video.edhole.com
  • 9. DDiiggiittaall ((llooggiicc)) EElleemmeennttss:: GGaatteess  Digital devices or gates have one or more inputs and produce an output that is a function of the current input value(s).  All inputs and outputs are binary and can only take the values 0 or 1  A gate is called a combinational circuit because the output only depends on the current input combination.  Digital circuits are created by using a number of connected gates such as the output of a gate is connected to to the input of one or more gates in such a way to achieve specific outputs for input values.  Digital or logic design is concerned with the design of such circuits. Henry Hexmoor 9 Video.edhole.com
  • 10. BBoooolleeaann AAllggeebbrraa  Set of Elements: {0,1}  Set of Operations: {., + , ¬ } Signals: High = 5V = 1; Low = 0V = 0 Henry Hexmoor 10 x y x . y 0 0 0 0 1 0 1 0 0 1 1 1 x y x + y 0 0 0 0 1 1 1 0 1 1 1 1 x ¬x 0 1 1 0 x y x.y x y x+y x x' AND OR NOT Video.edhole.com
  • 11. LLooggiicc GGaatteess Henry Hexmoor 11 EXCLUSIVE OR a b a.b a b a+b a a' a b (a.b)' a b (a+b)' a b a Å b a b a.b & a b a+b + AND a 1 a' a b (a.b)' & a b (a+b)' ³1 a b a Å b =1 OR NOT NAND NOR Symbol set 1 Symbol set 2 (ANSI/IEEE Standard 91-1984) Video.edhole.com
  • 12. TTrruutthh TTaabblleess Provide a listing of every possible combination of values of binary inputs to a digital circuit and the corresponding outputs. inputs outputs x x . y y Henry Hexmoor 12 x y x . y x + y 0 0 0 0 0 1 0 1 1 0 0 1 1 1 1 1 INPUTS OUTPUTS … … … … • Example (2 inputs, 2 outputs): Digital circuit inputs outputs x + y Truth table Video.edhole.com
  • 13. LLooggiicc GGaatteess:: TThhee AANNDD GGaattee  The AND Gate A B A . B 0 0 0 0 1 0 1 0 0 1 1 1 Henry Hexmoor 13 A B A.B Truth table 14 13 12 11 10 9 8 1 2 3 4 5 6 7 Ground Vcc Top View of a TTL 74LS family 74LS08 Quad 2-input AND Gate IC Package Video.edhole.com
  • 14. LLooggiicc GGaatteess:: TThhee OORR GGaattee  The OR Gate Henry Hexmoor 14 A B A+B A B A + B 0 0 0 0 1 1 1 0 1 1 1 1 Truth table Top View of a TTL 74LS family 74LS08 Quad 2-input OR Gate IC Package Video.edhole.com
  • 15. LLooggiicc GGaatteess:: TThhee NNAANNDD GGaattee  The NAND Gate º (A.B)' • NAND gate is self-sufficient (can build any logic circuit with it). • Can be used to implement AND/OR/NOT. • Implementing an inverter using NAND gate: x x' Henry Hexmoor 15 A B (A.B)' A B A B (A.B)' 0 0 1 0 1 1 1 0 1 1 1 0 Truth table Video.edhole.com Top View of a TTL 74LS family 74LS00 Quad 2-input NAND Gate IC Package
  • 16. LLooggiicc GGaatteess:: TThhee NNOORR GGaattee  The NOR Gate • NOR gate is also self-sufficient (can build any logic circuit with it). • Can be used to implement AND/OR/NOT. • Implementing an inverter using NOR gate: x x' Henry Hexmoor 16 º A B (A+B)' A B (A+B)' A B (A+B)' 0 0 1 0 1 0 1 0 0 1 1 0 Truth table Video.edhole.com Top View of a TTL 74LS family 74LS02 Quad 2-input NOR Gate IC Package
  • 17. LLooggiicc GGaatteess:: TThhee XXOORR GGaattee  The XOR Gate Henry Hexmoor 17 A B 14 13 12 11 10 9 8 1 2 3 4 5 6 7 Ground Vcc A Å B A B A Å B 0 0 0 0 1 1 1 0 1 1 1 0 Truth table Top View of a TTL 74LS family 74LS86 Quad 2-input XOR Gate IC Package Video.edhole.com
  • 18. DDrraawwiinngg LLooggiicc CCiirrccuuiittss When a Boolean expression is provided, we can easily draw the logic circuit. Examples: F1 = xyz' (note the use of a 3-input AND gate) Henry Hexmoor 18 x y z F1 z' Video.edhole.com
  • 19. AAnnaallyyzziinngg LLooggiicc CCiirrccuuiittss When a logic circuit is provided, we can analyze the circuit to obtain the logic expression.  Example: What is the Boolean expression of F4? A'B' A'B'+C (A'B'+C)' Henry Hexmoor 19 A' B' C F4 F4 = (A'B'+C)' Video.edhole.com
  • 20. IInntteeggrraatteedd CCiirrccuuiittss  An Integrated circuit (IC) is a number of logic gated fabricated on a single silicon chip.  ICs can be classified according to how many gates they contain as follows: ◦ Small-Scale Integration (SSI): Contain 1 to 20 gates. ◦ Medium-Scale Integration (MSI): Contain 20 to 200 gates. Examples: Registers, decoders, counters. ◦ Large-Scale Integration (LSI): Contain 200 to 200,000 gates. Include small memories, some microprocessors, programmable logic devices. ◦ Very Large-Scale Integration (VLSI): Usually stated in terms of number of transistors contained usually over 1,000,000. Includes most microprocessors and memories. Henry Hexmoor 20 Video.edhole.com
  • 21. CCoommppuutteerr HHaarrddwwaarree GGeenneerraattiioonnss The First Generation, 1946-59: Vacuum Tubes, Relays, Mercury Delay Lines: ◦ ENIAC (Electronic Numerical Integrator and Computer): First electronic computer, 18000 vacuum tubes, 1500 relays, 5000 additions/sec. ◦ First stored program computer: EDSAC (Electronic Delay Storage Automatic Calculator). The Second Generation, 1959-64: Discrete Transistors. (e.g IBM 7000 series, DEC PDP- 1) The Third Generation, 1964-75: Small and Medium-Scale Integrated (SSI, MSI) Circuits. (e.g. IBM 360 mainframe) The Fourth Generation, 1975-Present: The Microcomputer. VLSI-based Microprocessors. Henry Hexmoor 21 Video.edhole.com
  • 22. IInntteennttiioonnaallllyy lleefftt bbllaannkk Henry Hexmoor 22 Video.edhole.com
  • 23. PPoossiittiioonnaall NNuummbbeerr SSyysstteemmss  A number system consists of an order set of symbols (digits) with relations defined for +,-,*, /  The radix (or base) of the number system is the total number of digits allowed in the the number system. ◦ Example, for the decimal number system:  Radix, r = 10, Digits allowed = 0,1, 2, 3, 4, 5, 6, 7, 8, 9  In positional number systems, a number is represented by a string of digits, where each digit position has an associated weight.  The value of a number is the weighted sum of the digits.  The general representation of an unsigned number D with whole and fraction portions number in a number system with radix r: Dr = d p-1 d p-2 ….. d1 d0.d-1 d-2 …. D-n  The number above has p digits to the left of the radix point and n fraction digits to the right.  A digit in position i has as associated weight ri  The value of the number is the sum of the digits multiplied by the associated weight ri : i n i D=å ´ - p 1 d ri =- Henry Hexmoor 23 Video.edhole.com
  • 24. Number SSyysstteemmss UUsseedd iinn CCoommppuutteerrss Name of Radix Radix Set of Digits Example Decimal r=10 {0,1} 111111112 Decimal 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Hex 0 1 2 3 4 5 6 7 8 9 A B C D E F Henry Hexmoor 24 r=2 r= 8 r=16 {0,1,2,3,4,5,6,7,8,9} 25510 Binary {0,1,2,3,4,5,6,7} 3778 {0,1,2,3,4,5,6,7,8,9,A, B, C, D, E, F} FF16 Octal Hexadecimal Binary 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 Video.edhole.com
  • 25. BBiinnaarryy nnuummbbeerrss • a bit: a binary digit representing a 0 or a 1. • Binary numbers are base 2 as opposed to base 10 typically used. • Instead of decimal places such as 1s, 10s, 100s, 1000s, etc., binary uses powers of two to have 1s, 2s, 4s, 8s, 16s, 32s, 64s, etc. 1012=(1×22)+(0×21)+(1×20)=410 + 110 = 510 101112=(1×24)+(0×23)+(1×22)+(1×21)+(1×20)=2310 4110 = 41/2 + remainder = 11LSB = 20/2 + remainder = 0 2SB = 10/2 + remainder = 0 3SB = 5/2 + remainder = 1  4SB = 4/2 + remainder = 0  5SB = 2/2 = 1  6SB 1010012 Henry Hexmoor 25 Video.edhole.com
  • 26. LLaarrggeesstt nnuummbbeerrss • the largest number of d digits in base R is Rd- 1 Examples: 3 digits of base 10: 103-1 = 999 2 digits of base 16: 162 -1 = 255 Henry Hexmoor 26 Video.edhole.com
  • 27. DDeecciimmaall-ttoo-BBiinnaarryy CCoonnvveerrssiioonn  Separate the decimal number into whole and fraction portions.  To convert the whole number portion to binary, use successive division by 2 until the quotient is 0. The remainders form the answer, with the first remainder as the least significant bit (LSB) and the last as the most significant bit (MSB).  Example: Convert 17910 to binary: 179 / 2 = 89 remainder 1 (LSB) / 2 = 44 remainder 1 / 2 = 22 remainder 0 / 2 = 11 remainder 0 / 2 = 5 remainder 1 / 2 = 2 remainder 1 / 2 = 1 remainder 0 / 2 = 0 remainder 1 (MSB) 17910 = 101100112 Henry Hexmoor 27 Video.edhole.com
  • 28. DDeecciimmaall-ttoo-BBiinnaarryy eexxaammpplleess 108/2 = 54 54 * 2 = 108, remainder 0 54 /2 = 27 27 * 2 = 54, remainder 0 27/2 = 13.5 13 * 2 = 26, remainder 1 13 /2 = 6.5 6 * 2 = 12, remainder 1 6/2 = 3 3 * 2 = 6, remainder 0 3/2 = 1 1 * 2 = 2, remainder 1 11011002 7/2 = 3.5 3 * 2 = 6, remainder 1 3/2 = 1 1 * 2 = 2, remainder 1 1/2 = 0 0 * 2 = 0, remainder 1 1112 11/2 = 5.5 5 * 2 = 10, remainder 1 5/2 = 2.5 2 * 2 = 4, remainder 1 2/2 = 1 1 * 2 = 2, remainder 0 1 / 2 = 0 0 * 2 = 0, remainder 1 10112 Henry Hexmoor 28 90/2 = 45 45 * 2 = 90, remainder 0 45/2 = 22.5 22 * 2 = 44, remainder 1 22 * 2 = 44, remainder 0 22/2 = 11 11 * 2 = 22, remainder 0 11/2 = 5.5 5 * 2 = 10, remainder 1 5/2 = 2.5 2 * 2 = 4, remainder 1 2/2 = 1 1 * 2 = 2, remainder 0 1 / 2 = 0 0 * 2 = 0, remainder 1 10110102 Video.edhole.com
  • 29. DDeecciimmaall-ttoo-HHeexx eexxaammpplleess 108/16 = 6.75 20/16 = 1 6 * 16 = 96, 1 * 16 = 16, remainder 4 remainder 12 1/16 = 0 6 /16 = 0 0 * 16 = 0, remainder 1 0 * 16 = 0, 1416 remainder 6 6C16 32/16 = 2 2 * 16 = 32, remainder 0 2 /16 = 0 0 * 16 = 0, remainder 2 2016 90/16 = 5.625 5 * 16 = 80, remainder 10 5 / 16 = 0 0 * 16 = 0, remainder 5 5A16 Henry Hexmoor 29 160/16 = 10 10 * 16 = 160, remainder 0 10/16 = 0 0 * 16 = 0, remainder 10 A016 Video.edhole.com
  • 30. DDeecciimmaall-ttoo-OOccttaall eexxaammppllee 108/8 = 13.5 13 * 8 = 104, remainder 4 13/8 = 1 1 * 8 = 8, remainder 5 1 / 8 = 0 0 * 8 = 0, remainder 1 1548 10/8 = 1 1 * 8 = 8, remainder 2 1/8 = 0 0 * 8 = 0, remainder 1 128 16/8 = 2 2 * 8 = 16, remainder 0 2/8 = 0 0 * 8 = 0, remainder 2 208 Henry Hexmoor 30 24/8 = 3 3 * 8 = 24, remainder 0 3/8 = 0 0 * 8 = 0, remainder 3 308 Video.edhole.com
  • 31. DDeecciimmaall--ttoo--BBiinnaarryy CCoonnvveerrssiioonn  To convert decimal fractions to binary, repeated multiplication by 2 is used, until the fractional product is 0 (or until the desired number of binary places). The whole digits of the multiplication results produce the answer, with the first as the MSB, and the last as the LSB.  Example: Convert 0.312510 to binary Result Digit .3125 ´ 2 = 0.625 0 (MSB) .625 ´ 2 = 1.25 1 .25 ´ 2 = 0.50 0 .5 ´ 2 = 1.0 1 (LSB) 0.312510 = .01012 Henry Hexmoor 31 Video.edhole.com
  • 32. Binary Arithmetic OOppeerraattiioonnss -- AAddddiittiioonn  Similar to decimal number addition, two binary numbers are added by adding each pair of bits together with carry propagation.  Addition Example: 1 0 1 1 1 1 0 0 0 Carry X 190 1 0 1 1 1 1 1 0 Y + 141 + 1 0 0 0 1 1 0 1 0 + 0 = 0 0 + 1 = 1 1 + 0 = 1 1 + 1 = 0 with a carry of 1 X + Y 331 1 0 1 0 0 1 0 1 1 Henry Hexmoor 32 Video.edhole.com
  • 33. BBiinnaarryy AArriitthhmmeettiicc-- ssuubbttrraaccttiioonn Henry Hexmoor 33 95 = 1011111 -16 = 0010000 79 = 1001111 0 – 0 = 0 1 – 0 = 1 1 – 1 = 0 0 – 1 = 1 with a borrow of 1 Video.edhole.com
  • 34. Binary Arithmetic OOppeerraattiioonnss:: SSuubbttrraaccttiioonn  Two binary numbers are subtracted by subtracting each pair of bits together with borrowing, where needed.  Subtraction Example: 0 0 1 1 1 1 1 0 0 Borrow X 229 1 1 1 0 0 1 0 1 Y - 46 - 0 0 1 0 1 1 1 0 183 1 0 1 1 0 1 1 1 Henry Hexmoor 34 Video.edhole.com
  • 35. BBiinnaarryy AArriitthhmmeettiicc -- MMuullttiipplliiccaattiioonn Henry Hexmoor 35 1011 *101 1011 0000 1011 110111 0 * 0 = 0 0 * 1 = 0 1 * 0 = 0 1 * 1 = 1 Video.edhole.com
  • 36. Negative Binary NNuummbbeerr RReepprreesseennttaattiioonnss Signed-Magnitude Representation: ◦ For an n-bit binary number: Use the first bit (most significant bit, MSB) position to represent the sign where 0 is positive and 1 is negative. Ex. 1 1 1 1 1 1 1 12 = - 12710 ◦ Remaining n-1 bits represent the magnitude which may range from: -2(n-1) + 1 to 2(n-1) - 1 ◦ This scheme has two representations for 0; i.e., both positive and negative 0: for 8 bits: 00000000, 10000000 ◦ Arithmetic under this scheme uses the sign bit to indicate the nature of the operation and the sign of the result, but the sign bit is not used as part of the arithmetic. Henry Hexmoor 36 Sign Magnitude Video.edhole.com
  • 37. PPaarriittyy bbiitt • Pad an extra bit to MSB side to make the number of 1’s to be even or odd. • Sender and receiver of messages make sure that even/odd transmission patterns match Henry Hexmoor 37 Video.edhole.com
  • 38. GGrraayy ccooddeess • In binary codes, number of bit changes are not constant, 0000010100111001011101111000… • bit changes in gray codes are constant •000001011010110111000… Henry Hexmoor 38 Video.edhole.com
  • 39. Alphanumeric BBiinnaarryy CCooddeess:: AASSCCIIII Seven bit codes are used to represent all upper and lower case letters, numbers, punctuation and control characters Henry Hexmoor 39 MSBs LSBs 000 001 010 011 100 101 110 111 0000 NUL DLE SP 0 @ P ` p 0001 SOH DC1 ! 1 A Q a q 0010 STX DC2 “ 2 B R b r 0011 ETX DC3 # 3 C S c s 0100 EOT DC4 $ 4 D T d t 0101 ENQ NAK % 5 E U e u 0110 ACK SYN & 6 F V f v 0111 BEL ETB ‘ 7 G W g w 1000 BS CAN ( 8 H X h x 1001 HT EM ) 9 I Y i y 1010 LF SUB * : J Z j z 1011 VT ESC + ; K [ k { 1100 FF FS , < L l | 1101 CR GS - = M ] m } 1110 O RS . > N ^ n ~ 1111 SI US / ? O _ o DEL Video.edhole.com
  • 40. HHWW 11 1. What is the decimal equivalent of the largest integer that can be represented with 12 binary bits. 2. Convert the following decimal numbers to binary: 125, 610, 2003, 18944. Henry Hexmoor 40 Video.edhole.com