TDEB Top Bar

Trending
Semiconductor Industry News — The Digital Electronics Blog
Follow Us

TDEB Masthead

The Semiconductor Hub

Semiconductors.  Chips and Systems.  Innovation.

Indexed by leading Search Engines, AI and referenced by Engineers worldwide 500+ Articles 10M+ Pageviews 30+ Reports 50+ Citations

Intel Interview Questions with Answers: CMOS, SRAM and Caches

The Editor's Desk
by
5
Share Facebook X LinkedIn WhatsApp Email

These are questions from an Intel interview for a CMOS circuit and VLSI design role, collected in 2005, with answers. They span computer architecture (buses, pipelines, caches and coherence), digital design (state machines and synchronizers), CMOS device and circuit basics (MOSFET curves, inverters, delay, power), interconnect, SRAM design and test. The mix is typical of circuit design interviews at large processor companies: fundamentals first, then detailed questions about the candidate's own projects.

Key takeaways

  • Expect to draw: a MOSFET Id-Vds curve, a CMOS inverter and its transfer curve, a NAND gate with sizing, a 6T SRAM cell and a sense amplifier.
  • Know the key equations: switching power P = αCV²f, gate delay tp of about 0.69 × R × C, wire resistance R = ρL / (W × t).
  • A 5-stage pipeline with one clock per stage has a latency of 5 cycles and an ideal throughput of one instruction per cycle.
  • Project questions (sizes, speeds, tools, production) need concrete numbers from your own work.
  • Several original short answers have been corrected below; each correction is noted.

How interviewers use these questions

  • They start with a drawing (inverter, NAND, SRAM cell) and then change a condition: a late input, a larger load, a lower supply.
  • They test whether you can spot a trick, such as sizing changing VM but not Vth, or the redundant term in a mux.
  • They expect concrete numbers from your projects. Vague answers to experience questions stand out more than a wrong number.

For another set of questions from the same company, see Interview Question: Intel, Folsom.

How this list is organized

The first part holds the questions you can answer in words: computer architecture, digital design and questions about your own experience. They check that you understand how a processor and its memory system fit together and that you can talk clearly about your past work. The deep dive holds the circuit questions, where the interviewer expects a drawing, an equation or a number: MOSFET behavior, inverter sizing, delay and power, gate layout, SRAM design, and test and reliability. If you are short of time, read the first part and the key equations above, then work through the circuit questions with a pencil.

Computer architecture

Have you studied buses? What types?

Processor-memory bus, I/O bus, system bus and backplane bus. A processor-memory bus is short and fast, tuned for one memory system. An I/O bus is longer and supports many device types. A backplane bus lets processors, memory and I/O share one bus in a chassis. Modern systems have largely moved from shared parallel buses to point-to-point serial links such as PCI Express.

Have you studied pipelining? List the 5 stages of a 5-stage pipeline. Assuming 1 clock per stage, what is the latency of an instruction in a 5-stage machine? What is the throughput of this machine?

Pipelining is a method of executing a sequence of instructions in a single processor so that later instructions can begin before earlier ones complete. The 5 stages of the classic RISC pipeline are:

  1. Fetch the instruction from memory (IF).
  2. Read registers and decode the instruction (ID).
  3. Execute the instruction or calculate an address (EX).
  4. Access an operand in data memory (MEM).
  5. Write the result into a register (WB).

Latency is the time between when an instruction is issued and when it completes: 5 clock cycles for a 5-stage pipeline at one clock per stage. (The original answer said 6, which is a correction.) Throughput is the number of instructions that complete per unit time: ideally one instruction per clock cycle once the pipeline is full. Hazards and stalls reduce it below one in practice. Example: at 500 MHz, latency is 10 ns and peak throughput is 500 million instructions per second.

How many bit combinations are there in a byte?

256. A byte has 8 bits and 28 = 256.

For a single-processor computer system, what is the purpose of a processor cache and how does it work?

A cache is a small, fast memory close to the processor that holds recently used data and instructions, so most accesses avoid the slow main memory. It works because programs show temporal locality (reuse of the same data) and spatial locality (use of nearby data). On each access the address is split into tag, index and offset; the index selects a set, the tag is compared, and a match is a hit. A miss fetches a whole line from the next level and may evict an older line, chosen by a replacement policy such as LRU.

