Appendix B: GPIO Control
•
89
You can manipulate your inputs using simple or complex Boolean expressions. The following expressions are both
valid:
Q0 = I6
Q6 = !(I4 & I6) & ((I2 ^ I5) | I1)
Correct Lookup Table Syntax
Syntax
Valid Construction
Sample Line
Line
Output = Expression EOL
(end of line)
Output
Q0, Q1, Q2, ..., Q16, Q17
Input
I0, I1, I2, ..., I6, I7
Expression
Input
Not Input
Boolean constant
Q1=I5
Q1=!I5
Q1=FALSE
Combined Expression
Expression Boolean operator
Expression
Q1=I5 & I3
Q16 = I8 | I6
Boolean Operators
& (and)
| (or)
^ (xor)
Q14 = I4 & I6
Q15 = I3 | I5
Q9 = I1 ^ I8
Not
!
Q0=!I0
Q10= !(I8 & I5)
Delimiter
()
Q0 = !(I0)
Q3 = !(I1 | (I7 ^ I5))
Q6 = (I3 | I5) ^ (I1 & I2)
Boolean Constants
1, true, TRUE
0, false, FALSE
Q0 = 1
Q3 = TRUE Q6 = I3 ^ true
EOL
\r
(used only for SDK, not