What Is The Purpose Of A Cpu Register
What is the purpose of a register in a CPU and what are special purpose registers?
A CPU register is a small-scale and temporary storage containing a set of data holding places that are part of the figurer processor. A register holds an pedagogy, a storage address, or any kind of data.
Before trying to understand some special purpose registers, let us try to understand the divergence between General purpose and special purpose registers.
-
Special purpose registers hold the status of a program. These registers are designated for a special purpose. Some of these registers are stack pointer, program counter etc.
-
General purpose registers hold the temporary data while performing different operations. Some of these registers are accumulator, BX etc.
Special Purpose Registers
Permit the states see some of the special purpose registers used in CPUs.
Instruction Register (IR)
The Teaching Register (IR) stores the instruction currently existence executed. In uncomplicated processors each instruction to exist executed is loaded into the instruction register which holds it while it is decoded, prepared and ultimately executed.
Co-operative (unconditional), BRANCH IF ZERO (conditional) takes the place of the instruction register in the LMC.
Condition register
A Status annals or flag register or condition code annals is a collection of status flags based on a processor. Condition register is also a hardware register that contains the information almost the state of the processor.
This register has a size of 16 bits with each scrap having a flag. Condition annals is used in dissimilar conditions like if the result is negative, result is zero etc. There are dissimilar types of status registers such as Program Status registers is the register which holds the condition of current execution of the program.
It also controls the enabling and disabling of interrupts and sets the processor operating mode.
Plan status register is divided into following −
-
Application program condition registers (APSR)
-
Interrupt program status registers (IPSR)
-
Execution program status registers (EPSR)
If the flag is Z − It indicates that the result of the arithmetic operations which were loaded is nix.
If the flag is Due north − It indicates that the result of mathematical operation is negative.
If the flag is Five/O − It indicates that the result of the performance is besides large to fit in the register. That is the reason it overflows the result.
If the flag is P − Information technology indicates that the number of sets of bits the last event is odd or even.
Shift register
A Shift Register is a kind of sequential logic circuit that have ability of both storing and transferring data, fabricated upwards of flip-flops and connected in such way that the output of ane flip-flop will work as the input of other flip-flop (depending upon which type of shift register is used)
There are half-dozen types of shift register which are equally follows −
-
Serial in - Series out Shift Register − It streams-in data serially ane afterwards the other and streams-out in similar fashion.
-
Serial in - Parallel Out Shift Register − It converts the data in serial manner and out the data in parallel manner
-
Parallel in - Serial Out Shift Register − It takes data in parallel and streamsout in serial fashion (one after other).
-
Parallel in - Parallel Out Shift Annals − Input data fed-in parallel and output data is streams-out simultaneously parallel.
-
Bidirectional Shift Register − This shift register can perform either right or left data shift or could perform in both directions.
-
Counters − It feedbacks their output into the device every bit input in such a manner that creates a particular pattern or sequence.
Accumulator Annals (AC)
It is used for storing the results that are produced past the arrangement. When the CPU gives the results after the executing then all the results are Stored into the AC Register.
Memory Address Register (MAR)
Information technology is used to concord the memory addresses of information and instructions. Information technology accesses data and instructions from memory during the execution phase of an instruction. For instance, the CPU wants to store some information in the retentivity or to read the data from the memory. It places the address of the-required retentiveness location in the MAR.
Program Counter (PC)
Information technology contains the address of the side by side teaching to be executed. In other words, it holds the address of the retentiveness location of the next teaching when the current instruction is executed by the microprocessor.
Published on 26-Nov-2021 10:42:52
- Related Questions & Answers
- What are the CPU general purpose registers?
- What is the CPU control annals?
- What is the purpose of a constructor in java?
- General purpose registers in 8086 microprocessor
- What is the purpose of System Programs?
- What is the purpose of Arrangement Calls?
- What is the purpose of Human Life?
- What is the purpose of whatever enquiry?
- What is the purpose of Adventure Management?
- What is the purpose of a default constructor in Java?
- What is the purpose of a process command block (PCB)?
- What is the purpose of interfaces in java?
- What is the purpose of the command interpreter?
- What is the purpose of the testng.xml file?
- What is the purpose of the .gitignore file?
What Is The Purpose Of A Cpu Register,
Source: https://www.tutorialspoint.com/what-is-the-purpose-of-a-register-in-a-cpu-and-what-are-special-purpose-registers
Posted by: robersonexiousle55.blogspot.com

0 Response to "What Is The Purpose Of A Cpu Register"
Post a Comment