CPS213 - Chaptert 5 - Set1
CPS213 - Chaptert 5 - Set1
CPS213 - Chaptert 5 - Set1
CPS213
Computer Organization I
Winter 2021
© Ali Miri
The course slides will contain materials and figures from the textbook and slide sets by Dr.
Sadeghian. They are used with permission. We also have used figures from the web that
were ``labeled for reuse with modification'' copyright permissions. When copyright status
have been unclear, best attempts have been made to include the source.
Electronic devices:
• Process information
• Store, retain, and retrieve information
Sequential Circuits:
Act as storage elements and have memory
Figure 5.1
Block diagram of sequential circuit.
Latches Flip-Flops
X Y F X Y F
0 0 1 0 0 1
0 1 0 0 1 0
1 0 0 1 0 0
1 1 0 1 1 0
S R Qt Q t+1
0 0 0 0
No
0 0 1 1 change
0 1 0 0
Reset
0 1 1 0
1 0 0 1
Set
1 0 1 1
1 1 0 0
Not
1 1 1 0 defined
Understanding NAND
X Y F X Y F
0 0 1 0 0 1
0 1 1 0 1 1
1 0 1 1 0 1
1 1 0 1 1 0
When one of the inputs is 1 When one of the inputs is 0
the output is The output is 1
the complement of
the other input
Figure 5.4
S R Q t+1 Q’t+1 Description
SR latch with NAND gates
Active Low SR 0 0 1 1 Not Defined
0 1 1 0 Set
1 0 0 1 Reset
1 1 Qt Q’t No Change
S R Qt Q t+1
0 0 0 1
Not
Defined 0 0 1 1
0 1 0 1
Set
0 1 1 1
1 0 0 0
Reset
1 0 1 0
1 1 0 0
No
Change 1 1 1 1
SR latch with NOR gates
❶
❸
❷ ❹
❶
❸
❷ ❹
❶
❸
❷ ❹
❶
❸
❷ ❹
❶
❸
❷ ❹
❶
❸
❷ ❹
S
❶
❸
❹
❷
R
D Qt Q t+1
0 0 0
0 1 0
1 0 1
1 1 1