(Word To PDF Converter - Unregistered) : 1) Top of Form
(Word To PDF Converter - Unregistered) : 1) Top of Form
(Word To PDF Converter - Unregistered) : 1) Top of Form
http://www.Word-to-PDF-Converter.net
1) Top of Form
4) What is FPGA you are currently using and some of main reasons for
choosing it?
5) How many global buffers are there in your current fpga, what is their
significance?
Dynamic timing:
a. The design is simulated in full timing mode.
b. Not all possibilities tested as it is dependent on the input test vectors.
c. Simulations in full timing mode are slow and require a lot of memory.
d. Best method to check asynchronous interfaces or interfaces between different
timing domains.
Static timing:
a. The delays over all paths are added up.
b. All possibilities, including false paths, verified without the need for test vectors.
c. Much faster than simulations, hours as opposed to days.
d. Not good with asynchronous interfaces or interfaces between different timing
domains.
PLL:
PLLs have disadvantages that make their use in high-speed designs problematic,
particularly when both high performance and high reliability are required.
The PLL voltage-controlled oscillator (VCO) is the greatest source of problems.
Variations in temperature, supply voltage, and manufacturing process affect the
stability and operating performance of PLLs.
DLLs, however, are immune to these problems. A DLL in its simplest form inserts
a variable delay line between the external clock and the internal clock. The clock
tree distributes the clock to all registers and then back to the feedback pin of the
DLL.
The control circuit of the DLL adjusts the delays so that the rising edges of the
feedback clock align with the input clock. Once the edges of the clocks are aligned,
the DLL is locked, and both the input buffer delay and the clock skew are reduced
to zero.
Advantages:
· precision
( Word to PDF Converter - Unregistered )
http://www.Word-to-PDF-Converter.net
· Stability
· power management
· noise sensitivity
· jitter performance.
11) Given two ASICs. One has setup violation and the other has hold
violation. How can they be made to work together without modifying the
design?
DRC is used to check whether the particular schematic and corresponding layout
(especially the mask sets involved) cater to a pre-defined rule set depending on the
technology used to design. They are parameters set aside by the concerned
semiconductor manufacturer with respect to how the masks should be placed,
connected, routed keeping in mind that variations in the fab process does not affect
normal functionality. It usually denotes the minimum allowable configuration.
14) What is LVs and why do we do that. What is the difference between LVS
and DRC?
The layout must be drawn according to certain strict design rules. DRC helps in
layout of the designs by checking if the layout is abide by those rules.
After the layout is complete we extract the netlist. LVS compares the netlist
extracted from the layout with the schematic to ensure that the layout is an
identical match to the cell schematic.
DFT means design for testability. 'Design for Test or Testability' - a methodology
that ensures a design works properly after manufacturing, which later facilitates the
failure analysis and false product/piece detection. Other than the functional logic,
you need to add some DFT logic in your design. This will help you in testing the
chip for manufacturing defects after it come from fab. Scan, MBIST,LBIST,IDDQ
testing etc are all part of this. (this is a hot field and with lots of opportunities)
16) There are two major FPGA companies: Xilinx and Altera. Xilinx tends to
promote its hard processor cores and Altera tends to promote its soft
processor cores. What is the difference between a hard processor core and a
soft processor core?
A hard processor core is a pre-designed block that is embedded onto the device. In
the Xilinx Virtex II-Pro, some of the logic blocks have been removed, and the
space that was used for these logic blocks is used to implement a processor. The
Altera Nios, on the other hand, is a design that can be compiled to the normal
FPGA logic.
Contamination delay tells you if you meet the hold time of a flip flop. To
understand this better please look at the sequential circuit below.
The contamination delay of the data path in a sequential circuit is critical for the
hold time at the flip flop where it is exiting, in this case R2.
Mathematically, th(R2) <= tcd(R1) + tcd(CL2)
Contamination delay is also called tmin and Propagation delay is also called tmax
in many data sheets.
DFT:
· manufacturing defects like stuck at "0" or "1".
· Test for set of rules followed during the initial design stage.
Formal verification:
· Verification of the operation of the design, i.e., to see if the design follows spec.
· gate netlist == RTL ?
· using mathematics and statistical analysis to check for equivalence.
Synthesis is the stage in the design flow which is concerned with translating your
Verilog code into gates - and that's putting it very simply! First of all, the Verilog
must be written in a particular way for the synthesis tool that you are using. Of
course, a synthesis tool doesn't actually produce gates - it will output a netlist of
the design that you have synthesized that represents the chip which can be
fabricated through an ASIC or FPGA vendor.
( Word to PDF Converter - Unregistered )
http://www.Word-to-PDF-Converter.net
Many, many problems have this sort of variable rate requirement, yet we are
usually constrained with a constant clock frequency. One trick is to implement a
digital NCO (Numerically Controlled Oscillator). An NCO is actually very simple
and, while it is most naturally understood as hardware, it also can be constructed in
software. The NCO, quite simply, is an accumulator where you keep adding a fixed
value on every clock (e.g. at a constant clock frequency). When the NCO "wraps",
you sample your input or do your action. By adjusting the value added to the
accumulator each clock, you finely tune the AVERAGE frequency of that wrap
event. Now - you may have realized that the wrapping event may have lots of jitter
on it. True, but you may use the wrap to increment yet another counter where each
additional Divide-by-2 bit reduces this jitter. The DDS is a related technique. I
have two examples showing both an NCOs and a DDS in my File Archive. This is
tricky to grasp at first, but tremendously powerful once you have it in your bag of
tricks. NCOs also relate to digital PLLs, Timing Recovery, TDMA and other
"variable rate" phenomena
Digital Logic
Q. Give two ways of converting a two input NAND gate to an inverter.
Q. How to calculate depth of FIFO for rate change implementation?
Q. Simplify Boolean Functions F = xyz + x’y + xyz’
=xy(z+z’)+x’y
=xy+x’y
=y(x+x’)
=y
Q. Represent F = x + yz + xy in Sum of Product terms.
Q. Represent F = x + yz + xy in Product of Sum terms
Q. What do you mean by prime Implicants? What are Essential Terms? Why
it is required?
Interview Questions for jobs in FPGA/ASIC
Q. How do you differentiate between coding in C/C++ and at RTL (Register
Transfer Level) ?
( Word to PDF Converter - Unregistered )
http://www.Word-to-PDF-Converter.net
Hint: In RTL logic is divided into sequential and combinational logic blocks.
Hint: Registers are used to store values and wires are used only for connections. D
Flip-flops in Digital design generally represents registers.
Net type tri is synthesizable. However, it is not advisable to use net type tri
when writing synthesizable Verilog. If a node is to be driven by multiple
drivers, that node should be driven only by tristate drivers. The example shown
here using net type tri on node temp with multiple assign statements driving it
is not a good coding method in synthesis.
it. The dataflow VHDL code for the full adder is shown in Figure 4.2.
LIBRARY IEEE;
USE IEEE.STD_LOGIC_1164.ALL;
ENTITY fa IS PORT (
Ci, Xi, Yi: IN STD_LOGIC;
Ci1, Si: OUT STD_LOGIC);
END fa;
ARCHITECTURE Dataflow OF fa IS
BEGIN
Ci1 <= (Xi AND Yi) OR (Ci AND (Xi XOR Yi));
Si <= Xi XOR Yi XOR Ci;
END Dataflow;
FPGA
Q. How to generate clocks on FPGA? (for virtexII)
The DCM (Digital Clock Manager’s) and global clock multiplexer buffers provide
a complete solution for designing high-speed clocking schemes. Up to 12 DCM
blocks are available. To generate de-skewed internal or external clocks, each DCM
can be used to eliminate clock distribution delay. The DCM also provides 90-,
180-, and 270-degree phase-shifted versions of its output clocks.
Virtex-II devices have 16 global clock MUX buffers, with up to eight clock nets
per quadrant. Each global clock MUX buffer can select one of the two clock inputs
and switch glitch-free from one clock to the other. Each DCM block is able to
drive up to four of the 16 global clock MUX buffers.
Q. False path in FPGA’s, Critical path, Negative slack, Jitter vs. clock skew .
SLACK: We requested a frequency of operation of 100.0 MHz for the
design, whereas the synthesis has yielded a faster clock of 147.5 MHz. The
requested and the reported frequencies are 10 ns and 6.781 ns respectively in terms
of time periods. The difference known as the slack time is 3.219 ns. The slack time
must be positive. Otherwise, the device cannot meet the requested frequency of
operation. Negative slack time implies, the device cannot meet 100 MHz
operation.
Skew refers to the rising edge (or the falling edge) of a clock arriving at
different times at register clock inputs in a synchronous sequential circuit that
ideally requires the same arrival time at various registers [7, 8]. Skew results
because of interconnection delays, whether the design is realized using TTL
circuits, processors, FPGAs, or ASICs. The figure shows the system clock, CLK,
distributed to a number of parts of a digital system with the arrival delayed by
small times. All the clock waveforms, CLOCK, CLOCK 1, …., CLOCK N should
be occurring at the same time ideally. Owing to different travel paths, clocks lag
behind the original clock. At low clock speeds, skew causes no problem. At high
( Word to PDF Converter - Unregistered )
http://www.Word-to-PDF-Converter.net
frequency, close to the maximum clock frequency of operation for a circuit, skew
causes problems since data to be registered arrives late and hence not likely to be
stable. This results in missing the data. This may be minimized if not eliminated by
distributing the clock spread in a radial or star like fashion from the clock source
rather than connecting all the clock inputs of the registers in a cascade. FPGAs and
ASICs have this type of clock distributions, thereby achieving high speeds over
100 MHz. The sequential circuits must meet certain conditions such as hold time
and setup times, which is covered in the next section.
Q. Routing delay, Flop to out delay, Flop to flop delay, Pad to flop delay,
Board delay.
Behavioral
Q. How will you allocate your time between architecture, coding, and
verification?
Digital design resources :- Clock Domain Crossing Discussion with rtl &
testbench example.
VHDL rtl - Synchronous flip-flop, latch, shim to improve timing and counter
example
FPGA interview questions & answers.
What is FPGA ?
A field-programmable gate array is a semiconductor device containing
programmable logic components called "logic blocks", and programmable
interconnects. Logic blocks can be programmed to perform the function of basic
logic gates such as AND, and XOR, or more complex combinational functions
such as decoders or mathematical functions. In most FPGAs, the logic blocks also
include memory elements, which may be simple flip-flops or more complete
blocks of memory. A hierarchy of programmable interconnects allows logic blocks
to be interconnected as needed by the system designer, somewhat like a one-chip
programmable breadboard. Logic blocks and interconnects can be programmed by
the customer or designer, after the FPGA is manufactured, to implement any
( Word to PDF Converter - Unregistered )
http://www.Word-to-PDF-Converter.net
When there are multiple nonblocking assignments made to the same reg variable in
( Word to PDF Converter - Unregistered )
http://www.Word-to-PDF-Converter.net
a sequential always block, then the last assignment is picked up for logic synthesis.
For example
In the example just shown, it is the OR logic that is the last assignment. Hence, the
logic synthesized was indeed the OR gate. Had the last assignment been the “&”
operator, it would have synthesized an AND gate.
2)Tell me some of constraints you used and their purpose during your design?
There are lot of constraints and will vary for tool to tool ,I am listing some of
Xilinx constraints
a) Translate on and Translate off: the Verilog code between Translate on and
Translate off is ignored for synthesis.
b) CLOCK_SIGNAL: is a synthesis constraint. In the case where a clock signal
goes through combinatorial logic before being connected to the clock input of a
flip-flop, XST cannot identify what input pin or internal net is the real clock signal.
This constraint allows you to define the clock net.
( Word to PDF Converter - Unregistered )
http://www.Word-to-PDF-Converter.net
3) Suppose for a piece of code equivalent gate count is 600 and for another
code equivalent gate count is 50,000 will the size of bitmap change?in other
words will size of bitmap change it gate count change?
7) Can you list out some of synthesizable and non synthesizable constructs?
not synthesizable->>>>
initial
ignored for synthesis.
delays
ignored for synthesis.
events
not supported.
real
Real data type not supported.
time
Time data type not supported.
force and release
Force and release of data types not supported.
fork join
Use nonblocking assignments to get same effect.
user defined primitives
Only gate level primitives are supported.
synthesizable constructs->>
assign,for loop,Gate Level Primitives,repeat with constant value...
These stuck-at problems will appear in ASIC. Some times, the nodes will
permanently tie to 1 or 0 because of some fault. To avoid that, we need to provide
( Word to PDF Converter - Unregistered )
http://www.Word-to-PDF-Converter.net
FPGA:
a)SRAM based technology.
b)Segmented connection between elements.
c)Usually used for complex logic circuits.
d)Must be reprogrammed once the power is off.
e)Costly
CPLD:
a)Flash or EPROM based technology.
b)Continuous connection between elements.
c)Usually used for simpler or moderately complex logic circuits.
d)Need not be reprogrammed once the power is off.
e)Cheaper
13)what is slice,clb,lut?
The Configurable Logic Blocks (CLBs) constitute the main logic resource for
implementing synchronous as well as combinatorial circuits.
CLB are configurable logic blocks and can be configured to combo,ram or rom
depending on coding style
CLB consist of 4 slices and each slice consist of two 4-input LUT (look up table)
F-LUT and G-LUT.
24) How does Resistance of the metal lines vary with increasing thickness and
increasing length?
25) What is short Channel effect?
Short channel effect: reducing the channel size so that operation speed of
Mosfet increases and more no of devices can be made in a small area.
it leads to punch through, hot ion effect etc
VLSI
1. Why does the present VLSI circuits use MOSFETs instead of BJTs?
Compared to BJTs, MOSFETs can be made very small as they occupy very
small silicon area on IC chip and are relatively simple in terms of
( Word to PDF Converter - Unregistered )
http://www.Word-to-PDF-Converter.net
2. What are the various regions of operation of MOSFET? How are those
regions used?
MOSFET has three regions of operation: the cut-off region, the triode region,
and the saturation region.
The cut-off region and the triode region are used to operate as switch. The
saturation region is used to operate as amplifier.
The value of voltage between Gate and Source i.e. VGS at which a sufficient
number of mobile electrons accumulate in the channel region to form a
conducting channel is called threshold voltage (Vt is positive for NMOS and
negative for PMOS).
Cut-off region: When VGS < Vt, no channel is induced and the MOSFET will
be in cut-off region. No current flows.
Triode region: When VGS ≥ Vt, a channel will be induced and current starts
flowing if VDS > 0. MOSFET will be in triode region as long as VDS < VGS -
Vt.
Saturation region: When VGS ≥ Vt, and VDS ≥ VGS - Vt, the channel will be
in saturation mode, where the current value saturates. There will be little or
( Word to PDF Converter - Unregistered )
http://www.Word-to-PDF-Converter.net
When a positive voltage is applied across Gate, it causes the free holes
(positive charge) to be repelled from the region of substrate under the Gate
(the channel region). When these holes are pushed down the substrate they
leave behind a carrier-depletion region.
3. What is a multiplexer?
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.
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.
( Word to PDF Converter - Unregistered )
http://www.Word-to-PDF-Converter.net
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?
Solve it out!
4-bit Johnson counter: 0000, 1000, 1100, 1110, 1111, 0111, 0011, 0001, 0000.
8 unused states are present.
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.
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.
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.
17. Design a Transmission Gate based XOR. Now, how do you convert it to
XNOR (without inverting the output)?
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.
( Word to PDF Converter - Unregistered )
http://www.Word-to-PDF-Converter.net
The only advantage of 1's complement is that it can be calculated easily, just
by changing 0's into 1's and 1's into 0's. The 2's complement is calculated in
two ways, (i) add 1 to the 1's complement of the number, and (ii) leave all the
leading 0s in the least significant positions and keep first 1 unchanged, and
then change 0's into 1's and 1's into 0's.
20. Give the transistor level circuit of CMOS, nMOS, pMOS, and TTL
inverter gate.
Set up time is the amount of time before the clock edge that the input signal
( Word to PDF Converter - Unregistered )
http://www.Word-to-PDF-Converter.net
25. Give two ways of converting a two input NAND gate to an inverter.
27. Design a FSM which detects the sequence 10101 from a serial line without
overlapping.
( Word to PDF Converter - Unregistered )
http://www.Word-to-PDF-Converter.net
28. Design a FSM which detects the sequence 10101 from a serial line with
overlapping.
31. Design 2 input AND, OR, and EXOR gates using 2 input NAND gate.
32. Design a circuit which doubles the frequency of a given input clock signal.
35. Give the Binary, Hexadecimal, BCD, and Excess-3 code for decimal 14.
14:
Binary: 1110
Hexadecimal: E
BCD: 0001 0100
Excess-3: 10001
19: 10011
1's complement: 01100
2's complement: 01101
* is Exclusive-OR.
42. Implement the functions: X = A'BC + ABC + A'B'C' and Y = ABC + AB'C
using a PLA.
43. What are PLA and PAL? Give the differences between them.
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.
· 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.
Click here.
( Word to PDF Converter - Unregistered )
http://www.Word-to-PDF-Converter.net
(a) False
(b) False
(c) True
(d) True
(e) False
(f) False
53. How many squares/cells will be present in the k-map of F(A, B, C)?
23 = 8.
56. The simplified expression obtained by using k-map method is unique. True
or False. Explain your .
False. The simplest form obtained is not necessarily unique as grouping can be
( Word to PDF Converter - Unregistered )
http://www.Word-to-PDF-Converter.net
RS flip-flop.
S R Q(t+1)
0 0 Q(t)
01 0
10 1
11 ?
JK flip-flop
J K Q(t+1)
0 0 Q(t)
01 0
10 1
1 1 Q'(t)
D flip-flop
D Q(t+1)
0 0
1 1
T flip-flop
T Q(t+1)
0 Q(t)
1 Q'(t)
RS flip-flop.
Q(t) Q(t+1) S R
0 0 0 X
0 1 1 0
( Word to PDF Converter - Unregistered )
http://www.Word-to-PDF-Converter.net
1 0 0 1
1 1 X0
JK flip-flop
Q(t) Q(t+1) J K
0 0 0 X
0 1 1 X
1 0 X1
1 1 X0
D flip-flop
Q(t) Q(t+1) D
0 0 0
0 1 1
1 0 0
1 1 1
T flip-flop
Q(t) Q(t+1) T
0 0 0
0 1 1
1 0 1
1 1 0
(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.
False. The simplest form obtained is not necessarily unique as grouping can be
made in different ways.
S R Q(t+1)
0 0 Q(t)
01 0
10 1
11 ?
JK flip-flop
J K Q(t+1)
0 0 Q(t)
01 0
10 1
1 1 Q'(t)
D flip-flop
D Q(t+1)
0 0
1 1
( Word to PDF Converter - Unregistered )
http://www.Word-to-PDF-Converter.net
T flip-flop
T Q(t+1)
0 Q(t)
1 Q'(t)
Q(t) Q(t+1) S R
0 0 0 X
0 1 1 0
1 0 0 1
1 1 X0
JK flip-flop
Q(t) Q(t+1) J K
0 0 0 X
0 1 1 X
1 0 X1
1 1 X0
D flip-flop
Q(t) Q(t+1) D
0 0 0
0 1 1
1 0 0
1 1 1
T flip-flop
Q(t) Q(t+1) T
0 0 0
0 1 1
1 0 1
1 1 0
( Word to PDF Converter - Unregistered )
http://www.Word-to-PDF-Converter.net
Program Counter (PC) and Stack Pointer (SP) are basically used to hold
16-bit memory addresses.PC stores the 16-bit memory address of the next
instruction to be fetched. SP stores address of stack's starting block.
During DMA transfers DMA controller takes control of the data transfer, and
the processor will carry out other tasks.
3. Define ISR.
4. Define PSW.
Virtual real mode or VM86, allows the execution of real mode applications
that are incapable of running directly in protected mode. It uses a
segmentation scheme identical to that of real mode, and also uses 21-bit
addressing - resulting in linear addressing - so it is subject to paging.
Unreal mode, also known as big real mode, huge real mode, or flat real mode,
( Word to PDF Converter - Unregistered )
http://www.Word-to-PDF-Converter.net
is a variant of real mode. one or more data segment registers will be loaded
with 32-bit addresses and limits.
ISR has no return value, where as a function call has the return value.
VLSI Interview Questions - 6
1. Why is NAND gate preferred over NOR gate for fabrication?
NAND is a better gate for design than NOR because at the transistor level the
mobility of electrons of NAND is normally three times that of holes compared
to NOR and thus the NAND is a faster gate. The gate-leakage in NAND
structures is much lower. If you consider t_phl and t_plh delays you will find
that it is more symmetric in case of NAND (the delay profile), but for NOR,
one delay is much higher than the other(obviously t_plh is higher since the
higher resistance PMOSs are in series connection which again increases the
resistance).
In transmission gate, PMOS and NMOS aid each other rather than competing
with each other. So they are sized similarly.
4. What is SCR?
5. In CMOS digital design, why is the size of PMOS is generally higher than
( Word to PDF Converter - Unregistered )
http://www.Word-to-PDF-Converter.net
In PMOS the carriers are holes whose mobility is less than the electrons, the
carriers in NMOS. That means PMOS is slower than NMOS. In CMOS
technology, NMOS helps in pulling down the output to ground and PMOS
helps in pulling up the output to Vdd. If the sizes of PMOS and NMOS are the
same, then PMOS takes long time to charge up the output node. If we have a
larger PMOS than there will be more carriers to charge the node quickly and
overcome the slow nature of PMOS. All this is done to get equal rise and fall
times for the output node.
6. What is slack?
The slack is the time delay difference from the expected delay to the actual
delay in a particular path. Slack can be positive or negative.
8. Why is the size of inverters in buffer design gradually increased? Why not
give the output of a circuit to one large inverter?
Because circuit can not drive the high output load straight away, so the load is
gradually increased, by gradually increasing the size of inverters to get an
optimized performance.
The charge sharing problem occurs when the charge which is stored at the
output node in the phase is shared among the output or junction capacitances
of transistors which are in the evaluation phase. Charge sharing may degrade
( Word to PDF Converter - Unregistered )
http://www.Word-to-PDF-Converter.net
Delay increases.
Microprocessor Interview Questions - 4
1. What is the size of flag register of 8086 processor?
16-bit.
With the advent of the 32-bit 80386 processor, the 16-bit general-purpose
registers, base registers, index registers, instruction pointer, and FLAGS
register, but not the segment registers, were expanded to 32 bits. This is
represented by prefixing an "E" (for Extended) to the register opcodes, thus
the expanded AX became EAX.(Similarly BX became EBX, SI became ESI
and so on).
· Data Instructions
· Arithmetic Instructions
· Logic Instructions
· Control Instructions
· Other - setting/clearing flag bits, stack operations, software interrupts,
etc.
9. How is Stack Pointer affected when a PUSH and POP operations are
performed?
SIM - Set Interrupt Mask, is used to mask the hardware interrupts. RIM -
Read Interrupt Mask, is used to check whether the interrupt is Masked or not.
Microprocessor Interview Questions - 3
1. How many bits processor is 8086?
16-bit processor.
2. What are the sizes of data bus and address bus in 8086?
( Word to PDF Converter - Unregistered )
http://www.Word-to-PDF-Converter.net
The following are the 16-bit registers that are available in 8086.
4 segment registers:
CS - Code Segment
DS - Data Segment
SS - Stack Segment
ES - Extra Segment
Others:
IP - Instruction Pointer
Flag register
instruction.
Register - references the data in a register or in a register pair.
Immediate - the data is provided in the instruction.
Direct - the instruction operand specifies the memory address where data is
located.
Register indirect - instruction specifies a register containing an address, where
data is located. This addressing mode works with SI, DI, BX and BP registers.
Based - 8-bit or 16-bit instruction operand is added to the contents of a base
register (BX or BP), the resulting value is a pointer to location where data
resides.
Indexed - 8-bit or 16-bit instruction operand is added to the contents of an
index register (SI or DI), the resulting value is a pointer to location where data
resides.
Based Indexed - the contents of a base register (BX or BP) is added to the
contents of an index register (SI or DI), the resulting value is a pointer to
location where data resides.
Based Indexed with Offset - 8-bit or 16-bit instruction operand is added to the
contents of a base register (BX or BP) and index register (SI or DI), the
resulting value is a pointer to location where data resides.
7. How many flags are available in flag register? What are they?
10. How many segments are present in 8086? What are they?
3. What are PLA and PAL? Give the differences between them.
4. What is LUT?
· 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.
Click here.
(a) False
(b) False
(c) True
(d) True
( Word to PDF Converter - Unregistered )
http://www.Word-to-PDF-Converter.net
(e) False
(f) False
2. Design a circuit which doubles the frequency of a given input clock signal.
5. Give the Binary, Hexadecimal, BCD, and Excess-3 code for decimal 14.
( Word to PDF Converter - Unregistered )
http://www.Word-to-PDF-Converter.net
14:
Binary: 1110
Hexadecimal: E
BCD: 0001 0100
Excess-3: 10001
19: 10011
1's complement: 01100
2's complement: 01101
* is Exclusive-OR.
In a blocking statement, the RHS will be evaluated and the LHS will be then
updated, without interruption from any other Verilog statement. A blocking
statement "blocks" trailing statements.
In a non-blocking statement, RHS will be evaluated at the beginning of the
time step. Then the LHS will be updated at the end of the time step.
Synchronous reset:
always @(posedge clk)
begin
( Word to PDF Converter - Unregistered )
http://www.Word-to-PDF-Converter.net
--
if(reset)
--
end
Asynchronous reset:
always @(posedge clk or posedge reset)
begin
--
if(reset)
--
end
The logic is very simple: In asynchronous reset, the always block will invoked
at positive edge of the reset signal, irrespective of clock's value.
For example there are two signals rhs[7:0], and lhs[15:0]. If we do rhs = lhs.
Then it is equivalent to rhs = lhs[7:0]. Assignment starts from LSBs of the
signals, and ends at the MSB of smaller width signal.
4. What are different options that can be used with $display statement in
Verilog?
%b or %B - Binary.
%c or %C - ASCII character.
%d or %D - Decimal.
%h or %H - Hexadecimal.
%m or %M - Hierarchical name.
%o or %O - Octal.
%s or %S - String.
%t or %T - Time.
%v or %V - Net signal strength.
always, and, assign, begin, case, default, else, end, module, endmodule, reg,
net, etc.
Click here for the complete list.
8. Is it possible to optimize a Verilog code such that we can achieve low power
design?
Yes. Try to optimize the code such that the data transitions are reduced. Try
to make as small as possible, because less number of transistors means less
amount of power dissipation. Try to reduce the clock switching of the
filp-flops.
The case checks a[0] to a[3], if any one of the is 1'b1, then the first appearing
1'b1 will be executed. suppose a[0] = 0, a[1] = 1, a[2] = 1, and a[3] = 0,then Its
a[1] will be displayed. If all are zeros then Its default, will be displayed.
Signal.
VLSI Interview Questions - 5
This sections contains interview questions related to LOW POWER VLSI
DESIGN.
Low power increases noise immunity, increases batter life, decreases cooling
and packaging costs.
Pswitching = (1/2)CVdd2/f
( Word to PDF Converter - Unregistered )
http://www.Word-to-PDF-Converter.net
Where
Pswitching = Switching power.
C = Load capacitance.
Vdd = Supply voltage.
f = Operating frequency.
To read/write a word data, activates a word line for a row which causes all the
columns in the row to be active even though we need only a word data. This
consumes a lot power.
9. What is the major problem associated with caches w.r.t low power design?
Give techniques to overcome it.
Cache is a very important part of the integrated chips, they occupy most of
the space and hence contain lot of transistors. More transistors means more
leakage current. That is the major problem associated with caches w.r.t. low
power design. The following techniques are used to overcome it: Vdd-Gating,
Cache decay, Drowsy caches, etc.
Yes, one can redesign a software to reduce power consumptions. For example
modify the process algorithm which uses less number of computations.
Digital Design Interview Questions - 1
1. How do you convert a XOR gate into a buffer and a inverter (Use only one
XOR gate for each)?
( Word to PDF Converter - Unregistered )
http://www.Word-to-PDF-Converter.net
3. What is a multiplexer?
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.
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?
( Word to PDF Converter - Unregistered )
http://www.Word-to-PDF-Converter.net
Solve it out!
4-bit Johnson counter: 0000, 1000, 1100, 1110, 1111, 0111, 0011, 0001, 0000.
8 unused states are present.
To limit the height of the stack. The higher the stack the slower the gate will
be. In NAND and NOR gates the number of gates present in the stack is
usually same as the number of inputs plus one. So inputs are limited to four.
2. What are static and dynamic power dissipation w.r.t to CMOS gate?
( Word to PDF Converter - Unregistered )
http://www.Word-to-PDF-Converter.net
3. Draw Vds-Ids curve for a MOSFET. Now, show how this curve changes (a)
with increasing Vgs (b) considering Channel Length Modulation.
7. What should be done to the size of a pMOS transistor inorder to increase its
threshold voltage?
R = (p.l)/A
Where
R = Resistance of the metal.
p = Resistivity of the metal.
A = is the cross sectional area.
l = length of the metal.
With increase in length or decrease in cross sectional area resistance of the
metal wire increases. Resistivity(p) is the material property which depends on
temperature. In general, resistivity of metals increases with temperature.
Pswitching = (1/2)CVdd2/f
Where
Pswitching = Switching power.
C = Load capacitance.
Vdd = Supply voltage.
f = Operating frequency.
7. Why are pMOS transistor networks generally used to produce high signals,
while nMOS networks are used to product low signals?
( Word to PDF Converter - Unregistered )
http://www.Word-to-PDF-Converter.net
This is because threshold voltage effect. A nMOS device cannot drive a full 1
or high and pMOS cant drive full '0' or low. The maximum voltage level in
nMOS and minimum voltage level in pMOS are limited by threshold voltage.
Both nMOS and pMOS do not give rail to rail swing.
The two numbers are the width and the length of the channel drawn in the
layout. If only one number is present then it is the width of the channel,
combined with a default length of the channel.
If you consider the transistor level of a module, active low means the capacitor
in the output terminal gets charged or discharged based on low to high and
high to low transition, respectively. when it goes from high to low it depends
on the pull down resistor that pulls it down and it is relatively easy for the
output capacitance to discharge rather than charging. Hence designers prefer
active low interrupt signals.
Click here to learn more about synchronous reset and asynchronous reset.
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.
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.
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.
8. Define Metastability.
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.
The only advantage of 1's complement is that it can be calculated easily, just
by changing 0's into 1's and 1's into 0's. The 2's complement is calculated in
two ways, (i) add 1 to the 1's complement of the number, and (ii) leave all the
leading 0s in the least significant positions and keep first 1 unchanged, and
then change 0's into 1's and 1's into 0's.
( Word to PDF Converter - Unregistered )
http://www.Word-to-PDF-Converter.net
15) How does Resistance of the metal lines vary with increasing thickness
and increasing length?
16) You have three adjacent parallel metal lines. Two out of phase signals
pass through the outer two metal lines. Draw the waveforms in the center
metal line due to interference. Now, draw the signals if the signals in outer
metal lines are in phase with each other
17) What happens if we increase the number of contacts or via from one
metal layer to the next?
18) Draw a transistor level two input NAND gate. Explain its sizing (a)
considering Vth (b) for equal rise and fall times
19) Let A & B be two inputs of the NAND gate. Say signal A arrives at the
NAND gate later than signal B. To optimize delay, of the two series NMOS
inputs A & B, which one would you place near the output?
20) Draw the stick diagram of a NOR gate. Optimize it
21) For CMOS logic, give the various techniques you know to minimize
power consumption
22) What is Charge Sharing? Explain the Charge Sharing problem while
sampling data from a Bus
23) Why do we gradually increase the size of inverters in buffer design?
Why not give the output of a circuit to one large inverter?
24) In the design of a large inverter, why do we prefer to connect small
transistors in parallel (thus increasing effective width) rather than lay out
one transistor with large width?
25) Given a layout, draw its transistor level circuit. (I was given a 3 input
AND gate and a 2 input Multiplexer. You can expect any simple 2 or 3
input gates)
26) Give the logic expression for an AOI gate. Draw its transistor level
equivalent. Draw its stick diagram
27) Why don’t we use just one NMOS or PMOS transistor as a transmission
gate?
28) For a NMOS transistor acting as a pass transistor, say the gate is
connected to VDD, give the output for a square pulse input going from 0 to
VDD
29) Draw a 6-T SRAM Cell and explain the Read and Write operations
30) Draw the Differential Sense Amplifier and explain its working. Any idea
how to size this circuit? (Consider Channel Length Modulation)
31) What happens if we use an Inverter instead of the Differential Sense
Amplifier?
32) Draw the SRAM Write Circuitry
( Word to PDF Converter - Unregistered )
http://www.Word-to-PDF-Converter.net
33) Approximately, what were the sizes of your transistors in the SRAM
cell? How did you arrive at those sizes?
34) How does the size of PMOS Pull Up transistors (for bit & bit- lines)
affect SRAM’s performance?
35) What’s the critical path in a SRAM?
36) Draw the timing diagram for a SRAM Read. What happens if we delay
the enabling of Clock signal?
37) Give a big picture of the entire SRAM Layout showing your placements
of SRAM Cells, Row Decoders, Column Decoders, Read Circuit, Write
Circuit and Buffers
38) In a SRAM layout, which metal layers would you prefer for Word Lines
and Bit Lines? Why?
39) How can you model a SRAM at RTL Level?
40) What’s the difference between Testing & Verification?
41) For an AND-OR implementation of a two input Mux, how do you test
for Stuck-At-0 and Stuck-At-1 faults at the internal nodes? (You can
expect a circuit with some redundant logic)
42) What is Latch Up? Explain Latch Up with cross section of a CMOS
Inverter. How do you avoid Latch Up?
the terminals source and drain; the switch is off. When the gate is more positive, it
attracts electrons, inducing an n-type conductive channel in the substrate below the
oxide, which allows electrons to flow between the n-doped terminals; the switch is
on.
Simulation result for formation of inversion channel (electron density) and
attainment of threshold voltage (IV) in a nanowire MOSFET. Note that the
threshold voltage for this device lies around 0.45V.
The 'metal' in the name is now often a misnomer because the previously metal gate
material is now often a layer of polysilicon (polycrystalline silicon). Aluminium
had been the gate material until the mid 1970s, when polysilicon became dominant,
due to its capability to form self-aligned gates. Metallic gates are regaining
popularity, since it is difficult to increase the speed of operation of transistors
without metal gates.
Usually the semiconductor of choice is silicon, but some chip manufacturers, most
notably IBM, recently started using a compound (mixture) of silicon and
germanium (SiGe) in MOSFET channels. Unfortunately, many semiconductors
with better electrical properties than silicon, such as gallium arsenide, do not form
good semiconductor-to-insulator interfaces, thus are not suitable for MOSFETs.
Research continues on creating insulators with acceptable electrical characteristics
( Word to PDF Converter - Unregistered )
http://www.Word-to-PDF-Converter.net
The gate is separated from the channel by a thin insulating layer, traditionally of
silicon dioxide and later of silicon oxynitride. Some companies have started to
introduce a high-κ dielectric + metal gate combination in the 45 nanometer node.
When a voltage is applied between the gate and body terminals, the electric field
generated penetrates through the oxide and creates an alleged "inversion layer" or
"channel" at the semiconductor-insulator interface. The inversion channel is of the
same type, P-type or N-type, as the source and drain, thus it provides a channel
through which current can pass. Varying the voltage between the gate and body
modulates the conductivity of this layer and allows to control the current flow
between drain and source.
Circuit symbols
A variety of symbols are used for the MOSFET. The basic design is generally a
line for the channel with the source and drain leaving it at right angles and then
bending back at right angles into the same direction as the channel. Sometimes
three line segments are used for enhancement mode and a solid line for depletion
mode. Another line is drawn parallel to the channel for the gate.
The bulk connection, if shown, is shown connected to the back of the channel with
an arrow indicating PMOS or NMOS. Arrows always point from P to N, so an
NMOS (N-channel in P-well or P-substrate) has the arrow pointing in (from the
bulk to the channel). If the bulk is connected to the source (as is generally the case
with discrete devices) it is sometimes angled to meet up with the source leaving the
transistor. If the bulk is not shown (as is often the case in IC design as they are
generally common bulk) an inversion symbol is sometimes used to indicate PMOS,
alternatively an arrow on the source may be used in the same way as for bipolar
transistors (out for NMOS, in for PMOS).
For the symbols in which the bulk, or body, terminal is shown, it is here shown
internally connected to the source. This is a typical configuration, but by no means
the only important configuration. In general, the MOSFET is a four-terminal
device, and in integrated circuits many of the MOSFETs share a body connection,
not necessarily connected to the source terminals of all the transistors.
MOSFET operation
Example application of an N-Channel MOSFET. When the switch is pushed the
LED lights up.[2]
Metal oxide semiconductor structure on P-type silicon
Metal oxide semiconductor structure
This structure with P-type body is the basis of the N-type MOSFET, which
requires the addition of an N-type source and drain regions.
MOSFET structure and channel formation
Cross section of an NMOS without channel formed: OFF state
Cross section of an NMOS with channel formed: ON state
The source is so named because it is the source of the charge carriers (electrons for
( Word to PDF Converter - Unregistered )
http://www.Word-to-PDF-Converter.net
n-channel, holes for p-channel) that flow through the channel; similarly, the drain
is where the charge carriers leave the channel.
The device may comprise a Silicon On Insulator (SOI) device in
which a Buried OXide (BOX) is formed below a thin semiconductor layer. If the
channel region between the gate dielectric and a Buried OXide (BOX) region is
very thin, the very thin channel region is referred to as an Ultra Thin Channel
(UTC) region with the source and drain regions formed on either side thereof in
and/or above the thin semiconductor layer. Alternatively, the device may comprise
a SEMiconductor On Insulator (SEMOI) device in which other semiconductors
than silicon are employed. Many alternative semicondutor materials may be
employed.
When the source and drain regions are formed above the channel in whole
or in part, they are referred to as Raised Source/Drain (RSD) regions.
2) In the design of a large inverter, why do we prefer to connect small
transistors in parallel (thus increasing effective width) rather than lay out one
transistor with large width?
while drawing the layout of cell we will have limitation of height of std
cell. As we go for bigger (hih drine strenth) inverters ,its very dificult to draw the
layout with given std cell hight.then we go for parallel connection of small
transistors.
if we design inverter with lage width gate capasitance increases , thus input
capacitance of inverter increases.
if we use parellel connection of small transistors ,all gate capasitances will be in
parellel then resultant capasitance decreases.
There are two reasons
1. Small transistors share active areas, so total diffusion capacitance seen is less
2. Signal EM violation are bound to occur with single large transisor, with small
transistors there parallel paths
3) For an AND-OR implementation of a two input Mux, how do you test for
Stuck-At-0 and Stuck-At-1 faults at the internal nodes?
significance?
7) Draw the circuit design of a CMOS Inverter. Describe the transfer
characteristics of a CMOS Inverter.
8) What do you know about the Vds-Ids curve. Explain the variation of this
curve (a) with increase in vgs (b) with increase in transistor width. What do
you know about the channel length modulation?
9) Why do we use small transistors in parallel in case of a big inverter.
10) Explain the method of sizing NMOS and PMOS transistors. How can we
increase their threshold voltage?
11) What do you understand by Noise margin?
12) How can you find the noise margin?
13) What do you understand by the CMOS switching power dissipation?
14) What is meant by Body effect?
Usually, in an integrated circuit there will be several MOSFETs and in order
to maintain cut-off condition for all MOSFETs the body substrate is connected to
the most negative power supply (in case of PMOS most positive power supply).
Which causes a reverse bias voltage between source and body that effects the
transistor operation, by widening the depletion region. The widened depletion
region will result in the reduction of channel depth. To restore the channel depth to
its normal depth the VGS has to be increased. This is effectively seen as change in
the threshold voltage - Vt. This effect, which is caused by applying some voltage to
body is known as body effect.
15)What is scaling?
16)How can you calculate the delay in case of CMOS Circuit?
17)How is delay affected if we increase the load capacitance?
18)How is the delay affected in case we put a resistance at the cmos circuit
output?
19)What precautions do we have to take while increasing the power supply to
( Word to PDF Converter - Unregistered )
http://www.Word-to-PDF-Converter.net
48) Give the logic expression for an AOI gate. Draw its transistor level
equivalent. Draw its stick diagram.
50) Given a layout, draw its transistor level circuit. (I was given a 3 input
AND gate and a 2 input Multiplexer. You can expect any simple 2 or 3 input
gates)
53)Draw a 6-T SRAM Cell and explain the Read and Write operations
54)Draw the Differential Sense Amplifier and explain its working. Any idea
how to size this circuit? (Consider Channel Length Modulation)
57) Approximately, what were the sizes of your transistors in the SRAM cell?
How did you arrive at those sizes?
58) What is Latch Up? Explain Latch Up with cross section of a CMOS
Inverter. How do you avoid Latch Up?
59) How does the size of PMOS Pull Up transistors (for bit & bit- lines) affect
SRAM’s performance?
61) Draw the timing diagram for a SRAM Read. What happens if we delay
the enabling of Clock signal?
62)Give a big picture of the entire SRAM Layout showing your placements of
SRAM Cells, Row Decoders, Column Decoders, Read Circuit, Write Circuit
and Buffers
63)In a SRAM layout, which metal layers would you prefer for Word Lines
and Bit Lines? Why?
( Word to PDF Converter - Unregistered )
http://www.Word-to-PDF-Converter.net
* What is body-effect?