Explain the operation considering a two-processor system with a cache for each processor.

Each processor reads and writes its own cache. If both cache the same memory line and one writes it, the other holds a stale copy. A coherence protocol keeps the copies consistent: on a write, other copies are invalidated (or updated), and a read of a line modified elsewhere gets the latest data from the owning cache rather than from memory.

What are the main issues associated with multiprocessor caches and how might you solve them?

Cache coherence (stale copies), memory consistency (the order in which writes become visible), false sharing (different variables in one line causing needless invalidations), and bus or interconnect bandwidth from coherence traffic. Solutions: snooping protocols such as MESI on a shared bus, directory-based protocols for larger systems, careful data layout to avoid false sharing, and memory barriers defined by the architecture's consistency model.

Explain the difference between write-through and write-back cache.

A write-through cache writes every store to both the cache and the next memory level. It is simple and memory is always up to date, but it generates heavy write traffic, usually reduced with a write buffer. A write-back cache writes only to the cache and marks the line dirty; memory is updated when the line is evicted. It cuts traffic but needs a dirty bit and makes coherence more complex.

Are you familiar with the term MESI?

MESI is a cache coherence protocol named after its four line states: Modified (only copy, dirty), Exclusive (only copy, clean), Shared (clean, may be in other caches) and Invalid. The Exclusive state lets a processor write a line it alone holds without a bus transaction. Intel processors have used MESI and extensions of it.

Are you familiar with the term snooping?

In this context snooping means bus snooping for cache coherence: every cache controller watches (snoops) transactions on the shared bus and checks whether they hit a line it holds. If another processor writes a line, the snooping cache invalidates its copy; if another processor reads a line it holds as Modified, it supplies the data. The original answer described looking into a packet to verify data, which is a different (networking or verification) use of the word and has been corrected.

Digital design

Describe a finite state machine that will detect three consecutive coin tosses (of one coin) that result in heads.

Use four states that count consecutive heads: S0 (none), S1 (one), S2 (two) and S3 (three or more). A head moves the machine up one state, and S3 stays in S3 on another head so that overlapping runs are detected. A tail always returns to S0. In a Moore machine the output is 1 in S3. The Verilog below was compiled and simulated with a testbench.

// Moore FSM: found goes high after three consecutive heads (overlapping)
module three_heads (
  input  wire clk,
  input  wire rst_n,   // active-low synchronous reset
  input  wire head,    // 1 = heads, 0 = tails, one toss per clock
  output wire found
);
  localparam S0 = 2'd0, S1 = 2'd1, S2 = 2'd2, S3 = 2'd3;
  reg [1:0] state, next;

  always @(posedge clk)
    if (!rst_n) state <= S0;
    else        state <= next;

  always @(*) begin
    case (state)
      S0: next = head ? S1 : S0;
      S1: next = head ? S2 : S0;
      S2: next = head ? S3 : S0;
      S3: next = head ? S3 : S0;   // stay: HHHH counts again
      default: next = S0;
    endcase
  end

  assign found = (state == S3);
endmodule

In what cases do you need to double-clock a signal before presenting it to a synchronous state machine?

Whenever the signal is asynchronous to the state machine's clock: an external input such as a button or interrupt, or a signal from another clock domain. The first flop may go metastable; the second gives it a full cycle to resolve before the state machine uses it. Feed the synchronized signal to only one place, and do not double-flop multi-bit buses (use a handshake or an asynchronous FIFO with Gray-coded pointers instead).

You have a driver that drives a long signal and connects to an input device. At the input device there is overshoot, undershoot or signal threshold violations. What can be done to correct this problem?

The line is behaving as a transmission line with a mismatch. Fixes: add series termination at the driver (resistor so driver impedance plus resistor equals line impedance), parallel or Thevenin termination at the receiver, or AC termination; reduce driver strength or slew rate; shorten the trace or control its impedance; and improve the return path. Simulate with IBIS models to confirm.

What is the difference between = and == in C?

