Forum Discussion
Altera_Forum
Honored Contributor
11 years agoGetting a comparator out of an ALM in arithmetic mode
So I am trying to get an adder/subtractor/comparator out of an ALM. According to the documentation I've seen, the ALM has a 4-input and 3-input LUT available before each full adder. There are two of ...
Altera_Forum
Honored Contributor
11 years agoJust for reference, here are the control line settings:
a+b: r_nota=0, r_notb=0, r_cin=0, r_eq=0 a-b: r_nota=0, r_notb=1, r_cin=1, r_eq=0 b-a: r_nota=1, r_notb=0, r_cin=1, r_eq=0 a=b: r_nota=1, r_notb=0, r_cin=1, r_eq=1 a!=b: r_nota=0, r_notb=1, r_cin=0, r_eq=1 a>b: r_nota=0, r_notb=1, r_cin=0, r_eq=0 a>=b: r_nota=0, r_notb=1, r_cin=1, r_eq=0 a<b: r_nota=1, r_notb=0, r_cin=0, r_eq=0 a<=b: r_nota=1, r_notb=0, r_cin=1, r_eq=0