×

Computer: CPU (Central Processing Unit)

What is CPU? Explain its block Diagram

The Central Processing Unit is known as the central processor or main processor. The CPU is an electronic circuitry within the computer which can control the input/ output operations and carries out the instructions of the computer program by the basic arithmetic and logical unit.

what is cpu explain its block diagram

Figure: Block diagram of CPU.

The CPU can control the instructions and data flow. The CPU contains internal memory units which are known as registers. The registers contain data, instructions, counters, and addresses.  Some computers have two or more processors. The Central processing unit has two components which are given below:

The Arithmetical Logical Unit (ALU)

The arithmetical logical unit is the combinational digital electronic circuit. It can perform arithmetic and bitwise operations on integer binary numbers. The ALU is the fundamental building block of many types of computing circuits. The ALU (Arithmetic Logical Unit) has the status of inputs, outputs, or both which convey the information about the previous operation or the current operation. The ALU has three parallel data buses consist of two input operand (A and B) and the resulting output. Every data bus is the group of signals that transfer one binary integer number.

ALU (Arithmetic Logic Unit) Block diagram

Fig: The ALU (Arithmetic Logic Unit) Block diagram.

The single CPU (control processing unit), FPU (floating-point unit), and GPU (graphics processing unit) contain multiple ALU’s (logical arithmetic units). The ALU has a variety of inputs and outputs which are electrical conductors.

The Control Unit (CU)

The control unit is the component of the central processing unit in the computer system. It is used to control the operation of the processor.  The control unit tells to computer memory that how to respond to instructions which are sent to the processor.

control unit

The Memory Management Unit (MMU)

The memory management unit is the computer hardware unit having the reference of all memories passed through it. This memory unit is used to the translation of virtual memory address to a physical address. The memory management units allowed to managing the multiple programs in single physical memory with its own address space. It is used to provide virtual addressing.

This translation process is known as memory mapping because addresses are mapped from the logical space into physical space. The memory management unit is not common in embedded systems because the virtual memory requires the secondary storage device such as a disk.

memory management unit

Fig: The MMU (Memory Management Unit).

The MMU performs virtual memory management and handling memory protection at the same time. It is located within the computer’s central processing unit, and Sometimes it operates in the separate integrated chip (IC).

The memory management unit accepts the logical addresses from the central processing unit. These logical addresses refer to the program’s abstract address space but do not compare to the actual RAM location. If we add the secondary storage unit such as disk, we can eliminate the parts of the program from the main memory. In the virtual memory system, the memory management unit keeps track of which logical addresses are resident in the main memory. When the CPU requests to the address and that address is not present in the main memory, then the Memory management unit generates an exception which is known as a page fault.

Address Generation Unit (AGU)

The address generation unit or address computation unit is the execution unit inside the central processing unit. This unit can calculate the address used by the CPU to access the main memory. The CPU needs to calculate memory addresses required for fetching the data from memory while performing different operations.

The Capabilities of any AGU is depended on the particular CPU and its architecture. Some CPU architecture includes multiple AGUs that’s why they can execute more than one address- calculation operation, simultaneously.

Some AGUs implement and expose the address calculation operation. The offset address and the reverse carry address operate in parallel and share common input in the AGU (address generation unit).

The only difference between the offset address and the reverse carry address is that the carry propagates in the opposite direction. Every ALU address can update one address register from its respective address register file during one instruction cycle. The value of modifier is decoded in ALU address.

Address generation unit

Fig: The AGU (address generation unit).

The AGU operates parallel with the other chip resources, to minimize the address generation over the head. The address generation unit implements four kinds of arithmetic operations which are given below:

  1. Linear operation.
  2. modulo operation.
  3. Multiple wraps around modulo.
  4. Reverse-carry operation.

Cache

The cache is the hardware or software component in the computer memory. The cache memory can store the data so that the future request of that data can be served faster than other memories. The information which is stored in the cache memory might be the result of the earlier computation or the copy of that data, stored elsewhere.

When the system writes data in the cache, it must at some points write that data in the backing store. The cache is made up from the pool of entries. Every entry has associated information, which is the copy of the same data in some backing store. 