= is the assignment operator and == is the equality operator. Writing if (x = 0) assigns 0 and is always false, a classic bug.

Are you familiar with VHDL and/or Verilog?

Answer from your own experience, naming what you designed and verified. Interviewers may ask you to code a counter, an FSM or a FIFO on the spot, and to explain blocking versus non-blocking assignments.

Experience questions

These questions are about your own work. The author's answers at the time are shown as examples; prepare your own with real numbers.

What types of CMOS memories have you designed? What were their size and speed?

Author's answer: SRAM, 10 Kbits, 50 MHz.

What work have you done on full-chip clock and power distribution? What process technology and budgets were used?

Describe the clock topology (tree, mesh or spine), skew and jitter budgets, the power grid, IR drop and electromigration limits, and the process node.

What types of I/O have you designed? What were their size, speed, configuration and voltage requirements?

Give the I/O standard, data rate, drive strength, ESD protection, supply voltages and any level shifting.

Process technology? What package was used and how did you model the package and system? What parasitic effects were considered?

Name the node and package type, and explain the package model (RLC of bond wires or bumps and traces) used in simulation, along with effects such as supply bounce (L di/dt), crosstalk and reflections.

What types of high-speed CMOS circuits have you designed?

Author's answer: flip-flops and latch-based fast multipliers.

What transistor-level design tools are you proficient with? What types of designs were they used on?

Author's answer: PSPICE and the MAGIC layout system, used on a CMOS multiplier chip in 0.8 µm technology.

What products have you designed which have entered high-volume production?

Author's answer: a TOE (TCP offload engine).

What was your role in the silicon evaluation and product ramp? What tools did you use?

Describe bring-up, characterization across process, voltage and temperature, debug of failures, and the equipment and software used.

If not into production, how far did you follow the design and why did it not reach production?

Be honest and specific: the stage reached, what you learned, and the business or technical reason the product stopped.

Deep dive: the numbers and details

This part holds the circuit questions, with the equations, sizing rules and worked answers. Skip it if the overview is all you need.

MOSFET and CMOS basics

Explain how a MOSFET works.

For an NMOS, a positive gate voltage above the threshold Vth attracts electrons under the gate oxide and forms an inversion channel between source and drain. A drain voltage then drives current through the channel. Below Vth only a small subthreshold current flows. In the linear region (Vds < Vgs - Vth) the device acts like a voltage-controlled resistor; in saturation (Vds >= Vgs - Vth) the channel pinches off at the drain end and current depends mainly on Vgs, roughly Id = (μCox / 2)(W / L)(Vgs - Vth)² in the long-channel model.

Draw the Vds-Ids curve for a MOSFET. Show how it changes (a) with increasing Vgs, (b) with increasing transistor width, (c) considering channel length modulation.

The curve rises roughly linearly at low Vds, then flattens in saturation. (a) Higher Vgs gives a family of higher curves, with saturation starting at a larger Vds = Vgs - Vth. (b) Greater width scales the current up in proportion to W at every point. (c) With channel length modulation the saturation region is no longer flat; current rises slowly with Vds, Id multiplied by (1 + λVds), giving finite output resistance.

Explain the various MOSFET capacitances and their significance.

Gate capacitances Cgs, Cgd and Cgb (from the oxide, varying with operating region), overlap capacitances where the gate overlaps source and drain, and junction capacitances Csb and Cdb from the source and drain diffusions. They set the input load of a gate and the self-load at its output, so they determine delay and dynamic power. Cgd is multiplied by the gain (Miller effect), which matters in amplifiers and fast switching.

Draw a CMOS inverter. Explain its transfer characteristics.

A PMOS from VDD to the output and an NMOS from the output to ground, with gates tied to the input. With input low the PMOS is on and the output is VDD; with input high the NMOS is on and the output is 0. The voltage transfer curve has a steep transition around the switching threshold VM, where both devices are in saturation and gain is highest. Static current is almost zero at both ends, which is why CMOS has low static power.

Explain sizing of the inverter.

