--A1L9Q is QA~reg0 at LC1
A1L9Q_p1_out = RIN & CLR & S0 & !S1;
A1L9Q_p2_out = CLR & S0 & S1 & A;
A1L9Q_p3_out = CLR & !S0 & !S1 & A1L9Q;
A1L9Q_p4_out = CLR & !S0 & S1 & A1L11Q;
A1L9Q_or_out = A1L9Q_p1_out # A1L9Q_p2_out # A1L9Q_p3_out # A1L9Q_p4_out;
A1L9Q_reg_input = A1L9Q_or_out;
A1L9Q = DFFE(A1L9Q_reg_input, GLOBAL(CLK), , , );


--A1L11Q is QB~reg0 at LC2
A1L11Q_p1_out = A1L31Q & CLR & S1 & !S0;
A1L11Q_p2_out = CLR & S1 & S0 & B;
A1L11Q_p3_out = CLR & !S1 & !S0 & A1L11Q;
A1L11Q_p4_out = CLR & !S1 & S0 & A1L9Q;
A1L11Q_or_out = A1L11Q_p1_out # A1L11Q_p2_out # A1L11Q_p3_out # A1L11Q_p4_out;
A1L11Q_reg_input = A1L11Q_or_out;
A1L11Q = DFFE(A1L11Q_reg_input, GLOBAL(CLK), , , );


--A1L31Q is QC~reg0 at LC3
A1L31Q_p1_out = A1L11Q & CLR & S0 & !S1;
A1L31Q_p2_out = CLR & S0 & S1 & C;
A1L31Q_p3_out = CLR & !S0 & !S1 & A1L31Q;
A1L31Q_p4_out = CLR & !S0 & S1 & A1L51Q;
A1L31Q_or_out = A1L31Q_p1_out # A1L31Q_p2_out # A1L31Q_p3_out # A1L31Q_p4_out;
A1L31Q_reg_input = A1L31Q_or_out;
A1L31Q = DFFE(A1L31Q_reg_input, GLOBAL(CLK), , , );


--A1L51Q is QD~reg0 at LC5
A1L51Q_p1_out = LIN & S1 & !S0 & CLR;
A1L51Q_p2_out = S1 & S0 & CLR & D;
A1L51Q_p3_out = !S1 & !S0 & CLR & A1L51Q;
A1L51Q_p4_out = !S1 & S0 & CLR & A1L31Q;
A1L51Q_or_out = A1L51Q_p1_out # A1L51Q_p2_out # A1L51Q_p3_out # A1L51Q_p4_out;
A1L51Q_reg_input = A1L51Q_or_out;
A1L51Q = DFFE(A1L51Q_reg_input, GLOBAL(CLK), , , );


--CLK is CLK at PIN_43
--operation mode is input

CLK = INPUT();


--CLR is CLR at PIN_11
--operation mode is input

CLR = INPUT();


--S1 is S1 at PIN_12
--operation mode is input

S1 = INPUT();


--S0 is S0 at PIN_16
--operation mode is input

S0 = INPUT();


--LIN is LIN at PIN_28
--operation mode is input

LIN = INPUT();


--RIN is RIN at PIN_18
--operation mode is input

RIN = INPUT();


--D is D at PIN_25
--operation mode is input

D = INPUT();


--C is C at PIN_20
--operation mode is input

C = INPUT();


--B is B at PIN_21
--operation mode is input

B = INPUT();


--A is A at PIN_24
--operation mode is input

A = INPUT();


--QA is QA at PIN_4
--operation mode is output

QA = OUTPUT(A1L9Q);


--QB is QB at PIN_5
--operation mode is output

QB = OUTPUT(A1L11Q);


--QC is QC at PIN_6
--operation mode is output

QC = OUTPUT(A1L31Q);


--QD is QD at PIN_8
--operation mode is output

QD = OUTPUT(A1L51Q);






