t27.aiРусский

From a spec to Verilog

You will learn

How a t27 function becomes logic, and how a clocked function becomes registers.

Verilog is the text a synthesizer reads to build a circuit. t27c writes it from the spec. A function named on_clock becomes an always block on the clock edge, and every module var becomes a register with a reset. Open clocked_counter.t27 in the player: an 8-bit counter in a few lines, and the Verilog it turns into. Its header records what yosys built from it.

Try it

Open clocked_counter.t27 in the player and find the always block in its Verilog tab.

Open the interactive lesson →

hello_world.t27 to Verilog, in a terminal inside the post
hello_world.t27 to Verilog, in a terminal inside the post ↗

Open the lesson's spec in the player: specs/ternary/clocked_counter.t27

All lessons