Open In App

Register Organization in RISC CPU

RISC processors :
They are processors that use a small instruction set and simple addressing mode so that their instructions can be executed much faster within the CPU with less referring to the memory. This type of processor is classified as a reduced instruction set computer( RISC).

For detailed understanding of the RISC processor and its characteristics, please refer this
Some other characteristics of the RISC processor are –



RISC instructions :

For example :
A program that evaluates X = (A*B) + (C*D), here A,B,C,D are memory locations that contain four numbers and X is a memory location that contains the result of that expression.



Instruction 

comment 

LOAD R1, A

LOAD R2, B

LOAD R3, C

LOAD R4, D

MUL R1, R1, R2

MUL R3, R3 , R4

ADD R1, R1, R3 

STORE X, R1 

; Processor register R1 is loaded with content of the memory location A.

; Processor register R2 is loaded with content of the memory location B.

; Processor register R3 is loaded with content of the memory location C.

; Processor register R4 is loaded with content of the memory location D.

; Multiplication of the contents of the R1 and R2 register and the result is stored in the R1 register (i.e. A*B is performed).

; Multiplication of the contents of the R3 and R4 register and the result is stored in the R1 register (i.e. C*D is performed).

; Addition of contents of register R1 and R3 and the result is stored in the R1 register(i.e. (A*B) + (C*D)).

; Content of R1 register is stored in memory location X. 

Register organization in RISC CPU :

Overlapped register window of RISC CPU

For example

Then the number of registers available for each window is calculated by 

Window size = l+2c+g

The total number of registers required in the processor is

Register file = (l + c)w+ g

For example :

Article Tags :