]> Witch of Git - nan-gate/blob - erase_b2f.pmg
Do NaN synthesis pattern matching via attributes
[nan-gate] / erase_b2f.pmg
1 match base
2 select base->attributes.count(\nan_f2b)
3 endmatch
4
5 match target
6 select target->attributes.count(\nan_b2f)
7 index <SigSpec> port(target, \A) === port(base, \Y)
8 index <Const> target->attributes[\nan_b2f] === base->attributes[\nan_f2b]
9 endmatch