CO Notes
CO Notes
CO Notes
UNIT-I
Basic Computer Organization: Functions of CPU, I/O Units, Memory: Instruction:
Instruction Formats-One address, two addresses, zero addresses and three
addresses and comparison; addressing modes with numeric examples: Program
Control- Status bit conditions, conditional branch instructions, Program
Interrupts: Types of Interrupts.
UNIT-II
Input-Output Organizations: I/O Interface, I/O Bus and Interface modules: I/O Vs
Memory Bus, Isolated
Vs Memory-Mapped I/O, Asynchronous data Transfer- Strobe Control, Hand
Shaking: Asynchronous Serial
transfer- Asynchronous Communication interface, Modes of transfer Programmed
I/O, Interrupt Initiated
I/O,DMA; DMA Controller, DMA Transfer, IOP-CPU-IOP Communication, Intel
8089 IOP.
UNIT-III
Memory Organizations: Memory hierarchy, Main Memory, RAM, ROM Chips,
Memory Address Map,
Memory Connection to CPU, associate memory, Cache Memory, Data Cache,
Instruction cache, Miss and
Hit ratio, Access time, associative, set associative, mapping, waiting into cache,
Introduction to virtual
memory.
UNIT-IV
8086 CPU Pin Diagram: Special functions of general purpose registers, Segment
register, concept of
pipelining, 8086 Flag register, Addressing modes of 8086.
UNIT-V
8086-Instruction formats: assembly Language Programs involving branch & Call
instructions, sorting,
evaluation of arithmetic expressions.
Suggested Readings:
1. Computer system Architecture: Morris Mano (UNIT-1,2,3).
2. Advanced Micro Processor and Peripherals- Hall/ A K Ray(UNIT-4,5).
UNIT-I
Basic Computer Organization: Functions of CPU, I/O Units, Memory: Instruction:
Instruction Formats-One address, two addresses, zero addresses and three
addresses and comparison; addressing modes with numeric examples: Program
Control- Status bit conditions, conditional branch instructions, Program
Interrupts: Types of Interrupts.
UNIT I
Two Marks
1. What are the Major components of CPU.
The two typical components of a CPU include the following:
The arithmetic logic unit (ALU), which performs arithmetic and logical
operations.
The control unit (CU), which extracts instructions from memory and
decodes and executes them, calling on the ALU when necessary
Registers: Stores the data
2. What is the function of ALU?
Most of the computer operations(arithmetic and logic) are performed in ALU.The
data required for the operation is brought by the processor and the operation is
performed by the ALU.
3. What is the function of CU?
The control unit acts as the nerve center, that coordinates all the computer
operations. It issues timing signals that governs the data transfer.
4. What are basic operations of a computer?
The basic operations are READ and WRITE.
5 Explain what you understand by registers, briefly explain the various types
of registers. – CPU
Answer:
A register is a temporary storage area built into a CPU.
The registers generally contained in the processor/CPU
Instruction Register (IR): The instruction register holds the instruction currently
being executed.
Memory Data Register (MDR): The memory data register (also known as
the memory buffer register or data buffer) holds the piece of data that has been
fetched from memory.
Memory Address Register (MAR): The memory address register holds the
address of the next piece of memory to be fetched.
Program Counter (PC): The program counter holds the location of the next
instruction to be fetched from memory. It is automatically incremented between
supplying the address of the next instruction and the instruction being executed.
Accumulator: The accumulator is an internal CPU register used as the default
location to store any calculations performed by the arithmetic and logic unit.
Subtract Microoperation:
8. What are the steps in executing a program?
1.Fetch 2.Decode 3.Execute 4.Store
9. Distinguish between RISC and CISC instruction set computer
Branch instruction is a type of instruction which loads a new value into the program counter.
As a result of branch instructions , the processor fetches and executes the instruction at a new address
called branch target, instead of the instruction at the location that follows the branch instruction in
sequential address order.
The different ways in which the location of an operand is specified in an instruction are referred to as
addressing modes.
The various addressing modes are 1.Absolute addressing mode 2.Register addressing mode 3.Indirect
addressing mode 4.Index addressing mode 5.Immediate addressing mode 6.Relative addressing mode
7.Autoincrement addressing mode 8.Autodecrement addressing mode
Program interrupt refers to transfer of program control from a currently running program to another
service program as a result of an external or internal request.
The need of I/O interface module is to resolve the differences that exist between the central
computer and each peripheral.
1. Peripherals are electromechnical and electromagnetic devices and CPU and memory are electronic
devices. Therefore, a conversion of signal values may be needed.
2. The data transfer rate of peripherals is usually slower than the transfer rate of CPU and consequently,
a synchronization mechanism may be needed.
3. Data codes and formats in the peripherals differ from the word format in the CPU and memory.
4. The operating modes of peripherals are different from each other and must be controlled so as not to
disturb the operation of other peripherals connected to the CPU.
To Resolve these differences, computer systems include special hardware components between the CPU
and Peripherals to supervises and synchronizes all input and out transfers These components are
called Interface Units
Functions of Buses
1. MEMORY BUS is for information transfers between CPU and the MM
2. I/O BUS is for information transfers between CPU and I/O devices through their I/O interface
3 ways to bus can communicate with memory and I/O :
(1). use two separate buses, one to communicate with memory and theother with I/O
interfaces- Computer has independent set of data, address and control bus one foraccessing
memory and another I/O.- done in computers that have separate IOP other than CPU.
(2). Use one common bus for memory and I/O but separate control linesfor each
(3). Use one common bus for memory and I/O with common controllines for both
All address can be used by the memory memory become less for memory
Separate instruction control read and write Same instructions can control both I/O
In this I/O address are called ports. Normal memory address are for both
One way of achieving this is by means of a strobe Pulse, another way is Handshaking
strobe pulse is a control signal supplied by one of the source units to indicate to the other destination
unit when the transfer has to occur.
Another method commonly used is to accompany each data item being transferred with a control signal
that indicates the presence of data in the bus. The unit receiving the data item responds with another
control signal to acknowledge receipt of the data. This type of agreement between two independent
units is referred to as handshaking.
S.N
11.
12.
13.Define
i)Memory Latency:
In computing, memory latency is the time (the latency) between initiating a
request for a byte or word in memory until it is retrieved by a processor.
ii)Memory Bandwidth :
Memory bandwidth is the rate at which data can be read from or stored into a
semiconductor memory by a processor.
iii)Hit Rate
A cache hit ratio is calculated by dividing the number of cache hits by the total
number of cache hits and misses, and it measures how effective a cache is at
fulfilling requests for content.
iv)Miss Rate
miss rate = 1 - hit rate
v)Average memory access time: Effective memory access time = (hit rate * cache
access time) + (miss rate * access time for cache miss)
vi)Miss-penality: Miss Penalty refers to the extra time required to bring the data into cache
from the Main memory whenever there is a “miss” in cache .
16. What is the role of TLB (Translation Look aside Buffer) in virtual address
translation?
Translation Lookaside Buffer (TLB) is nothing but a special cache used to keep track of recently
used transactions. TLB contains page table entries that have been most recently used.
Part-B
1. With the diagram of basic SRAM and DRAM chip ,explain the read and write
operation on each of them
2.