in CO and Architecture recategorized by
5,699 views
26 votes
26 votes

Find out the width of the control memory of a horizontal microprogrammed control unit, given the following specifications:

  • $16$ control lines for the processor consisting of ALU and $7$ registers.
  • Conditional branching facility by checking $4$ status bits.
  • Provision to hold $128$ words in the control memory.
in CO and Architecture recategorized by
5.7k views

2 Comments

As in question "horizontal micro-programmed control unit" is told that's why we can't use decoder to decrease required number of status bits (like we do in vertical miro-programmed control unit). So, we need 4 status bits in "control word" register. Let me know if i am wrong ?
3
3

3 Answers

21 votes
21 votes
Best answer

Width of the control memory $=$ size of a control word

  • $\text{Control word} = [\text{Condition bits} + \text{control signal bits} + \text{next address}]$
  • Condition bits $= 4 \implies \log_2 4$-bits
  • $128$ words $\implies 7$-bits for address.

In the case of horizontal micro-programming, there is $1$- bit for each control signal. It is given there are $16$ control signals.

$\implies$ Length of control word $= 2+16+7 = 25$- bits.

selected by
by

4 Comments

Somebody plzz explain..why are we not considering the 7 registers ?

what is their use in this question ??
2
2

@

7 registers are nothing to do with the given question , they just describe that processor consists of ALU and 7 registers.

They just want to confuse us with extra information.

1
1

@jaswanth431

see here, for both horizontal and vertical ,there is different criteria for selecting the flag bits,in case of horizontal all the bits are taken , and in vertical log(n) bits are taken(where n are no. of status bits)

https://www.geeksforgeeks.org/difference-between-horizontal-and-vertical-micro-programmed-control-

so according to this , answer for this question must be $27$ bits.

0
0
15 votes
15 votes

....

4 votes
4 votes
16 bits for 16 control lines.(As Horizontal)

For next address field 7 bits (128 control words.. 2^7=128)

4 status bits.

Width of control memory = control word length = 4+16+7 = 27 bits

3 Comments

edited by
No, $25$ bits will be the correct answer, as we need only 2x1 MUX for 4 status bits.
3
3

:https://gateoverflow.in/1061/gate2004-67 watch this 25 is correct

1
1

Correct me if I am wrong.

In the question https://gateoverflow.in/1061/gate2004-67 It is not given that it is a horizontal microprogrammed unit. Then how can we apply that logic to this question.

1
1

Related questions