Escolar Documentos
Profissional Documentos
Cultura Documentos
HOME WORK
BASED ON
SUBMITTED BY:-
ROLL_NO:-RE3004B69
Section: E3004
Batch: G2
SUBMITTED TO:-
RICHA MALHOTRA
Part – A
Q1: The access time of cache memory is 100 ns and that of main memory is 1000 ns. If cache hit
ratio is 0.85, determine the effective access time of the system.
Answer:-
Access time of cache memory :- 100
Main memory :- 1000
Hit ratio :- 0.85
Hit missed by cache memory :- 0.15
Q2: A digital computer has memory unit of 64K x 16 and cache memory of 1K words. If direct
mapping policy is used, determine the number of bits in:
(a) Main Memory address
(b) Cache Memory address
(c) Tag and Index fields
Answer:-
(a) Main Memory address
Q4: Differentiate between synchronous and Asynchronous data transfer techniques along with
the circumstances in which each can be used.
Answer:-
Synchronous:-
In synchronous transmission, the units share a common clock frequency and
bits and transmitted continuosly at the rate dicatated by the clock pulses. In long distant serial
transmission, each unit is driven by a separate clock of the same frequency. Synchronization
signals are transmitted periodically between the two units to keep their clocks in step with each
other. Synchronous transmission does not use start stop bits to frame characters and therefore
makes more efficient use of the communication link. High speed devices use synchronous
transmission to realize this efficiency. The modems used in synchronous transmission have
internal clocks in the transmitter and receiver modems remain synchronized at the times.
Asynchronous:-
In Asynchronous transmission, binary information is sent only when it is available and the line
remains idle when there is no information to be transmitted. This is in contrast to synchronous
tramission, where bits must be transmitted continuosly to keep the clock frequency in both units
synchronized with each other. A serial asynchronous data transmission technique used in many
inter-active terminals employs special bits that are inserted at both ends of the character code.
With this technique, each character consists of three parts: a start bit, the character bits, and stop
bits. The convention is that the transmitter rests at the 1- state when no characters are
transmitted. The First bit, called the start bit, is always a 0 and used to indicate the beginning of a
character. The last bit called the stop bit is always a 1.
Q5: Write a program in assembly language to perform data transfer from registers and memory.
Answer:-
Introduction
A processor can directly execute a machine language program. Though it is possible to program directly
in machine language, assembly language uses mnemonics to make programming easier.
An assembly language program uses mnemonics to represent:
1.Symbolic instructions and
2.The raw data that represent variables and constants.
A machine language program consists of:
1.A list of numbers representing the bytes of machine instructions to be executed
2.Data constants to be used by the program.
4.2 Assembly language syntax
An assembly language program consists of statements. The syntax of an assembly language program
statement obeys the following rules:
• Only one statement is written per line
• Each statement is either an instruction or an assembler directive
• Each instruction has an op-code and possibly one or more operands
• An op-code is known as am nem onic
• Each mnemonic represents a single machine instruction
• Operands provide the data to work with