
Real Interview Questions for the IC Design Engineer at STMicroelectronics
NewInterview Q&A
Q&A-1Explain the role of interrupts and how you prioritize them in an embedded system design?
Reported in Interrupts in system design
The 90-second answer
Interrupts let the CPU sleep or run background work while hardware events are handled only when they occur. Without them I would poll a UART, ADC or timer in a loop, burn power, add latency and miss short events. With them the event wakes the core, the ISR does the minimum work, clears the source, and returns.
Prioritization is decided by deadline and consequence, not by frequency alone. A hard real-time event that must be serviced within microseconds gets the highest preemption priority. A slower event that can tolerate jitter gets a lower one. On STM32 Cortex-M parts that maps to NVIC preemption priority, and subpriority only orders interrupts that share the same preemption level.
How I set it up on an STM32
I use NVIC_PRIORITYGROUP_4 on Cortex-M4/M7 so all 4 priority bits are preemption priority. That gives 16 distinct preemption levels and leaves subpriority unused. I assign priorities in one place during peripheral init, not scattered in application code.
/* STM32F4, Cortex-M4, checked against RM0368 and STM32F4 HAL */
HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4);
/* Preemption priority: lower number = more urgent */
HAL_NVIC_SetPriority(EXTI15_10_IRQn, 0, 0); /* motor fault / overcurrent */
HAL_NVIC_SetPriority(ADC1_2_IRQn, 1, 0); /* current sense, 20 kHz */
HAL_NVIC_SetPriority(TIM2_IRQn, 2, 0); /* control loop, 1 kHz */
HAL_NVIC_SetPriority(DMA1_Stream5_IRQn, 3, 0); /* SPI DMA, burst transfer */
HAL_NVIC_SetPriority(USART2_IRQn, 5, 0); /* telemetry, can wait 1 ms */The ISR pattern is short and deterministic:
void ADC1_2_IRQHandler(void) {
if (__HAL_ADC_GET_FLAG(&hadc1, ADC_FLAG_EOC)) {
__HAL_ADC_CLEAR_FLAG(&hadc1, ADC_FLAG_EOC);
adc_buf[adc_idx++] = HAL_ADC_GetValue(&hadc1);
if (adc_idx >= ADC_BUF) { adc_idx = 0; adc_ready = 1; }
}
}No printf, no blocking HAL call, no allocation inside the ISR. I set a flag or write to a ring buffer and let the main loop or a lower priority task do the processing.
Preemption versus subpriority
Preemption priority decides whether a running ISR can be interrupted. Subpriority does not. If the ADC ISR is running at preemption 1 and the fault fires at preemption 0, the fault preempts it immediately. If both were at preemption 1, the fault would wait until the ADC ISR returned, regardless of subpriority. Subpriority only decides which pending interrupt is taken first when two interrupts at the same preemption level are pending at the same time.
That is why time critical sources each get their own preemption level in my table. Putting the fault and the ADC at the same preemption level and separating them by subpriority would be a design error, because the fault could be delayed by a full ADC ISR execution time.
Worked example: latency budget
Assume a 168 MHz STM32F4, a 1 kHz control loop, a 20 kHz ADC, and a fault input that must stop PWM within 5 microseconds.
| Source | Period | Worst-case latency budget | Preemption | Why |
|---|---|---|---|---|
| EXTI fault | aperiodic | 5 us | 0 | Safety, hardware shutdown |
| ADC1 | 50 us | 20 us | 1 | Current sample feeds the loop |
| TIM2 control | 1 ms | 200 us | 2 | Jitter above 200 us destabilizes the loop |
| DMA SPI | burst | 500 us | 3 | Data must not overrun the FIFO |
| USART telemetry | 10 ms | 5 ms | 5 | Loss is recoverable |
At 168 MHz, Cortex-M4 exception entry stacks registers in 12 cycles, roughly 70 ns, before the first ISR instruction runs. With distinct preemption levels, the fault latency is entry time plus the time spent in any critical section with interrupts disabled. I keep that section to a few instructions, so the total stays well under 1 us in this example. If the fault shared preemption 1 with the ADC, worst case latency would add the ADC ISR duration, which in my code is about 0.5 us for the flag check and buffer write, still acceptable here but not if the ADC ISR grew.
Failure modes I check
Priority inversion through a shared resource. If a priority 5 ISR and the main loop both take a mutex or disable interrupts around a shared buffer, a priority 0 event can be delayed by the critical section. I keep critical sections to a few instructions, use __disable_irq() only around a ring buffer head update, and never hold it across a HAL call.
Interrupt storm. A noisy EXTI line or a UART at 115200 baud with a 1 byte FIFO can keep the core in ISRs. I enable peripheral filtering or DMA, set a maximum ISR rate in hardware, and if the rate exceeds the budget I switch that source to DMA plus idle line detection.
Missed or stuck source. If the ISR returns without clearing the flag, the same interrupt re-enters immediately and the system appears hung. I clear the flag as the first action, and in review I check every ISR against its reference manual flag list.
For a non-Cortex-M4 ST part, for example STM32F0 or STM32L0, the same logic applies but the NVIC has fewer priority bits. I then group by preemption only and move the lowest priority work to polling in the main loop, because there are too few levels to give every source its own preemption priority.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Q&A-2How do you choose allocation and buffering under resource constraints?
Reported in STMicroelectronics Embedded Engineer Interview Questions
The 90-second answer
I start from the worst case, not the average. For each stream I write down peak rate, burst length, the longest time the consumer can be delayed, and the deadline for the consumer to act. Buffer size follows from those four numbers. Allocation follows from determinism and lifetime: anything touched by DMA, an ISR, or a safety path gets statically placed memory with a fixed address. Anything with a bounded, known lifetime can come from a fixed pool. I avoid the general heap on a microcontroller unless the object size and lifetime are genuinely variable, because fragmentation makes worst-case time and memory unprovable.
Sizing a buffer with arithmetic
Take a UART at 921600 baud, 8N1. That is 92160 bytes per second. If a flash operation or a higher priority interrupt can block the receiver for 10 ms, the ring must hold at least 92160 x 0.010 = 922 bytes, plus one frame for framing error. I would allocate 2048 bytes, a power of two so the index wraps with a mask, and set a high-water mark alarm at 75 percent. The alarm is how I detect that my latency assumption was wrong in the field.
For periodic data I use ping-pong DMA instead of a large ring. Example, hypothetical but typical for an STM32H7 ADC: 1 MS/s, 16-bit samples, DMA half-buffer of 256 samples (512 bytes). The CPU has 256 microseconds to finish processing a half before DMA overwrites it. If my FFT or filter takes 180 microseconds worst case, that fits with margin. If it takes 300 microseconds, no amount of extra buffering fixes it. I need a shorter period, a faster core, or hardware filtering. Buffering hides jitter, it does not create throughput.
| Stream type | Allocation | Why |
|---|---|---|
| --- | --- | --- |
| --- | --- | --- |
| --- | --- | --- |
| --- | --- | --- |
| DMA RX/TX, ISR shared | Static, aligned, in DMA-capable SRAM | Address must stay valid, no cache or retention surprises |
| Protocol frames, fixed size | Fixed pool, e.g. 8 x 256 byte blocks | Bounded count, bounded time to allocate and free |
| Configuration, logs, variable text | Heap with a hard cap, or a static arena | Variable size, but never on the control path |
| Hot data on STM32H7 | DTCM or tightly coupled SRAM | Lower latency, but check DMA cannot reach it |
A ring buffer I can defend in review
/* STM32, Cortex-M, checked against CMSIS conventions */
#define RX_SIZE 2048u
#define RX_MASK (RX_SIZE - 1u)
static uint8_t rx_buf[RX_SIZE] __attribute__((aligned(4)));
static volatile uint16_t rx_head; /* written by DMA or ISR */
static uint16_t rx_tail; /* written by consumer */
static inline uint16_t rx_free(void)
{
return (uint16_t)(RX_SIZE - 1u - ((rx_head - rx_tail) & RX_MASK));
}
static inline bool rx_push(uint8_t b)
{
if (rx_free() == 0) return false; /* drop and count, never overwrite */
rx_buf[rx_head & RX_MASK] = b;
rx_head = (uint16_t)((rx_head + 1u) & RX_MASK);
return true;
}The push path never blocks and never overwrites unread data. On overflow I increment a counter and, if the stream is a command channel, raise the error flag the host can read. Silent overwrite corrupts a frame in a way that is hard to reproduce.
Allocation choices and their failure modes
Static allocation gives me a linker map I can audit. I can see .bss and .data totals against, say, 128 KB of SRAM on an STM32L4, reserve stack per task with a painted pattern, and place DMA buffers in SRAM1 rather than a low power retention bank that the DMA cannot access in the chosen sleep mode. The cost is waste when a buffer is only needed in one mode. I accept that waste when the alternative is a mode switch that reallocates memory and breaks determinism.
A fixed pool suits frames and packets. Allocation is a scan of a bitmap, O(n) with n small, and freeing returns the block to a known state. Failure is pool exhaustion, which I surface as a dropped frame counter rather than a NULL dereference three calls later.
The heap fails differently. Fragmentation grows with uptime, allocation time varies, and a failed malloc in a motor control loop is a safety issue. If I use it at all, I cap it at startup, allocate long lived objects once, and log the high-water mark. On STM32Cube I would rather carve a static arena and bump allocate from it during init.
Energy changes the placement. On an STM32L4 in Stop 2, SRAM retention costs current. Keeping a 2 KB ring in retention SRAM to wake on a UART byte may cost more than waking, copying from a small always-on buffer, and returning to sleep. I measure that with a current analyser instead of guessing, because the crossover depends on wake frequency.
The checks I would name in the interview: stack overflow detection via MPU guard or stack limit registers, DMA overrun and transfer error flags polled in the fault handler, ring high-water and drop counters exposed over diagnostics, and a soak test that runs the worst case burst for 24 hours while watching heap free space and pool exhaustion. If those counters stay at zero under the specified worst case, the allocation is defensible. If they move, the buffer size or the latency assumption is wrong, and I fix the assumption rather than enlarging the buffer blindly.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Q&A-3How do you decide between RTOS and bare-metal for an embedded ST project?
Reported in STMicroelectronics Embedded Engineer Interview Questions
The 90-second answer
I start from timing and concurrency, not from preference. If the firmware is one control loop plus interrupts, bare-metal on STM32Cube HAL or LL is simpler and I can prove worst-case latency. If I have several independent activities that block, communicate, or run at different rates, FreeRTOS on STM32 gives me preemptive scheduling and cleaner separation, at a cost in RAM, tick jitter, and failure modes I have to manage.
On a typical STM32F4 or H7 part, say an STM32F407 at 168 MHz with 192 KB SRAM, a bare-metal superloop with DMA and interrupt handlers keeps ISR latency to a few microseconds and leaves all RAM for buffers. FreeRTOS with a 1 kHz tick adds a context switch on every tick and on every unblock, typically 5 to 20 microseconds depending on clock and compiler, plus a stack per task. That is fine for a 10 ms sensor task. It is not fine if I need a 50 microsecond response to a timer capture.
// Bare-metal: deterministic, one loop, DMA does the moving
volatile uint8_t rx_done;
void USART3_IRQHandler(void) { rx_done = 1; }
int main(void) {
HAL_Init(); SystemClock_Config();
HAL_UART_Receive_DMA(&huart3, rxbuf, sizeof(rxbuf));
while (1) {
if (rx_done) { process_frame(rxbuf); rx_done = 0; }
control_step(); // fixed-rate, no blocking calls here
}
}// FreeRTOS: blocking calls live in their own tasks
void sensor_task(void *arg) {
for (;;) {
read_sensor_blocking(); // I2C HAL call can wait 5 ms
xQueueSend(q_sensor, &sample, 0);
vTaskDelayUntil(&wake, pdMS_TO_TICKS(10));
}
}
void comms_task(void *arg) {
for (;;) {
xQueueReceive(q_sensor, &sample, portMAX_DELAY);
send_over_uart_dma(sample);
}
}How I decide in practice
| Factor | Bare-metal favours | FreeRTOS favours |
|---|---|---|
| --- | --- | --- |
| --- | --- | --- |
| --- | --- | --- |
| Timing | Hard deadline under 1 ms, jitter budget tight | Deadlines 5 ms and above, jitter tolerable |
| Concurrency | One loop, 2 to 3 ISRs, DMA for peripherals | 4 plus tasks, blocking drivers, protocol stacks |
| RAM and power | STM32G0 or L0, 8 to 32 KB SRAM, STOP mode wake dominates | 64 KB plus SRAM, always-on or frequent wake |
| Failure surface | Stack is one, overflow is obvious in review | Priority inversion, stack overflow per task, queue full |
Failure modes I check before committing
With FreeRTOS I size each task stack from measured high-water mark, not a guess, and enable configCHECK_FOR_STACK_OVERFLOW and the idle hook. I use mutexes with priority inheritance for shared I2C or SPI buses, because a low-priority task holding the bus while a high-priority task waits is the classic inversion that HAL timeouts then mask as a hardware fault. Tickless idle matters on STM32L4 parts in STOP2, otherwise the 1 kHz tick alone can add roughly 30 to 80 microamps and break a power budget.
With bare-metal the failure mode is different. One blocking HAL_I2C_Mem_Read with a 100 ms timeout stalls the whole loop, including the control step that was supposed to run every 2 ms. I avoid that by making every peripheral DMA driven and every wait interrupt driven, and I put a watchdog window check in the loop so a missed iteration is visible in test, not in the field.
My default on ST projects: start bare-metal if the task list fits on one page and the deadlines are tight. Move to FreeRTOS when the code starts needing while (!ready); in three places or when USB, BLE, or Modbus stacks start competing with control. I never mix the two by putting time-critical capture in a task when the same part can do it in a timer ISR with DMA, and I never force a small L0 design into an RTOS just because the larger F4 prototype used one.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Q&A-4Explain Falcon Signature in embedded work?
Reported in STMicroelectronics Embedded Engineer Interview Questions
The 90-second answer
Falcon is a post-quantum signature scheme based on NTRU lattices. NIST selected it in the post-quantum standardisation process as the basis for FN-DSA, now in draft as FIPS 206. That is separate from ML-DSA in FIPS 204, which standardises Dilithium. Falcon's appeal is compact keys and signatures. Its cost is signing that uses floating point arithmetic and Gaussian sampling.
For embedded work the use case is firmware authenticity. A bootloader verifies a signature over an application image before jumping to it, and an OTA update carries a signature the device checks before installing. ECDSA P-256 and RSA, which current STM32 PKA accelerators and STSAFE secure elements implement, are not post-quantum. Falcon is a candidate replacement where signature size in a boot header or update packet is tight.
Trade-offs against the alternatives
| Scheme | Public key | Signature | Signing on MCU | Notes |
|---|---|---|---|---|
| ECDSA P-256 | 33 B compressed | 64 B | Fast, hardware accelerated on many STM32 parts | Not post-quantum |
| Falcon-512 | 897 B | About 690 B average, 752 B maximum | Tens of milliseconds in software on a Cortex-M33, illustrative | Floating point, variable length signature |
| Falcon-1024 | 1,793 B | About 1,330 B average, 1,469 B maximum | Slower than Falcon-512 | Higher security margin |
| ML-DSA-44 | 1,312 B | 2,420 B | Fast in integer arithmetic | Larger signature, no floating point |
Falcon-512 saves roughly 1.7 kB per signature against ML-DSA-44. That matters if a signature sits in a small header or crosses a low bandwidth link. ML-DSA wins on implementation simplicity. It is integer only and easier to make constant time.
Current STMicroelectronics hardware does not accelerate Falcon. STM32 PKA blocks accelerate ECC and RSA, and STSAFE-A110 implements ECC, RSA and AES. A Falcon implementation on an STM32 today would be software, linked from a portable C library rather than an ST cryptographic accelerator library, and the public key would be stored in OTP or protected flash for boot verification.
Why signing is the hard part
Verification is straightforward and fits a bootloader. Signing samples from a discrete Gaussian distribution using a lattice trapdoor, with floating point FFTs in the reference implementation. Three failure modes follow from that.
First, side channels. Floating point units can have data dependent timing, and a sampler that leaks through timing, cache or power can expose the secret key. Signing should not run on the main MCU in the field. It belongs in a factory HSM or other controlled signing environment, with the device only verifying.
Second, portability. Floating point rounding must match the specification exactly. Compiler flags such as fast-math, or flush-to-zero behaviour, can produce signatures that fail verification or weaken security. Pinning flags and running the NIST known answer tests catches this.
Third, variable length. A Falcon-512 signature is not fixed size. Code that assumes a fixed buffer, or truncates to an average length, will reject valid signatures or overflow. Allocate for the 752 B maximum and check the encoded length before parsing.
A fault during sampling is also a known risk for lattice signatures. One faulty signature can leak key material, which is another reason to keep signing off the deployed device.
Secure boot flow
Verification sketch
/* liboqs 0.12, Falcon-512 verification */
#include <oqs/oqs.h>
int verify_firmware(const uint8_t *msg, size_t msg_len,
const uint8_t *sig, size_t sig_len,
const uint8_t *pk)
{
OQS_SIG *obj = OQS_SIG_new("Falcon-512");
if (obj == NULL) return -1;
int rc = OQS_SIG_verify(obj, msg, msg_len, sig, sig_len, pk);
OQS_SIG_free(obj);
return rc; /* OQS_SUCCESS is 0 */
}In a product I would add an anti-rollback counter alongside the signature, so a valid but old image cannot be replayed, and I would test the exact software build against the Falcon KAT vectors for the target compiler and FPU settings. If signing had to happen on the device itself, for example for frequent message authentication, I would pick ML-DSA instead and accept the larger signature. Falcon fits the case where signing is rare and controlled, and verification runs many times on a constrained MCU.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Q&A-5What do you know about basic digital design, CMOS circuit design, and gate-level design?
Reported in STMicroelectronics DFT Engineer (3/5, Oct 15, 2026): Supportive team but high workload
The 90-second answer
I would separate the three levels because they fail in different ways. Digital design is the Boolean behaviour and timing of a system. CMOS circuit design is the transistor physics that sets delay, power and noise margin for a gate. Gate-level design is the netlist of standard cells that synthesis, timing analysis and DFT operate on. In an ST loop I would expect questions to move between those levels, for example from a Verilog always block down to why a NAND gate is faster than a NOR gate in the same process.
Digital design
Start with combinational logic: truth tables, Boolean algebra, and the fact that NAND and NOR are each functionally complete. A 2-input NAND is Y = NOT (A AND B). Sequential logic adds state. A D flip-flop samples D on the active clock edge, subject to setup and hold. Setup is the minimum time D must be stable before the edge. Hold is the minimum time it must stay stable after the edge. Violating setup usually corrupts the captured value. Violating hold can corrupt it even when the data arrived early, which is why hold fixes are usually buffers on the clock path rather than on the data path.
// Checked against IEEE 1364-2005 style; synthesisable subset
module nand2_gate (output wire y, input wire a, input wire b);
assign y = ~(a & b); // gate-level view
endmodule
module dff (output reg q, input wire d, input wire clk, input wire rst_n);
always @(posedge clk or negedge rst_n) begin
if (!rst_n) q <= 1'b0;
else q <= d;
end
endmoduleThe behavioural description above synthesises to a netlist of library cells. That netlist is what place and route, static timing analysis and scan insertion actually see.
CMOS circuit design
A CMOS gate pairs a PMOS pull-up network with an NMOS pull-down network. For an inverter, the PMOS source goes to VDD, the NMOS source to GND, gates are common input, drains are common output. When input is low, PMOS is on and NMOS is off, so output is pulled to VDD. When input is high, the reverse happens and output is pulled to GND. There is no direct VDD to GND path in steady state, which is why static power is mainly leakage.
| Input | PMOS | NMOS | Output |
|---|---|---|---|
| 0 | on | off | 1 (VDD) |
| 1 | off | on | 0 (GND) |
Sizing matters. If the PMOS is much weaker than the NMOS, the rising transition is slow and the switching threshold shifts. For a first-order estimate, equal rise and fall delay needs W_p roughly 2 to 3 times W_n in a typical bulk process because hole mobility is lower than electron mobility. The exact ratio comes from the PDK device models, not from a rule of thumb.
Dynamic power for a switching node is P = alpha * C * V^2 * f. Take a labelled example: C = 10 fF, V = 0.9 V, f = 1 GHz, activity alpha = 0.1. That gives 0.1 * 10e-15 * 0.81 * 1e9 = 0.81e-6 W, or 0.81 µW per gate. Scale that to one million similarly switching gates and the dynamic component is about 0.81 W before clock distribution and SRAM are counted. Delay scales roughly as R * C, where R is the effective resistance of the on transistor. Lowering V cuts power quadratically but also cuts drive current, so delay rises sharply near threshold. That trade-off is why a 0.9 V core and a lower-voltage retention mode cannot share the same timing signoff.
Failure modes I would name in an interview: short-circuit current during a slow input transition, charge sharing in dynamic logic, and latch-up if the well structure or guard rings are wrong. Each has a different detection method. Short-circuit power shows up in transistor-level simulation with a ramped input. Charge sharing appears as a dropped output level in a precharge evaluate gate. Latch-up is checked against the PDK latch-up rules and by simulation of overshoot on I/O pins.
Gate-level design
At this level I care about the standard-cell library, timing arcs, and constraints. Static timing analysis checks every path against the clock period without needing a test vector for each path. A path fails setup if clock period < clock-to-Q + combinational delay + setup time - clock skew. It fails hold if the earliest arrival is too early relative to the capturing edge. Synthesis can optimise area and power, but it cannot fix a missing false path or a badly constrained clock. Those are design errors that STA will faithfully report as violations.
DFT sits at the same level. Scan chains turn flip-flops into shift registers so a stuck-at fault can be shifted in, captured, and shifted out. Without scan, a fault deep in sequential logic may need an impractical number of cycles to reach an output. ATPG coverage, compression ratio and the number of shift cycles then decide test time. For a block with 100k scan flops and 4x compression, the shift count per pattern drops from 100k to about 25k cycles, which directly changes tester time.
If an interviewer pushes on one point, I would pick the boundary between levels. A timing failure in silicon is rarely just a Verilog bug or just a transistor bug. It is usually a constraint, a library characterisation corner, or a parasitic that only appears after extraction. Naming which level owns the fix is the practical skill.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Q&A-6How does a CMOS circuit work in real time?
Reported in STMicroelectronics Hardware Engineer Interview (Declined Offer): It was chill and asked easy
The 90-second answer
A CMOS gate is a switch network that connects the output either to VDD or to GND, never both at once in steady state. For an inverter, the PMOS sits between VDD and the output and the NMOS between the output and GND. Input low turns the PMOS on and the NMOS off, so the output charges up to VDD. Input high does the reverse and the output discharges to GND. In real time that means the output is not instant. It moves as the load capacitance charges or discharges through the on-resistance of the conducting transistor, and the next gate starts switching as soon as its input crosses its own threshold.
That charging is the whole timing story. Propagation delay is roughly 0.69 * R_on * C_load for a first-order RC step, and dynamic power is alpha * C * VDD^2 * f. If the clock period is shorter than the worst-case path delay plus setup time and clock skew, the receiving flip-flop samples the wrong value. Real-time operation is therefore a timing budget, checked across process, voltage and temperature corners, not a single nominal simulation.
Worked trace: inverter, 1.8 V supply
Assume a hypothetical but typical small gate: C_load = 2 fF, R_on = 2 kOhm, so tau = 4 ps and t_p ~ 2.8 ps per transition. Input is a 100 MHz clock, period 10 ns, so this gate alone uses a tiny fraction of the period. A long path of 200 such gates plus wire RC would be a different problem.
| Time | Vin | PMOS | NMOS | Vout behaviour |
|---|---|---|---|---|
| t0 | 0 V | on | off | charges toward 1.8 V through PMOS |
| t0 + tau | 0 V | on | off | reaches about 63% of VDD, roughly 1.13 V |
| t0 + 5 tau | 0 V | on | off | settled near 1.8 V, logic 1 |
| t1 | 1.8 V | off | on | discharges toward 0 V through NMOS |
| t1 + tau | 1.8 V | off | on | falls to about 37% of VDD, roughly 0.67 V |
| t1 + 5 tau | 1.8 V | off | on | settled near 0 V, logic 0 |
The slow part is usually the PMOS. Hole mobility is lower than electron mobility, so a PMOS of the same width has higher R_on. Designers widen the PMOS, often 2 to 3 times the NMOS width in a symmetric inverter, to balance rise and fall times.
Checking it the way a design team would
A transient SPICE run shows the RC behaviour directly. This is a checked-style netlist for the inverter above:
* CMOS inverter, 1.8 V, 100 MHz input
VDD vdd 0 DC 1.8
VIN in 0 PULSE(0 1.8 0 100p 100p 5n 10n)
MP1 out in vdd vdd PMOS W=2u L=0.18u
MN1 out in 0 0 NMOS W=1u L=0.18u
CL out 0 2fF
.TRAN 10p 20n
.ENDIn a real flow that schematic becomes extracted layout with parasitic R and C, then static timing analysis runs on every path. STA does not simulate waveforms for all data patterns. It computes arrival time from launch flip-flop clock pin to capture flip-flop data pin and compares it against the required time set by the clock period, setup time and uncertainty. Slack is required - arrival. Negative slack at any corner means the circuit fails in real time even if one nominal transient looks clean.
Power arithmetic makes the trade-off concrete. With C = 2 fF, VDD = 1.8 V, f = 100 MHz and activity alpha = 0.1, dynamic power per gate is 0.1 * 2e-15 * 1.8^2 * 1e8 = 64.8 nW. Scale that to a million switching gates and the number becomes tens of milliwatts, which is why clock gating and voltage scaling matter. Lowering VDD to 0.9 V cuts dynamic power by about 4 times, but R_on rises and delay grows, so the maximum clock frequency falls.
Failure modes I would name in the loop
Short-circuit current flows briefly while both transistors conduct during a transition, adding to dynamic power. Leakage flows even when the gate is idle, through subthreshold conduction and gate tunnelling, and it dominates standby power at high temperature. At advanced nodes, velocity saturation and interconnect RC mean the simple R_on * C model underestimates delay on long wires, so buffers are inserted and wire sizing becomes part of timing closure. A candidate who only says "PMOS pulls up, NMOS pulls down" has described the logic. The follow-up is whether the output settles, with margin, before the next clock edge, at the worst corner, with the extracted parasitics in place.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Q&A-7Explain processor architecture concepts relevant to chip design?
Reported in STMicroelectronics Engineer Intern (5/5, Feb 2, 2026): Great place to learn
The 90-second answer
Processor architecture becomes chip design when a microarchitectural choice turns into area, timing, power or verification cost. I would start from the workload and the product constraints, then work through instruction set, pipeline, memory hierarchy and power architecture, because those four decide most of the silicon.
For an ST-class microcontroller or application processor, the first decision is the ISA and core style. A Cortex-M0/M4 style in-order core gives deterministic latency, small area and low leakage, which suits a 100 MHz control loop on a 40 nm or 28 nm process. A Cortex-A class out-of-order core gives higher IPC on irregular code, but pays in issue logic, rename structures, bypass networks and verification state. Neither is better in isolation. The question is whether the application is latency bound, throughput bound or energy bound.
Pipeline and IPC. A classic 5-stage pipeline (fetch, decode, execute, memory, writeback) raises clock frequency by splitting work, but every hazard costs cycles. A load-use hazard stalls one cycle if the result is needed immediately. A taken branch mispredicted in a 5-stage machine flushes roughly 3 cycles. Arithmetic makes the trade visible: at 200 MHz, a core with CPI 1.2 delivers about 167 MIPS. If mispredicts add 0.3 CPI, throughput falls to about 133 MIPS, a 20 percent loss with no change in clock. That is why branch prediction, forwarding and scoreboarding are not academic features. They are performance per watt.
| Style | Typical IPC on integer code | Area and power cost | Best fit |
|---|---|---|---|
| In-order, single issue | 0.6 to 0.9 | Lowest, smallest verification space | Control, sensor nodes, STM32 M0/M4 class |
| In-order, dual issue | 1.0 to 1.4 | Moderate, wider decode and register file ports | DSP and motor control |
| Out-of-order, superscalar | 1.8 to 3.0 | High, ROB, rename, wakeup logic, timing pressure | Linux application processors |
Out-of-order execution hides memory latency by finding independent work while a load misses. The cost shows up in the reorder buffer, load-store queue and the combinational paths through the scheduler. At high frequency those paths become the critical path, so a wider machine can end up slower in practice if timing closure forces a lower clock or extra pipeline stages.
Memory hierarchy. Cache design is a power and latency decision before it is a hit-rate decision. A 32 KB SRAM cache at 1.0 V might read in 1 cycle with a few hundred microwatts active. A miss to external flash or DRAM costs 50 to 100 cycles. For a loop that misses 2 percent of accesses, average memory access time is 0.98 x 1 + 0.02 x 80 = 2.58 cycles. Halving the miss rate to 1 percent drops that to 1.79 cycles, which can matter more than adding an issue slot. I would also check coherency and DMA. A DMA engine writing to a cached buffer without a clean or invalidate produces stale data that passes simulation and fails on silicon, because the simulator often models the cache more kindly than the real SRAM.
Power and physical design. Architecture sets the power domains. Clock gating per peripheral, retention registers for SRAM in sleep, and multiple voltage domains for the core, SRAM and IO let a chip hit sub-microamp sleep while keeping wakeup under a millisecond. Dynamic power scales roughly as C x V^2 x f, so dropping from 1.2 V to 0.9 V cuts dynamic power by about 44 percent at the same frequency, before leakage is considered. The failure mode is a domain crossing that wakes slowly or loses state, which looks like a firmware bug and is actually a reset or retention design error.
In an interview I would close by naming the verification risk: pipeline flush on exception, precise interrupts, and cache maintenance during DMA are where architecture, RTL and software meet. If those are not modelled in the testbench from the start, the chip will be correct in isolation and wrong in the system.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Q&A-8What are the tool models that you have used?
Reported in STMicroelectronics Engineer Interview Experiences and Questions (2026)
I would answer by naming the model, the tool that reads it, and the corner I ran it at. For transistor level work that is mainly the PDK BSIM models in Cadence Spectre, the extraction and DRC decks in Calibre, and Liberty timing models for the digital part. I also write Verilog-A behavioural models when I need to check an architecture before a PDK model is available.
In Spectre I use the foundry BSIM4 or BSIM6 card for the node, for example BSIM4 level 14 in a 28 nm CMOS PDK. I run TT for nominal behaviour, SS and FF for process extremes, and SF and FS where the PDK provides them for cross corners. For a differential pair or current mirror I add Monte Carlo with mismatch enabled, because a TT run alone will not show offset or gain spread.
| Tool | Model I used | Purpose |
|---|---|---|
| Cadence Spectre | BSIM4 or BSIM6, plus diode, resistor and capacitor models | DC, AC, transient, noise, PVT and Monte Carlo simulation |
| Cadence Virtuoso | PDK PCell and symbol models | Schematic and layout from the same device parameters |
| Calibre | DRC deck and parasitic extraction deck | LVS, DRC and post layout RC extraction |
| Cadence Tempus | Liberty .lib with CCS or NLDM timing | Static timing and power for digital blocks |
| Keysight ADS | S-parameter .s2p and IBIS .ibs | RF matching and IO signal integrity |
| Custom Verilog-A | Behavioural model I authored | Early loop and system checks before transistor level design |
A concrete case was a low dropout regulator. I started with a Verilog-A model to check the control loop and settling behaviour in a system simulation. The model was intentionally simple and was replaced by the transistor netlist once the PDK models were released.
// Verilog-A behavioural model, Cadence Spectre
module ldo_behav(vin, vout, en);
input vin, en;
output vout;
electrical vin, vout, en;
parameter real vnom = 1.8;
real vtarget;
analog begin
vtarget = V(en) * vnom * (V(vin) / 3.3);
V(vout) <+ vtarget;
end
endmoduleFor the transistor version I used a Spectre netlist, not SPICE syntax. Spectre model parameters are listed inside the model statement, and the corner sections come from the PDK include files.
// Spectre netlist fragment, 28 nm CMOS PDK, BSIM4
M1 ( n1 n2 gnd gnd ) nmos w=10u l=60n
model nmos ( type=nmos level=14 version=4.8 tox=1.4e-9 vfbcv=-0.55 )
include "tt.scs"The failure modes I check are mostly corner and extraction errors. Running a TT Liberty library against an SS transistor simulation hides worst case delay, so I keep the timing library corner aligned with the SPICE corner. Running Monte Carlo with mismatch turned off gives a false pass on offset. After layout I compare pre layout and post layout results with the same stimulus. If gain or settling changes by more than the extracted poles predict, I look at the Calibre extraction deck and the RC corner first, rather than changing the circuit. I also check the model card version against the PDK release notes, because a card update can change threshold voltage and mobility enough to move a regulator loop.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Q&A-9What are your strengths and weaknesses?
Reported in STMicroelectronics Engineer Interview Experiences and Questions (2026)
The 90-second answer
My strongest area is taking an analog or mixed-signal block from schematic to silicon that still meets spec at the corners. I design for process, voltage and temperature variation from the start, I check layout effects early, and I have debugged parts after tapeout when the first silicon did not match simulation. My main weakness is that I used to over-refine the schematic before getting layout feedback. I now timebox that phase and run extracted simulations earlier, which changed how I work on the last two designs.
Strengths, with evidence
I am comfortable at transistor level. For a recent low-dropout regulator block I sized the pass device and error amplifier against line and load transients, then ran Monte Carlo on offset and gain so the feedback loop stayed stable with the external capacitor range. That meant checking phase margin across load current, not just at the nominal point.
I also think about layout as part of the circuit. Matching, guard rings, thermal gradients and parasitic coupling decide whether a bandgap or ADC front end holds its numbers. On a previous tapeout I placed the reference and the sampling network with a common-centroid approach and kept high-current paths away from the reference, then compared pre-layout and post-layout results before signoff.
The third strength is silicon debug. When a part comes back, I work from a symptom to a testable hypothesis instead of changing the design on a guess.
| Symptom on silicon | First checks | What it ruled in or out |
|---|---|---|
| Output ripple 3x simulation at light load | Sweep load, vary supply, disable internal clocks | Pointed to loop compensation, not supply rejection |
| ADC INL shifts with temperature | Measure reference separately, swap test board, check solder and socket | Reference drift, not converter core |
| Block fails only at cold | Test at -40 C with margin on supplies, review corner simulations | Startup headroom at low temperature |
That discipline matters in automotive and industrial work, where a respin is expensive and the failure may only appear at a corner the customer will find.
Weakness and what I changed
My weakness was spending too long in schematic optimization. I would chase a few millivolts of offset or a small improvement in noise figure while layout parasitics, which would move the result more, were still unknown. On one project that cost three weeks and the extracted result still needed a compensation change.
I changed the flow. Schematic now has a fixed review point: topology, sizing for corners, and stability checks. After that I do a floorplan and a first extraction, even if the layout is rough, and I re-run the critical simulations on extracted parasitics. Only then do I refine. I also keep a short list of the parameters that actually decide pass or fail, such as loop phase margin, startup time and reference drift, and I track those across iterations instead of tracking every simulation result.
A related gap I am closing is formal verification of the digital control logic around the analog block. I can write and review the RTL and the testbench, but I am still building speed with formal tools for state machines that handle calibration and protection. I am working through that on a small state machine now, with assertions for illegal states and timeout behaviour, and I ask a digital colleague to review the constraints.
If I join your team, I would start by learning the process design kit, the design flow and the verification checklist used here, then take ownership of a block where my schematic to silicon experience helps on the first tapeout.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.
Curated: · Written: · Reviewed: