Computer Organization Chapter 8 Short Note
Computer Organization Chapter 8 Short Note
Register:
• Memory locations are needed for storing pointers, counters, return
address, temporary results, and partial products during
multiplication.
• Memory access is the most time-consuming operation in a
computer.
• More convenient and efficient way is to store intermediate values
in processor registers.
8.2: General Register Organization
Bus System:
• 2 MUX: The output of each register is connected to two
multiplexers (MUX) to from the two buses A and B.
• BUS (A&B): The A and B buses form the inputs to a common ALU.
• ALU: Determines the arithmetic or logic micro-operation.
• Decoder (3X8): The decoder activates one of the register load
inputs, thus providing a transfer path between the data in the
output bus and the inputs of the selected destination register.
• The register that receives the information from the output bus is
selected by a decoder.
8.2: General Register Organization
Control Word
• 14 bit control word:
- SELA (3 bits): select a source register for the A input of the ALU
- SELB (3bits): select a source register for the B input of the ALU
- SELD (3 bits): select a destination register using the 3x8 decoder
- OPR (5 bits): select one of the operation in the ALU
• Encoding of ALU Operation (OPR):
- SELA or SELB = 00 (input): MUX selects the external input data
- SELD = 000 (none): no destination register is selected but the
contents of the output bus are available in the external output.
8.2: General Register Organization
8.3: Stack Organization
Stack Limits: The stack limit can be checked by using two processor
registers:
- One to hold the upper limit
- And other to hold her lower limit
PUSH: After PUSH operation SP compared with the upper limit register
POP: After a POP operation SP is compared with the lower limit register
8.3: Stack Organization
- Return:
8.7: Program Control
Program Interrupt:
- Types of interrupts
- External interrupts: I/O device, timer etc.
- Internal interrupts: illegal instruction or data
- Software interrupts: special call instruction that behaviors like an interrupt
rather than a subroutine call
- The state of the CPU which must be saved
- The content of the program counter
- The content of all processor registers
- The content of certain status conditions
- The CPU does not respond to an interrupt until end of an instruction execution
8.8: Reduced Instruction Set Computer (RISC)
CISC characteristics:
- A large number of instruction (100 to 250)
- Some instructions that perform specialized tasks and are used infrequently
- A large variety of addressing modes (5 to 20)
- Variable-length instruction formats
- Instructions that manipulate operands in memory
CRSC characteristics:
- Reality few instructions
- Reality few addressing modes
- Memory access limited to load and store instructions
- All operations done within the registers of the CPU
- Fixed-length, easily decoded instruction formats
- Single-cycle instruction execution
- Hardwired rather than microprogrammed control
8.8: Reduced Instruction Set Computer (RISC)
Overlapped register windows:
- To avoid the need for saving and restoring register values and to provides the
passing of parameters when procedure call and return.
- Local registers are used for local variables. Common registers are used for
exchange of parameters and results between adjacent procedures.
- Only one register window is activated at any given time with a pointer
indicating the active window
- G = the number of global registers
- L = the number of local registers in each window
- C = the number of registers common to two windows
- W = the number of windows
- Windows size = L+2C+G
- Register file = (L+C)W+G
8.8: Reduced Instruction Set Computer (RISC)
THANK YOU!
Reference:
Online Class Lectures Video,
Computer System Architecture(M.M. Mano),
tutorialspoint.com, Google, Wikipedia etc.