Electron mobility is about two to three times hole mobility, so for equal rise and fall times the PMOS is made wider, typically 2 to 3 times the NMOS width. This also puts VM near VDD / 2 for symmetric noise margins. For driving a large load, the inverter is scaled up as a whole, often in a tapered chain.

How do you size NMOS and PMOS transistors to increase the threshold voltage?

Sizing does not change a transistor's threshold voltage Vth in a meaningful way; that is set by the process (doping, oxide) and body bias. What sizing changes is the inverter's switching threshold VM. To raise VM, make the PMOS stronger relative to the NMOS (wider PMOS or narrower NMOS); to lower it, do the opposite. Interviewers often ask this to see whether you notice the difference.

What is noise margin? Explain the procedure to determine it.

Noise margin is the amount of noise a logic level can tolerate without being misread. From the inverter transfer curve, find the two points where the slope is -1; these give VIL and VIH. With VOH and VOL the output levels, NMH = VOH - VIH and NML = VIL - VOL.

Give the expression for CMOS switching power dissipation.

P = α × CL × VDD² × f, where α is the activity factor (probability of a 0 to 1 transition per cycle), CL the switched capacitance and f the clock frequency. Total power also includes short-circuit power and leakage.

What is body effect?

When the source-to-body voltage Vsb is non-zero, the threshold voltage rises: Vth = Vth0 + γ(√(2φF + Vsb) - √(2φF)). It matters for stacked transistors such as the upper NMOS in a NAND gate and for pass transistors, which become slower and pass a weaker high level.

Describe the various effects of scaling.

Under ideal constant-field (Dennard) scaling by a factor S, dimensions and voltages shrink by S, gate delay falls by S, power per gate falls by S² and power density stays constant. In practice voltage stopped scaling well, so power density rose. Other effects: higher leakage, short-channel effects, velocity saturation, greater variability, and rising wire resistance, so interconnect delay matters more.

Delay, interconnect and power

Give the expression for calculating delay in a CMOS circuit.

tp = (tpHL + tpLH) / 2, where tpHL = 0.69 × Reqn × CL and tpLH = 0.69 × Reqp × CL. CL is the load capacitance, made up of the drain diffusion capacitances, the wire and the gate capacitance of the fanout. Reqn and Reqp are the equivalent resistances of the pull-down NMOS and pull-up PMOS, averaged over the transition. (The original used one Req for both; the pull-up and pull-down resistances differ.) Illustrative example: Reqn = 10 kΩ, Reqp = 12 kΩ, CL = 10 fF gives tpHL = 69 ps, tpLH = 83 ps and tp = 76 ps.

What happens to delay if you increase load capacitance?

Delay increases roughly linearly with load capacitance, because the gate must charge or discharge more charge through the same transistor resistance (tp of about 0.69 R C). Load capacitance includes the wires, the input capacitance of the driven gates and the gate's own diffusion capacitance, so higher fan-out also means more delay. Slower output edges then slow the next stage as well.

A correction to the earlier version of this answer: delay is not the sum of propagation delay and contamination delay. Propagation delay is the maximum time until the output is stable, and contamination delay is the minimum time before the output starts to change. Both increase with load, and the propagation delay is used for setup checks while contamination delay matters for hold. Remedies for large loads are buffering, upsizing the driver and tapered buffer chains.

What happens to delay if we include a resistance at the output of a CMOS circuit?

Delay increases, because the series resistance adds to the driver resistance in the RC time constant: tp of about 0.69 (Rdriver + R) CL. The resistor also dissipates power (I²R) while current flows during switching, which was the original short answer, but the main effect asked about is the extra delay. A small series resistor is sometimes added deliberately to damp ringing on off-chip lines.

What are the limitations in increasing the power supply to reduce delay?

Dynamic power rises with VDD², so a 10 percent supply increase raises switching power by about 21 percent. There are also reliability limits (oxide breakdown, hot-carrier damage, electromigration from higher currents), higher leakage and heat, and diminishing returns because velocity saturation limits how much current grows with voltage.

How does the resistance of metal lines vary with increasing thickness and increasing length?

