Codiode
All tracks
RTL · Intermediate

Synthesis Intuition

Understand exactly what hardware your RTL produces. Use Yosys and NetlistViewer to verify gate structures interactively.

What you will learn

Unique to this platform: Yosys makes synthesis visible and interactive. This track covers:

  • What hardware does this RTL infer? Verify with NetlistViewer
  • Write RTL that synthesizes to a specific gate structure shown in the netlist
  • Minimize cell count: same function, fewer cells (graded by Yosys stat)
  • Identify whether an always block infers a latch, FF or combinational logic
  • Why a missing else causes a latch: Yosys flags it automatically
  • Registered vs. unregistered output: spot the difference in netlist
25 problems in 6 sections
25 problems in 6 sections
Section 1

The Latch Trap and Combinational Inference

5
01The Incomplete Case LatchRTL10 GE02The Default Assignment TrickRTL10 GE03Ternary Operator SafetyRTL15 GE04The Variable Loop BoundRTL15 GE05Transparent Latch using always_latchRTL15 GE
Section 2

Priority vs Parallel Logic

2
06If Else Priority EncoderRTL10 GE07Inout Port MechanicsRTL15 GE
Section 3

Arithmetic and Resource Sharing

5
08Parameterized Sign Extension UnitRTL15 GE09Four Stage Pipelined MultiplierRTL25 GE10ROM Inference via CaseRTL15 GE11Power of Two AlignmentRTL15 GE12Bidirectional Arithmetic Shift RegisterRTL25 GE
Section 4

Sequential Inference and Flip Flops

5
13Tapped Delay LineRTL25 GE14Up Down Counter with Dynamic StepRTL15 GE15Debug: Blocking Assignment Race ConditionRTL15 GE16Registered vs Combinational OutputRTL10 GE17T Flip-Flop from a D Flip-FlopRTL10 GE
Section 5

State Encoding and FSM Hardware

5
18The Implicit State MachineRTL15 GE19Safe FSM Default RecoveryRTL15 GE20State Machine FactoringRTL25 GE21Binary to Gray Code DatapathRTL10 GE22Find First One Priority EncoderRTL25 GE
Section 6

Structural Forcing and Netlist Matching

3
23Forcing a Ripple Carry AdderRTL15 GE244-bit Carry Lookahead UnitRTL25 GE252-to-1 MultiplexerRTL5 GE