Professional Documents
Culture Documents
1
Prof. Kalyani N Pampattiwar
What is a Multiplexer (MUX)?
A MUX is a digital switch that Multiplexer
has multiple inputs (sources) Block Diagram
and a single output
(destination).
2N 1
The select lines determine Inputs Output
MUX
(destination)
which input is connected to the (sources)
output.
MUX Types N
2-to-1 (1 select line)
Select
4-to-1 (2 select lines) Lines
8-to-1 (3 select lines)
16-to-1 (4 select lines)
2
Prof. Kalyani N Pampattiwar
Typical Application of a MUX
Multiple Sources Selector Single Destination
MP3 Player
Docking Station
D0
Laptop
D1
MUX
Sound Card Y
D2
D3
D0
D1
MUX
Y
D2
D3
B A
B A Y
0 0 D0
0 1 D1
1 0 D2
1 1 D3
4
Prof. Kalyani N Pampattiwar
4-to-1 Multiplexer Waveforms
D0
D1
Input
Data
D2
D3
A Select
Line
Output
Y Data
D0 D1 D2 D3 D0 D1 D2 D3 5
Prof. Kalyani N Pampattiwar
Medium Scale Integration MUX
Select
Enable
6
Prof. Kalyani N Pampattiwar
What is a Demultiplexer (DEMUX)?
A DEMUX is a digital switch Demultiplexer
with a single input (source) and Block Diagram
a multiple outputs
(destinations).
1 2N
The select lines determine
DEMUX
Input Outputs
(source)
which output the input is (destinations)
connected to.
DEMUX Types N
B/W Laser
Printer
Fax
Machine
D0
DEMUX
X D1
D2 Color Inkjet
Printer
D3
B A Selected Destination
0 0 B/W Laser Printer Pen
0 1 Fax Machine Plotter
8
Prof. Kalyani N Pampattiwar
1-to-4 De-Multiplexer (DEMUX)
D0
DEMUX
D1
X
D2
D3
B A
B A D0 D1 D2 D3
0 0 X 0 0 0
0 1 0 X 0 0
1 0 0 0 X 0
1 1 0 0 0 X
9
Prof. Kalyani N Pampattiwar
1-to-4 De-Multiplexer Waveforms
Input
X Data
S0
Select
Line
S1
D0
D1
Output
Data
D2
D3
10
Prof. Kalyani N Pampattiwar
Medium Scale Integration DEMUX
Select
Outputs
(inverted)
Input
(inverted)
12
Prof. Kalyani N Pampattiwar
Simple Message: All Segments On
• The circuit to the right uses
four 7-segment displays to
display the word CIAO. In
this circuit all displays are
continuously illuminated,
each displaying one letter in
the word.
• Though this method works, it
is a VERY inefficient use of
power. To illuminate the
simple message CIAO in this
way, 18 segments must be
continuously on.
• Can you think of another way
to display this message that
would use less power?
13 13
Prof. Kalyani N Pampattiwar
Decoder
14
Prof. Kalyani N Pampattiwar
2 line to 4 line decoder( 74139)
15
Prof. Kalyani N Pampattiwar
3 to 8 line decoder (IC 74138)
17
Prof. Kalyani N Pampattiwar
Minterms using OR Gates
20
Prof. Kalyani N Pampattiwar
Octal to Binary Encoder
21
Prof. Kalyani N Pampattiwar
Priority Encoder
22
Prof. Kalyani N Pampattiwar
Priority Encoder
23
Prof. Kalyani N Pampattiwar
Quiz Time
https://forms.office.com/Pages/ResponsePage.aspx?
id=NNxdQGDW5Ua1Lb_QvhVrtdmwybw-
nDBDt3faX8MQK6NUOEVEMVUyM00yRk5DQTFBUDdaUjJaSkhDTi4u
24
Prof. Kalyani N Pampattiwar
Difference between combinational and sequential circuit
25
Prof. Kalyani N Pampattiwar
Combinational Circuit
26
Prof. Kalyani N Pampattiwar
Sequential Circuit
• A flip flop can maintain a binary state for an unlimited period of time as long
as- 1) Power is supplied to the circuit.
2)Or until it is directed by an input signal to switch states.
• A flip flop is also called as Bistable Multivibrator because it has two stable
states either 0 or 1.
28
Prof. Kalyani N Pampattiwar
One bit memory cell
29
Prof. Kalyani N Pampattiwar
conclusion of 1 bit memory cell
30
Prof. Kalyani N Pampattiwar
Difference between latch and flip flop
31
Prof. Kalyani N Pampattiwar
Types of Flip Flop
There are following 4 basic types of flip flops-
32
Prof. Kalyani N Pampattiwar
1. S-R FF
• SR flip flop is the simplest type of flip flops.
• It stands for Set Reset flip flop.
• It is a clocked flip flop.
33
Prof. Kalyani N Pampattiwar
1. Construction of SR Flip Flop By Using NOR Latch-
This method of constructing SR Flip Flop uses-
• NOR latch
• Two AND gates
Logic Circuit-
The logic circuit for SR Flip Flop constructed using NOR latch is
as shown below-
34
Prof. Kalyani N Pampattiwar
2. Construction of SR Flip Flop By Using NAND Latch-
This method of constructing SR Flip Flop uses-
• NAND latch
• Two NAND gates
Logic Circuit-
35
Prof. Kalyani N Pampattiwar
Logic Symbol-
The logic symbol for SR Flip Flop is as shown below-
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 0
1 0 0 1
1 0 1 1
1 1 0 Indeterminate
1 1 1 Indeterminate
36
Prof. Kalyani N Pampattiwar
The above truth table may be reduced as-
INPUTS OUTPUTS REMARKS
Qn Qn+1
S R States and Conditions
(Present State) (Next State)
From here-
38
Prof. Kalyani N Pampattiwar
What is excitation table?
The excitation table of any flip flop is drawn using its truth table.
Qn Qn+1 S R
0 0 0 X
0 1 1 0
1 0 0 1
1 1 X 0
Excitation Table
39
Prof. Kalyani N Pampattiwar
2. JK Flip Flop( Jack and Kilby)
1. Construction of JK Flip Flop By Using SR Flip Flop Constructed
From NOR Latch-
This method of constructing JK Flip Flop uses-
• SR Flip Flop constructed from NOR latch
• Two other connections
Logic Circuit-
The logic circuit for JK Flip Flop constructed using SR Flip Flop
constructed from NOR latch is as shown below-
40
Prof. Kalyani N Pampattiwar
2. Construction of JK Flip Flop By Using SR Flip Flop Constructed
From NAND Latch-
41
Prof. Kalyani N Pampattiwar
Logic Symbol-
The logic symbol for JK Flip Flop is as shown below-
INPUTS OUTPUTS
Qn Qn+1
J K
Truth Table- (Present State) (Next State)
0 0 0 0
The truth table for JK Flip
Flop is as shown below- 0 0 1 1
0 1 0 0
0 1 1 0
1 0 0 1
1 0 1 1
1 1 0 1
1 1 1 0
42
Prof. Kalyani N Pampattiwar
The above truth table may be reduced as-
INPUTS OUTPUTS REMARKS
Qn Qn+1
J K States and Conditions
(Present State) (Next State)
43
Prof. Kalyani N Pampattiwar
Characteristic Equation-
From here-
44
Prof. Kalyani N Pampattiwar
Excitation Table-
45
Prof. Kalyani N Pampattiwar
• To avoid invalid condition of SR FF (S=R=1) JK FF is designed in
which input is feedback as a output
Race around condition in JK flip-flop:
• In JK flip flop as long as clock is high for the input conditions J&K
equals to the output changes or complements its output from 1–>0
and 0–>1.
• This is called toggling output or uncontrolled changing or racing
condition. Consider above J&K circuit diagram as long as clock is
high and J&K=11 then two upper and lower AND gates are only
triggered by the complementary outputs Q and Q(bar). I.e. in any
condition according to the propagation delay one gate will be
enabled and another gate is disabled.
• If upper gate is disabled then it sets the output and in the next lower
gate will be enabled which resets the flip flop output. 46
Prof. Kalyani N Pampattiwar
Steps to avoid racing condition in JK Flip flop:
• If the Clock On or High time is less than the propagation
delay of the flip flop then racing can be avoided. This is done
by using edge triggering rather than level triggering.
• If the flip flop is made to toggle over one clock period then
racing can be avoided. This introduced the concept of Master
Slave JK flip flop
47
Prof. Kalyani N Pampattiwar
SR Flip Flop Vs JK Flip Flop-
48
Prof. Kalyani N Pampattiwar
3. D (Delay) Flip Flop
51
Prof. Kalyani N Pampattiwar
• T FF is a modification of JK FF
• T FF is obtained from a JK FF by connecting both inputs J & K
• When T=0 (J=K=0) both AND gates are disabled and hence
there is no change in the output
• When T=1 ( J=K=1) we will get output as Qn’ i.e., output
toggles
52
Prof. Kalyani N Pampattiwar
CPU with system bus
53
Prof. Kalyani N Pampattiwar
Register Organization
The registers in processor perform two roles
1. User visible registers
- Enable assembly language programmer to minimize main
memory references by optimizing use of registers
2. Control and Status registers
- Used by CU to control the operation of processor and by
privileged, operating system programs to control the execution of
programs
There is no clean separation of registers between these two
categories.
54
Prof. Kalyani N Pampattiwar
1. User Visible Registers
User Visible
Registers
General Condition
Data Address
purpose codes
55
Prof. Kalyani N Pampattiwar
2. Control and Status Registers
Control and
Status
Registers
Memory
Program Instruction Memory Buffer
Address
Counter Register Register
Register
Carry
Equal
Overflow
Interrupt
Supervisor
56
Prof. Kalyani N Pampattiwar
Addressing Modes
• Needed to reference a large range of locations in main
memory
• Common addressing techniques are:
> Immediate Addressing Mode
58
Prof. Kalyani N Pampattiwar
2. Direct Addressing
59
Prof. Kalyani N Pampattiwar
3. Indirect Addressing
60
Prof. Kalyani N Pampattiwar
Brainstorming
61
Prof. Kalyani N Pampattiwar
4. Register Addressing
63
Prof. Kalyani N Pampattiwar
6. Displacement addressing
64
Prof. Kalyani N Pampattiwar
7 Stack Addressing
65
Prof. Kalyani N Pampattiwar
Question?
BL 2000
CL 3000
Add BL + 55
Store BL to 4000 location
Solution:
MOV BL,[2000H]
MOV CL,[3000H]
ADD BL,CL
ADD BL,55
MOV [4000H],BL
66
Prof. Kalyani N Pampattiwar
Instruction
• Computer perform task on the basis of instruction provided. A
instruction in computer comprises of groups called fields.
These field contains different information as for computers
every thing is in 0 and 1 so each field has different
significance on the basis of which a CPU decide what to
perform. The most common fields are:
69
Prof. Kalyani N Pampattiwar
4) Program Control Instructions
Branch instructions which change the sequence in which programs are executed
e.g. Loop Conditional
JMP Unconditional
5) I/O Instruction
Which cause information to be transferred between the processor or its main memory
and external I/O devices
70
Prof. Kalyani N Pampattiwar
1. Zero Address Instructions
Expression: X = (A+B)*(C+D)
AC is accumulator
M[ ] is any memory location
M[T] is temporary location
https://forms.gle/gbxzEjXa7z4AHxkbA
88
Prof. Kalyani N Pampattiwar
Thank You!!
89
Prof. Kalyani N Pampattiwar