R = ρL / (W × t). Resistance is directly proportional to length and inversely proportional to cross-sectional area. Thicker metal lowers resistance, which is why upper metal layers, which are thicker, are used for power and long global wires. Increasing length increases resistance, and because capacitance also grows with length, the RC delay of an unbuffered wire grows with the square of its length.

What happens if we increase the number of contacts or vias from one metal layer to the next?

Resistance between the layers decreases, because the vias are in parallel. Multiple vias also improve reliability: they share current, which reduces electromigration stress, and the connection survives if one via is defective. This is why redundant vias are a standard DFM practice. The original answer said resistance increases, which has been corrected. The costs are area and routing tracks.

Gate design and layout

Draw a transistor-level two-input NAND gate. Explain its sizing (a) considering Vth, (b) for equal rise and fall times.

Two PMOS in parallel from VDD to the output and two NMOS in series from the output to ground. (a) The upper series NMOS has a raised Vth because of body effect (its source is above ground), which makes the pull-down slower than a simple calculation suggests; the series stack is the reason the NMOS are made wider. (b) For equal rise and fall times compared with a reference inverter (NMOS width 1, PMOS width about 2), each series NMOS is doubled to width 2 so the stack matches one unit NMOS, and each PMOS stays at width 2, since in the worst case only one of them pulls up.

Let A and B be two inputs of the NAND gate. Say signal A arrives later than B. To optimize delay, which of the two series NMOS would you place near the output?

Place the late-arriving input A on the transistor nearest the output. While B is waiting, the lower transistor (driven by B) is already on and has discharged the internal node between the two transistors. When A finally switches, only the output capacitance needs to discharge through the stack, giving the shortest delay.

Draw the stick diagram of a NOR gate. Optimize it.

Two series PMOS between VDD and the output and two parallel NMOS between the output and ground, with the polysilicon gates running vertically across both diffusion strips. To optimize, find an Euler path so each diffusion strip is unbroken with shared source and drain regions, share the output diffusion between the NMOS, and keep the series PMOS wide because the stack is slow. Minimizing diffusion breaks reduces area and diffusion capacitance.

For CMOS logic, give the various techniques you know to minimize power consumption.

Lower supply voltage and multiple voltage domains, dynamic voltage and frequency scaling, clock gating, power gating with sleep transistors, multi-threshold cells, operand isolation, reducing glitches by balancing paths, transistor sizing to cut capacitance, low-swing signaling for long buses, and architectural techniques such as parallelism at lower voltage.

What is charge sharing? Explain the charge sharing problem while sampling data from a bus.

Charge sharing happens when a precharged node is connected to an uncharged capacitance, so the charge redistributes and the voltage drops: V = Vinitial × C1 / (C1 + C2). On a precharged bus or in dynamic logic, turning on a transistor that connects an internal node to the bus can pull the bus voltage down far enough to be read as the wrong value, even though no real discharge path exists. Remedies: precharge internal nodes, add keeper transistors, and keep bus capacitance large relative to internal nodes.

Why do we gradually increase the size of inverters in buffer design? Why not drive the output with one large inverter?

A large inverter has a large input capacitance, which would load the small driving gate and make it very slow. A tapered chain, with each stage larger than the previous by a fixed factor, keeps every stage's fanout moderate. Theory gives an optimum of about e (2.7) per stage ignoring self-loading, and about 3 to 4 in practice, which minimizes total delay.

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 a large width?

Fingering into parallel transistors that share source and drain diffusions cuts the drain diffusion capacitance, roughly halving it with two fingers, and reduces the gate resistance of a long polysilicon line, which would otherwise slow the edge. It also gives a compact, more square layout that fits the cell height and improves matching.

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 gate.)

Identify diffusion strips (N and P), where polysilicon crosses diffusion (each crossing is a transistor), and which nodes connect through contacts. Series and parallel connections then give the function. A 3-input AND shows a 3-input NAND followed by an inverter. A mux is often a pair of transmission gates or an AOI structure with an inverter.

Give the logic expression for an AOI gate. Draw its transistor-level equivalent and stick diagram.

An AOI21 (AND-OR-INVERT) computes Y = NOT((A AND B) OR C). The pull-down has A and B in series, in parallel with C. The pull-up is the dual: A and B in parallel, in series with C. AOI gates implement two levels of logic in a single inverting stage, which is faster and smaller than separate AND, OR and inverter gates.