Each entry also has the tag which specifies the identity of the data in the backing store. When the cache is checked and not found contain any entry with the desired tag, is known as the cache miss. Once the requested data is retrieved, that data is copied into the cache memory and ready for the next access.

Cache

The cache is the small-sized, volatile type of computer memory. It can store frequently used computer programs, application, and data. The cache is integrated on to the motherboard and directly embedded in the processor or main random access memory (RAM).

The Logical cache can stores data in virtual address space. The logical cache is situated in between the processor and memory management unit. The processor can access the data from the logical cache directly without going through the memory management unit. The logical cache is also called the virtual cache.

Related Posts:


Related Topics

What is a Dual-boot?

A dual boot system is a computer configuration that allows users to install and run two or more operating systems (OS) on a single machine. This setup can be useful...

6 minutes read.

How to fix a general protection fault?

The suggestions below may help you resolve the issue if you frequently see GPF (general protection fault) issues when utilizing an application on your computer. Errors involving the General Protection...

6 minutes read.

What is Back Quote?

A back quote, also known as a grave accent or backtick, is a punctuation mark used in various programming languages to denote a literal string or command in the command...

6 minutes read.

What is Modem?

A modem is a device that is responsible for modulating and demodulating the signals in a computer network. The modem is an abbreviation for Modulator - Demodulator. It allows the...

7 minutes read.

What Are Bottom Row Keys?

The bottom row keys, also known as the "home row" keys, are important for several reasons: The bottom row keys are where the fingers rest when not typing and are the...

7 minutes read.

What is Case Badge?

A case badge is a small label or symbol fixed to the outside of a computer case, typically on the front panel that displays the manufacturer's name or logo. Some...

6 minutes read.

Virtual Reality

Virtual reality is a digital experience that simulates the real world but is different from the real world. It is completely generated by the computer and does not affect the...

5 minutes read.

Computer Virus

"The computer virus is a malicious code that replicates by copying itself to another program."  It can destroy a single program or the whole software of the computer system. In...

3 minutes read.

How does a computer process data into information?

What is data Data is a type of information. Data can be in the form of images, integers, or strings of letters. All data must be entered into the personal computer...

3 minutes read.

What is the svchost.exe file used for in Windows?

Svchost.exe is a crucial Windows file that loads the DLL files necessary by Microsoft Windows and other programs that operate under Windows on your computer. Multiple Windows services can share...

8 minutes read.

What is a Cordless Mouse?

A wireless mouse, often known as a cordless mouse, is one that connects wirelessly to a computer. Instead, the mouse makes use of wireless technologies like Bluetooth, RF, or infrared...

4 minutes read.

What is an Expansion Card?

An expansion card is also called an add-on card, or an adapter card is a Printed Circuit Board (PCB) on the motherboard and fixed into an expansion slot. An expansion...

6 minutes read.

Block Diagram of Computer

Computer Block Diagram System: Mainly computer system consists of three parts, that are central processing unit (CPU),Input Devices, andOutput Devices. The Central Processing Unit (CPU) is divided into two parts...

5 minutes read.

How to erase my hard drive and start over

The computer is set to default settings with the help of system restore disc. The reset or format in a computer eliminates the issues related to the software installed into...

6 minutes read.

What is Operating System?

Operating System An operating system is an interface between a user and computer hardware. The operating system's main aim is to provide a suitable environment to a user so that a...

11 minutes read.

What is an ATX Style Connector?

ATX Design in 1995, Intel created ATX (Advanced Technology eXtended), a motherboard and power supply configuration standard to create on previous factor standards like the AT architecture. It was the...

5 minutes read.

How does a Computer work?

How does a Computer work? As humans we always built tools that helps up to solve our problems. All the early inventions unlike wheelbarrow, hammer, printing press, or a tractor, helped...

8 minutes read.

What is Video Card?

It is a component in the personal computer that is used to connect with the motherboard in the CPU. It is also called the graphic card or video control; as...

13 minutes read.

Case Sensitive Languages

Every language, system, or program has the capability to differentiate between different case alphabets. If a programming language doesn’t work properly in upper case and lower case letters interchangeably, it...

4 minutes read.

Function Keys on Keyboard

The function keys are present in each keyboard. There are a total of twelve function keys labelled from F1 to F12. Each function key is designed to carry out a...

4 minutes read.