Week6 (L11,12)
Week6 (L11,12)
(CE-313)
Lecture – 11
1
In Today's Lecture ...
2
3
Timing and Control
4
5
Timing and Control
Clock Pulse
Generator
6
Timing and Control
8
Timing and Control
Hardwired Control
The control logic is implemented with gates, flip-flops,
decoders, and other digital circuits,
◼ Advantage:
◼ It can be optimized to produce a fast mode of operation
◼ Disadvantage:
◼ Requires changes in wiring among various components if the
design has to be modified or changed
9
Timing and Control
Microprogramed Control:
◼ The control information is stored in a control
memory, and the control memory is programmed to
initiate the required sequence of microoperations.
◼ Advantage:Any required changes or modifications
can be done by updating the microprogram in control
memory
◼ Disadvantage: Slower than hardwired because of
the need of control memory access
10
Control Unit
HardWired:
➢ Control logic gates
➢ 3 × 8 decoder
➢ Instruction register
➢ 4 × 16 decoder
➢ 4-bit sequence
counter.
11
Function of
Decoder
12
Timing and Control
13
Timing and Control
14
Timing and Control
16
Timing and Control
17
Timing and Control
18
Timing and Control
20
Timing and Control
21
Timing and Control
26
Timing and Control
27
Computer Organization
(CE-313)
Lecture – 12
28
In Today's Lecture ...
◼ Instruction Cycle
◼ Fetch and Decode
◼ Determine the type of instruction
29
Instruction Cycle
T0: AR PC
T1: IR M[AR], PC PC + 1
T2: D0, ..., D7 Decode IR(12-14), AR IR(0-11), I IR(15)
33
Instruction Cycle
34
S2S1S0=010
35
Instruction Cycle
36
S2S1S0=111
37
Instruction Cycle
1. Enable the read input of the memory.
2. Place the content of memory onto the bus by
making the bus selection inputs S2S1S0 = 111. (Note
that the address lines are always connected to AR,
and we have already placed the next instruction
address in AR.)
3. Transfer the content of the bus to IR by enabling
the LD input of IR (IR M[AR]).
4. Increment PC by enabling the INR input of PC
(PC PC + 1). 38
Instruction Cycle
39
Instruction Cycle
40
41
Type of Instructions
42
43
Instruction Cycle
44
Instruction Cycle
45
Instruction Cycle
46
Instruction Cycle
48
Instruction Cycle
51
Instruction Cycle
53
Instruction Cycle
54