A small complete program
You will learn
How the pieces of this course make one spec that becomes a circuit.
The lesson spec has a module line, a width constant, test values and on_comb, a function of two u8 inputs. gen-verilog turns it into a module whose ports are a clock, a reset and an enable, the two 8-bit inputs a and b, a ready output and the 8-bit output result. An assign line sets result from on_comb, so the sum itself waits for no clock edge. The tests check the example sums as constants; the site runner does not call on_comb, so the check of the circuit itself is left to a simulator.