Documente Academic
Documente Profesional
Documente Cultură
CAP 208
SUBMITTED TO-
Anjlee Mam
SUBMITTED BY-
SACHIN RAJ
B34
D3901
Part-A
Q1. Explain the basic computer instruction format. Also tell how is
‘I’ bit useful in determining the type of instruction?
Ans-
AND D0 AC ← AC ∧ M[AR]
LDA D2 AC ← M[AR]
STA D3 M[AR] ← AC
BUN D4 PC ← AR
r: SC ← 0
CLA rB11: AC ← 0
CLE rB10: E ←0
CME rB8: E ← E’
INC rB5: AC ← AC + 1
I/o Instructions
p: SC ← 0 Clear SC
Ans-
AND TO AC
ADD TO AC
LOAD TO AC
STORE AC
D6T4: DR MR[AR]
D6T5: DR DR
+1
D6T6: M[AR] DR, if (DR = 0) then (PC PC
+1), SC 0
Q3. Show diagrammatically, how data would be transferred from DR
to OUTR and from Memory to IR through common bus?
Ans-
DR TO OUTR-
First of all I have to select 011 (DR) from select line then data will be
travel in common bus then we have to enable the load pin of OUTR
,the data will be automatically transfer to OUTR.
Memory To IR-
Take data from memory unit (enable read pin of memory ) and send
data to common bus now we have to select (101) from select line and
enable load pin of IR, the data will be automatically transfer to IR.
Part-B
Q4.Explain stack organisation. And the complete design of basic
computer
Stack-
Push-
SP <- SP + 1
M[SP] <-DR
EMPTY <- 0
+1
____________________
000001(First Location)
: 000001
+1
____________________
000010(2nd Location)
Pop Operation-
DR <-M[SP]
SP <-SP − 1
FULL <-0
-1
____________________
000000
DR <-M[SP]
SP <-SP − 1
FULL <-0
SP ← SP – 1
M[SP] ← DR
Pop-
DR ← M[SP]
SP ← SP + 1
Ans-
Ans-
The control memory has 128 words, and each word contains 20 bits.
To micro-program the control memory, it is necessary to determine the
bit values of each of the 128 words. The first 64 words (addresses 0-
63) are to be occupied by the routines for the 16 instructions. The last
64 words may be used for any other purpose. A convenient starting
location for the fetch routine is address 64. The microinstructions
needed for the fetch routine are as follows:--
1)
ARPC
DRM[AR], PCPC+1
ARDR(0-10),CAR(2-5)DR(11-14),CAR(0,1,6)0
2)
ORG 64
DRTAR U MAP
3)
Binary Address F1 F2 F3 CD BR AD