Professional Documents
Culture Documents
Section – C
START
LOAD ADDRESS TO PC
No Yes
LOAD PC CONTENTS
+ TO MAR
UPDATE PC TO
NEXT ADDRESS
LOAD DATA
REQUIRED TO MDR
MAR CONTENT TO
CIR
DECODE CIR
CONTENTS
JUMP
Execute
instruction
No Interrupt Yes
Service interrupt
Initially, CPU stores the address of the first instruction of the program in the
program counter (PC ) register. Since only address register (AR) is connected to
the address inputs of memory; so the contents of PC are transferred to the AR
and then a read request is sent to the memory. Thus the CPU fetches the next
instruction from the memory into the next instruction Register (IR). At the same
time PC is also incremented by one, so that it can now hold the address of the
next instruction of the program.
After fetching the instruction, the operation code part of the instruction stored in
IR is decoded, i.e, the indirect bit is transferred to flip-flop and the address part is
transferred to AR.
The data forming the instruction and stored in IR, is decode by control unit, now
the decoded instruction is passed to relevant functional units of the CPU as a
sequence of control signals; so that required actions can be performed, such as
No Yes
reading values from registers, passing them to ALU, etc. finally the result
generated after the execution of the instruction, is stored in memory or sent to an
output device as required.
Upon the completion of phase 4, the control goes back to phase 1 to execute the
next instruction. This process continues until a HALT instruction is encountered.
Que2. Draw the block diagram of RAM chip and explain it.
Ans. RAM- it is a type of main memory. It has bidirectional data bus that allows
the transfer of data from memory to CPU during a read operation or from CPU to
memory during write operation.
Semi conductor RAM is used in all type of computers. It is also called read/write
memory.
Semiconductor RAM is used as either READ cycle or writes cycle that depends on
the type of required operation that are independent of each other. The read cycle
is normally shorter time period as compared to write cycle.
RAM use non-destructive read-out to read the data from memory. It is also
volatile in nature that requires power to maintain current data.
RAM chip
CS1
8-bit bidirectional data bus
CS2 RAM
128 *8
RD
Rw
In this block representation, the given RAM chip consists of two chip select lines, a
read line; write line, address lines and a bidirectional 8-bit data bus. Here, two
chip select(CS) lines are used in order to ensure that only the required chip is
selected from a given array chips when required by the microprocessor, also it
helps in address decoding in the similar conditions.
As usual, the RD and WR lines refer to read and write lines for Reading/writing
data to/from this memory (RAM). Here the configuration 128*8 signifies that the
current memory elements are capable of storing about 128 words with each word
consisting of 8-bits. Hence, in order to access the data stored operation of RAM
circuit can be analyzed by considering the following function table.
Notations used
I = inhibit
WR = Write
RD = Read
HI = High impedance
Que3. How are the floating point numbers stored in computer? Explain
normalization in relation to floating point.
No Yes
Ans. A floating point numbers consist of two parts mantissa m and an exponent e,
(m * r^e). the decimal number 125.45 is represented by m = 12545 and e = 3 in a
register and interpreted as
.12545 * 10^3
1) It takes a lot of time and effort to write the code for the same.
2) It is very complex and difficult to understand.
3) The syntax is difficult to remember.
4) It has a lack of probability of program between different computer
architecture.
5) It needs more size or memory of the computer to run the long programs
written in assembly language.
6) Long programs written in such languages cannot be executed on small sized
computers.
7) To write programs in assembly language, the internal structure of the
microprocessor must be known.
Que6. What is control memory? What is the role of control address register?
Microprogram consists of instructions in the strings of 0’s and 1’s & these are
called microinstructions.
Microoperations CD BR Address
Microinstructions
Here BR, AC, and QR are registers. On designates the least significant bit of the
multiplier in register QR. An extra flip flop Qn+1 is appended to QR to facilitate a
double bit inspection of the multiplier. The flow chart of booth algorithm is show:
PROCEDURE:
CONDITIONS:
START
Count = 0
M – Multiplicand
Q - Multiplier
No Yes
Qn Qn+1
10 01
A=A-M A=A+M
Arithmetic Shift
right
Count = count - 1
NO Count = 0 YES
END
Ans. General purpose register are used by the programmer to store temporary
data. They are symmetric and interchangeable. Registers such as, B, C, D, E, H, L in
8085, the registers R1, R2…. Etc which are used to store data/address during
execution are general purpose registers.
AX- this is the accumulator. It is of 16 bits and divided into two 8-bit registers AH
and AL to also perform 8-bit instructions. It is generally used for arithmetical and
logical instructions but in 8086 microprocessor it is not mandatory to have
accumulator as the destination operand.
BX- this is the base register. It is of 16 bit and is divided into two 8-bit registers CH
and CL to also perform 8-bit instructions. It is used in looping and rotation.
LOOP
DX- this is the data register. It is of 16 bits and divided into two 8-bit registers DH
and DL to also perform 8-bit instructions. It is used in multiplication an
input/output port addressing.
SP- this is the stack pointer. It is of 16 bits. It points to the topmost item of the
stack. If the stack is empty the stack pointer will be (FFFE)H.
Si- this is the source index register. It is of 16 bits. It is used in pointer addressing
of data as a source in some string related operations.
DI- this is the destination index register. It is of 16 bits. It is used in the pointer
addressing of data and as a destination in some string related operations.
Ans.
No Yes
No Yes
No Yes