Practical questions, Assignments of Computer science

CSA practical mostly about logic gates

Typology: Assignments

2021/2022

Uploaded on 06/05/2022

priyanka-singh-23
priyanka-singh-23 🇮🇳

1 document

1 / 50

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
UNIVERSITY OF DELHI
INDRAPRASTHA COLLEGE for WOMEN
Computer System Architecture
Bsc.(H)Computer Science ,1-Semester
Submitted by:- Submitted to:-
Priyanka kumari Dr.Sarabjeet kaur
Roll no.;-21/cs/35
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32

Partial preview of the text

Download Practical questions and more Assignments Computer science in PDF only on Docsity!

UNIVERSITY OF DELHI

INDRAPRASTHA COLLEGE for WOMEN

Computer System Architecture

Bsc.(H)Computer Science ,1-Semester

Submitted by:- Submitted to:-

Priyanka kumari Dr.Sarabjeet kaur

Roll no.;-21/cs/

Q1. Create a machine.

Ans:

Q2. Create a fetch routine of the instruction cycle.

Ans:-There are four stages of an instruction cycle that the CPU carries out:

i. Fetch instruction from memory. ii. Decode the instruction iii. Read the effective address from memory. iv. Execute the instruction The implementation of fetch routine: I. The transfer of the content from Program Counter register(PC,the register holding the next instruction) to address register(AR) II. Transferring the content of address register (AR) by enabling the memory in read mode to instruction register(IR).

 ADD implementation  All the the microinstruction are as follow:- I. I/O type microinstruction

II. Memory access type microinstruction

III. Arithmetic type microinstrucion  Register value before execution of machine instruction  Register value after execution of machine instruction

 SUB FORMAT  All microinstruction i. I/O type instruction ii. Memory access instruction iii. Arithmetic instruction  SUB’ IMPLEMENTION

 Values of register before execution

 Values of register after execution

Microinstruction: i.transferring the content if IR into AR{from 4th^ of IR by indexing toward left} ii.accepting input from the user that is held in AC(accumulator) iii.tranferring the content of AC into memory through Adderss register iv.transferring the content of DR to memory address v.accepting the second input from the user helding AC

VI.AND both the input provided by the user and stroing its anded term in AC vii. the output will be displayed Values of register before execution of machin`e instruction Values of register after the execution of machine instructions

Microinstruction: i.transferring the content if IR into AR{from 4th^ of IR by indexing toward left} ii.accepting input from the user that is held in AC(accumulator) iii.tranferring the content o f AC into memory through Adderss register iv.transferring the content of DR to memory address v.accepting the second input from the user helding AC

VI.OR both the input provided by the user and stroing its anded term in AC vii. the output will be displayed Values of register before execution:- Values after the execution:-

ii)taking not of AC and storing it AC III)displaying output Text file Values of register before execution Values after execution:

Not of AC =1111 0000 1111 0000 =0000 1111 0000 1111 4.)XOR Implementation Microinstruction:- i.)accepting input from the user that is held in AC(accumulator)

Values after execution: TEXT FILE I/O CONSOLE 5.NOR)

MICROINSTRUCTION

I .)accepting input from the user that is held in AC(accumulator) ii.tranferring the content of AC into memory through Adderss register iii.transferring the content of DR to memory address iv.accepting the second input from the user helding AC V.NOR both the input provided by the user and stroing its NORed term in AC