]> Witch of Git - nan-gate/blob - dff_nan.pmg
Change install directory
[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->attributes.count(\nan_f2b)
8 index <SigSpec> port(input, \Y) === port(dff, \D)
9 optional
10 endmatch
11
12 match output
13 select output->attributes.count(\nan_b2f)
14 index <SigSpec> port(output, \A) === port(dff, \Q)
15 optional
16 endmatch
17
18 if (!input and !output)
19 reject;