/
CPU Architecture Concepts
Save to my account
Sign up
CPU Architecture Concepts
CPU Architecture Concepts
Study
1
Question
What is the primary function of the Arithmetic Logic Unit (ALU) in a CPU?
Answer
The Arithmetic Logic Unit (ALU) performs arithmetic calculations, logical computations, and shifts/rotates.
2
Question
What is the function of the control unit in the CPU?
Answer
The control unit directs the information flow through the ALU by selecting various components in the system and selecting the function of the ALU.
3
Question
What is the purpose of general-purpose registers in a CPU?
Answer
General-purpose registers allow for relatively fast transfers between registers within the processor.
4
Question
What is a stack in the context of computer architecture?
Answer
A stack is a storage organization that can be accessed in a Last In, First Out (LIFO) manner, useful for nested subroutines and arithmetic expression evaluation.
5
Question
What are the three types of register organizations mentioned?
Answer
1. Single register Accumulator organization 2. General register organization 3. Stack organization.
6
Question
What are the characteristics of the Accumulator organization?
Answer
In Accumulator organization, the Accumulator is the only general purpose register.
7
Question
What does the term 'reverse Polish notation' refer to in arithmetic expressions?
Answer
Reverse Polish notation is a method of writing arithmetic expressions without parentheses, allowing for easier stack manipulation.
8
Question
What is the role of the Stack Pointer (SP) in stack organization?
Answer
The Stack Pointer (SP) points to the current top of the stack, managing access to the stack for PUSH and POP operations.
9
Question
What are the fields typically found in an instruction format?
Answer
1. OP-code field: specifies the operation to be performed. 2. Address field: designates memory addresses or processor registers. 3. Mode field: determines how the address field is to be interpreted.
10
Question
Describe Direct Address Mode in addressing modes.
Answer
Direct Address Mode specifies the memory address which can be used directly to access memory, making this mode faster than others but requiring many bits for large memory spaces.
11
Question
What is the implication of Indirect Addressing Mode?
Answer
In Indirect Addressing Mode, the address field of an instruction specifies the address of a memory location that contains the address of the operand, which results in slower operand access due to an additional memory access.
12
Question
What types of status flags might be included in a processor status word (PSW)?
Answer
Common flags include: 1. C Carry: set to 1 if the carry out of the ALU is 1. 2. S Sign: the MSB bit of the ALU's output. 3. Z Zero: set to 1 if the ALU's output is all 0's. 4. V Overflow: set to 1 if there is an overflow.
13
Question
What does the term 'data transfer instructions' refer to?
Answer
Data transfer instructions refer to operations that move data between registers, memory, or I/O devices.
14
Question
Explain the concept of 'Program Control Instructions'.
Answer
Program Control Instructions are commands in assembly language that direct the flow of the program, allowing for branching, looping, and subroutine calls.
15
Question
What is the significance of the instruction fields in relation to CPU architecture?
Answer
The instruction fields are significant as they specify operations, memory addresses, and how to interpret those addresses, thus affecting how the CPU performs its tasks.
16
Question
What is the purpose of using various addressing modes in a CPU?
Answer
Various addressing modes are used to provide programming flexibility to the user and to utilize the bits in the address field of the instruction efficiently.
17
Question
How does stack organization differ from general register organization?
Answer
In stack organization, all operations are performed using a hardware stack, whereas in general register organization, any of the registers can be used as a source or destination for operations.
18
Question
What is meant by 'Arithmetic Expressions'?
Answer
Arithmetic expressions are mathematical statements that can be represented using various notations such as infix, prefix, or postfix (Polish and reverse Polish notation).
19
Question
Define 'LIFO' in the context of stack organization.
Answer
LIFO stands for Last In, First Out, which is a method of accessing data where the last item added to the stack is the first one to be removed.