edited by
2,209 views
1 votes
1 votes
Q.27
Consider a CPU where 150 instructions take 8 clock cycles each to complete the execution. A horizontal microprogrammed control unit has to generate 125 control signals. What is the minimum size of control word? _______
 
Answer given is 136 (multiple of 8 bit)
Actual No of bits required is 133. Do we always need multiple of 8  ? Here issue is that they have not specified unit (Bit or byte) , Neither they have given that answer should be multiple of 8 , if it is in bit !
edited by

2 Answers

7 votes
7 votes

Horizontal Control Word Format is

Branch condition Flags Control Signal Field CM Address

Nothing is mention in question about Branch condition.

so number of bits for Branch Condition = 0

Same with flag, number of bits for flags = 0

Control field indicates the control signal which is 125 Control Signal.Since Horizontal control Word uses decode binary format to represent control signal i.e. 1 bit per control signal.

So number of bits required for Control Signal Field = 125 bits

Given Number of Instruction = 150 and number of cycle/instruction = 8

So total number of cycle required in 150 instructions = 150 * 8 = 1200 cycle

In Control Unit 1 micro operation require 1 cycle so total number of micro operation = 1200 micro operation

1 micro operation require 1 Control Memory Word Storage.

So total size of control memory  = 1200 Control Memory Word

number of bits required to represent Control Memory Address = Ceil( log1200 ) = 11 bits

Minimum Size of Control Word  = 0 + 0 + 125 + 11 =136 bits

** Control Word Size is not always mandatory to be multiple of 8. Actually there is no need of specifying bit or bytes in this question.

0 votes
0 votes
150*8 =1200 micro instructions

so 11 address bits required

control word length = 11 + 125 = 136

Related questions

1 votes
1 votes
1 answer
4
dragonball asked Jan 1, 2018
4,007 views
Difference between Horizontal Microprogramming and Vertical Microprogramming Plz explain in detail for GATE point of view only.