Sunday, September 5, 2010

Digital Design Interview Questions - All in 1

1. How do you convert a XOR gate into a buffer and a inverter (Use only one XOR gate for each)?
Answer


2. Implement an 2-input AND gate using a 2x1 mux.
Answer


3. What is a multiplexer?
Answer

A multiplexer is a combinational circuit which selects one of many input signals and directs to the only output.

4. What is a ring counter?
Answer

A ring counter is a type of counter composed of a circular shift register. The output of the last shift register is fed to the input of the first register. For example, in a 4-register counter, with initial register values of 1100, the repeating pattern is: 1100, 0110, 0011, 1001, 1100, so on.

5. Compare and Contrast Synchronous and Asynchronous reset.
Answer

Synchronous reset logic will synthesize to smaller flip-flops, particularly if the reset is gated with the logic generating the d-input. But in such a case, the combinational logic gate count grows, so the overall gate count savings may not be that significant. The clock works as a filter for small reset glitches; however, if these glitches occur near the active clock edge, the Flip-flop could go metastable. In some designs, the reset must be generated by a set of internal conditions. A synchronous reset is recommended for these types of designs because it will filter the logic equation glitches between clock.
Problem with synchronous resets is that the synthesis tool cannot easily distinguish the reset signal from any other data signal. Synchronous resets may need a pulse stretcher to guarantee a reset pulse width wide enough to ensure reset is present during an active edge of the clock, if you have a gated clock to save power, the clock may be disabled coincident with the assertion of reset. Only an asynchronous reset will work in this situation, as the reset might be removed prior to the resumption of the clock. Designs that are pushing the limit for data path timing, can not afford to have added gates and additional net delays in the data path due to logic inserted to handle synchronous resets.

Asynchronous reset: The major problem with asynchronous resets is the reset release, also called reset removal. Using an asynchronous reset, the designer is guaranteed not to have the reset added to the data path. Another advantage favoring asynchronous resets is that the circuit can be reset with or without a clock present. Ensure that the release of the reset can occur within one clock period else if the release of the reset occurred on or near a clock edge then flip-flops may go into metastable state.

6. What is a Johnson counter?
Answer

Johnson counter connects the complement of the output of the last shift register to its input and circulates a stream of ones followed by zeros around the ring. For example, in a 4-register counter, the repeating pattern is: 0000, 1000, 1100, 1110, 1111, 0111, 0011, 0001, so on.

7. An assembly line has 3 fail safe sensors and one emergency shutdown switch.The line should keep moving unless any of the following conditions arise:
(1) If the emergency switch is pressed
(2) If the senor1 and sensor2 are activated at the same time.
(3) If sensor 2 and sensor3 are activated at the same time.
(4) If all the sensors are activated at the same time
Suppose a combinational circuit for above case is to be implemented only with NAND Gates. How many minimum number of 2 input NAND gates are required?
Answer

Solve it out!

8. In a 4-bit Johnson counter How many unused states are present?
Answer

4-bit Johnson counter: 0000, 1000, 1100, 1110, 1111, 0111, 0011, 0001, 0000.
8 unused states are present.

9. Design a 3 input NAND gate using minimum number of 2 input NAND gates.
Answer


10. How can you convert a JK flip-flop to a D flip-flop?
Answer

Connect the inverted J input to K input.


11. What are the differences between a flip-flop and a latch?
Answer

Flip-flops are edge-sensitive devices where as latches are level sensitive devices.
Flip-flops are immune to glitches where are latches are sensitive to glitches.
Latches require less number of gates (and hence less power) than flip-flops.
Latches are faster than flip-flops.

12. What is the difference between Mealy and Moore FSM?
Answer

Mealy FSM uses only input actions, i.e. output depends on input and state. The use of a Mealy FSM leads often to a reduction of the number of states.
Moore FSM uses only entry actions, i.e. output depends only on the state. The advantage of the Moore model is a simplification of the behavior.

13. What are various types of state encoding techniques? Explain them.
Answer

One-Hot encoding: Each state is represented by a bit flip-flop). If there are four states then it requires four bits (four flip-flops) to represent the current state. The valid state values are 1000, 0100, 0010, and 0001. If the value is 0100, then it means second state is the current state.