Why don't we use just one NMOS or PMOS transistor as a transmission gate?

An NMOS passes a strong 0 but a weak 1, reaching only VDD - Vth (further reduced by body effect). A PMOS passes a strong 1 but a weak 0, stopping at |Vthp|. Putting both in parallel as a transmission gate passes full levels in both directions. (Reference: Pucknell and Eshraghian, Basic VLSI Design.)

For an NMOS pass transistor with the gate at VDD, give the output for a square pulse input going from 0 to VDD.

When the input goes low, the output follows cleanly to 0. When the input goes high, the output charges only to about VDD - Vth, with Vth raised by body effect, and the rising edge is slow as the transistor turns off near the end. The output is a pulse with a degraded high level, which can cause static current in the next inverter.

SRAM design

Draw a 6T SRAM cell and explain the read and write operations.

Two cross-coupled inverters store the bit and its complement; two NMOS access transistors connect the storage nodes to the bit line and bit-line-bar when the word line is high. Read: both bit lines are precharged high, the word line rises, and the side storing 0 slowly discharges its bit line through the access and pull-down transistors; a sense amplifier detects the small difference. Write: write drivers force one bit line low, and the access transistor overpowers the pull-up on that side, flipping the cell. Sizing must keep reads non-destructive (pull-down stronger than access) and writes possible (access stronger than pull-up).

Draw the differential sense amplifier and explain its working. How would you size it? (Consider channel length modulation.)

A common type is a differential pair with an NMOS tail current source and a PMOS current-mirror load; another is the cross-coupled latch type that is enabled after a small differential develops. The bit lines drive the pair, and a small difference (tens of millivolts) is amplified to a full logic level. Sizing: match the input pair carefully, because offset limits how small a signal can be sensed; size the tail for the required speed; and use longer channels in the load and tail to reduce channel length modulation, which raises output resistance and gain.

What happens if we use an inverter instead of the differential sense amplifier?

An inverter would need the bit line to swing almost to its switching threshold, about VDD / 2, before it switched. Discharging the large bit line capacitance that far takes much longer, so reads are slower and use more power. An inverter also cannot reject common-mode noise on the bit lines, which a differential amplifier does.

Draw the SRAM write circuitry.

Write drivers, controlled by the write enable and the data input, pull one bit line strongly to ground and hold the other high, through the column multiplexer. They are sized strong enough to flip the cell within the word line pulse.

Approximately, what were the sizes of your transistors in the SRAM cell? How did you arrive at those sizes?

Give your own numbers. A common design guide uses a cell ratio (pull-down to access width) of about 1.5 to 2 for read stability, and a pull-up ratio (pull-up to access) below 1 for writability, confirmed by simulation of static noise margins across corners.

How does the size of the PMOS pull-up transistors (for bit and bit-bar lines) affect SRAM performance?

Larger precharge PMOS charge the bit lines faster, shortening the cycle time, but add capacitance to the bit lines and draw larger current spikes. If they are too strong and left on during a read, they fight the cell and reduce the developed differential. If they are too weak, precharge does not finish in time.

What is the critical path in an SRAM?

The read path: address input, row decoder, word line driver and word line rise, bit line discharge by the cell, sense amplifier enable and resolution, and the output driver. The bit line discharge through the small cell transistors is usually the slowest single part.

Draw the timing diagram for an SRAM read. What happens if we delay the enabling of the clock signal?

Sequence: precharge ends, address decodes, the word line rises, the bit line differential grows, the sense enable fires, data appears at the output, then the word line falls and precharge resumes. If the clock or sense enable is delayed, the access time grows, but the bit lines develop more differential, so the read is more robust. If it fires too early, the sense amplifier may resolve the wrong value. Timing is often set with a replica bit line that tracks the cell's discharge rate.

Give a big picture of the entire SRAM layout showing your placement of SRAM cells, row decoders, column decoders, read circuit, write circuit and buffers.

