Programmable 3-valued gates
k is a number of neighbours (2 or 3)
+ is a number of excited neighbours
A0: + { k/2, k/2 }
A1: + =  k/2
A2: + = k/2