Despite these similarities, the register and the memory share few differences with each other. The fundamental difference between the register and the memory that the register contains the data that the CPU is currently processing, while the memory it contains the program instructions and the data the program requires for execution.
We will discuss some more differences between register and memory with the help of the comparison chart shown below.
|Basic||The registers contain the operands or instructions that the CPU is currently processing.||The memory contains the instructions and data required by the program currently running on the CPU.|
|capacity||Register holds the small amount of data between 32-bit and 64-bit.||Computer memory can vary from a few GB to TB.|
|Access||The CPU can operate on the contents of the register at the speed of more than one operation in a clock cycle.||The CPU accesses memory slower than recording.|
|kind||Accumulator register, program counter, instruction register, address register, etc.||RAM.|
Definition of the register
Logs are the elements of data retention smaller embedded in the processor itself. Logs are the memory locations directly accessible by the processor. The registers contain the instructions or operands currently accessible by the CPU.
Logs are accessible storage items high speed . The processor accesses the registers within a CPU clock cycle . In fact, the processor can decode the instructions and perform operations on the contents of the register speed of more than one operation per CPU clock cycle. So we can say that the processor can access registers faster than main memory.
The bit-measured register as a processor can have 16-bit, 32-bit or 64-bit registers. The number of register bits specifies the speed and power of the CPU. For example, a CPU with a 32-bit register can access 32-bit instructions at a time. The CPU with 64-bit register can execute 64-bit instructions. So, plus the number of register bits plus the speed and power of the CPU.
Computer registries are classified as follows:
DR: Data Register a register 16 bit which contains the operands that must be managed by the processor.
AR: Address Register a register 12 bit which contains the address of a memory location .
B.C: Accumulator also a 16 bit register containing the calculated result from the processor.
IR: The instruction book a register 16 bit which contains the instruction code which must be done currently.
PC: Program Counter a 12 bit register that contains the education address which must be run by the processor.
TR: Temporary Register a register 16 bit which contains the temporary intermediate result calculated by the processor.
INPR: Input Register a register a 8 bit that contains the input character received by a input device and delivered it accumulator .
OUTR: Output Register a register a 8 bit that contains the output character received from Accumulator and deliver it to output device .
Definition of memory
Memory is a hardware device used to store computer programs, instructions and data. Processor internal memory one primary memory (RAM) and external memory to processor one secondary storage (hard drive) . Memory can also be categorized on the basis of memory volatile is not volatile .
Basically, the memory of the computer yes refers to primary memory computer while, the secondary memory indicated as memory Of computer. Primary memory is the memory that the processor can access directly to because of which there is no delay in accessing data and therefore the processor calculates faster.
Primary memory or RAM is a memory volatile, the which means that the data in primary storage exists when the system power is on and the data disappears when the system is turned off. The main memory contains the data that will be requested by the program currently running on the CPU. If the data requested by the processor is not in primary memory, the data is transferred from secondary memory to primary memory and is then retrieved from the processor.
One time save yourself the data on the computer are transferred to secondary memory as long as it remains in the main memory. Today primary memory or RAM can vary from 1 GB to 16 GB . On the other hand, secondary storage today varies from some Giga Byte (GB) to TeraByte (TB) .
Key differences between register and memory
- The main difference between register and memory than the register contains the data that the CPU is currently processing, while memory retains the data that will be necessary for processing .
- The log goes from 32-bit register to 64-bit register while, the memory capacity varies by some GB to some TB .
- The processor accesses the registry faster of memory.
- Computer registries are registry of accumulators, program counter, instruction register, address register, etc. On the other hand, the memory referred to as the main memory of the computer that RAM.
Normally the registry resides at the top of the memory hierarchy. the smallest and most easily accessible storage element. On the other hand, memory generally refers to the main memory which is larger than the register and its access to the CPU slower than the register, but accessible faster than the secondary memory.