t27.aiРусский

State machines

You will learn

How a synthesizer finds a state machine in your design, or refuses to.

Many designs are state machines: a register that holds the current state and logic that picks the next one. yosys looks for them and, when it finds one, can re-encode it. When it refuses, it says why. The widget draws the graph yosys extracted from real designs, a UART receiver and a SPI flash master, and shows a case it refused.

Try it

Open the uart_rx sample and count its states and transitions.

Open the interactive lesson →

FSM sketch: the state machine yosys found in your RTL
FSM sketch: the state machine yosys found in your RTL ↗

All lessons