diff options
Diffstat (limited to 'test/passes/jacktest/Counter.fir')
| -rw-r--r-- | test/passes/jacktest/Counter.fir | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/passes/jacktest/Counter.fir b/test/passes/jacktest/Counter.fir index 48af58b8..65efb47f 100644 --- a/test/passes/jacktest/Counter.fir +++ b/test/passes/jacktest/Counter.fir @@ -3,13 +3,15 @@ circuit Counter : module Counter : input inc : UInt<1> + input clk : Clock + input reset : UInt<1> output tot : UInt<8> input amt : UInt<4> - reg T_13 : UInt<8> - on-reset T_13 := UInt<8>(0) + reg T_13 : UInt<8>,clk,reset + onreset T_13 := UInt<8>(0) when inc : - node T_14 = add-wrap(T_13, amt) + node T_14 = addw(T_13, amt) node T_15 = gt(T_14, UInt<8>(255)) node T_16 = mux(T_15, UInt<1>(0), T_14) T_13 := T_16 |
