Interview practice · Verilog

Hardware interview practice

30 digital design problems of the kind asked in FPGA, ASIC, RTL and embedded interviews: counters, FIFOs, state machines, arbiters, debouncers and more. Write the module, build it, and submit it to a hidden test that runs on our server.

Problems

30 problems

StatusTitleTopicsDifficultyTime
1.Binary to Gray and backFreecombinational · gray code · xorcombinationalgray codeEasy10 min
2.Count the onesFreecombinational · population count · paritycombinationalpopulation countEasy10 min
3.Priority encoderFreecombinational · encoder · prioritycombinationalencoderEasy10 min
4.One-hot decoder and encoderFreecombinational · decoder · one-hotcombinationaldecoderEasy15 min
5.Leading zero countFreecombinational · leading zeros · prioritycombinationalleading zerosEasy15 min
6.Rising and falling edge detectorFreesequential · edge detection · registerssequentialedge detectionEasy10 min
7.Up/down counter with loadFreesequential · counters · prioritysequentialcountersEasy15 min
8.Serial to parallelFreesequential · shift register · counterssequentialshift registerEasy20 min
9.Find the bug: mod-12 counterFind the bugverification · counters · test writingverificationcountersEasy15 min
10.Self-correcting Johnson countersequential · counters · johnson · illegal statessequentialcountersMedium20 min
11.Gray code countersequential · counters · gray codesequentialcountersMedium20 min
12.Maximal-length LFSRsequential · lfsr · pseudo-randomsequentiallfsrMedium20 min
13.Divide by Nsequential · counters · clock division · clock enablesequentialcountersMedium25 min
14.PWM generatorsequential · counters · pwmsequentialcountersMedium20 min
15.Find the bug: pulse stretcherFind the bugverification · counters · pulse stretching · test writingverificationcountersMedium15 min
16.Counter-based debouncersequential · counters · debouncesequentialcountersMedium20 min
17.Saturating accumulatorsequential · arithmetic · saturation · overflowsequentialarithmeticMedium20 min
18.Small ALU with flagscombinational · arithmetic · alu · signedcombinationalarithmeticMedium25 min
19.Barrel shifter and rotatorcombinational · shifter · rotatecombinationalshifterMedium25 min
20.Sequence detector for 1011fsm · sequence detection · moorefsmsequence detectionMedium25 min
21.Find the bug: 101 detectorFind the bugverification · fsm · sequence detection · test writingverificationfsmMedium20 min
22.Level and pulse synchronizerscdc · synchronizer · toggle · edge detectioncdcsynchronizerMedium25 min
23.Find the bug: fixed-priority arbiterFind the bugverification · arbiter · priority · test writingverificationarbiterMedium15 min
24.Vending machine with changefsm · datapath · arithmeticfsmdatapathHard35 min
25.Round-robin arbiterarbiter · fairness · priorityarbiterfairnessHard35 min
26.UART transmitterfsm · serial · uart · countersfsmserialHard40 min
27.Synchronous FIFOfifo · memory · pointers · flagsfifomemoryHard35 min
28.Find the bug: FIFO flagsFind the bugverification · fifo · flags · test writingverificationfifoHard30 min
29.FIFO with count and almost flagsfifo · memory · counters · flagsfifomemoryHard35 min
30.Valid/ready pipeline stage (skid buffer)handshake · pipeline · valid-ready · backpressurehandshakepipelineHard45 min
Hardware interview practice: Verilog design questions | breadboardhub