One-Cold encoding: Same as one-hot encoding except that '0' is the valid value. If there are four states then it requires four bits (four flip-flops) to represent the current state. The valid state values are 0111, 1011, 1101, and 1110.

Binary encoding: Each state is represented by a binary code. A FSM having '2 power N' states requires only N flip-flops.

Gray encoding: Each state is represented by a Gray code. A FSM having '2 power N' states requires only N flip-flops.

14. Define Clock Skew , Negative Clock Skew, Positive Clock Skew.
Answer

Clock skew is a phenomenon in synchronous circuits in which the clock signal (sent from the clock circuit) arrives at different components at different times. This can be caused by many different things, such as wire-interconnect length, temperature variations, variation in intermediate devices, capacitive coupling, material imperfections, and differences in input capacitance on the clock inputs of devices using the clock.
There are two types of clock skew: negative skew and positive skew. Positive skew occurs when the clock reaches the receiving register later than it reaches the register sending data to the receiving register. Negative skew is the opposite: the receiving register gets the clock earlier than the sending register.

15. Give the transistor level circuit of a CMOS NAND gate.
Answer


16. Design a 4-bit comparator circuit.
Answer


17. Design a Transmission Gate based XOR. Now, how do you convert it to XNOR (without inverting the output)?
Answer


18. Define Metastability.
Answer

If there are setup and hold time violations in any sequential circuit, it enters a state where its output is unpredictable, this state is known as metastable state or quasi stable state, at the end of metastable state, the flip-flop settles down to either logic high or logic low. This whole process is known as metastability.

19. Compare and contrast between 1's complement and 2's complement notation.
Answer

20. Give the transistor level circuit of CMOS, nMOS, pMOS, and TTL inverter gate.
Answer


21. What are set up time and hold time constraints?
Answer

Set up time is the amount of time before the clock edge that the input signal needs to be stable to guarantee it is accepted properly on the clock edge.
Hold time is the amount of time after the clock edge that same input signal has to be held before changing it to make sure it is sensed properly at the clock edge.
Whenever there are setup and hold time violations in any flip-flop, it enters a state where its output is unpredictable, which is known as as metastable state or quasi stable state. At the end of metastable state, the flip-flop settles down to either logic high or logic low. This whole process is known as metastability.

22. Give a circuit to divide frequency of clock cycle by two.
Answer


23. Design a divide-by-3 sequential circuit with 50% duty circle.
Answer


24. Explain different types of adder circuits.
Answer


25. Give two ways of converting a two input NAND gate to an inverter.
Answer


26. Draw a Transmission Gate-based D-Latch.
Answer


27. Design a FSM which detects the sequence 10101 from a serial line without overlapping.
Answer


28. Design a FSM which detects the sequence 10101 from a serial line with overlapping.
Answer


29. Give the design of 8x1 multiplexer using 2x1 multiplexers.
Answer


30. Design a counter which counts from 1 to 10 ( Resets to 1, after 10 ).
Answer


31. Design 2 input AND, OR, and EXOR gates using 2 input NAND gate.
Answer


32. Design a circuit which doubles the frequency of a given input clock signal.
Answer


33. Implement a D-latch using 2x1 multiplexer(s).
Answer


34. Give the excitation table of a JK flip-flop.
Answer


35. Give the Binary, Hexadecimal, BCD, and Excess-3 code for decimal 14.
Answer

14:
Binary: 1110
Hexadecimal: E
BCD: 0001 0100
Excess-3: 10001

36. What is race condition?
Answer


37. Give 1's and 2's complement of 19.
Answer

19: 10011
1's complement: 01100
2's complement: 01101

38. Design a 3:6 decoder.
Answer


39. If A*B=C and C*A=B then, what is the Boolean operator * ?
Answer

* is Exclusive-OR.

40. Design a 3 bit Gray Counter.
Answer


41. Expand the following: PLA, PAL, CPLD, FPGA.
Answer

PLA - Programmable Logic Array
PAL - Programmable Array Logic
CPLD - Complex Programmable Logic Device
FPGA - Field-Programmable Gate Array

