Академический Документы
Профессиональный Документы
Культура Документы
information
* Defines the state of the sequential circuit at that time
* Next state determined by i / ps and present state of the
memory
* These may change states of the memory elements as
well
* Synchronous circuits employ signals that affect the
storage elements only at discrete instants of time
Aloke Dutta/EE/IIT Kanpur 2
* We will be focusing our attention on Synchronous
Circuits first
* The timing device that achieves this synchronization
Clock Generator Circuits
Provides a periodic train of clock pulses
* Storage elements affected only with the arrival of
each such pulse
* Clock signals along with other i/ps cause the desired
change of o/p in the system
* These are known as Clocked Sequential Circuits
Q = 1 (and Q = 0 ) 0 0 0 1
NOR Latch
* Recall: For NAND gates:
Any (or both) i /p 0 will make the o /p 1
For o /p to be 0, both i /ps must be 1
Enable signal
* When C = 0, o/ps of 1 and 2 stay at 1, which makes
the o/ps of 3 and 4 stay at their present states,
irrespective of the S and R i/ps Hold State
* When C = 1, then i/ps S and R can affect the o/p
* If S = R = 0, o/ps of both 1 and 2 are 1, and Q and
Q maintain their states (Hold or No Change state)
Aloke Dutta/EE/IIT Kanpur 16
* Now, when S = 1 and R = 0:
O/p of 1 = i/p of 3 = 0 o/p of 3 = 1 (Q)
O/p of 2 = i/p of 4 = 1 o/p of 4 = 0 (Q)
Set state
Note that even if C goes to 0 now, this state
will be maintained
* Now, consider S = 0 and R = 1:
Following the above logic, Q = 0 and Q = 1
Reset state
* If S = R = 1, o/ps of both 1 and 2 = 0, and o/ps
of both 3 and 4 = 1 (NOT ALLOWED)
Aloke Dutta/EE/IIT Kanpur 17
* The control signal (C) can be clock as well
* This circuit is known as Clocked or Gated SR Latch
* Complete Truth Table of a Gated (Clocked) SR Latch:
C S R Qn+1 Remarks
0 X X Qn Hold (No Change )
1 0 0 Qn Hold (No Change )
1 1 0 Q = 1 Set
1 0 1 Q = 0 Reset
1 1 1 ? NOT ALLOWED
(INDETERMINATE )
* Note: A clocked (or gated) NAND latch is of SR type
Aloke Dutta/EE/IIT Kanpur 18
D Latch:
* Avoids the possibility of S and R ever becoming equal
to 1 simultaneously, by putting an inverter (NOT gate)
between the i /ps of 1 and 2
Eliminates the indeterminate state
* Has 2 i /ps: D (Data) and C (Control)
D
1
3 Q
4 Q
2
S Q S Q D Q
R Q R Q C Q
Hi Hi
Lo Lo
D D Y D Q
D Latch D Latch
(Master) (Slave)
C C
CLK
+ ve Edge -Triggered by
CLK
* Symbols:
D Q D Q
C Q C Q
JK F /F :
J
D Q
K
CLK C Q
K Q
No Change C Q
* When T = 1: D = Q
Conversion of a
Complement (Toggle ) D F/F to a T F/F
Characteristic Equations:
* D F /F: Q(t + 1) = D
* JK F /F: Q(t + 1) = JQ + K Q
* T F /F: Q(t + 1) = T Q = TQ + T Q
Aloke Dutta/EE/IIT Kanpur 36
Asynchronous Inputs:
* Overrides CLK signal
* Forces the F /F to a particular state, independent
of CLK
* I/p that sets the F/F to 1 is called a Preset or Direct Set
* I/p that resets (or clears ) the F/F to 0 is called a Clear
or Direct Reset
* When power is first turned on, states of the F/Fs are
unknown
* Thus, useful to bring all F/Fs in the system to a known
starting point prior to the clocked operation
Aloke Dutta/EE/IIT Kanpur 37
* Both Set (S) and Reset (R) are
Active Low signals
Set (S)
* S = 0 sets Q to 1
* R = 0 resets (clears ) Q to 0 Data D Q
Truth Table
Reset (R)
* R and S should not be made low
simultaneously
I3 D Q A3 I2 D Q A2 I1 D Q A1 I0 D Q A0
C C C C
R R R R
CLK
CLR
* + ve edge triggered
* Binary data at I3 -I0 gets transferred into the 4-bit
register at every + ve going clock edge
* The 4 o/ps can be sampled at any time to obtain
the binary information stored in the registers
Aloke Dutta/EE/IIT Kanpur 40
* When CLR = 0, all F/Fs are reset (or cleared )
asynchronously (nothing to do with clock )
* Prior to normal clocked operation, generally
all registers are cleared by pulling CLR line low
Shift Register:
* Capable of shifting the binary information
contained within it either right or left
* Consists of a chain of F /Fs in cascade , with the o /p
of one F /F connected to the i /p of the next F /F
* All F /Fs receive common CLK pulses, which
activate the shift from one register to the next
Aloke Dutta/EE/IIT Kanpur 41
4 -Bit Shift Register:
C C C C
CLK
CLK
A0
0 1 0 1 0 1 0 1 0
A1
0 0 1 1 0 0 1 1 0
A2
0 0 0 0 1 1 1 1 0
0 1 2 3 4 5 6 7 0
CLK C C C C
K R K R K R K R
Q2 Q1 Q0 Q2 Q1 Q0 J2 K2 J1 K1 J0 K0
0 0 0 0 0 1 0 X 0 X 1 X
0 0 1 0 1 0 0 X 1 X X 1
0 1 0 0 1 1 0 X X 0 1 X
0 1 1 1 0 0 1 X X 1 X 1
1 0 0 1 0 1 X 0 0 X 1 X
1 0 1 1 1 0 X 0 1 X X 1
1 1 0 1 1 1 X 0 X 0 1 X
1 1 1 0 0 0 X 1 X 1 X 1
0 0 0 1 0 0 X X X X 0 0 1 X X
1 X X X X 1 0 0 1 0 1 0 1 X X
J2 = Q1Q0 K2 = Q1Q0 J1 = Q0
0 X X 1 0 0 1 X X 1 0 X 1 1 X
1 X X 1 0 1 1 X X 1 1 X 1 1 X
K1 = Q0 J0 = 1 K0 = 1
Q1 MSB LSB
J2 Q2 J1 Q1 J0 Q0
Q0
C C C
K2 K1 K0
CLK
Required F/F
Present State Next State
Inputs
Q2 Q1 Q0 Q2 Q1 Q0 T2 T1 T0
0 0 0 1 0 1 1 0 1
0 0 1 0 0 0 0 0 1
0 1 0 1 0 0 1 1 0
0 1 1 0 0 1 0 1 0
1 0 0 0 0 1 1 0 1
1 0 1 0 1 0 1 1 1
1 1 0 1 0 1 0 1 1
1 1 1 1 0 0 0 1 1
0 1 0 0 1 0 0 0 1 1 0 1 1 0 0
1 1 1 0 0 1 0 1 1 1 1 1 1 1 1
Q1 Q2 Q1
MSB LSB
T2 Q2 T1 Q1 T0 Q0
CLK