Professional Documents
Culture Documents
PUE COA Solution 2022-23
PUE COA Solution 2022-23
Section A
Input unit
Input units are used by the computer to read the data.
The output unit is used to send the processed results to the user.
Central processing unit carries out the instructions given by a computer program by performing the basic arithmetic, logical,
control and input/output (I/O) operations specified by the instructions.
Arithmetic and Logical Unit performs arithmetic operations and the logical operations.
The control unit is a component of a computer's central processing unit that coordinates the operation of the processor.
The Memory unit can be referred to as the storage area in which programs are kept which are running, and that contains data
needed by the running programs.
attributes that have a direct impact on the logical execution of a program. Examples of architectural attributes include the instruction
set, the number of bits used to represent various data types (e.g., numbers, characters), I/O mechanisms, and techniques for addressing
memory.
Computer Organization:
Computer organization refers to the operational units and their interconnections that realize the architectural specifications.
Organizational attributes include those hardware details transparent to the programmer, such as control signals; interfaces between the
computer and peripherals; and the memory technology used.
ARS: 11001010
ALS: 10101000
Explain the need of biasing in IEEE representation of floating pint numbers.
Biasing is done to make signed exponent unsigned.
Biasing is done because exponents have to be signed values in order to be able to represent both tiny and huge values, but
two's complement, the usual representation for signed values, would make comparison harder. To solve this problem, the
exponent is biased before being stored.
B) Polling Method
Here also all bus masters use the same line for Bus Requests.
Here the controller generates a binary address for the master. E.g: To connect 8 bus masters we need 3
address lines (23 = 8).
In response to a Bus Request, the controller "polls" the bus masters by sending a
sequence of bus master addresses on the address lines. Eg: 000, 010, 100, 011 etc.
The selected master activates the Bus Busy line and takes control of the bus.
OR
OR
OR
Calculate number of page fault using LRU Page Replacement Algorithm: 2,5,4,3,2,5,1,6,4,3,6,1,3 if the
number of frames in the memory is 3.
Draw and explain the flowchart for Programmed I/O data transfer technique.
OR
Draw the block diagram of DMA Controller and also compare the various DMA modes.
DMA Controller is a hardware device that allows I/O devices to directly access memory with less
participation of the processor. The DMA controller takes over the buses to manage the transfer directly
between the I/O devices and the memory unit.
Block diagram of DMA Controller:
Example:
The inputs to the floating-point adder pipeline are two normalized floating-point binary numbers defined as:
Where
A, B fractions or mantissa
a, b exponents
The combined operation of floating-point addition and subtraction is divided into four segments. The sub-operations that
are shown in the four segments are:
Add mantissas:
The two mantissas are added in segment three.
Describe virtual memory technique using paging and segmentation with example of each.
Virtual Memory is a storage scheme that provides user an illusion of having a very big main memory. This is
done by treating a part of secondary memory as the main memory.
Virtual Memory can be implemented using two methods:
Paging
Segmentation
Paging is a memory-management scheme that permits the physical-address space of a process to be non-
contiguous. Physical memory is broken into fixed-sized blocks called frames. Logical memory is also broken
into blocks of the same size called pages.
When a process is to be executed, its pages are loaded into any available memory frames from the backing
store. The backing store is divided into fixed-sized blocks that are of the same size as the memory frames.
The hardware support for paging is given in the following image:
Every logical address generated by the CPU is divided into two parts: a page number (p) and a page offset (d).
Segmentation
Like Paging, Segmentation is another non-contiguous memory allocation technique.
Segmentation is a memory-management scheme that supports the user view of memory. A logical-address
space is a collection of segments. Each segment has a name and a length.
Segmentation is a variable size partitioning scheme.
In segmentation, secondary memory and main memory are divided into partitions of unequal size.
The size of partitions depends on the length of modules.
The partitions of secondary memory are called as segments.
Segment table is a table that stores the information (limit and the base address) about each segment of the
process.
Limit indicates the length or size of the segment.
Base indicates the base address or starting address of the segment in the main memory. The logical address
generated by the CPU is divided into two parts: Segment Number and Segment Offset.
The hardware support for segmentation is given in the following image:
OR
Describe Cache mapping techniques with suitable example of each.
Calculate the following:
Calculate the number of pins in a RAM chip of 16KB capacity
Calculate the number of chips are needed and how their address lines will be connected to provide
a memory capacity of 1024x4 using RAM chip of 1024x1 capacity.
OR
Non-Vectored Interrupts are those in which vector address is not predefined. The interrupting device gives the address of
sub-routine for these interrupts. INTR is the only non-vectored interrupt in 8085 microprocessor.
OR
Describe the types of asynchronous data transfer with suitable diagram of each.
Asynchronous data transfer
Asynchronous data transfer between two independent units requires that control signals be transmitted between
the communicating units to indicate the time at which data is being transmitted.
Two methods of asynchronous data transfer:
Strobe control method
Handshaking Method
Both the methods can be source initiated or destination initiated depending on which initiate the transfer.
1. Strobe Control Method
The Strobe Control method of asynchronous data transfer employs a single control line to time each
transfer. This control line is also known as a strobe.
The strobe method can be either by source or destination, depending on which initiate the transfer.
The two handshaking lines are data valid, which is generated by the source unit, and data accepted, generated
by the destination unit.
The source unit initiates the transfer by placing the data on the bus and enabling its data valid signal.
The data accepted signal is activated by the destination unit after it accepts the data from the bus.
The source unit then disables its data valid signal, which invalidates the data on the bus.
The destination unit then disables its data accepted signal and the system goes into its initial state.