futilehdl/doc/examples/counter.fut

6 lines
76 B
Plaintext

proc counter() -> Logic<8> {
reg count = 8'0;
count = count + 1;
count
}