DIGITAL LOGIC AND COMPUTER�ORGANIZATION (24AM202)
Dr. G. Polaiah
Assistant Professor
Department of ECE
2
Text Book: Morris Mano, “Computer Systems Architecture”, 3rd edition
Introduction to Computer Organization and Architecture�(Part-1)
3
4
5
6
7
Key Aspects of Computer Organization
Physical Components:
It deals with the actual hardware, such as the Central Processing Unit (CPU), memory units, arithmetic and logic units (ALU), and input/output (I/O) devices.
Interconnections and Data Paths:
Computer organization examines the different ways these components are connected and how data moves between them.
Control Unit:
It includes the organization of the control unit, which directs the operations of the system
9
Example of Functional Units in a Computer
Input Unit: Accepts data and instructions from the user.
Memory Unit: Stores data and instructions needed for processing.
Arithmetic Logic Unit (ALU): Performs all the calculations and logical operations.
Output Unit: Displays the processed data to the user.
Control Unit (CU): Directs the operations of the system by sending control signals to other components
11
Text Book: Morris Mano, “Computer Systems Architecture”, 3rd edition
(Page No. 93)
12
13
Problem: A digital computer has a common bus system for 16 registers of 32 bits each. The bus is constructed with multiplexers.
Answer:
(a) 4 selection lines to select one of 16 registers.
(b) 16 × 1 multiplexers.
(c) 32 multiplexers, one for each bit of the registers.
14
Key Components and Operations
Arithmetic operations (addition, subtraction)
Logical operations (AND, OR, NOT)
Shift operations
Counting and clearing
15
Example�
16
For example:
Memory Address Register (MAR)
Program Counter (PC)
Instruction Register (IR)
Processor Register (R1)
17
Text Book: Morris Mano, “Computer Systems Architecture”, 3rd edition
(Page No. 95)
18
19
20
21
22
23
24
25
Three-State Bus Buffers
26
27
28
29
Memory Transfer
30
Key registers
31
Memory transfer operations
Read operation:
Symbolic representation: MDR ← M[MAR].
32
Write operation:
Symbolic representation: M[MAR] ← MDR.
33
How bus and memory transfer work together
The CPU uses the bus to perform memory operations by following a sequence of steps:
34
35
36
Micro operations�(Part-2)
37
(a) 4-bit binary adder
38
39
40
41
(b) Binary lncrementer
42
43
Examples: 10110, 000, 1, and 101010 are all bit strings.
44
45
46
47
48
49
50
2. Circular shift
51
3. Arithmetic shift
52
(i) arithmetic shift right
(ii) arithmetic shift left
53
Difference between arithmetic shift and logical shift
54
55
One Stage of Arithmetic Logic Shift Unit
56
57
Basic Computer Organization and Design�(Part-3)
58
# Syllabus topics
59
60
Example:
Consider a computer with 64 distinct operations, one of them being an ADD operation. The operation code consists of six bits, with a bit configuration 110010 assigned to the ADD operation. When this operation code is decoded in the control unit, the computer issues control signals to read an operand from memory and add the operand to a processor register.
61
62
63
64
65
66
67
68
69
70
c) Input - output instruction
71
72
73
In the basic computer each instruction cycle consists of the following phases:
1. Fetch an instruction from memory.
2. Decode the instruction.
3. Read the effective address from memory if the instruction has an
indirect address.
4. Execute the instruction.
Upon the completion of step 4, the control goes back to step 1 to fetch, decode, and execute the next instruction. This process continues indefinitely unless a HALT instruction is encountered.
74
75
76
77
78
3) LDA: Load to AC
79
4) STA: Store AC
80
81
82
83
84
85
86
87
**********
88
(This type of transfer uses the interrupt facility.)
Note: A flag is a single binary digit (0 or 1) used to signal for a specific status or condition in a computer's processor.
89