42. Implement the functions: X = A'BC + ABC + A'B'C' and Y = ABC + AB'C using a PLA.
Answer


43. What are PLA and PAL? Give the differences between them.
Answer

Programmable Logic Array is a programmable device used to implement combinational logic circuits. The PLA has a set of programmable AND planes, which link to a set of programmable OR planes, which can then be conditionally complemented to produce an output.
PAL is programmable array logic, like PLA, it also has a wide, programmable AND plane. Unlike a PLA, the OR plane is fixed, limiting the number of terms that can be ORed together.
Due to fixed OR plane PAL allows extra space, which is used for other basic logic devices, such as multiplexers, exclusive-ORs, and latches. Most importantly, clocked elements, typically flip-flops, could be included in PALs. PALs are also extremely fast.

44. What is LUT?
Answer

LUT - Look-Up Table. An n-bit look-up table can be implemented with a multiplexer whose select lines are the inputs of the LUT and whose inputs are constants. An n-bit LUT can encode any n-input Boolean function by modeling such functions as truth tables. This is an efficient way of encoding Boolean logic functions, and LUTs with 4-6 bits of input are in fact the key component of modern FPGAs.

45. What is the significance of FPGAs in modern day electronics? (Applications
of FPGA.)
Answer

  • ASIC prototyping: Due to high cost of ASIC chips, the logic of the application is first verified by dumping HDL code in a FPGA. This helps for faster and cheaper testing. Once the logic is verified then they are made into ASICs.
  • Very useful in applications that can make use of the massive parallelism offered by their architecture. Example: code breaking, in particular brute-force attack, of cryptographic algorithms.
  • FPGAs are sued for computational kernels such as FFT or Convolution instead of a microprocessor.
  • Applications include digital signal processing, software-defined radio, aerospace and defense systems, medical imaging, computer vision, speech recognition, cryptography, bio-informatics, computer hardware emulation and a growing range of other areas.

46. What are the differences between CPLD and FPGA.
Answer


47. Compare and contrast FPGA and ASIC digital designing.
Answer

48. Give True or False.
(a) CPLD consumes less power per gate when compared to FPGA.
(b) CPLD has more complexity than FPGA
(c) FPGA design is slower than corresponding ASIC design.
(d) FPGA can be used to verify the design before making a ASIC.
(e) PALs have programmable OR plane.
(f) FPGA designs are cheaper than corresponding ASIC, irrespective of design
complexity.
Answer

(a) False
(b) False
(c) True
(d) True
(e) False
(f) False

49. Arrange the following in the increasing order of their complexity: FPGA,PLA,CPLD,PAL.
Answer

Increasing order of complexity: PLA, PAL, CPLD, FPGA.

50. Give the FPGA digital design cycle.
Answer


51. What is DeMorgan's theorem?
Answer

For N variables, DeMorgan’s theorems are expressed in the following formulas:
(ABC..N)' = A' + B' + C' + ... + N' -- The complement of the product is equivalent to the sum of the complements.
(A + B + C + ... + N)' = A'B'C'...N' -- The complement of the sum is equivalent to the product of the complements.
This relationship so induced is called DeMorgan's duality.

52. F'(A, B, C, D) = C'D + ABC' + ABCD + D. Express F in Product of Sum form.
Answer

Complementing both sides and applying DeMorgan's Theorem:
F(A, B, C, D) = (C + D')(A' + B' + C)(A' + B' + C' + D')(D')

53. How many squares/cells will be present in the k-map of F(A, B, C)?
Answer

F(A, B, C) has three variables/inputs.
Therefore, number of squares/cells in k-map of F = 2(Number of variables) = 23 = 8.

54. Simplify F(A, B, C, D) = S ( 0, 1, 4, 5, 7, 8, 9, 12, 13)
Answer

The four variable k-map of the given expression is:


The grouping is also shown in the diagram. Hence we get,
F(A, B, C, D) = C' + A'BD

55. Simplify F(A, B, C) = S (0, 2, 4, 5, 6) into Product of Sums.
Answer

