--A1L4 is D~1 at LC1
A1L4_p2_out = X & !Y;
A1L4_p3_out = !X & Y;
A1L4_or_out = A1L4_p2_out # A1L4_p3_out;
A1L4 = BIN $ A1L4_or_out;


--A1L11 is add~48 at LC2
A1L11_p1_out = !X & Y;
A1L11_p2_out = !X & BIN;
A1L11_p3_out = Y & BIN;
A1L11_or_out = A1L11_p1_out # A1L11_p2_out # A1L11_p3_out;
A1L11 = A1L11_or_out;


--X is X at PIN_24
--operation mode is input

X = INPUT();


--Y is Y at PIN_21
--operation mode is input

Y = INPUT();


--BIN is BIN at PIN_25
--operation mode is input

BIN = INPUT();


--D is D at PIN_4
--operation mode is output

D = OUTPUT(A1L4);


--BOUT is BOUT at PIN_5
--operation mode is output

BOUT = OUTPUT(A1L11);






