Computer Fundamental, Organization and Architecture
Computer Fundamental, Organization and Architecture
ANS-1.
Let us look at the basic block diagram of the computer. Then, we will understand
how each part contributes to its functioning.
Block Diagram of a Computer :-
The data that is to be processed is put through the input unit. The computer
accepts the raw data in binary form. It then processes the data and produces the
desired output.
Central Processing Unit or the CPU, is the brain of the computer. It works the
same way a human brain works. As the brain controls all human activities,
similarly the CPU controls all the tasks.
Moreover, the CPU conducts all the arithmetical and logical operations in the
computer.
Now the CPU comprises of two units, namely – ALU (Arithmetic Logic Unit) and
CU (Control Unit). Both of these units work in sync. The CPU processes the data as
a whole.
ALU – Arithmetic Logic Unit
The Arithmetic Logic Unit is made of two terms, arithmetic and logic. There are
two primary functions that this unit performs.
1. Data is inserted through the input unit into the primary memory. Performs
the basic arithmetical operation on it. Like addition, subtraction,
multiplication, and division. It performs all sorts of calculations required on
the data. Then sends back data to the storage.
2. The unit is also responsible for performing logical operations like AND, OR,
Equal to, Less than, etc. In addition to this it conducts merging, sorting, and
selection of the given data.
CU – Control Unit
The control unit as the name suggests is the controller of all the activities/tasks
and operations. All this is performed inside the computer.
The memory unit sends a set of instructions to the control unit. Then the control
unit in turn converts those instructions. After that these instructions are
converted to control signals.
These control signals help in prioritizing and scheduling activities. Thus, the
control unit coordinates the tasks inside the computer in sync with the input and
output units.
Memory Unit
All the data that has to be processed or has been processed is stored in the
memory unit. The memory unit acts as a hub of all the data. It transmits it to the
required part of the computer whenever necessary.
The memory unit works in sync with the CPU. This helps in faster accessing and
processing of the data. Thus, making tasks easier and quicker.
The output unit displays the data either in the form of a soft copy or a hard copy.
The printer is for the hard copy. The monitor is for the display. The output unit
accepts the data in binary form from the computer. It then converts it into a
readable form for the user.
Summary
Let us finally look at what the data flow looks like inside the computer step by
step-
1. The data is accepted by the input unit. It is given by the user. It is then
converted into binary form for the computer to read it.
2. The information is then sent to the memory unit for storage and
processing.
3. The required data, that needs to be processed is accessed by the CPU. It is
accessed from the primary storage. The arithmetic and logical operations
are then performed on the data. The control unit schedules all the activities
for the smooth working of the computer.
4. The data is then sent to the storage unit. It is used for storing or further
processing purposes.
5. Then the output unit receives the final processed output.
Question :- 2.
Explain the function of the central processing unit (CPU) in the block diagram of
a computer. How does it interact with other components, and what are the key
tasks it performs during data processing?
Answer:- 2
Central Processing Unit (CPU) consists of the following features −
1. It stores all the data and the instructions required for processing.
3. It stores the final results of processing before these results are released to
an output device.
4. All inputs and outputs are transmitted through the main memory.
Control Unit
This unit controls the operations of all parts of the computer but does not carry
out any actual data processing operations.
1. Arithmetic Section
2. Logic Section
Arithmetic Section
Function of arithmetic section is to perform arithmetic operations like addition,
subtraction, multiplication, and division. All complex operations are done by
making repetitive use of the above operations.
Logic Section
Function of logic section is to perform logic operations such as comparing,
selecting, matching, and merging of data.
QUESTION:- 3.
1. **Registers:**
Located within the CPU.
Extremely fast but limited in capacity.
Used to store small amounts of data and intermediate results during
processing.
2. **Cache Memory:**
Sits between the main memory and the CPU.
Designed to provide faster access to frequently used instructions and data.
Divided into levels (L1, L2, L3) based on proximity to the CPU.
During program execution, the data flow between different memory units and the
CPU follows a typical sequence:
4. **Execution (EX):**
The CPU performs the specified operation on the fetched data in the
arithmetic logic unit (ALU).
This cycle repeats for each instruction in the program. The memory hierarchy is
designed to exploit the trade-off between speed and capacity. Registers and
cache provide fast access to small amounts of data, while main memory and
secondary storage offer larger capacities at slower speeds. The goal is to minimize
the time the CPU spends waiting for data, optimizing overall system performance.
QUESTION:- 4.
Answer:- 4.
Input and output devices are essential components of a computer system,
playing a crucial role in facilitating communication between the computer and its
users or other external systems. They serve as the interface through which users
interact with the computer and receive information. Here's an overview of the
significance of input and output devices:
Input Devices:
1. User Interaction:
Input devices enable users to provide commands and data to the
computer.
Common input devices include keyboards, mice, touchscreens, and
microphones.
2. Data Entry:
Users can input textual and numerical data, as well as various commands
through input devices.
This is fundamental for tasks such as programming, document creation, and
data entry.
3. Control Mechanism:
Input devices help users control the computer's operations and navigate
through software applications.
They are crucial for gaming, graphic design, and other interactive activities.
Output Devices:
1. Information Presentation:
Output devices present information generated by the computer to the user
in a human-readable form.
Examples include monitors (for visual output), speakers (for audio output),
and printers (for hard copy output).
2. Feedback Mechanism:
Output devices provide feedback to users, confirming that their inputs have
been received and processed.
Feedback is crucial for user understanding and interaction.
3. Data Visualization:
Output devices play a key role in data visualization, presenting complex
data in a comprehensible format.
This is important for tasks like graphical analysis, design, and scientific
visualization.
4. Communication with External Systems:
Output devices may facilitate communication with external systems by
presenting data in a format that can be interpreted by other devices or
systems.
For example, output devices can display information for human users or
generate signals for other machines.
1. User Interface:
Input and output devices collectively form the user interface, enabling
users to interact with the computer and receive information.
2. Interconnectivity:
Input and output devices provide a means for the computer to connect
with other systems and devices, allowing for data exchange.
4. Multimodal Interaction:
Modern systems often involve multiple input and output modalities (e.g.,
touchscreens, voice recognition, virtual reality), enhancing the versatility
and accessibility of computer systems.
QUESTION:- 5.
Explore the role of the control unit and the arithmetic logic unit (ALU) in the
CPU. How do these units collaborate to execute instructions, and what specific
functions do they perform during the processing of data in a computer system?
Answer:- 5.
The Control Unit (CU) and the Arithmetic Logic Unit (ALU) are two fundamental
components within the Central Processing Unit (CPU) of a computer. They work
together to execute instructions, perform calculations, and control the flow of
data within the CPU. Let's delve into the roles of the Control Unit and the ALU and
understand how they collaborate during the processing of data:
1. Instruction Fetch:
The Control Unit is responsible for fetching instructions from the
computer's memory. It retrieves the next instruction from the program
counter, a register that keeps track of the memory address of the current
instruction.
2. Instruction Decode:
After fetching an instruction, the Control Unit decodes it to determine the
operation to be performed and the operands involved. It extracts the
opcode and operand addresses from the instruction.
3. Control Signals:
The CU generates control signals based on the decoded instruction. These
signals direct the operations of other components within the CPU and the
overall flow of data.
4. Sequencing:
The CU controls the sequencing of operations, ensuring that instructions
are executed in the correct order. It manages the flow of data between
the CPU, memory, and other peripheral devices.
1. Arithmetic Operations:
The ALU is responsible for carrying out arithmetic operations such as
addition, subtraction, multiplication, and division. It performs these
operations on data received from registers or memory.
2. Logical Operations:
In addition to arithmetic operations, the ALU performs logical operations
such as AND, OR, and NOT. These operations are crucial for decision-
making and data manipulation.
3. Data Comparison:
The ALU can compare data and provide results such as equality, greater
than, or less than. This is essential for conditional branching in program
execution.
4. Bitwise Operations:
At the binary level, the ALU performs bitwise operations, manipulating
individual bits within binary numbers.
5. Register Operations:
The ALU operates on data stored in registers. It receives operands from
registers, performs the specified operation, and stores the result back in
registers.
3. Synchronization:
The Control Unit synchronizes the activities of different components
within the CPU, ensuring that instructions are executed in a coordinated
manner.
In summary, the Control Unit and the ALU are integral parts of the CPU, working
collaboratively to execute instructions and perform calculations. The Control Unit
manages the flow of instructions and data, while the ALU handles arithmetic,
logical, and bitwise operations on the data. Together, they form the core
processing unit of a computer, responsible for the execution of programs and
tasks.