CO QB Answers
CO QB Answers
UNIT - I
Short answer Questions :-
1. Differentiate multiprocessors and multicomputer
• Big Endian and Little Endian are methods of storing multi-byte data.
• In Big Endian, the most significant byte (MSB) is stored first (at the lowest memory
address).
• In Little Endian, the least significant byte (LSB) is stored first. These formats are
used to determine the order in which bytes are arranged in memory.
Characteristics : Large and cumbersome; primarily used for scientific and military
applications; limited programming capabilities.
Technology: Transistors.
Technology: Microprocessors.
Characteristics: Focus on intelligent behavior; aims for natural language processing and
machine learning; exploring quantum computing for complex problem-solving.
1. Data Bus
• Function: Transfers actual data between the CPU, memory, and input/output
devices.
• Characteristics: The width of the data bus (e.g., 8, 16, 32, or 64 bits) affects the
data transfer rate.
• Additional Points: Higher data bus width allows for faster data transfer; it operates
in parallel to increase throughput.
2. Control Bus
• Function: Carries control signals from the CPU to other components, managing
operations and timing of data transfers.
• Characteristics: Includes signals for read/write operations, interrupts, and other
status signals.
• Additional Points: Synchronizes actions across different components; it is
essential for coordinating data flow and maintaining system integrity.
3. Address Bus
• Function: Carries the addresses of data so that the CPU can communicate with
memory and other devices.
• Characteristics: The width of the address bus determines the maximum
addressing capacity (e.g., a 32-bit address bus can address up to 4 GB of memory).
• Additional Points: It operates unidirectionally, carrying addresses from the CPU to
memory; it influences the overall capacity of the system’s memory architecture.
Registers are small, high-speed storage locations within a CPU that hold temporary data
and instructions during processing. Here’s an overview of the key types of registers in a
basic computer:
• Function: Stores flags that indicate the status of the CPU and the outcome of
operations (e.g., zero, carry, overflow).
• Characteristics: These flags help in decision-making during conditional
operations and control flow.
• Function: Can be used for various purposes, such as holding temporary data,
addresses, or results.
• Characteristics: Typically more than one, allowing flexibility in operations;
commonly used in programming for variable storage.
System software is essential for managing hardware and providing a platform for
application software. Here are the primary functions of system software:
3. Resource Allocation
• Function: Manages system resources, including CPU time, memory space, and
I/O devices, to ensure efficient utilization.
• Characteristics: Implements scheduling algorithms to optimize performance and
maintain system stability.
4. File Management
• Function: Protects the system against unauthorized access and data breaches.
• Characteristics: Implements user authentication, encryption, and other security
measures to safeguard data.
• Function: Monitors the system for errors and manages recovery processes when
failures occur.
• Characteristics: Provides debugging tools and logs for diagnosing issues and
improving system reliability.
7. System Utilities
X= (A+B) * (C+D).
9. Find the suitable addressing mode type for the below instructions. i)
MOV R #20 ii) CMA iii) ADD X iv) ADD 10 v) ADD AL,[0302] vi)Add R1, (R2)+
vii) Add R1,-(R2)
A) MOV R, #20
• Addressing Mode: Immediate Addressing
• Reason: The operand 20 is provided directly in the instruction.
B) CMA
C) ADD X
D) ADD 10
1. Structure: A stack is a LIFO (Last In, First Out) data structure that stores data in a
linear format.
2. Memory Layout: Organized in a dedicated memory section called the stack
segment, with a stack pointer (SP) indicating the top.
3. Push Operation: Pushing a value decreases the stack pointer and stores the
value at the new top of the stack.
4. Pop Operation: Popping retrieves the top value and increases the stack pointer to
point to the next element.
5. Function Calls: The stack manages function calls by pushing the return address
and local variables onto it.
6. Stack Frame: Each function call creates a stack frame for its own return address
and local data, isolated from other functions.
7. Overflow and Underflow: Stack overflow occurs with excessive data, while
underflow happens when popping from an empty stack.
8. Uses: Stacks are essential for function calls, recursion, interrupt handling, and
expression evaluation in programs.
UNIT – II
A micro operation is the smallest unit of work performed on data in registers during a
machine cycle.
ii) Microinstruction
A microinstruction directs the control unit to execute specific micro operations with
associated control signals.
A control word is a binary code that specifies the operations for the control unit during
microinstruction execution.
v) Control Store
A control store is a memory unit that holds microinstructions or control words for the
control unit’s operations.
• Based on the condition (like zero, carry, or overflow), the microprogram counter
is updated to branch to a different microinstruction address.
→ issuing the signals that control the operation of all the units inside the processor.
• Registers R0 through R(n-1) are provided for general purpose use by programmer.
• Three registers Y, Z & TEMP are used by processor for temporary storage during
execution of some instructions.
→ output of Y or
→ constant-value 4
• Data are transferred from one register to another, often passing through
ALU to perform arithmetic or logic operation.
4. Explain the multiple bus Organization of the Data path with the
help of a neat diagram?
Explanation :-
• All general-purpose registers are combined into a single block called the register file.
• Register-file has 3 ports. There are 2 outputs allowing the contents of 2 different registers
to be simultaneously placed on the buses A and B.
5. Show the connection and control signals for register MDR with a
diagram.
The Memory Data Register (MDR) serves as a critical buffer in the data path of a CPU,
connecting memory with various components.
• Separate Processing Units: Distinct units for handling integer and floating-point
data.
• Data Cache: Positioned between processing units and main memory for efficiency.
• Instruction Fetching:
• Instructions are fetched from an instruction cache.
• If not available in cache, they are fetched from main memory.
• Bus Interface: Connects the processor to the system bus and the rest of the
computer.
• Separate Caches: Using distinct caches for instructions and data is common in
modern processors.
• Concurrent Operations: Processors may include multiple units of each type to
enhance concurrency.
11. Distinguish Hardwired control and Micro programmed control.
UNIT - III
Short answer Questions :-
1) What is shared data and control lines memory mapped I/O?
• Memory-mapped I/O shares the same address space for both memory and I/O
devices.
• Data and control lines are shared between memory and I/O operations.
• The CPU can access I/O devices using standard memory instructions.
• This design simplifies the system by avoiding the need for a separate I/O bus
9) What is Exception?
An exception is an event that disrupts the normal flow of program execution, typically
caused by errors or special conditions, triggering a transfer of control to an exception
handling routine.
In daisy chaining, devices are connected in a series, and the interrupt request line is
shared. When an interrupt occurs, the CPU polls the devices in order of their connection.