Despite these similarities, registration and memory share few differences between them. The basic difference between registration and memory is that the registry it contains the data that the CPU is currently processing, while the memory It contains the instructions and data of the program that the program requires for its execution.
We will discuss some more differences between registration and memory with the help of the comparison chart shown below.
|BASIC||The records 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||The register saves the small amount of data from around 32 bits to 64 bits.||The computer memory can range from a few GB to TB.|
|Access||The CPU can operate in the register contents at the speed of more than one operation in a clock cycle.||The CPU accesses the memory at a slower rate than the registry.|
|Type||Accumulator register, program counter, instruction register, address register, etc.||RAM.|
Records are the data retention elements smaller what are integrated into The processor itself. Logs are the memory locations that the processor can access directly . The records contain the instruction or operands currently accessed by the CPU.
Logs are the accessible storage items of high speed . The processor accesses the records within a CPU clock cycle . In fact, the processor can decode the instructions and perform operations on the contents of the registry at the speed of more than one operation per CPU clock cycle. Then we can say that the processor can access the records faster than the main memory.
The register is measured in bits, 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 that has a 32-bit register can access 32-bit instructions at the same time. The CPU that has a 64-bit register can execute 64-bit instructions. Therefore, more the number of register bits ms is the speed and power of the CPU.
The computer records are classified as follows:
DR: Data register it is a 16-bit register that contains the operands The processor must operate.
AR: Address Register it is a 12-bit register that contains the address of a memory location .
AC: The accumulator It is also a 16-bit register that contains the calculated result by the processor.
IR: the instruction record it is a 16-bit register that contains the instruction code which must currently run.
PC: Program Counter it is a 12-bit register that contains the direction of instruction It must be executed by the processor.
TR: Temporary registration it is a 16-bit register that contains the temporary intermediate result Calculated by the processor.
INPR: Check-in it is an 8-bit register that contains the input character received from a input device and handed it to accumulator .
OUTR: check out it is an 8-bit register that contains the exit character received from accumulator and delivers it to output device .
Memory is a hardware device used to store computer programs, instructions and data. The memory that is internal to the processor is a primary memory (RAM), and the memory that is external to the processor is a secondary memory (hard disk) . Memory can also be classified based on volatile memory Y not volatile .
Basically, the memory of the computer se refers to the primary memory of the computer while the secondary memory it's called storage of the computer. Primary memory is the memory that the processor can access directly because there is no delay in access to the data and, therefore, the processor calculates faster.
The primary memory or RAM is a memory volatile, which means that the data in the primary memory exists when the systems are turned on and the data disappears when the system is turned off. The main memory contains the data required by the program currently running on the CPU. If the data required by the processor is not in the primary memory, then the data is transferred from the secondary storage to the primary memory, and then the processor searches for it.
Once guard the data on the computer is transferred to secondary storage until it remains in primary memory. Today, primary memory or RAM may vary from 1 GB to 16 GB . On the other hand, the current secondary storage varies from some Giga Bytes (GB) to TeraBytes (TB) .
Key differences between registration and memory
- The main difference between the registry and the memory is that the registry contains the data that the CPU is currently processing, while memory contains the data that will be required for processing .
- Registration ranges range from the registration of 32 bits up to 64 bit register, while the memory capacity varies from some GB to some TB .
- The processor accesses the records faster than memory
- Computer records are the record of the accumulator, program counter, instruction register, address register, etc. On the other hand, memory refers to the main memory of the computer that is RAM.
Normally, the record is at the top of the memory hierarchy. It is the smallest and fastest accessible storage item. On the other hand, the memory generally known as the main memory that is larger than the registry and its access to the CPU is slower than the registry, but is accessed faster than the secondary storage.