• edited by
12,482 views
36 36 votes

A CPU has only three instructions $I1, I2$ and $I3,$ which use the following signals in time steps $T1-T5$:

$I1 : T1$ : Ain, Bout, Cin
         $T2$ : PCout, Bin
         $T3$ : Zout, Ain
         $T4$ : Bin, Cout
         $T5$ : End

$I2 : T1$ : Cin, Bout, Din
        $T2$ : Aout, Bin
        $T3$ : Zout, Ain
        $T4$ : Bin, Cout
        $T5$ : End

$I3 : T1$ : Din, Aout
        $T2$ : Ain, Bout
        $T3$ : Zout, Ain
        $T4$ : Dout, Ain
        $T5$ : End

Which of the following logic functions will generate the hardwired control for the signal Ain ?

  1. $T1.I1 + T2.I3 + T4.I3 + T3$
  2. $(T1 + T2 + T3).I3 + T1.I1$
  3. $(T1 + T2 ).I1 + (T2 + T4).I3 + T3$
  4. $(T1 + T2 ).I2 + (T1 + T3).I1 + T3$

3 Answers

Best answer
54 54 votes

We just have to see which all options give $1$ whenever $A_{in}$ is $1$ and $0$ otherwise. 

So, Ain is $1$ in $T3$ of $I1, I2$ and $I3$. Also during $T1$ of $I1$, and $T2$ and $T4$ of $I3$. So, answer will be 

$T1.I1 + T2.I3 + T4.I3 + T3.I1 + T3.I2 + T3.I3$

Since CPU is having only $3$ instructions, $T3.I1 + T3.I2 + T3.I3$ can be replaced with $T3$ (we don't need to see which instruction and $A_{in}$ will be activated in time step $3$ of all the instructions).

So, $T1.I1 + T2.I3 + T4.I3 + T3 $

The answer is Option (A). 

• edited by
2 2 votes
 
T1
T2
T3
T4
T5
I1
Ain
 
Ain
 
 
I2
 
 
Ain
 
 
I3
 
Ain
Ain
Ain
 

 

 

Ain = T1.I1 + T2.I3 + (I1+I2+I3).T3 + T4.I3   WE KNOW -> [I1 + I2 + I3 = 1]

 
    Ain = T1.I1 + T2.I3 + T3 + T4.I3

 

So, Option A) is the correct answer.

0 0 votes

Step 1: Making Table for easier understanding
 

Instr. \ TimerT1T2T3T4T5
I1Ain , Bout , CinPcout , BinZout , AinBin , CoutEnd
I2Cin , Bout , DinAout , BinZout , AinBin , CoutEnd
I3Din , AoutAin , BoutZout , AinDout , AinEnd

 

Step 2: Checking where Ain is enabled in given CPU

i.e., writing minterms for Ain :

Ain = I1.T1 + I3.T2 + I1.T3 + I2.T3 + I3.T3 + I3.T4

      = I1.T1 + I3.T2 + (I1+I2+I3).T3 + I3.T4 

      = I1.T1 + I3.T2 + T3 + I3.T4   (Since, I1 + I2 + I3 = 1 i.e., Identity) 


Therefore Option (A) is correct.

Answer:
Position:
Show:

Related questions

78 78 votes
8 answers 8 answers
38.9k
38.9k views
Ishrat Jahan asked Nov 2, 2014
38,923 views
The storage area of a disk has the innermost diameter of $10$ cm and outermost diameter of $20$ cm. The maximum storage density of the disk is $1400$ bits/cm. The disk ro...
61 61 votes
6 answers 6 answers
25.0k
25.0k views
Ishrat Jahan asked Nov 2, 2014
25,032 views
Consider a fully associative cache with $8$ cache blocks (numbered $0-7$) and the following sequence of memory block requests:$4, 3, 25, 8, 19, 6, 25, 8, 16, 35, 45, 22, ...
48 48 votes
5 answers 5 answers
21.2k
21.2k views
Ishrat Jahan asked Nov 2, 2014
21,190 views
Consider a pipeline processor with $4$ stages $S1$ to $S4$. We want to execute the following loop:for (i = 1; i < = 1000; i++) {I1, I2, I3, I4}where the time taken (in ns...
82 82 votes
13 answers 13 answers
44.6k
44.6k views
Ishrat Jahan asked Nov 1, 2014
44,586 views
Consider a system with $2$ level cache. Access times of Level $1$ cache, Level $2$ cache and main memory are $1$ $ns$, $10$ $ns$, and $500$ $ns$ respectively. The hit rat...