The cell array sits in the center, often split into banks. Row decoders and word line drivers run along one side of the array (or down the middle between two halves to shorten word lines). Precharge circuits sit at one end of the bit lines, and column multiplexers, sense amplifiers and write drivers at the other. Control logic, address buffers and I/O buffers sit at a corner, with the clock and timing generator near the control block.

In an SRAM layout, which metal layers would you prefer for word lines and bit lines? Why?

Typically bit lines on a lower metal (metal 2) running vertically through the cell and word lines on another layer at right angles (metal 1 or metal 3), with power lines in between. Word lines are long and drive many access gates, so a low-resistance layer (or strapping a polysilicon word line with metal) keeps their rise time short. Bit lines need low capacitance more than low resistance. The best choice depends on the process and cell architecture.

How can you model an SRAM at RTL level?

As a register array with read and write logic matching the timing of the real macro. The model below is a single-port synchronous SRAM with one-cycle read latency; it was compiled and simulated. Real projects use behavioral models supplied by the memory compiler, which also model clock-to-output timing and unknown values on bad accesses.

// Behavioural single-port synchronous SRAM model
module sram_sp #(parameter AW = 10, DW = 32) (
  input  wire          clk,
  input  wire          ce,     // chip enable
  input  wire          we,     // write enable
  input  wire [AW-1:0] addr,
  input  wire [DW-1:0] wdata,
  output reg  [DW-1:0] rdata
);
  reg [DW-1:0] mem [0:(1<<AW)-1];
  always @(posedge clk)
    if (ce) begin
      if (we) mem[addr] <= wdata;
      else    rdata     <= mem[addr];   // one-cycle read latency
    end
endmodule

Test and reliability

What is the difference between testing and verification?

Verification checks that the design matches its specification before manufacture, using simulation, formal methods and emulation. Testing checks that each manufactured chip matches the design, finding defects introduced in fabrication, using scan, BIST and tester patterns. Verification asks "did we design it right?"; testing asks "did we build it right?".

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.)

The mux is Y = (A AND NOT S) OR (B AND S). To test a node stuck-at-0, apply inputs that set it to 1 and make the fault visible at Y; for stuck-at-1, set it to 0 and propagate. For the AND output P = A AND NOT S: stuck-at-0 is tested with A = 1, S = 0, B = 0 (expect Y = 1); stuck-at-1 with A = 0, S = 0, B = 0 (expect Y = 0). Do the same for the other AND output and the inverter. Redundant logic, such as the consensus term A AND B added to remove a hazard, creates faults that cannot be tested, because the output is the same with or without the fault. Such faults are reported as untestable, and the interviewer may ask you to spot them.

What is latch-up? Explain it with a cross-section of a CMOS inverter. How do you avoid it?

In the cross-section, the PMOS source (P+) in the N-well, the N-well and the P-substrate form a vertical PNP, and the NMOS source (N+), the P-substrate and the N-well form a lateral NPN. Together they make a parasitic thyristor between VDD and ground. A trigger such as an I/O overshoot or radiation injects current, the well and substrate resistances develop enough voltage to turn on both transistors, and positive feedback holds a large current until power is removed. Avoidance: frequent well and substrate taps to lower the resistances, guard rings around I/O transistors, larger NMOS to PMOS spacing, epitaxial or SOI substrates, and following the foundry latch-up rules. JEDEC JESD78 defines the latch-up qualification test.

The Editor's Desk
About the Author
The Editor's Desk
Share Facebook X LinkedIn WhatsApp Email

Post a Comment

5 Comments

Your comments will be moderated before it appears here.

  1. Can somebody post more solutions to this list. -- thanks, ravi

    ReplyDelete
  2. Hi

    I like this post:

    You create good material for community.

    Please keep posting.

    Let me introduce other material that may be good for net community.

    Source: Intel interview questions


    Best rgs
    Peter

    ReplyDelete
  3. can any body give the answers for all questions and send me to my email.and other questions also
    manikanta710214@gmail.com

    ReplyDelete
  4. It is available in pdf format for $150. Please comment if interested.

    ReplyDelete
Post a Comment

#buttons=(Ok, Go it!) #days=(20)

Our website uses cookies to enhance your experience. Learn more
Ok, Go it!