What is a Control Unit (CU)? – Explained in Simple Terms
The full form of CU is Control Unit. It is one of the most important parts of a CPU (Central Processing Unit). The main job of the Control Unit is to manage and control all the operations happening inside a computer.
In simple words, the Control Unit acts like the brain behind the scenes. It tells every part of the computer what to do, how to do it, and when to do it.
What Does the Control Unit Do?
The Control Unit controls all the parts of the computer like:
-
Memory
-
Input and Output devices
-
ALU (Arithmetic Logic Unit)
It communicates with these components to execute instructions and transfer data as needed. It fetches instructions from the main memory, decodes them, and then sends them to the ALU for execution. After the execution, the results go back to the Control Unit.
It also helps the Logic Unit, memory, and input/output devices understand how to respond to instructions from a program.
Both CPU and GPU use a Control Unit to function properly.
Main Parts of the Control Unit
-
Program Counter (PC)
This keeps track of the instructions stored in memory and loads them in order. -
Instruction Register (IR)
This decodes the instructions fetched by the Program Counter and turns them into commands that the CPU can understand and execute.
Functions of the Control Unit
Here are the main roles of the Control Unit:
-
Controls the flow of data between the CPU and other devices.
-
Manages and controls all computer operations.
-
Directs the ALU, registers, and data buffers.
-
Handles all connected devices.
-
Processes data but doesn’t store it.
-
Transfers data to/from input and output devices.
-
Controls all computer units.
-
Selects instructions from memory.
-
Manages the booting process.
-
Tells input devices where to store the data in memory.
Types of Control Units
There are two main types of Control Units:
1. Hardwired Control Unit
In this type, control signals are generated using special hardware circuits. These signals cannot be changed once designed.
How it works:
Instructions from memory are sent to the Instruction Register (IR), which helps generate the control signals.
Advantages:
-
Very fast in generating signals.
-
Works faster than microprogrammed units.
-
Best for high-speed operations.
Disadvantages:
-
Expensive to design.
-
Complex to build.
-
Control signals cannot be modified.
-
Difficult to add new features.
-
Errors are hard to find and fix.
2. Microprogrammed Control Unit
This type stores control signals in a control memory using a software-like approach.
How it works:
Instructions are stored in binary form (as words). Signals are generated based on the bits in each instruction.
Advantages:
-
Cheaper to build.
-
Fewer chances of errors.
-
More flexible and easier to update.
-
Easier to decode instructions.
-
Uses less memory.
Disadvantages:
-
Slower than hardwired units.
-
Less commonly used.
-
Lower priority in high-performance systems.
Conclusion
The Control Unit is like the boss of the computer system. It doesn’t process data directly, but it controls and guides every part of the CPU to do its job. Whether it’s fetching instructions, communicating with memory, or guiding input/output devices – everything depends on the CU.
Understanding the Control Unit is key to learning how computers work on the inside!
CU (Control Unit) in Hindi – कंट्रोल यूनिट क्या है?
CU का पूरा नाम Control Unit (कंट्रोल यूनिट) है। यह CPU का एक महत्वपूर्ण हिस्सा है जो कंप्यूटर में होने वाली सभी प्रक्रिया को नियंत्रित (control) करता है।
दूसरे शब्दों में कहें तो, “कंट्रोल यूनिट सीपीयू का एक हिस्सा है जो कंप्यूटर से जुड़ी हुई सभी डिवाइसो और उनके कार्यों को नियंत्रित (control) करता है।”
कण्ट्रोल यूनिट का मुख्य कार्य कंप्यूटर के सभी parts को नियत्रित (control) करना होता है। इसके अलावा यह कंप्यूटर में हो रही प्रक्रियाओं को execute और control करने में मदद करता है।
Control Unit मुख्य मेमोरी और इनपुट/आउटपुट डिवाइस के साथ कम्यूनिकेशन करता है और इसके अलावा यह I/O device (इनपुट/आउटपुट डिवाइस) में डेटा को ट्रांसफर करता है।
Control Unit मुख्य मेमोरी (main memory) से निर्देशों (instructions) को प्राप्त करके उन्हें डिकोड करता है और इसके बाद इन निर्देशों को execute होने के लिए ALU के पास भेज देता है। ALU इन निर्देशों को execute करने के बाद वापस CU को भेज देता है।
कण्ट्रोल यूनिट कंप्यूटर की लॉजिक यूनिट (LU) , मेमोरी, और इनपुट/आउटपुट डिवाइसों को यह जानने में मदद करती है की प्रोग्राम से प्राप्त निर्देशों का जवाब कैसे देना है।
कंट्रोल यूनिट का उपयोग CPU और GPU दोनों के द्वारा किया जाता है।
कण्ट्रोल यूनिट के दो महत्वपूर्ण parts (भाग) होते है पहला PC (प्रोग्राम काउंटर) और दूसरा IR (इंस्ट्रक्शन रजिस्टर). प्रोग्राम काउंटर का काम मेमोरी से निर्देशों को अलग अलग करके लोड करना होता है और उन्हें एक क्रम से स्टोर करना होता है।
इंट्रक्शन रजिस्टर का काम प्रोग्राम काउंटर द्वारा स्टोर किये गए निर्देशों को डिकोड करना और उन्हें CPU के लिए कमांड के रूप में कन्वर्ट करना होता है ताकि उनका उपयोग CPU कर सके।
Functions of Control Unit In Hindi – कंट्रोल यूनिट के कार्य
1- कण्ट्रोल यूनिट का कार्य सीपीयू और अन्य डिवाइस के बीच डेटा के प्रवाह (flow) को नियंत्रित करना है।
2- यह कंप्यूटर के सभी ऑपरेशन को कण्ट्रोल करता है।
3- यह ALU, डेटा बफर्स और रजिस्टर को नियंत्रित करता है।
4- यह कंप्यूटर से जुड़ी हुई सभी डिवाइसों को कंट्रोल करता है।
5- कंट्रोल यूनिट डेटा को प्रोसेस करता है। परंतु यह डेटा को स्टोर नहीं करता।
6- डेटा को ट्रांसफर करने के लिए यह इनपुट और आउटपुट डिवाइसों के साथ संचार (communication) करती है।
7- यह कंप्यूटर की सभी इकाइयों (units) को कण्ट्रोल करती है।
8- कण्ट्रोल यूनिट कंप्यूटर की main memory से निर्देशों को select करता है।
9- यह बूटिंग की प्रक्रिया को पूरा करता है।
10- यह इनपुट डिवाइस को बताता है कि डेटा को किस मेमोरी लोकेशन में स्टोर करना है।
Types of Control Units in Hindi – कंट्रोल यूनिट के प्रकार
इसके दो प्रकार होते है:-
1- Hardwired control unit (हार्डवायर्ड कंट्रोल यूनिट)
हार्डवायर्ड कण्ट्रोल यूनिट एक ऐसी यूनिट है जिसमें control signals को विशेष प्रकार के hardware logic circuit के द्वारा generate (उत्पन्न) किया जाता है। इन control signals में किसी भी प्रकार का बदलाव नहीं किया जा सकता।
इसमें मेमोरी से प्राप्त निर्देशों को IR (इंस्ट्रक्शन रजिस्टर) में रखा जाता है।
Hardwired control Unit के फायदे
1- यह यूनिट तेज गति के साथ सिग्नल को उतपन्न करती है।
2- यह माइक्रोप्रोग्राम्ड कन्ट्रो यूनिट की तुलना में तेज है।
3- इसका उपयोग ऑपरेशन को तेज गति से करने के लिए किया जा सकता है।
Hardwired control Unit के नुकसान
1- यह यूनिट काफी महंगा है।
2- इसका डिज़ाइन जटील (complex) है।
3- इसमें कण्ट्रोल सिग्नल को modify नहीं किया जा सकता है।
4- इसमें नए feature को जोड़ना काफी कठिन होता है।
5- इसमें गलतियों का परीक्षण (test) करना और उनमे सुधार करना मुश्किल होता है।
2- Microprogrammed Control Unit (माइक्रोप्रोग्राम्ड कंट्रोल यूनिट)
माइक्रोप्रोग्राम्ड कंट्रोल यूनिट में control memory का इस्तेमाल control signals को स्टोर करने के लिए किया जाता है।
इस यूनिट में बाइनरी संख्या एक शब्द में रूप से स्टोर होती है। इस यूनिट को लागू (implement) करने के लिए programming approach का उपयोग किया जाता है।
इस यूनिट में प्रत्येक सिस्टम block bit पर संकेतो को कलेक्ट करके निर्देशों को उतपन्न करता है।
Microprogrammed Control Unit के फायदे
1- कण्ट्रोल यूनिट काफी सस्ता होता है।
2- यह कंप्यूटर में होने वाली त्रुटिओ (error) को कम करता है।
3- यह निर्देशों के साथ अधिक लचीला (flexible) होता है।
4- इसमें निर्देशों को डिकोड करना आसान होता है।
5- यह कंप्यूटर में बहुत कम मेमोरी का उपयोग करता है।
Microprogrammed control unit के नुकसान
1- माइक्रोप्रोग्राम कंट्रोल यूनिट हार्डवेयर्ड कंट्रोल यूनिट की तुलना में धीमी होती है।
2- यह कम लोकप्रिय है।
3- इसे ज्यादा प्राथमिकता (priority) नहीं दी जाती।