Coa Unit Test QP 1
Coa Unit Test QP 1
1. It refers to the operational units and their ecture refers to those attributes that have
interconnections direct impact on the logical execution of a
program
2. Organization attributes include hardware details 2. Architecture attributes include the
transparent to programmers such as control signal, instruction sets, IO mechanism techniques
interface between computer and peripherals and the for addressing memory and number of bits
memory used to represent various data types
technology used
Since the task of entering and altering programs for ENIAC was extremely tedious a
machine with stored program concept was made. This is called Von Neumann machine or
IAS computer. Here for processing a program, the program could be stored in memory
alongside the data. Now the computer could get its instruction by reading them from
memory. The design of a new stored program computer, referred to as the IAS computer.
3. Draw flowchart for booths algorithm for two complement multiplication
4. Represent (127.125)10 in single and double precision IEEE 754 standards for
Floating Point number representation.
(127)10 =(01111111)
2
(.125)10 =(.001)2
(127.125)10=(01111111.001)2
Normalization:1.111111*26
Single precision
Biasing:6+127=133
Double precision
Biasing:6+1023=1029
The format is:
I)SINGLE PRECISION
II)DOUBLE PRECISION
Static RAM
Uses flip flop to store information
Needs more space
Faster, digital device
Expensive, big in size
Don't require refreshing circuit
Used in cache memory
Dynamic RAM
More dense i.e. more cells can be accommodated per unit area
Slower, analog device
Less expensive, small in size o Needs refreshing circuit
Used in main memory, larger memory units
The reference to memory at any given interval of time tends to be confined within
a few localized area of memory. This property is called locality of reference. This is
possible because the program loops and subroutine calls are encountered frequently.
When program loop is executed, the CPU will execute same portion of program
repeatedly. Similarly, when a subroutine is called, the CPU fetched starting address of
subroutine and executes the subroutine program. Thus loops and subroutine localize
reference to memory.
.
6. List the difference between spatial and temporal locality.
Spatial Locality
Temporal Locality
It refers to the tendency for a processor to access memory locations that have been
used frequently. For e.g. Iteration loops executes same set of instructions
repeatedly.
7. What is write through
All write operations are made to main memory as well as to cache, so main memory is
always valid
Disadvantage
Other CPU’s monitor traffic to main memory to update their caches when needed
This generates substantial memory traffic and may create a bottleneck
Anytime a word in cache is changed, it is also changed in main memory
Both copies always agree
Generates lots of memory writes to main memory
Multiple CPUs can monitor main memory traffic to keep local (to CPU) cache up
to date
Lots of traffic
Slows down writes
Remember bogus write through caches!
When an update occurs, an UPDATE bit associated with that slot is set, so when
the block is replaced it is written back first
Advantage
During a write, only change the contents of the cache
Update main memory only when the cache line is to be replaced
Disadvantage
Causes “cache coherency” problems -- different values for the contents of an
address are in the cache and the main memory
Complex circuitry to avoid this problem
Accesses by I/O modules must occur through the cache
Five marks
1. Explain role of different registers-like IR, PC,IBR,AC,MAR and MBR used in Von
Neumann model
i) specifies the address in memory for the word to be written into t he memory buffer
register
ii) specifies the address in memory of the word to be read into memory buffer register
Employed to temporarily hold the right hand instruction from a word in memory
Contains the address of the next instruction pair to be fetched from memory
The Most significand bits are stored in AC and Least significand number in MQ.