The three variable k-map of the given expression is:


The 0's are grouped to get the F'.
F' = A'C + BC

Complementing both sides and using DeMorgan's theorem we get F,
F = (A + C')(B' + C')

56. The simplified expression obtained by using k-map method is unique. True or False. Explain your answer.
Answer

False. The simplest form obtained is not necessarily unique as grouping can be made in different ways.

57. Give the characteristic tables of RS, JK, D and T flip-flops.
Answer

RS flip-flop.
SRQ(t+1)
00Q(t)
010
101
11?

JK flip-flop
JKQ(t+1)
00Q(t)
010
101
11Q'(t)

D flip-flop
DQ(t+1)
00
11

T flip-flop
TQ(t+1)
0Q(t)
1Q'(t)

58. Give excitation tables of RS, JK, D and T flip-flops.
Answer

RS flip-flop.
Q(t)Q(t+1)SR
000X
0110
1001
11X0

JK flip-flop
Q(t)Q(t+1)JK
000X
011X
10X1
11X0

D flip-flop
Q(t)Q(t+1)D
000
011
100
111

T flip-flop
Q(t)Q(t+1)T
000
011
101
110

59. Design a BCD counter with JK flip-flops
Answer


60. Design a counter with the following binary sequence 0, 1, 9, 3, 2, 8, 4 and repeat. Use T flip-flops.
Answer

Saturday, September 4, 2010

cisco interview questions

Here are some CISCO Interview Questions consisting more of Digital Electronics written and technical interview Questions asked in leading electronics companies / software development or chip designing firms.
Why do we use refresh in dynamic RAM?
Explain the cause and effect signals of 8085 microprocessor.
What is FILO?
Why is CMOS preferred over NMOS?
What happens if we add negative logic to a nand gate?
Difference between synchronous circuits and asynchronous circuits.
What do you know about ALE in 8085?
ALE stands for Address latch enable.
Bit storage capacity of a ROm with 512*4 organization?
What is the time taken by a 64 kbps serial link to send a picture with 540 pixels?
How much memory is required to store a 4 minutes voice signal. Frequency range = 16 to 20 Hz and sample = 1 byte.
Explain Subroutine and Vectored Interrupts.
Memory needed for multiplication of two 8 bit unsigned numbers.
How does a controller work?
What is the vector address of RST 7.5 in 8085 microprocessor?
Represent AC2H in terms of Gray code
Active high SR latch has 1 on S and 0 on R input. What is the state of latch?
What is a PLL?
What are the various stages inside a PLL or phase locked loop?
The input of a D flip flop is connect to output of an XOR gate, What will be the output?
How does the Icb of a transistor vary with change in temperature?
How many input vectors are required to determine the stack fault of a 3 input nand gate?
What is the range of mantissa in a normalized floating point representation?
Question on Addition of BCD Numbers
Question on Addition of Hexa decimal Numbers
Subtraction of hexa decimal numbers
Simplification of complex expressions
How is nor gate used as an inverter?
What is the number of flip flops needed to make a divide by 32 device?
What do you understand by a parity generator?
Digital Electronics important technical interview and written test paper theoretical questions and answers. Download lots more related tech and job preparation materials here.

Quick Thinking Tests

  • 200lb of cucumbers was delivered to the grocery store and left in a storage room. The cucumbers contained 99% of water. After some time part of water evaporated and the contents of water in cucumbers became 98%. What is the weight of cucumbers now?







  • You have 2 candles. Every candle lights for 60 minutes. You have to find the way to measure  45 minutes.






  • A snail wants to creep on to the top of the tree 5m high. During the day it can creep up 3m but during the night it creeps down 2m. How many days does it need to reach the top?






  • 9 coins,one of them is fake. Use a balance to weigh them not more than 3 times and find the fake.A fake coin is not necessarily lighter.






  • Connect  9 dots with 4 lines . Don't cross the same dot twice.
  • .             .            .   .             .            .   .             .            .
  • Parachutist is landing the island  in the darkness. The island is of unknown shape. There must be a fenced lot at the island. The parachutist needs to find out if he is within the fenced lot or outside.

  • A band is going in the street with a constant speed.Someone in the last raw has a dog.The dog runs ahead, reaches the front line of the band and gets back to it's owner. The dog's speed was also constant all the way and while it was running the band passed 50 feet. Find the length of the dog's path,if the distance between the front and the rear line of the band is 50 feet.


  • There are 100 gold coins in 10 columns by 10 coins in each column. Every coin weights 1 lb. One column contains 10 fake coins.Each coin in it weights 0.9 lb. Take one measurement to find the column with fakes.
    Sent Hari R., National Semiconductor


  • Two drivers are going to the next town which is 100 miles away. They depart at the same time, however the first driver stops for gas during the first 50 miles, the second driver stops during the second half. Each stop takes 10 minutes. They both drive with the same speed 60 mph during the first 50 miles and 65 mph during the second half. Who, do you think, arrives first?


  • A chess board has 64 squares.Two squares in the diagonal corners are masked out.Is it possible to cover the rest 62 squares with 31 dominos? (One domino covers two squares.) Explain the logic of your answer.




  • There are four numbers: 1, 2, 5, 10 that you have to carry in a boat across a river. Every time you may not carry more than two numbers , and the time of traveling is associated with the largest of two numbers. One number has to be in the boat during the return journey, which also defines the time for this trip. What is the minimum total time to carry all numbers from one bank to another?





  • A man is running across a bridge.When he is 3/8 of the way accross, he heard a train coming behind him. If he keeps running he will reach the end of the bridge at the same time with the train. If he turns around and runs back, he will get to the beginning of the bridge at the same time with the train. The man runs at a speed of 5mph. What is the speed of the train?
    This was sent by John Sonmez from Texas.The interviewer asked him not to use paper but do the calculation in his head.
     





  • We are going to play a paper-rock game (similar to paper-rock-scissors). If we both have "paper" - I pay you $3, if we both have "rock" - I pay you $1. If they don't match - you pay me $2. Suggest a winning strategy?
     





  • There is a large cube that is composed of small sugar cubes. The large cube is 10 sugar cubes long, by 10 sugar cubes wide, by 10 sugar cubes high. How many sugar cubes are on the surface of the large cube?
    Received from Zach, college student






     
  • An escalator is descending at constant speed. A walks down and takes 50 steps to reach the bottom. B runs down and takes 90 steps in the same time as A takes 10 steps. how many steps are visible when the escalator is not operating.





     





    • There are 3 switches in one room that control 3 electrical lamps located in the other room.You are allowed to spend 5 minutes in the room with switches,change their position as you want.Then you should go to the room with lamps and tell exactly what switch controls every lamp.You can't return to the room with switches.





    • There is a pot full of water. How to pour out half of it without using a meter?





    • A point is chosen at random from within a circular region.What is the probability that the point is closer to the center of the region than it is to the boundary of the region.




    • Why  are  manhole  covers  round ?
      Sent by John M., LTX corp.





    • If you ask electronics engineer " To be  or  not to be ?" , his answer will be "One!"   How come?





    • You are playing a game with your partner.The idea is to cover a round table with quaters. The one who puts the last coin - wins.Suggest a winning strategy.
      Sent by Ronni , Oren Semiconductor





    • There are 8 metal balls, one of them is lighter. How many times do you need to weight the balls to find the light one? Try to minimize that number.




    • How to cut a plain circular cake for 8 people with just three straight cuts of knife?
       




    • A man went down to the river with two jugs, one of three-liter capacity and one of five-liter capacity. Using just these , how did he bring back exactly four liters?
       




    • You drove to the next town with a speed of 60 miles/hour. On your way back the speed was 40 miles/hour. The distance is 120 miles. Calculate the average speed.




       
    • How many gas stations in San-Francisco?





       





    • Here is a quickie someone from LSI Logic asked me a while back
      You are sitting in a boat in the middle of a lake. You pick up a rock from the boat and throw it into the lake. Did your action raise or lower the water level at the edge of the lake?





       





    • Why do they make pizza boxes square?
       





    • The bridge had 3 lanes. After reconstruction it will have 4 lanes. What is the persantage of the increase in carrying capacity?
       





Electronics Hardware Questions

  • Two capacitors are connected in parallel through a switch. C1= 1uF, C2= 0.25uF.
    Initially the switch is open, C1 is charged to 10V. What happens if we close the switch? No losses in wires and capacitors. 

    Answers & follow ups

  • You have 2 switches to control the light in the long corridor. You want to be able to turn the light on entering the corridor and turn it off at the other end. Do the wiring circuit.
    Answers & follow ups

  • There are 3 switches that can turn on and off a light in the room. How to connect them?
    Answers & follow ups

  • What will be the voltage level between the 2 capacitors? The Vcc = 10v DC.
    Sent by Tanh, VLSI engineer

    Answers & follow ups

  • Suppose, you work on a specification for a system with some digital parameters. The spec table has has Min,Typ and Max colomns for each parameter. In what column would you put a Setup time and a Hold time?
    Answers & follow ups

  •   Design a simple circuit based on combinational logic to double the output frequency. 

    Answers & follow ups

  • 8bit ADC with parallel output converts an input signal into digital numbers. You have to come up with an idea of a circuit , that finds MAX  of every 10 numbers at the output of the ADC.
    Answers & follow ups

  • Implement a comparator that compares two 2-bit numbers A and B. The comparator should have 3 outputs:  A > B, A < B, A = B. Do it two ways:
    - using combinational logic;
    - using multiplexers. Write HDL code for your schematic at RTL and gate level.

    Answers & follow ups

  • You have a 8 bit ADC clocking data out every  1mS.  Design a system that  will sort the output data and keep the statistics of how often each binary number appears at the output of ADC.
     
    Answers & follow ups

  • What types of flip-flops do you know? 
     
    Answers & follow ups

  • Implement D- latch from
    - RS flip flop;
    - multiplexer.
    Answers & follow ups

  • How to convert D-latch into JK-latch and JK-latch into D-latch? 
    Answers & follow ups

  • There are two counters to 16, built from negedge D- FF . The first circuit is synchronous and the second one is "ripple" (cascading). Which circuit has less propagation delay?
    Answers & follow ups

  • What is the difference between a flip-flop and a latch? 
    Write an HDL code for their behavioral models.
    Hint from Hitequest

  • Describe the operation of a DAC. What are the most important parameters of a DAC? Do we really need both INL and DNL to estimate linearity? 
    Hint from Hitequest


     
  • Compare  briefly all types of ADC that you know .
    Hint from Hitequest

  • How will the output signal of an ideal integrator look like after
    - a positive pulse is applied to the input;
    - a series of 10 positive pulses ?
    Hint from Hitequest

  • How to design a divide-by-3 counter with equal duty cycle ?
    question from Anonymous
    Answers & follow ups

  • For an 8-bit flash A/D converter with an input range from 0V to 2.55V, describe what happens when the input voltage changes from 1.27V to 1.28V
    Answers & follow ups

  • Your system has CPU, ALU and two 8bit registers. There is no external memory. Can you swap the contence of the registers ?
    Answers & follow ups

  • We swapped 2 transistors in CMOS inverter (put n-transistor at the top and p-transistor at the bottom). Can this circuit work as a non-inverting buffer?
    (By E.Martovetsky,design eng)

    NO, IT CAN NOT! - Discussion with Sriram
    YES, IT CAN! - Discussion with Peter
    Yuri M., National Semi, PHD

  • Convert D-latch into divider by 2. 
    What is the max clock frequency  the circuit can handle ? 
    T_setup= 6nS 
    T_hold = 2nS 
    T_propagation = 10nS 
    Hint from Hitequest

  • The circle can rotate clockwise and back. Use minimum hardware to build a circuit to indicate the direction of rotating.

    Hint from Hitequest


     

  • Provide 2-dimentional plot of how the output of digital circuit will look like, if on axis X we sweep the clock period, while on axis Y we sweep the data setup time (Tclk vs Tsetup).


     
  • For chip design/test/product engineers :
    An IC device draws higher current when temperature gets:
    - higher?
    - lower?
    Hint from Hitequest


     
  • To enter the office people have to pass through the corridor. Once someone gets into the office the light turns on. It goes off when noone is present in the room. There are two registration sensors in the corridor.  Build a state machine diagram and design a circuit to control the light.



  • A voltage source with internal impedance Z_source = 50 OHm is connected to a transmission line with Z = 50 OHm. Z_load is also 50 OHm.
    The voltage source generates a single voltage step 1V.
    What will be the voltage level on the load:
     
    a)  2V , because the reflected signal will be in-phase with the incident signal;
    b)  0.33V , because the voltage is devided between Z_source , Z_load and Z_transm.line;
    c)  0.5V , because the voltage is devided between Z_source and Z_load.

    Hint from Hitequest


     
  • Draw a transistor schematic of NOR gate,it's layout and a cross section of the layout.
    This question is quite popular on interviews.



     
  • The silicon of a new device has memory leak. When all "0" are written into RAM, it reads back all "0" whithout any problem. When all "1" are written, only 80% of memory cells are read back correctly. What can be possibly the problem with the RAM?
    M.Altshuler, product engineer.



     
  • Draw a CMOS inverter. Why does CMOS technology dominate in VLSI manufacturing?
    L.Backer, DFT engineer



     
  • Design a FIFO 1 byte wide and 13 words deep. The FIFO is interfacing 2 blocks with different clocks. On the rising edge of clk the FIFO stores data and increments wptr. On the rising edge of clkb the data is put on the b-output,the rptr points to the next data to be read.
    If the FIFO is empty, the b-output data is not valid. When the FIFO is full the existing data should not be overriden.
    When rst_N is asserted, the FIFO pointers are asynchronously reset. module fifo1 (full,empty,clk,clkb,ain,bout,rst_N)
    output [7:0] bout;
    input [7:0] ain;
    input clk,clkb,rst_N;
    output empty, full;
    reg [3:0] wptr, rptr;
    ...

    endmodule

    Hint from Hitequest


     
  • What does CMOS stand for? VLSI? ASIC?
    This was in the series of quick questions in the interview at Analog Devices. We use these abbreviations daily, but not everyone remembers what they stand for.
    Hint from Hitequest





     
  • Design a COMBINATIONAL circuit that can divide the clock frequency by 2.



     
  • Design a 2bit up/down counter with clear using gates. (No verilog or vhdl)



     
  • We have a circular wheel with half painted black and the other half painted white. There are 2 censors mounted 45 degree apart at the surface of this wheel( not touching the wheel) which give a "1" for black and "0" for white passing under them. Design a circuit to detect which way the wheel is moving. Can not assume any fixed position for start.



     
  • We have a FIFO which clocks data in at 100mhz and clocks data out at 80mhz. On the input there are only 80 data bits in any order during each 100 clocks. In other words, a 100 input clock will carry only 80 data bits, and the other twenty clocks carry no data (data is scattered in any order). How big the FIFO needs to be to avoid data over/under-run.
    Follow Ups





     
  • Instead of specifying SETUP and HOLD time, can we just specify a SETUP time for '1' and a SETUP time for '0'?
    Follow ups





     
  • Here some hardware digital design specific questions, offered by Suhas:
    (1) When will you use a latch and a flipflop in a sequential design?
    (2) Design a 1-bit fulladder using a decoder and 2 "or" gates?
    (3) You have a circuit operating at 20 MHz and 5 volt supply. What would you do to reduce the power consumption in the circuit- reduce the operating frequency of 20Mhz or reduce the power supply of 5Volts and why?
    (4) In a nmos transistor, how does the current flows from drain to source in saturation region when the channel is pinched off?
    (5) In a SRAM circuit, how do you design the precharge and how do you size it?
    (6) In a PLL, what elements(like XOR gates or Flipflops) can be used to design the phase detector?
    (7) While synthesis of a design using synopsys design compiler, why do you specify input and output delays?
    (8) What difference do you see in the timing reports for a propogated clock and an ideal clock?
    (9) What is timeborrowing related to Static timing anaylsis in Primetime?


     
  • What is the purpose of a diode next to relay on schematics?

    Answers & follow ups