The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
0 votes
Q1 A RAM chip has a capacity of 1024 words of 8 bits each(1K x 8).The number of 2 x 4 decoders with enable line needed to construct a 16k x 16 RAM from 1K x 8 RAM is

A 4    B. 5    C 6      D.7

Q2  The contents of flag register after execution of following pgm by 8085 microprocessor will be


MVI B,(01)H




A (54)H     B(00)H    C (01)H     D(45)H
asked in CO & Architecture by Loyal (7.8k points) | 33 views
1 st one coming 8 , but not in option

For 1st question

For second question answer will be option (B) because B contain( 01)H ,when we do decrement operation on Data of B ,B's content will become (00)H ,flag register content will be still reset because no carry will generate.

@prateek raghuvanshi yeah you're right i got "B" same :)

1 Answer

0 votes

To build 16k x 16 RAM, we need 16x2=32 number of 1k x 8 RAMs, arranged in 2 columns of 16. To select one of those chips from a row, we need $4$ 2x4 decoders. To select one of those 4 decoders, we need $1$ more 2x4 decoder. We can use the enable input to select one of the columns of 1kx8 RAMs from 2. Thus total 2x4 decoders needed is $5$.

So the answer is (B).


The 8085 flag register will look like this:


[SUB A => I don't know what this does, but let's move on., subtract A from A, which may result in zero altogether I guess ]

MVI B,(01)H => Stores the value 01 to B

DCR B  => will decrement B to zero. Let's check the flag bits now:

$D7$ : sign flag : The result is 0, so sign flag is $0$.

$D6$: Zero flag : The result is 0, so zero flag is $1$.

$D5$: Not used.

$D4$: Auxiliary Carry flag : There is no carry from lower nibble to higher nibble, so this flag is set to $0$.

$D3$: Not used.

$D2$: Parity flag : since D0 is 0, for even parity, this flag should be $1$.

$D1$: Not used

$D0$: Carry flag : No carry, so this bit is set to $0$. 

Contents of the flag register will now be 0100 0100 which is $(44)H$

So, The answer is None of these.

answered by Active (1.1k points)

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

36,992 questions
44,559 answers
43,622 users