Searching for "If"

Q:

What are the different Adder circuits you studied?

Answer

Adders are generally of five types:


1.Ripple Carry Adder:


The Ripple carry adder(RCA) consists of a building block named Half Adder(HA) which is cascaded to form a Full Adder(FA). These buildingblocks HAs and FAs are also the building blocks of all types of adders.The n full adders are cascaded to form n bit RCA.


The full adder has three input pins(input Ai,input Bi,carryin Ci) and two output pins(Sum and Ci+1).Its equations are:


Sum=Ai^Bi^Ci


Ci+1=Ai.Bi+Bi.Ci+Ai.Ci


 


2. Carry Lookahead Adder:


The Carry Lookahead Adder(CLA) reduces the delay as that in RCA. Let Gi=Ai.Bi, and Pi=Ai^Bi, then Ci+1=Gi+Pi.Ci.


The expressions for Sum and Ci+1 is then defined completely in terms of input pins rather wait for input carry to appear.


 


3. Carry Select Adder:


The carry select adder uses duplicate modules for each combination of input carry(i.e. 1 and 0).The multiplexers then select the appropriate sum and carry output according to the carry output of the preceding stages.


 


4. Carry Skip Adder:


The carry skip adder are as fast as carry lookahead adders which are the fastest adders but its spped decreases to about 20-30% if input operands are 64-bit or more. In these adders we divide the input bit stream into various blocks and make use of two observations:


-if each element of the two bit streams are unequal,i.e. Ai!=Bi than the carry input of the block is equal to the carry input.


-if each element of the two bit streams are equal,i.e. Ai=Bi than the carry input of the block is opposite of the carry input.


 


5. Carry Save Adder:


The carry save adder reduces the addition of three elements into addition of two elements,i.e. if you want sum of nine numbers it reduces it into sum of six numbers. In first step the sum of three numbers is calculated without bothering for the carry.During the second step only carry is calculated which is then added to the generated sum to give the required sum. 

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

Q:

What are set up time & hold time constraints? What do they signify? Which one is critical for estimating maximum clock frequency of a circuit?

Answer

Suppose your flip-flop is positive edgetriggered. time for which data should be stable prior to positive edge clock is called setup is called setup time constraint.


Time for which data should be stable after the positive edge of clock is called as hold time constraint.


If any of these constraints are violate d then flip-flop will enter in meta stable state, in which we cannot determine the output of flip-flop.


there are two equation:


1. Tcq + Tcomb > Tskew + Thold


2. Tcq + Tcomb > Tskew + T - Tsetup


Tcq is time delay when data enters the flip flop and data comes at output of flip flop.


Tcomb is the logic delay between two flip flop.


Tskew is the delay of clock to flip flop: suppose there are two flip flop, if clock reaches first to source flip flop and then after some delay to destination flip flop, it is positive skew and if vice versa then negative  skew. 


so if you take 2 eq you will see that setup time is the determining factor of clock's time period.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

Q:

How do you detect if two 8-bit signals are same?

Answer

Pass input to XOR and give their outputs to OR gate, if your output is 0 both 8-bit signals are same.


OR


Pass input to XNOR and give their outputs to AND gate, if your output is 1 both 8-bit signals are same. 

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

Q:

The average temperature of the town in the first four days of a month was 58 degrees. The average for the second, third, fourth and fifth days was 60 degrees. If the temperatures of the first and fifth days were in the ratio 7 : 8, then what is the temperature on the fifth day ?

A) 62 degrees B) 64 degrees
C) 65 degrees D) 66 degrees
 
Answer & Explanation Answer: B) 64 degrees

Explanation:

Sum of temperatures on 1st, 2nd, 3rd and 4th days = (58 * 4) = 232 degrees ... (1)

Sum of temperatures on 2nd, 3rd, 4th and 5th days - (60 * 4) = 240 degrees  ....(2)

Subtracting (1) From (2), we get :

Temp, on 5th day  - Temp on 1st day  = 8 degrees.

Let the temperatures on 1st and 5th days be 7x and 8x degrees respectively.

Then, 8x - 7x = 8 or x = 8.

Temperature on the 5th day = 8x = 64 degrees.

Report Error

View Answer Report Error Discuss

Filed Under: Average

Q:

The average of 11 numbers is 10.9. If the average of the first six numbers is 10.5 and that of the last six numbers is 11.4, then the middle number is :

A) 10.5 B) 11.5
C) 12.5 D) 13.5
 
Answer & Explanation Answer: B) 11.5

Explanation:

Middle numbers  =  [(10.5 x 6 + 11.4 x 6) - 10.9 x 11] = (131.4 - 119-9) = 11.5.

Report Error

View Answer Report Error Discuss

Filed Under: Average

Q:

10 years ago, the average age of a family of 4 members was 24 years. Two children having been born (with age diference of 2 years), the present average age of the family is the same. The present age of the youngest child is :

A) 1 B) 2
C) 3 D) 4
 
Answer & Explanation Answer: C) 3

Explanation:

Total age of 4 members, 10 years ago = (24 x 4) years = 96 years.

 

Total age of 4 members now = [96 + (10 x 4)] years = 136 years.

 

Total age of 6 members now = (24 x 6) years = 144 years.

 

Sum of the ages of 2 children = (144 - 136) years = 8 years.

 

Let the age of the younger child be x years.

 

Then, age of the elder child = (x+2) years.

 

So, x+(x+2) =8 <=> x=3

 

Age of younger child  =  3 years.

Report Error

View Answer Report Error Discuss

Filed Under: Average

Q:

Suppose you have a computional circuit between two registers driven by a clock. What will you do if the delay of the combinational circuit is greater than your clock signal?

Answer

Use the concept of register-retiming.


divide the totla combinatorial delay in two segments such that individually the delay is less the clock period.


this can be done by inserting a flip-flop in the combinational path.


e.g.,


clock period --- 5 ns


total cominational delay ---- 7


then divide the 7ns path in two path of 4 or 3 (best resutls are obtained if delays are  same for both path i.e 3.5ns) by inserting a flip-flop in between.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

Q:

A car owner buys petrol at Rs 7.50, Rs. 8 and Rs. 8.50 per litre for three successive years. What approximately is the average cost per litre of petrol if he spends Rs. 4000 each year ?

A) 6.23 B) 7.98
C) 8.97 D) 9.89
 
Answer & Explanation Answer: B) 7.98

Explanation:

Total quantity of petrol consumed in 3 years =(4000/7.50+4000/8+4000/8.50)  liters

 

                                                         = 4000(2/15+1/8+2/17) liters                                                   

 

                                                         = 76700/51 liters

 

Total amount spent = Rs. (3 x 4000) = Rs. 12000.

 

Average cost = Rs. (12000*51/76700) = Rs. 7.98.

Report Error

View Answer Report Error Discuss

Filed Under: Average