Verilog and RTL design practice
RTL is the code that describes how a chip works: registers, logic and the clock that moves data between them. These problems ask you to write that code yourself, from a simple counter up to small state machines, FIFOs and arbiters.
You write Verilog in the browser and press Submit. Nishkam checks your design against a reference design and tries to prove they behave the same for every input and every clock cycle. If they differ, it shows you the exact cycle and signals where your design went wrong.
This track is for students, new graduates and software engineers who want hands-on practice with the kind of RTL questions asked in digital design interviews. You do not need to install anything or sign up to begin. Start with the easy problems and work towards clock domain crossings, resets and timing-friendly coding style.
Open this track in Practice →92 problems
- 2-input AND gateEasy
- 2-input XOR gateEasy
- Wire: input to outputEasy
- 2:1 multiplexer, 4-bitEasy
- 3-bit up-counterEasy
- Sequence detector: 101 (overlapping)Easy
- Traffic light FSMEasy
- Up-counter with enableEasy
- Rising-edge detectorEasy
- Sequence detector: 1011 (overlapping)Medium
- 4-bit Gray-code counterMedium
- 4-way round-robin arbiterHard
- Half adderEasy
- 2-to-4 decoderEasy
- 8-bit parity bitEasy
- 4-bit comparatorEasy
- D flip-flop, synchronous resetEasy
- 4-bit shift registerEasy
- Sequence detector: 110 (Moore, non-overlapping)Medium
- Sequence detector: 1101 (Mealy, overlapping)Medium
- BCD counter with enableMedium
- Up/down counter with loadMedium
- 4-bit Johnson counterMedium
- 8-bit serial-in, parallel-out registerMedium
- 8-bit parallel-in, serial-out registerMedium
- 4-bit Manchester carry chainMedium
- 8-bit Brent-Kung adderHard
- 8-bit Kogge-Stone adderHard
- 8-bit Han-Carlson adderHard
- Two-flop synchronizerEasy
- Pulse synchronizer (toggle)Medium
- Asynchronous FIFO (depth 4)Hard
- Three judges voteEasy
- Borrowing in one columnEasy
- Borrowing across columnsEasy
- Two half adders make a full adderEasy
- Carry passed hand to handEasy
- Flip and add oneEasy
- One circuit, two jobsEasy
- A dial that changes one bit at a timeEasy
- Reading the dial backEasy
- A rotary switch for dataEasy
- A mail sorterEasy
- Light up a clock digitEasy
- Blink an LED at half speedEasy
- Running lightsEasy
- How many lights are on?Easy
- 2-bit branch predictorEasy
- Which way to evict?Easy
- Pipeline register: stall and flushEasy
- Forwarding: take the newest valueEasy
- Load-use hazard detectorEasy
- Register busy bitsEasy
- Who is most urgent?Easy
- Count the leading zerosEasy
- Credits: never overflow the receiverEasy
- ALU flags: N, Z, C, VEasy
- Is it a decimal digit?Easy
- Widen a signed numberEasy
- Guard bits that find a flipEasy
- Light up the volume barEasy
- Electronic diceEasy
- Make a tap visibleEasy
- Metro gateEasy
- Candy machineEasy
- Divisible by 3?Easy
- Scan chain: shift and captureEasy
- Memory BIST stuck-at detectorMedium
- Memory spare-row repair wrapperMedium
- 4-bit barrel rotatorEasy
- 4-bit saturating unsigned adderEasy
- 4-bit one-hot validatorEasy
- Dual-edge detectorEasy
- 4-bit universal shift registerEasy
- 4-bit BIST LFSR pattern generatorEasy
- Single-digit BCD adderEasy
- 4-bit signed absolute valueEasy
- 4-bit unsigned min and maxEasy
- 8-bit conditional bit reverserEasy
- 16-bit byte swap (network order)Easy
- Order book cross & lock checkEasy
- Best bid selector (4-way max tree)Easy
- Cut-through vs store-and-forward stageEasy
- Tick-to-trade price triggerEasy
- 2-stage pipelined mid-price checkMedium
- Multiply and keep a running total (MAC)Easy
- Dot product of two lists of fourEasy
- Dot product with one multiplierEasy
- 2x2 matrix multiplyEasy
- One cell of a systolic array (PE)Easy
- 2x2 systolic arrayMedium
- Four lanes, one instruction, one mask (GPU style)Easy