Add it up on every clock
You will learn
What on_clock adds to the dot product, and why this spec's tests never reach the register.
stream_ternary_mac.t27 keeps the same dot27 and adds a register, acc, and on_clock, which adds dot27(a, b) to acc. on_clock is clocked: it runs once per clock edge, and acc holds its value between edges. In the generated Verilog, rst_n low clears acc and acc changes only while en is high; the spec itself has no en. The native t27c runs all 4 tests, all pass, none vacuous; the browser skips them for want of assert_eq. All 4 call dot27 and none drives on_clock, so the test-waves widget, not a test, checks the accumulate line. The recording narrows the mask for a on line 26 from 3 to 1, so a P in a reads as N, and exactly one test fails, dot_all_p_x_all_p. Every byte in the recording was printed by the command; only the typing is staged.