CA Solution 2068 PDF
CA Solution 2068 PDF
Long questions
al
ep
Input-output interface provides a method for transferring information between internal storage
and external I/O devices. It resolves the differences between the computer and peripheral
devices. The major differences are:
To resolve these differences, computer system usually include special hardware unit between
CPU and peripherals to supervise and synchronize I/O transfers, which are called interface units
since they interface processor bus and peripherals.
Peripherals connected to a computer need special communication link to interface with CPU.
This special link is called I/O bus. Figure below clears the idea:
Memory unit is an essential component in any general purpose computer since it is needed to
store programs and data. The memory unit that communicates directly with the CPU is called the
main memory and devices that provide backup storage are called auxiliary memory. Auxiliary
memory devices such as magnetic disk and tapes are used to store system programs, large data
files and other backup information. Only programs and data currently needed by the processor
reside in main memory. All other information is stored in main memory and transferred to main
l
A facility for dynamic storage relocation that maps logical memory references into
physical memory addresses.
A provision for sharing common programs by multiple users.
Protection of information against unauthorized access.
The dynamic storage relocation hardware is a mapping process similar to paging system.
Segment: It is more convenient to divide programs and data into logical parts called
segments despite of fixed-size pages. A segment is a set of logically related instructions or
data elements. Segments may be generated by the programmer or by OS. Examples are: a
subroutine, an array of data, a table of symbols or user’s program.
Logical address: The address generated by the segmented program is called a logical
address. This is similar to virtual address except that logical address space is associated with
variable-length segments rather than fixed-length pages.
la
ep
Logic micro operations are bit-wise operations, i.e., they work on the individual bits of data.
Useful for bit manipulations on binary data and for making logical decisions based on the bit
value. There are, in principle, 16 different logic functions that can be defined over two binary
input variables. However, most systems only implement four of these
AND (^), OR (٧), XOR (⊕), Complement/NOT
The others can be created from combination of these four functions.
Shift micro-operations are used for serial transfer of data. They are also used in conjunction with
arithmetic, logic and other data processing operations. The contents of a resister can be shifted
left or right. There are three types of shifts: logical, circular and arithmetic shifts.
Input/output Instructions
Input and output
Examples: INP, OUT
la
ep
This is used as an alternative to connecting it to I/O port, especially in embedded system. For
example, an analog-to-digital converter could be memory mapped to a certain address. When
that address is written to, the conversion is started; when the address is read from, the data is
transferred to the processor.
Sometimes only partial address decoding is used, meaning that the device efficiently occupies a
much larger block of memory space than is strictly necessary. This can be a problem if the
memory space is small (e.g. with a i6-bit address bus which can only access 65,536 different
locations.
The memory bus is only bus in the system. CPU can manipulate I/O data residing in interface
registers with same instructions that are used to access memory words. Memory space is not only
ordinary system memory. It can refer to all the address that the programmer may specify. These
addresses correspond to all possible valid addresses that the CPU may place on its memory bus
address line.
8. What do you mean by control memory? Explain the micro instructions and micro
operations format.
A computer that employs a micro programmed control unit will have two separate memories:
main memory and a control memory. The user’s program in main memory consists of machine
instructions and data whereas control memory holds a fixed micro program that cannot be altered
l
a
by the user. Each machine instruction initiates a series of microinstructions in control memory.
ep
Addressing mode specifies a rule for interpreting or modifying the address field of the instruction
before the operand is actually referenced. There are different types of addressing modes. They
are:
Implied mode
Immediate mode
Register mode
Register indirect mode
Auto increment or auto decrement mode
Direct addressing mode
Indirect addressing mode
Relative addressing mode
o PC relative addressing mode
o Indexed addressing mode
o Base register addressing mode
We have, and
So, and
IOP is a processor with DMA capability that communicates with I/O devices. In this
configuration, the computer system can be divided into a memory unit, and a number of
processors comprised of CPU and one or more IOP’s. IOP is similar to CPU except that it is
designed to handle the details of I/O processing. Unlike DMA controller, IOP can fetch and
execute its own instructions. IOP instructions are designed specifically to facilitate I/O transfers.
al
Instructions that are read from memory by an IOP are called commands to differ them from
ep
The memory occupies a central position and can communicate with each processor by means of
DMA. CPU is usually assigned the task of initiating the I/O program, from then on; IOP operates
independent of the CPU and continues to transfer data from external devices and memory.
Data transfer instructions causes transfer of data from one location to another without modifying
the binary information content. The most common transfers are:
between memory and processor registers
between processor registers and I/O
between processor register themselves
Characteristics of RISC:
Characteristics of CISC:
a. Interrupt cycle
b. DMA
Interrupt cycle: This is a hardware implementation of a branch and save return address
operation.
al
ep
processor’s ability to service the device and hence CPU is tied up managing I/O transfer.
ep
la
ep