]> Witch of Git - nan-gate/blob - dff_nan.pmg
Fix errors in the synth_nan help message
[nan-gate] / dff_nan.pmg
1 match dff
2 // @TODO: Support more DFF types
3 select dff->type == $_DFF_P_
4 endmatch
5
6 match input
7 select input->type == \fp3_to_bit
8 index <SigSpec> port(input, \Y) === port(dff, \D)
9 optional
10 endmatch
11
12 match output
13 select output->type == \bit_to_fp3
14 index <SigSpec> port(output, \A) === port(dff, \Q)
15 optional
16 endmatch
17
18 if (!input and !output)
19 reject;