Jan Klhůfek 56c86c13ca
New multipliers (#13)
* #10 CGP Circuits as inputs (#11)

* CGP Circuits as inputs

* #10 support of signed output in general circuit

* input as output works

* output connected to input (c)

* automated verilog testing

* output rename

* Implemented CSA and Wallace tree multiplier composing of CSAs. Also did some code cleanup.

* Typos fix and code cleanup.

* Added new (approximate) multiplier architectures and did some minor changes regarding sign extension for c output formats.

* Updated automated testing scripts.

* Small bugfix in python code generation (I initially thought this line is useless).

* Updated generated circuits folder.

Co-authored-by: Vojta Mrazek <mrazek@fit.vutbr.cz>
2022-04-17 16:00:00 +02:00

1114 lines
81 KiB
C

#include <stdio.h>
#include <stdint.h>
uint8_t and_gate(uint8_t a, uint8_t b){
return ((a >> 0) & 0x01) & ((b >> 0) & 0x01);
}
uint8_t nand_gate(uint8_t a, uint8_t b){
return ~(((a >> 0) & 0x01) & ((b >> 0) & 0x01)) & 0x01;
}
uint8_t xor_gate(uint8_t a, uint8_t b){
return ((a >> 0) & 0x01) ^ ((b >> 0) & 0x01);
}
uint8_t or_gate(uint8_t a, uint8_t b){
return ((a >> 0) & 0x01) | ((b >> 0) & 0x01);
}
uint8_t not_gate(uint8_t a){
return ~(((a >> 0) & 0x01)) & 0x01;
}
uint8_t fa(uint8_t a, uint8_t b, uint8_t cin){
uint8_t fa_out = 0;
uint8_t fa_xor0 = 0;
uint8_t fa_and0 = 0;
uint8_t fa_xor1 = 0;
uint8_t fa_and1 = 0;
uint8_t fa_or0 = 0;
fa_xor0 = xor_gate(((a >> 0) & 0x01), ((b >> 0) & 0x01));
fa_and0 = and_gate(((a >> 0) & 0x01), ((b >> 0) & 0x01));
fa_xor1 = xor_gate(((fa_xor0 >> 0) & 0x01), ((cin >> 0) & 0x01));
fa_and1 = and_gate(((fa_xor0 >> 0) & 0x01), ((cin >> 0) & 0x01));
fa_or0 = or_gate(((fa_and0 >> 0) & 0x01), ((fa_and1 >> 0) & 0x01));
fa_out |= ((fa_xor1 >> 0) & 0x01ull) << 0;
fa_out |= ((fa_or0 >> 0) & 0x01ull) << 1;
return fa_out;
}
uint8_t ha(uint8_t a, uint8_t b){
uint8_t ha_out = 0;
uint8_t ha_xor0 = 0;
uint8_t ha_and0 = 0;
ha_xor0 = xor_gate(((a >> 0) & 0x01), ((b >> 0) & 0x01));
ha_and0 = and_gate(((a >> 0) & 0x01), ((b >> 0) & 0x01));
ha_out |= ((ha_xor0 >> 0) & 0x01ull) << 0;
ha_out |= ((ha_and0 >> 0) & 0x01ull) << 1;
return ha_out;
}
uint64_t csa_component10(uint64_t a, uint64_t b, uint64_t c){
uint64_t csa_component10_out = 0;
uint8_t csa_component10_fa0_xor1 = 0;
uint8_t csa_component10_fa0_or0 = 0;
uint8_t csa_component10_fa1_xor1 = 0;
uint8_t csa_component10_fa1_or0 = 0;
uint8_t csa_component10_fa2_xor1 = 0;
uint8_t csa_component10_fa2_or0 = 0;
uint8_t csa_component10_fa3_xor1 = 0;
uint8_t csa_component10_fa3_or0 = 0;
uint8_t csa_component10_fa4_xor1 = 0;
uint8_t csa_component10_fa4_or0 = 0;
uint8_t csa_component10_fa5_xor1 = 0;
uint8_t csa_component10_fa5_or0 = 0;
uint8_t csa_component10_fa6_xor1 = 0;
uint8_t csa_component10_fa6_or0 = 0;
uint8_t csa_component10_fa7_xor1 = 0;
uint8_t csa_component10_fa7_or0 = 0;
uint8_t csa_component10_fa8_xor1 = 0;
uint8_t csa_component10_fa8_or0 = 0;
uint8_t csa_component10_fa9_xor1 = 0;
uint8_t csa_component10_fa9_or0 = 0;
csa_component10_fa0_xor1 = (fa(((a >> 0) & 0x01), ((b >> 0) & 0x01), ((c >> 0) & 0x01)) >> 0) & 0x01;
csa_component10_fa0_or0 = (fa(((a >> 0) & 0x01), ((b >> 0) & 0x01), ((c >> 0) & 0x01)) >> 1) & 0x01;
csa_component10_fa1_xor1 = (fa(((a >> 1) & 0x01), ((b >> 1) & 0x01), ((c >> 1) & 0x01)) >> 0) & 0x01;
csa_component10_fa1_or0 = (fa(((a >> 1) & 0x01), ((b >> 1) & 0x01), ((c >> 1) & 0x01)) >> 1) & 0x01;
csa_component10_fa2_xor1 = (fa(((a >> 2) & 0x01), ((b >> 2) & 0x01), ((c >> 2) & 0x01)) >> 0) & 0x01;
csa_component10_fa2_or0 = (fa(((a >> 2) & 0x01), ((b >> 2) & 0x01), ((c >> 2) & 0x01)) >> 1) & 0x01;
csa_component10_fa3_xor1 = (fa(((a >> 3) & 0x01), ((b >> 3) & 0x01), ((c >> 3) & 0x01)) >> 0) & 0x01;
csa_component10_fa3_or0 = (fa(((a >> 3) & 0x01), ((b >> 3) & 0x01), ((c >> 3) & 0x01)) >> 1) & 0x01;
csa_component10_fa4_xor1 = (fa(((a >> 4) & 0x01), ((b >> 4) & 0x01), ((c >> 4) & 0x01)) >> 0) & 0x01;
csa_component10_fa4_or0 = (fa(((a >> 4) & 0x01), ((b >> 4) & 0x01), ((c >> 4) & 0x01)) >> 1) & 0x01;
csa_component10_fa5_xor1 = (fa(((a >> 5) & 0x01), ((b >> 5) & 0x01), ((c >> 5) & 0x01)) >> 0) & 0x01;
csa_component10_fa5_or0 = (fa(((a >> 5) & 0x01), ((b >> 5) & 0x01), ((c >> 5) & 0x01)) >> 1) & 0x01;
csa_component10_fa6_xor1 = (fa(((a >> 6) & 0x01), ((b >> 6) & 0x01), ((c >> 6) & 0x01)) >> 0) & 0x01;
csa_component10_fa6_or0 = (fa(((a >> 6) & 0x01), ((b >> 6) & 0x01), ((c >> 6) & 0x01)) >> 1) & 0x01;
csa_component10_fa7_xor1 = (fa(((a >> 7) & 0x01), ((b >> 7) & 0x01), ((c >> 7) & 0x01)) >> 0) & 0x01;
csa_component10_fa7_or0 = (fa(((a >> 7) & 0x01), ((b >> 7) & 0x01), ((c >> 7) & 0x01)) >> 1) & 0x01;
csa_component10_fa8_xor1 = (fa(((a >> 8) & 0x01), ((b >> 8) & 0x01), ((c >> 8) & 0x01)) >> 0) & 0x01;
csa_component10_fa8_or0 = (fa(((a >> 8) & 0x01), ((b >> 8) & 0x01), ((c >> 8) & 0x01)) >> 1) & 0x01;
csa_component10_fa9_xor1 = (fa(((a >> 9) & 0x01), ((b >> 9) & 0x01), ((c >> 9) & 0x01)) >> 0) & 0x01;
csa_component10_fa9_or0 = (fa(((a >> 9) & 0x01), ((b >> 9) & 0x01), ((c >> 9) & 0x01)) >> 1) & 0x01;
csa_component10_out |= ((csa_component10_fa0_xor1 >> 0) & 0x01ull) << 0;
csa_component10_out |= ((csa_component10_fa1_xor1 >> 0) & 0x01ull) << 1;
csa_component10_out |= ((csa_component10_fa2_xor1 >> 0) & 0x01ull) << 2;
csa_component10_out |= ((csa_component10_fa3_xor1 >> 0) & 0x01ull) << 3;
csa_component10_out |= ((csa_component10_fa4_xor1 >> 0) & 0x01ull) << 4;
csa_component10_out |= ((csa_component10_fa5_xor1 >> 0) & 0x01ull) << 5;
csa_component10_out |= ((csa_component10_fa6_xor1 >> 0) & 0x01ull) << 6;
csa_component10_out |= ((csa_component10_fa7_xor1 >> 0) & 0x01ull) << 7;
csa_component10_out |= ((csa_component10_fa8_xor1 >> 0) & 0x01ull) << 8;
csa_component10_out |= ((csa_component10_fa9_xor1 >> 0) & 0x01ull) << 9;
csa_component10_out |= (0x00) << 10;
csa_component10_out |= (0x00) << 11;
csa_component10_out |= ((csa_component10_fa0_or0 >> 0) & 0x01ull) << 12;
csa_component10_out |= ((csa_component10_fa1_or0 >> 0) & 0x01ull) << 13;
csa_component10_out |= ((csa_component10_fa2_or0 >> 0) & 0x01ull) << 14;
csa_component10_out |= ((csa_component10_fa3_or0 >> 0) & 0x01ull) << 15;
csa_component10_out |= ((csa_component10_fa4_or0 >> 0) & 0x01ull) << 16;
csa_component10_out |= ((csa_component10_fa5_or0 >> 0) & 0x01ull) << 17;
csa_component10_out |= ((csa_component10_fa6_or0 >> 0) & 0x01ull) << 18;
csa_component10_out |= ((csa_component10_fa7_or0 >> 0) & 0x01ull) << 19;
csa_component10_out |= ((csa_component10_fa8_or0 >> 0) & 0x01ull) << 20;
csa_component10_out |= ((csa_component10_fa9_or0 >> 0) & 0x01ull) << 21;
return csa_component10_out;
}
uint64_t csa_component13(uint64_t a, uint64_t b, uint64_t c){
uint64_t csa_component13_out = 0;
uint8_t csa_component13_fa0_xor1 = 0;
uint8_t csa_component13_fa0_or0 = 0;
uint8_t csa_component13_fa1_xor1 = 0;
uint8_t csa_component13_fa1_or0 = 0;
uint8_t csa_component13_fa2_xor1 = 0;
uint8_t csa_component13_fa2_or0 = 0;
uint8_t csa_component13_fa3_xor1 = 0;
uint8_t csa_component13_fa3_or0 = 0;
uint8_t csa_component13_fa4_xor1 = 0;
uint8_t csa_component13_fa4_or0 = 0;
uint8_t csa_component13_fa5_xor1 = 0;
uint8_t csa_component13_fa5_or0 = 0;
uint8_t csa_component13_fa6_xor1 = 0;
uint8_t csa_component13_fa6_or0 = 0;
uint8_t csa_component13_fa7_xor1 = 0;
uint8_t csa_component13_fa7_or0 = 0;
uint8_t csa_component13_fa8_xor1 = 0;
uint8_t csa_component13_fa8_or0 = 0;
uint8_t csa_component13_fa9_xor1 = 0;
uint8_t csa_component13_fa9_or0 = 0;
uint8_t csa_component13_fa10_xor1 = 0;
uint8_t csa_component13_fa10_or0 = 0;
uint8_t csa_component13_fa11_xor1 = 0;
uint8_t csa_component13_fa11_or0 = 0;
uint8_t csa_component13_fa12_xor1 = 0;
uint8_t csa_component13_fa12_or0 = 0;
csa_component13_fa0_xor1 = (fa(((a >> 0) & 0x01), ((b >> 0) & 0x01), ((c >> 0) & 0x01)) >> 0) & 0x01;
csa_component13_fa0_or0 = (fa(((a >> 0) & 0x01), ((b >> 0) & 0x01), ((c >> 0) & 0x01)) >> 1) & 0x01;
csa_component13_fa1_xor1 = (fa(((a >> 1) & 0x01), ((b >> 1) & 0x01), ((c >> 1) & 0x01)) >> 0) & 0x01;
csa_component13_fa1_or0 = (fa(((a >> 1) & 0x01), ((b >> 1) & 0x01), ((c >> 1) & 0x01)) >> 1) & 0x01;
csa_component13_fa2_xor1 = (fa(((a >> 2) & 0x01), ((b >> 2) & 0x01), ((c >> 2) & 0x01)) >> 0) & 0x01;
csa_component13_fa2_or0 = (fa(((a >> 2) & 0x01), ((b >> 2) & 0x01), ((c >> 2) & 0x01)) >> 1) & 0x01;
csa_component13_fa3_xor1 = (fa(((a >> 3) & 0x01), ((b >> 3) & 0x01), ((c >> 3) & 0x01)) >> 0) & 0x01;
csa_component13_fa3_or0 = (fa(((a >> 3) & 0x01), ((b >> 3) & 0x01), ((c >> 3) & 0x01)) >> 1) & 0x01;
csa_component13_fa4_xor1 = (fa(((a >> 4) & 0x01), ((b >> 4) & 0x01), ((c >> 4) & 0x01)) >> 0) & 0x01;
csa_component13_fa4_or0 = (fa(((a >> 4) & 0x01), ((b >> 4) & 0x01), ((c >> 4) & 0x01)) >> 1) & 0x01;
csa_component13_fa5_xor1 = (fa(((a >> 5) & 0x01), ((b >> 5) & 0x01), ((c >> 5) & 0x01)) >> 0) & 0x01;
csa_component13_fa5_or0 = (fa(((a >> 5) & 0x01), ((b >> 5) & 0x01), ((c >> 5) & 0x01)) >> 1) & 0x01;
csa_component13_fa6_xor1 = (fa(((a >> 6) & 0x01), ((b >> 6) & 0x01), ((c >> 6) & 0x01)) >> 0) & 0x01;
csa_component13_fa6_or0 = (fa(((a >> 6) & 0x01), ((b >> 6) & 0x01), ((c >> 6) & 0x01)) >> 1) & 0x01;
csa_component13_fa7_xor1 = (fa(((a >> 7) & 0x01), ((b >> 7) & 0x01), ((c >> 7) & 0x01)) >> 0) & 0x01;
csa_component13_fa7_or0 = (fa(((a >> 7) & 0x01), ((b >> 7) & 0x01), ((c >> 7) & 0x01)) >> 1) & 0x01;
csa_component13_fa8_xor1 = (fa(((a >> 8) & 0x01), ((b >> 8) & 0x01), ((c >> 8) & 0x01)) >> 0) & 0x01;
csa_component13_fa8_or0 = (fa(((a >> 8) & 0x01), ((b >> 8) & 0x01), ((c >> 8) & 0x01)) >> 1) & 0x01;
csa_component13_fa9_xor1 = (fa(((a >> 9) & 0x01), ((b >> 9) & 0x01), ((c >> 9) & 0x01)) >> 0) & 0x01;
csa_component13_fa9_or0 = (fa(((a >> 9) & 0x01), ((b >> 9) & 0x01), ((c >> 9) & 0x01)) >> 1) & 0x01;
csa_component13_fa10_xor1 = (fa(((a >> 10) & 0x01), ((b >> 10) & 0x01), ((c >> 10) & 0x01)) >> 0) & 0x01;
csa_component13_fa10_or0 = (fa(((a >> 10) & 0x01), ((b >> 10) & 0x01), ((c >> 10) & 0x01)) >> 1) & 0x01;
csa_component13_fa11_xor1 = (fa(((a >> 11) & 0x01), ((b >> 11) & 0x01), ((c >> 11) & 0x01)) >> 0) & 0x01;
csa_component13_fa11_or0 = (fa(((a >> 11) & 0x01), ((b >> 11) & 0x01), ((c >> 11) & 0x01)) >> 1) & 0x01;
csa_component13_fa12_xor1 = (fa(((a >> 12) & 0x01), ((b >> 12) & 0x01), ((c >> 12) & 0x01)) >> 0) & 0x01;
csa_component13_fa12_or0 = (fa(((a >> 12) & 0x01), ((b >> 12) & 0x01), ((c >> 12) & 0x01)) >> 1) & 0x01;
csa_component13_out |= ((csa_component13_fa0_xor1 >> 0) & 0x01ull) << 0;
csa_component13_out |= ((csa_component13_fa1_xor1 >> 0) & 0x01ull) << 1;
csa_component13_out |= ((csa_component13_fa2_xor1 >> 0) & 0x01ull) << 2;
csa_component13_out |= ((csa_component13_fa3_xor1 >> 0) & 0x01ull) << 3;
csa_component13_out |= ((csa_component13_fa4_xor1 >> 0) & 0x01ull) << 4;
csa_component13_out |= ((csa_component13_fa5_xor1 >> 0) & 0x01ull) << 5;
csa_component13_out |= ((csa_component13_fa6_xor1 >> 0) & 0x01ull) << 6;
csa_component13_out |= ((csa_component13_fa7_xor1 >> 0) & 0x01ull) << 7;
csa_component13_out |= ((csa_component13_fa8_xor1 >> 0) & 0x01ull) << 8;
csa_component13_out |= ((csa_component13_fa9_xor1 >> 0) & 0x01ull) << 9;
csa_component13_out |= ((csa_component13_fa10_xor1 >> 0) & 0x01ull) << 10;
csa_component13_out |= ((csa_component13_fa11_xor1 >> 0) & 0x01ull) << 11;
csa_component13_out |= ((csa_component13_fa12_xor1 >> 0) & 0x01ull) << 12;
csa_component13_out |= (0x00) << 13;
csa_component13_out |= (0x00) << 14;
csa_component13_out |= ((csa_component13_fa0_or0 >> 0) & 0x01ull) << 15;
csa_component13_out |= ((csa_component13_fa1_or0 >> 0) & 0x01ull) << 16;
csa_component13_out |= ((csa_component13_fa2_or0 >> 0) & 0x01ull) << 17;
csa_component13_out |= ((csa_component13_fa3_or0 >> 0) & 0x01ull) << 18;
csa_component13_out |= ((csa_component13_fa4_or0 >> 0) & 0x01ull) << 19;
csa_component13_out |= ((csa_component13_fa5_or0 >> 0) & 0x01ull) << 20;
csa_component13_out |= ((csa_component13_fa6_or0 >> 0) & 0x01ull) << 21;
csa_component13_out |= ((csa_component13_fa7_or0 >> 0) & 0x01ull) << 22;
csa_component13_out |= ((csa_component13_fa8_or0 >> 0) & 0x01ull) << 23;
csa_component13_out |= ((csa_component13_fa9_or0 >> 0) & 0x01ull) << 24;
csa_component13_out |= ((csa_component13_fa10_or0 >> 0) & 0x01ull) << 25;
csa_component13_out |= ((csa_component13_fa11_or0 >> 0) & 0x01ull) << 26;
csa_component13_out |= ((csa_component13_fa12_or0 >> 0) & 0x01ull) << 27;
return csa_component13_out;
}
uint64_t csa_component14(uint64_t a, uint64_t b, uint64_t c){
uint64_t csa_component14_out = 0;
uint8_t csa_component14_fa0_xor1 = 0;
uint8_t csa_component14_fa0_or0 = 0;
uint8_t csa_component14_fa1_xor1 = 0;
uint8_t csa_component14_fa1_or0 = 0;
uint8_t csa_component14_fa2_xor1 = 0;
uint8_t csa_component14_fa2_or0 = 0;
uint8_t csa_component14_fa3_xor1 = 0;
uint8_t csa_component14_fa3_or0 = 0;
uint8_t csa_component14_fa4_xor1 = 0;
uint8_t csa_component14_fa4_or0 = 0;
uint8_t csa_component14_fa5_xor1 = 0;
uint8_t csa_component14_fa5_or0 = 0;
uint8_t csa_component14_fa6_xor1 = 0;
uint8_t csa_component14_fa6_or0 = 0;
uint8_t csa_component14_fa7_xor1 = 0;
uint8_t csa_component14_fa7_or0 = 0;
uint8_t csa_component14_fa8_xor1 = 0;
uint8_t csa_component14_fa8_or0 = 0;
uint8_t csa_component14_fa9_xor1 = 0;
uint8_t csa_component14_fa9_or0 = 0;
uint8_t csa_component14_fa10_xor1 = 0;
uint8_t csa_component14_fa10_or0 = 0;
uint8_t csa_component14_fa11_xor1 = 0;
uint8_t csa_component14_fa11_or0 = 0;
uint8_t csa_component14_fa12_xor1 = 0;
uint8_t csa_component14_fa12_or0 = 0;
uint8_t csa_component14_fa13_xor1 = 0;
uint8_t csa_component14_fa13_or0 = 0;
csa_component14_fa0_xor1 = (fa(((a >> 0) & 0x01), ((b >> 0) & 0x01), ((c >> 0) & 0x01)) >> 0) & 0x01;
csa_component14_fa0_or0 = (fa(((a >> 0) & 0x01), ((b >> 0) & 0x01), ((c >> 0) & 0x01)) >> 1) & 0x01;
csa_component14_fa1_xor1 = (fa(((a >> 1) & 0x01), ((b >> 1) & 0x01), ((c >> 1) & 0x01)) >> 0) & 0x01;
csa_component14_fa1_or0 = (fa(((a >> 1) & 0x01), ((b >> 1) & 0x01), ((c >> 1) & 0x01)) >> 1) & 0x01;
csa_component14_fa2_xor1 = (fa(((a >> 2) & 0x01), ((b >> 2) & 0x01), ((c >> 2) & 0x01)) >> 0) & 0x01;
csa_component14_fa2_or0 = (fa(((a >> 2) & 0x01), ((b >> 2) & 0x01), ((c >> 2) & 0x01)) >> 1) & 0x01;
csa_component14_fa3_xor1 = (fa(((a >> 3) & 0x01), ((b >> 3) & 0x01), ((c >> 3) & 0x01)) >> 0) & 0x01;
csa_component14_fa3_or0 = (fa(((a >> 3) & 0x01), ((b >> 3) & 0x01), ((c >> 3) & 0x01)) >> 1) & 0x01;
csa_component14_fa4_xor1 = (fa(((a >> 4) & 0x01), ((b >> 4) & 0x01), ((c >> 4) & 0x01)) >> 0) & 0x01;
csa_component14_fa4_or0 = (fa(((a >> 4) & 0x01), ((b >> 4) & 0x01), ((c >> 4) & 0x01)) >> 1) & 0x01;
csa_component14_fa5_xor1 = (fa(((a >> 5) & 0x01), ((b >> 5) & 0x01), ((c >> 5) & 0x01)) >> 0) & 0x01;
csa_component14_fa5_or0 = (fa(((a >> 5) & 0x01), ((b >> 5) & 0x01), ((c >> 5) & 0x01)) >> 1) & 0x01;
csa_component14_fa6_xor1 = (fa(((a >> 6) & 0x01), ((b >> 6) & 0x01), ((c >> 6) & 0x01)) >> 0) & 0x01;
csa_component14_fa6_or0 = (fa(((a >> 6) & 0x01), ((b >> 6) & 0x01), ((c >> 6) & 0x01)) >> 1) & 0x01;
csa_component14_fa7_xor1 = (fa(((a >> 7) & 0x01), ((b >> 7) & 0x01), ((c >> 7) & 0x01)) >> 0) & 0x01;
csa_component14_fa7_or0 = (fa(((a >> 7) & 0x01), ((b >> 7) & 0x01), ((c >> 7) & 0x01)) >> 1) & 0x01;
csa_component14_fa8_xor1 = (fa(((a >> 8) & 0x01), ((b >> 8) & 0x01), ((c >> 8) & 0x01)) >> 0) & 0x01;
csa_component14_fa8_or0 = (fa(((a >> 8) & 0x01), ((b >> 8) & 0x01), ((c >> 8) & 0x01)) >> 1) & 0x01;
csa_component14_fa9_xor1 = (fa(((a >> 9) & 0x01), ((b >> 9) & 0x01), ((c >> 9) & 0x01)) >> 0) & 0x01;
csa_component14_fa9_or0 = (fa(((a >> 9) & 0x01), ((b >> 9) & 0x01), ((c >> 9) & 0x01)) >> 1) & 0x01;
csa_component14_fa10_xor1 = (fa(((a >> 10) & 0x01), ((b >> 10) & 0x01), ((c >> 10) & 0x01)) >> 0) & 0x01;
csa_component14_fa10_or0 = (fa(((a >> 10) & 0x01), ((b >> 10) & 0x01), ((c >> 10) & 0x01)) >> 1) & 0x01;
csa_component14_fa11_xor1 = (fa(((a >> 11) & 0x01), ((b >> 11) & 0x01), ((c >> 11) & 0x01)) >> 0) & 0x01;
csa_component14_fa11_or0 = (fa(((a >> 11) & 0x01), ((b >> 11) & 0x01), ((c >> 11) & 0x01)) >> 1) & 0x01;
csa_component14_fa12_xor1 = (fa(((a >> 12) & 0x01), ((b >> 12) & 0x01), ((c >> 12) & 0x01)) >> 0) & 0x01;
csa_component14_fa12_or0 = (fa(((a >> 12) & 0x01), ((b >> 12) & 0x01), ((c >> 12) & 0x01)) >> 1) & 0x01;
csa_component14_fa13_xor1 = (fa(((a >> 13) & 0x01), ((b >> 13) & 0x01), ((c >> 13) & 0x01)) >> 0) & 0x01;
csa_component14_fa13_or0 = (fa(((a >> 13) & 0x01), ((b >> 13) & 0x01), ((c >> 13) & 0x01)) >> 1) & 0x01;
csa_component14_out |= ((csa_component14_fa0_xor1 >> 0) & 0x01ull) << 0;
csa_component14_out |= ((csa_component14_fa1_xor1 >> 0) & 0x01ull) << 1;
csa_component14_out |= ((csa_component14_fa2_xor1 >> 0) & 0x01ull) << 2;
csa_component14_out |= ((csa_component14_fa3_xor1 >> 0) & 0x01ull) << 3;
csa_component14_out |= ((csa_component14_fa4_xor1 >> 0) & 0x01ull) << 4;
csa_component14_out |= ((csa_component14_fa5_xor1 >> 0) & 0x01ull) << 5;
csa_component14_out |= ((csa_component14_fa6_xor1 >> 0) & 0x01ull) << 6;
csa_component14_out |= ((csa_component14_fa7_xor1 >> 0) & 0x01ull) << 7;
csa_component14_out |= ((csa_component14_fa8_xor1 >> 0) & 0x01ull) << 8;
csa_component14_out |= ((csa_component14_fa9_xor1 >> 0) & 0x01ull) << 9;
csa_component14_out |= ((csa_component14_fa10_xor1 >> 0) & 0x01ull) << 10;
csa_component14_out |= ((csa_component14_fa11_xor1 >> 0) & 0x01ull) << 11;
csa_component14_out |= ((csa_component14_fa12_xor1 >> 0) & 0x01ull) << 12;
csa_component14_out |= ((csa_component14_fa13_xor1 >> 0) & 0x01ull) << 13;
csa_component14_out |= (0x00) << 14;
csa_component14_out |= (0x00) << 15;
csa_component14_out |= ((csa_component14_fa0_or0 >> 0) & 0x01ull) << 16;
csa_component14_out |= ((csa_component14_fa1_or0 >> 0) & 0x01ull) << 17;
csa_component14_out |= ((csa_component14_fa2_or0 >> 0) & 0x01ull) << 18;
csa_component14_out |= ((csa_component14_fa3_or0 >> 0) & 0x01ull) << 19;
csa_component14_out |= ((csa_component14_fa4_or0 >> 0) & 0x01ull) << 20;
csa_component14_out |= ((csa_component14_fa5_or0 >> 0) & 0x01ull) << 21;
csa_component14_out |= ((csa_component14_fa6_or0 >> 0) & 0x01ull) << 22;
csa_component14_out |= ((csa_component14_fa7_or0 >> 0) & 0x01ull) << 23;
csa_component14_out |= ((csa_component14_fa8_or0 >> 0) & 0x01ull) << 24;
csa_component14_out |= ((csa_component14_fa9_or0 >> 0) & 0x01ull) << 25;
csa_component14_out |= ((csa_component14_fa10_or0 >> 0) & 0x01ull) << 26;
csa_component14_out |= ((csa_component14_fa11_or0 >> 0) & 0x01ull) << 27;
csa_component14_out |= ((csa_component14_fa12_or0 >> 0) & 0x01ull) << 28;
csa_component14_out |= ((csa_component14_fa13_or0 >> 0) & 0x01ull) << 29;
return csa_component14_out;
}
uint64_t csa_component15(uint64_t a, uint64_t b, uint64_t c){
uint64_t csa_component15_out = 0;
uint8_t csa_component15_fa0_xor1 = 0;
uint8_t csa_component15_fa0_or0 = 0;
uint8_t csa_component15_fa1_xor1 = 0;
uint8_t csa_component15_fa1_or0 = 0;
uint8_t csa_component15_fa2_xor1 = 0;
uint8_t csa_component15_fa2_or0 = 0;
uint8_t csa_component15_fa3_xor1 = 0;
uint8_t csa_component15_fa3_or0 = 0;
uint8_t csa_component15_fa4_xor1 = 0;
uint8_t csa_component15_fa4_or0 = 0;
uint8_t csa_component15_fa5_xor1 = 0;
uint8_t csa_component15_fa5_or0 = 0;
uint8_t csa_component15_fa6_xor1 = 0;
uint8_t csa_component15_fa6_or0 = 0;
uint8_t csa_component15_fa7_xor1 = 0;
uint8_t csa_component15_fa7_or0 = 0;
uint8_t csa_component15_fa8_xor1 = 0;
uint8_t csa_component15_fa8_or0 = 0;
uint8_t csa_component15_fa9_xor1 = 0;
uint8_t csa_component15_fa9_or0 = 0;
uint8_t csa_component15_fa10_xor1 = 0;
uint8_t csa_component15_fa10_or0 = 0;
uint8_t csa_component15_fa11_xor1 = 0;
uint8_t csa_component15_fa11_or0 = 0;
uint8_t csa_component15_fa12_xor1 = 0;
uint8_t csa_component15_fa12_or0 = 0;
uint8_t csa_component15_fa13_xor1 = 0;
uint8_t csa_component15_fa13_or0 = 0;
uint8_t csa_component15_fa14_xor1 = 0;
uint8_t csa_component15_fa14_or0 = 0;
csa_component15_fa0_xor1 = (fa(((a >> 0) & 0x01), ((b >> 0) & 0x01), ((c >> 0) & 0x01)) >> 0) & 0x01;
csa_component15_fa0_or0 = (fa(((a >> 0) & 0x01), ((b >> 0) & 0x01), ((c >> 0) & 0x01)) >> 1) & 0x01;
csa_component15_fa1_xor1 = (fa(((a >> 1) & 0x01), ((b >> 1) & 0x01), ((c >> 1) & 0x01)) >> 0) & 0x01;
csa_component15_fa1_or0 = (fa(((a >> 1) & 0x01), ((b >> 1) & 0x01), ((c >> 1) & 0x01)) >> 1) & 0x01;
csa_component15_fa2_xor1 = (fa(((a >> 2) & 0x01), ((b >> 2) & 0x01), ((c >> 2) & 0x01)) >> 0) & 0x01;
csa_component15_fa2_or0 = (fa(((a >> 2) & 0x01), ((b >> 2) & 0x01), ((c >> 2) & 0x01)) >> 1) & 0x01;
csa_component15_fa3_xor1 = (fa(((a >> 3) & 0x01), ((b >> 3) & 0x01), ((c >> 3) & 0x01)) >> 0) & 0x01;
csa_component15_fa3_or0 = (fa(((a >> 3) & 0x01), ((b >> 3) & 0x01), ((c >> 3) & 0x01)) >> 1) & 0x01;
csa_component15_fa4_xor1 = (fa(((a >> 4) & 0x01), ((b >> 4) & 0x01), ((c >> 4) & 0x01)) >> 0) & 0x01;
csa_component15_fa4_or0 = (fa(((a >> 4) & 0x01), ((b >> 4) & 0x01), ((c >> 4) & 0x01)) >> 1) & 0x01;
csa_component15_fa5_xor1 = (fa(((a >> 5) & 0x01), ((b >> 5) & 0x01), ((c >> 5) & 0x01)) >> 0) & 0x01;
csa_component15_fa5_or0 = (fa(((a >> 5) & 0x01), ((b >> 5) & 0x01), ((c >> 5) & 0x01)) >> 1) & 0x01;
csa_component15_fa6_xor1 = (fa(((a >> 6) & 0x01), ((b >> 6) & 0x01), ((c >> 6) & 0x01)) >> 0) & 0x01;
csa_component15_fa6_or0 = (fa(((a >> 6) & 0x01), ((b >> 6) & 0x01), ((c >> 6) & 0x01)) >> 1) & 0x01;
csa_component15_fa7_xor1 = (fa(((a >> 7) & 0x01), ((b >> 7) & 0x01), ((c >> 7) & 0x01)) >> 0) & 0x01;
csa_component15_fa7_or0 = (fa(((a >> 7) & 0x01), ((b >> 7) & 0x01), ((c >> 7) & 0x01)) >> 1) & 0x01;
csa_component15_fa8_xor1 = (fa(((a >> 8) & 0x01), ((b >> 8) & 0x01), ((c >> 8) & 0x01)) >> 0) & 0x01;
csa_component15_fa8_or0 = (fa(((a >> 8) & 0x01), ((b >> 8) & 0x01), ((c >> 8) & 0x01)) >> 1) & 0x01;
csa_component15_fa9_xor1 = (fa(((a >> 9) & 0x01), ((b >> 9) & 0x01), ((c >> 9) & 0x01)) >> 0) & 0x01;
csa_component15_fa9_or0 = (fa(((a >> 9) & 0x01), ((b >> 9) & 0x01), ((c >> 9) & 0x01)) >> 1) & 0x01;
csa_component15_fa10_xor1 = (fa(((a >> 10) & 0x01), ((b >> 10) & 0x01), ((c >> 10) & 0x01)) >> 0) & 0x01;
csa_component15_fa10_or0 = (fa(((a >> 10) & 0x01), ((b >> 10) & 0x01), ((c >> 10) & 0x01)) >> 1) & 0x01;
csa_component15_fa11_xor1 = (fa(((a >> 11) & 0x01), ((b >> 11) & 0x01), ((c >> 11) & 0x01)) >> 0) & 0x01;
csa_component15_fa11_or0 = (fa(((a >> 11) & 0x01), ((b >> 11) & 0x01), ((c >> 11) & 0x01)) >> 1) & 0x01;
csa_component15_fa12_xor1 = (fa(((a >> 12) & 0x01), ((b >> 12) & 0x01), ((c >> 12) & 0x01)) >> 0) & 0x01;
csa_component15_fa12_or0 = (fa(((a >> 12) & 0x01), ((b >> 12) & 0x01), ((c >> 12) & 0x01)) >> 1) & 0x01;
csa_component15_fa13_xor1 = (fa(((a >> 13) & 0x01), ((b >> 13) & 0x01), ((c >> 13) & 0x01)) >> 0) & 0x01;
csa_component15_fa13_or0 = (fa(((a >> 13) & 0x01), ((b >> 13) & 0x01), ((c >> 13) & 0x01)) >> 1) & 0x01;
csa_component15_fa14_xor1 = (fa(((a >> 14) & 0x01), ((b >> 14) & 0x01), ((c >> 14) & 0x01)) >> 0) & 0x01;
csa_component15_fa14_or0 = (fa(((a >> 14) & 0x01), ((b >> 14) & 0x01), ((c >> 14) & 0x01)) >> 1) & 0x01;
csa_component15_out |= ((csa_component15_fa0_xor1 >> 0) & 0x01ull) << 0;
csa_component15_out |= ((csa_component15_fa1_xor1 >> 0) & 0x01ull) << 1;
csa_component15_out |= ((csa_component15_fa2_xor1 >> 0) & 0x01ull) << 2;
csa_component15_out |= ((csa_component15_fa3_xor1 >> 0) & 0x01ull) << 3;
csa_component15_out |= ((csa_component15_fa4_xor1 >> 0) & 0x01ull) << 4;
csa_component15_out |= ((csa_component15_fa5_xor1 >> 0) & 0x01ull) << 5;
csa_component15_out |= ((csa_component15_fa6_xor1 >> 0) & 0x01ull) << 6;
csa_component15_out |= ((csa_component15_fa7_xor1 >> 0) & 0x01ull) << 7;
csa_component15_out |= ((csa_component15_fa8_xor1 >> 0) & 0x01ull) << 8;
csa_component15_out |= ((csa_component15_fa9_xor1 >> 0) & 0x01ull) << 9;
csa_component15_out |= ((csa_component15_fa10_xor1 >> 0) & 0x01ull) << 10;
csa_component15_out |= ((csa_component15_fa11_xor1 >> 0) & 0x01ull) << 11;
csa_component15_out |= ((csa_component15_fa12_xor1 >> 0) & 0x01ull) << 12;
csa_component15_out |= ((csa_component15_fa13_xor1 >> 0) & 0x01ull) << 13;
csa_component15_out |= ((csa_component15_fa14_xor1 >> 0) & 0x01ull) << 14;
csa_component15_out |= (0x00) << 15;
csa_component15_out |= (0x00) << 16;
csa_component15_out |= ((csa_component15_fa0_or0 >> 0) & 0x01ull) << 17;
csa_component15_out |= ((csa_component15_fa1_or0 >> 0) & 0x01ull) << 18;
csa_component15_out |= ((csa_component15_fa2_or0 >> 0) & 0x01ull) << 19;
csa_component15_out |= ((csa_component15_fa3_or0 >> 0) & 0x01ull) << 20;
csa_component15_out |= ((csa_component15_fa4_or0 >> 0) & 0x01ull) << 21;
csa_component15_out |= ((csa_component15_fa5_or0 >> 0) & 0x01ull) << 22;
csa_component15_out |= ((csa_component15_fa6_or0 >> 0) & 0x01ull) << 23;
csa_component15_out |= ((csa_component15_fa7_or0 >> 0) & 0x01ull) << 24;
csa_component15_out |= ((csa_component15_fa8_or0 >> 0) & 0x01ull) << 25;
csa_component15_out |= ((csa_component15_fa9_or0 >> 0) & 0x01ull) << 26;
csa_component15_out |= ((csa_component15_fa10_or0 >> 0) & 0x01ull) << 27;
csa_component15_out |= ((csa_component15_fa11_or0 >> 0) & 0x01ull) << 28;
csa_component15_out |= ((csa_component15_fa12_or0 >> 0) & 0x01ull) << 29;
csa_component15_out |= ((csa_component15_fa13_or0 >> 0) & 0x01ull) << 30;
csa_component15_out |= ((csa_component15_fa14_or0 >> 0) & 0x01ull) << 31;
return csa_component15_out;
}
uint64_t csa_component16(uint64_t a, uint64_t b, uint64_t c){
uint64_t csa_component16_out = 0;
uint8_t csa_component16_fa0_xor1 = 0;
uint8_t csa_component16_fa0_or0 = 0;
uint8_t csa_component16_fa1_xor1 = 0;
uint8_t csa_component16_fa1_or0 = 0;
uint8_t csa_component16_fa2_xor1 = 0;
uint8_t csa_component16_fa2_or0 = 0;
uint8_t csa_component16_fa3_xor1 = 0;
uint8_t csa_component16_fa3_or0 = 0;
uint8_t csa_component16_fa4_xor1 = 0;
uint8_t csa_component16_fa4_or0 = 0;
uint8_t csa_component16_fa5_xor1 = 0;
uint8_t csa_component16_fa5_or0 = 0;
uint8_t csa_component16_fa6_xor1 = 0;
uint8_t csa_component16_fa6_or0 = 0;
uint8_t csa_component16_fa7_xor1 = 0;
uint8_t csa_component16_fa7_or0 = 0;
uint8_t csa_component16_fa8_xor1 = 0;
uint8_t csa_component16_fa8_or0 = 0;
uint8_t csa_component16_fa9_xor1 = 0;
uint8_t csa_component16_fa9_or0 = 0;
uint8_t csa_component16_fa10_xor1 = 0;
uint8_t csa_component16_fa10_or0 = 0;
uint8_t csa_component16_fa11_xor1 = 0;
uint8_t csa_component16_fa11_or0 = 0;
uint8_t csa_component16_fa12_xor1 = 0;
uint8_t csa_component16_fa12_or0 = 0;
uint8_t csa_component16_fa13_xor1 = 0;
uint8_t csa_component16_fa13_or0 = 0;
uint8_t csa_component16_fa14_xor1 = 0;
uint8_t csa_component16_fa14_or0 = 0;
uint8_t csa_component16_fa15_xor1 = 0;
uint8_t csa_component16_fa15_or0 = 0;
csa_component16_fa0_xor1 = (fa(((a >> 0) & 0x01), ((b >> 0) & 0x01), ((c >> 0) & 0x01)) >> 0) & 0x01;
csa_component16_fa0_or0 = (fa(((a >> 0) & 0x01), ((b >> 0) & 0x01), ((c >> 0) & 0x01)) >> 1) & 0x01;
csa_component16_fa1_xor1 = (fa(((a >> 1) & 0x01), ((b >> 1) & 0x01), ((c >> 1) & 0x01)) >> 0) & 0x01;
csa_component16_fa1_or0 = (fa(((a >> 1) & 0x01), ((b >> 1) & 0x01), ((c >> 1) & 0x01)) >> 1) & 0x01;
csa_component16_fa2_xor1 = (fa(((a >> 2) & 0x01), ((b >> 2) & 0x01), ((c >> 2) & 0x01)) >> 0) & 0x01;
csa_component16_fa2_or0 = (fa(((a >> 2) & 0x01), ((b >> 2) & 0x01), ((c >> 2) & 0x01)) >> 1) & 0x01;
csa_component16_fa3_xor1 = (fa(((a >> 3) & 0x01), ((b >> 3) & 0x01), ((c >> 3) & 0x01)) >> 0) & 0x01;
csa_component16_fa3_or0 = (fa(((a >> 3) & 0x01), ((b >> 3) & 0x01), ((c >> 3) & 0x01)) >> 1) & 0x01;
csa_component16_fa4_xor1 = (fa(((a >> 4) & 0x01), ((b >> 4) & 0x01), ((c >> 4) & 0x01)) >> 0) & 0x01;
csa_component16_fa4_or0 = (fa(((a >> 4) & 0x01), ((b >> 4) & 0x01), ((c >> 4) & 0x01)) >> 1) & 0x01;
csa_component16_fa5_xor1 = (fa(((a >> 5) & 0x01), ((b >> 5) & 0x01), ((c >> 5) & 0x01)) >> 0) & 0x01;
csa_component16_fa5_or0 = (fa(((a >> 5) & 0x01), ((b >> 5) & 0x01), ((c >> 5) & 0x01)) >> 1) & 0x01;
csa_component16_fa6_xor1 = (fa(((a >> 6) & 0x01), ((b >> 6) & 0x01), ((c >> 6) & 0x01)) >> 0) & 0x01;
csa_component16_fa6_or0 = (fa(((a >> 6) & 0x01), ((b >> 6) & 0x01), ((c >> 6) & 0x01)) >> 1) & 0x01;
csa_component16_fa7_xor1 = (fa(((a >> 7) & 0x01), ((b >> 7) & 0x01), ((c >> 7) & 0x01)) >> 0) & 0x01;
csa_component16_fa7_or0 = (fa(((a >> 7) & 0x01), ((b >> 7) & 0x01), ((c >> 7) & 0x01)) >> 1) & 0x01;
csa_component16_fa8_xor1 = (fa(((a >> 8) & 0x01), ((b >> 8) & 0x01), ((c >> 8) & 0x01)) >> 0) & 0x01;
csa_component16_fa8_or0 = (fa(((a >> 8) & 0x01), ((b >> 8) & 0x01), ((c >> 8) & 0x01)) >> 1) & 0x01;
csa_component16_fa9_xor1 = (fa(((a >> 9) & 0x01), ((b >> 9) & 0x01), ((c >> 9) & 0x01)) >> 0) & 0x01;
csa_component16_fa9_or0 = (fa(((a >> 9) & 0x01), ((b >> 9) & 0x01), ((c >> 9) & 0x01)) >> 1) & 0x01;
csa_component16_fa10_xor1 = (fa(((a >> 10) & 0x01), ((b >> 10) & 0x01), ((c >> 10) & 0x01)) >> 0) & 0x01;
csa_component16_fa10_or0 = (fa(((a >> 10) & 0x01), ((b >> 10) & 0x01), ((c >> 10) & 0x01)) >> 1) & 0x01;
csa_component16_fa11_xor1 = (fa(((a >> 11) & 0x01), ((b >> 11) & 0x01), ((c >> 11) & 0x01)) >> 0) & 0x01;
csa_component16_fa11_or0 = (fa(((a >> 11) & 0x01), ((b >> 11) & 0x01), ((c >> 11) & 0x01)) >> 1) & 0x01;
csa_component16_fa12_xor1 = (fa(((a >> 12) & 0x01), ((b >> 12) & 0x01), ((c >> 12) & 0x01)) >> 0) & 0x01;
csa_component16_fa12_or0 = (fa(((a >> 12) & 0x01), ((b >> 12) & 0x01), ((c >> 12) & 0x01)) >> 1) & 0x01;
csa_component16_fa13_xor1 = (fa(((a >> 13) & 0x01), ((b >> 13) & 0x01), ((c >> 13) & 0x01)) >> 0) & 0x01;
csa_component16_fa13_or0 = (fa(((a >> 13) & 0x01), ((b >> 13) & 0x01), ((c >> 13) & 0x01)) >> 1) & 0x01;
csa_component16_fa14_xor1 = (fa(((a >> 14) & 0x01), ((b >> 14) & 0x01), ((c >> 14) & 0x01)) >> 0) & 0x01;
csa_component16_fa14_or0 = (fa(((a >> 14) & 0x01), ((b >> 14) & 0x01), ((c >> 14) & 0x01)) >> 1) & 0x01;
csa_component16_fa15_xor1 = (fa(((a >> 15) & 0x01), ((b >> 15) & 0x01), ((c >> 15) & 0x01)) >> 0) & 0x01;
csa_component16_fa15_or0 = (fa(((a >> 15) & 0x01), ((b >> 15) & 0x01), ((c >> 15) & 0x01)) >> 1) & 0x01;
csa_component16_out |= ((csa_component16_fa0_xor1 >> 0) & 0x01ull) << 0;
csa_component16_out |= ((csa_component16_fa1_xor1 >> 0) & 0x01ull) << 1;
csa_component16_out |= ((csa_component16_fa2_xor1 >> 0) & 0x01ull) << 2;
csa_component16_out |= ((csa_component16_fa3_xor1 >> 0) & 0x01ull) << 3;
csa_component16_out |= ((csa_component16_fa4_xor1 >> 0) & 0x01ull) << 4;
csa_component16_out |= ((csa_component16_fa5_xor1 >> 0) & 0x01ull) << 5;
csa_component16_out |= ((csa_component16_fa6_xor1 >> 0) & 0x01ull) << 6;
csa_component16_out |= ((csa_component16_fa7_xor1 >> 0) & 0x01ull) << 7;
csa_component16_out |= ((csa_component16_fa8_xor1 >> 0) & 0x01ull) << 8;
csa_component16_out |= ((csa_component16_fa9_xor1 >> 0) & 0x01ull) << 9;
csa_component16_out |= ((csa_component16_fa10_xor1 >> 0) & 0x01ull) << 10;
csa_component16_out |= ((csa_component16_fa11_xor1 >> 0) & 0x01ull) << 11;
csa_component16_out |= ((csa_component16_fa12_xor1 >> 0) & 0x01ull) << 12;
csa_component16_out |= ((csa_component16_fa13_xor1 >> 0) & 0x01ull) << 13;
csa_component16_out |= ((csa_component16_fa14_xor1 >> 0) & 0x01ull) << 14;
csa_component16_out |= ((csa_component16_fa15_xor1 >> 0) & 0x01ull) << 15;
csa_component16_out |= (0x00) << 16;
csa_component16_out |= (0x00) << 17;
csa_component16_out |= ((csa_component16_fa0_or0 >> 0) & 0x01ull) << 18;
csa_component16_out |= ((csa_component16_fa1_or0 >> 0) & 0x01ull) << 19;
csa_component16_out |= ((csa_component16_fa2_or0 >> 0) & 0x01ull) << 20;
csa_component16_out |= ((csa_component16_fa3_or0 >> 0) & 0x01ull) << 21;
csa_component16_out |= ((csa_component16_fa4_or0 >> 0) & 0x01ull) << 22;
csa_component16_out |= ((csa_component16_fa5_or0 >> 0) & 0x01ull) << 23;
csa_component16_out |= ((csa_component16_fa6_or0 >> 0) & 0x01ull) << 24;
csa_component16_out |= ((csa_component16_fa7_or0 >> 0) & 0x01ull) << 25;
csa_component16_out |= ((csa_component16_fa8_or0 >> 0) & 0x01ull) << 26;
csa_component16_out |= ((csa_component16_fa9_or0 >> 0) & 0x01ull) << 27;
csa_component16_out |= ((csa_component16_fa10_or0 >> 0) & 0x01ull) << 28;
csa_component16_out |= ((csa_component16_fa11_or0 >> 0) & 0x01ull) << 29;
csa_component16_out |= ((csa_component16_fa12_or0 >> 0) & 0x01ull) << 30;
csa_component16_out |= ((csa_component16_fa13_or0 >> 0) & 0x01ull) << 31;
csa_component16_out |= ((csa_component16_fa14_or0 >> 0) & 0x01ull) << 32;
csa_component16_out |= ((csa_component16_fa15_or0 >> 0) & 0x01ull) << 33;
return csa_component16_out;
}
uint64_t u_rca16(uint64_t a, uint64_t b){
uint64_t u_rca16_out = 0;
uint8_t u_rca16_ha_xor0 = 0;
uint8_t u_rca16_ha_and0 = 0;
uint8_t u_rca16_fa1_xor1 = 0;
uint8_t u_rca16_fa1_or0 = 0;
uint8_t u_rca16_fa2_xor1 = 0;
uint8_t u_rca16_fa2_or0 = 0;
uint8_t u_rca16_fa3_xor1 = 0;
uint8_t u_rca16_fa3_or0 = 0;
uint8_t u_rca16_fa4_xor1 = 0;
uint8_t u_rca16_fa4_or0 = 0;
uint8_t u_rca16_fa5_xor1 = 0;
uint8_t u_rca16_fa5_or0 = 0;
uint8_t u_rca16_fa6_xor1 = 0;
uint8_t u_rca16_fa6_or0 = 0;
uint8_t u_rca16_fa7_xor1 = 0;
uint8_t u_rca16_fa7_or0 = 0;
uint8_t u_rca16_fa8_xor1 = 0;
uint8_t u_rca16_fa8_or0 = 0;
uint8_t u_rca16_fa9_xor1 = 0;
uint8_t u_rca16_fa9_or0 = 0;
uint8_t u_rca16_fa10_xor1 = 0;
uint8_t u_rca16_fa10_or0 = 0;
uint8_t u_rca16_fa11_xor1 = 0;
uint8_t u_rca16_fa11_or0 = 0;
uint8_t u_rca16_fa12_xor1 = 0;
uint8_t u_rca16_fa12_or0 = 0;
uint8_t u_rca16_fa13_xor1 = 0;
uint8_t u_rca16_fa13_or0 = 0;
uint8_t u_rca16_fa14_xor1 = 0;
uint8_t u_rca16_fa14_or0 = 0;
uint8_t u_rca16_fa15_xor1 = 0;
uint8_t u_rca16_fa15_or0 = 0;
u_rca16_ha_xor0 = (ha(((a >> 0) & 0x01), ((b >> 0) & 0x01)) >> 0) & 0x01;
u_rca16_ha_and0 = (ha(((a >> 0) & 0x01), ((b >> 0) & 0x01)) >> 1) & 0x01;
u_rca16_fa1_xor1 = (fa(((a >> 1) & 0x01), ((b >> 1) & 0x01), ((u_rca16_ha_and0 >> 0) & 0x01)) >> 0) & 0x01;
u_rca16_fa1_or0 = (fa(((a >> 1) & 0x01), ((b >> 1) & 0x01), ((u_rca16_ha_and0 >> 0) & 0x01)) >> 1) & 0x01;
u_rca16_fa2_xor1 = (fa(((a >> 2) & 0x01), ((b >> 2) & 0x01), ((u_rca16_fa1_or0 >> 0) & 0x01)) >> 0) & 0x01;
u_rca16_fa2_or0 = (fa(((a >> 2) & 0x01), ((b >> 2) & 0x01), ((u_rca16_fa1_or0 >> 0) & 0x01)) >> 1) & 0x01;
u_rca16_fa3_xor1 = (fa(((a >> 3) & 0x01), ((b >> 3) & 0x01), ((u_rca16_fa2_or0 >> 0) & 0x01)) >> 0) & 0x01;
u_rca16_fa3_or0 = (fa(((a >> 3) & 0x01), ((b >> 3) & 0x01), ((u_rca16_fa2_or0 >> 0) & 0x01)) >> 1) & 0x01;
u_rca16_fa4_xor1 = (fa(((a >> 4) & 0x01), ((b >> 4) & 0x01), ((u_rca16_fa3_or0 >> 0) & 0x01)) >> 0) & 0x01;
u_rca16_fa4_or0 = (fa(((a >> 4) & 0x01), ((b >> 4) & 0x01), ((u_rca16_fa3_or0 >> 0) & 0x01)) >> 1) & 0x01;
u_rca16_fa5_xor1 = (fa(((a >> 5) & 0x01), ((b >> 5) & 0x01), ((u_rca16_fa4_or0 >> 0) & 0x01)) >> 0) & 0x01;
u_rca16_fa5_or0 = (fa(((a >> 5) & 0x01), ((b >> 5) & 0x01), ((u_rca16_fa4_or0 >> 0) & 0x01)) >> 1) & 0x01;
u_rca16_fa6_xor1 = (fa(((a >> 6) & 0x01), ((b >> 6) & 0x01), ((u_rca16_fa5_or0 >> 0) & 0x01)) >> 0) & 0x01;
u_rca16_fa6_or0 = (fa(((a >> 6) & 0x01), ((b >> 6) & 0x01), ((u_rca16_fa5_or0 >> 0) & 0x01)) >> 1) & 0x01;
u_rca16_fa7_xor1 = (fa(((a >> 7) & 0x01), ((b >> 7) & 0x01), ((u_rca16_fa6_or0 >> 0) & 0x01)) >> 0) & 0x01;
u_rca16_fa7_or0 = (fa(((a >> 7) & 0x01), ((b >> 7) & 0x01), ((u_rca16_fa6_or0 >> 0) & 0x01)) >> 1) & 0x01;
u_rca16_fa8_xor1 = (fa(((a >> 8) & 0x01), ((b >> 8) & 0x01), ((u_rca16_fa7_or0 >> 0) & 0x01)) >> 0) & 0x01;
u_rca16_fa8_or0 = (fa(((a >> 8) & 0x01), ((b >> 8) & 0x01), ((u_rca16_fa7_or0 >> 0) & 0x01)) >> 1) & 0x01;
u_rca16_fa9_xor1 = (fa(((a >> 9) & 0x01), ((b >> 9) & 0x01), ((u_rca16_fa8_or0 >> 0) & 0x01)) >> 0) & 0x01;
u_rca16_fa9_or0 = (fa(((a >> 9) & 0x01), ((b >> 9) & 0x01), ((u_rca16_fa8_or0 >> 0) & 0x01)) >> 1) & 0x01;
u_rca16_fa10_xor1 = (fa(((a >> 10) & 0x01), ((b >> 10) & 0x01), ((u_rca16_fa9_or0 >> 0) & 0x01)) >> 0) & 0x01;
u_rca16_fa10_or0 = (fa(((a >> 10) & 0x01), ((b >> 10) & 0x01), ((u_rca16_fa9_or0 >> 0) & 0x01)) >> 1) & 0x01;
u_rca16_fa11_xor1 = (fa(((a >> 11) & 0x01), ((b >> 11) & 0x01), ((u_rca16_fa10_or0 >> 0) & 0x01)) >> 0) & 0x01;
u_rca16_fa11_or0 = (fa(((a >> 11) & 0x01), ((b >> 11) & 0x01), ((u_rca16_fa10_or0 >> 0) & 0x01)) >> 1) & 0x01;
u_rca16_fa12_xor1 = (fa(((a >> 12) & 0x01), ((b >> 12) & 0x01), ((u_rca16_fa11_or0 >> 0) & 0x01)) >> 0) & 0x01;
u_rca16_fa12_or0 = (fa(((a >> 12) & 0x01), ((b >> 12) & 0x01), ((u_rca16_fa11_or0 >> 0) & 0x01)) >> 1) & 0x01;
u_rca16_fa13_xor1 = (fa(((a >> 13) & 0x01), ((b >> 13) & 0x01), ((u_rca16_fa12_or0 >> 0) & 0x01)) >> 0) & 0x01;
u_rca16_fa13_or0 = (fa(((a >> 13) & 0x01), ((b >> 13) & 0x01), ((u_rca16_fa12_or0 >> 0) & 0x01)) >> 1) & 0x01;
u_rca16_fa14_xor1 = (fa(((a >> 14) & 0x01), ((b >> 14) & 0x01), ((u_rca16_fa13_or0 >> 0) & 0x01)) >> 0) & 0x01;
u_rca16_fa14_or0 = (fa(((a >> 14) & 0x01), ((b >> 14) & 0x01), ((u_rca16_fa13_or0 >> 0) & 0x01)) >> 1) & 0x01;
u_rca16_fa15_xor1 = (fa(((a >> 15) & 0x01), ((b >> 15) & 0x01), ((u_rca16_fa14_or0 >> 0) & 0x01)) >> 0) & 0x01;
u_rca16_fa15_or0 = (fa(((a >> 15) & 0x01), ((b >> 15) & 0x01), ((u_rca16_fa14_or0 >> 0) & 0x01)) >> 1) & 0x01;
u_rca16_out |= ((u_rca16_ha_xor0 >> 0) & 0x01ull) << 0;
u_rca16_out |= ((u_rca16_fa1_xor1 >> 0) & 0x01ull) << 1;
u_rca16_out |= ((u_rca16_fa2_xor1 >> 0) & 0x01ull) << 2;
u_rca16_out |= ((u_rca16_fa3_xor1 >> 0) & 0x01ull) << 3;
u_rca16_out |= ((u_rca16_fa4_xor1 >> 0) & 0x01ull) << 4;
u_rca16_out |= ((u_rca16_fa5_xor1 >> 0) & 0x01ull) << 5;
u_rca16_out |= ((u_rca16_fa6_xor1 >> 0) & 0x01ull) << 6;
u_rca16_out |= ((u_rca16_fa7_xor1 >> 0) & 0x01ull) << 7;
u_rca16_out |= ((u_rca16_fa8_xor1 >> 0) & 0x01ull) << 8;
u_rca16_out |= ((u_rca16_fa9_xor1 >> 0) & 0x01ull) << 9;
u_rca16_out |= ((u_rca16_fa10_xor1 >> 0) & 0x01ull) << 10;
u_rca16_out |= ((u_rca16_fa11_xor1 >> 0) & 0x01ull) << 11;
u_rca16_out |= ((u_rca16_fa12_xor1 >> 0) & 0x01ull) << 12;
u_rca16_out |= ((u_rca16_fa13_xor1 >> 0) & 0x01ull) << 13;
u_rca16_out |= ((u_rca16_fa14_xor1 >> 0) & 0x01ull) << 14;
u_rca16_out |= ((u_rca16_fa15_xor1 >> 0) & 0x01ull) << 15;
u_rca16_out |= ((u_rca16_fa15_or0 >> 0) & 0x01ull) << 16;
return u_rca16_out;
}
int64_t s_CSAwallace_rca8(int64_t a, int64_t b){
int64_t s_CSAwallace_rca8_out = 0;
uint8_t s_CSAwallace_rca8_and_0_0 = 0;
uint8_t s_CSAwallace_rca8_and_1_0 = 0;
uint8_t s_CSAwallace_rca8_and_2_0 = 0;
uint8_t s_CSAwallace_rca8_and_3_0 = 0;
uint8_t s_CSAwallace_rca8_and_4_0 = 0;
uint8_t s_CSAwallace_rca8_and_5_0 = 0;
uint8_t s_CSAwallace_rca8_and_6_0 = 0;
uint8_t s_CSAwallace_rca8_nand_7_0 = 0;
uint8_t s_CSAwallace_rca8_and_0_1 = 0;
uint8_t s_CSAwallace_rca8_and_1_1 = 0;
uint8_t s_CSAwallace_rca8_and_2_1 = 0;
uint8_t s_CSAwallace_rca8_and_3_1 = 0;
uint8_t s_CSAwallace_rca8_and_4_1 = 0;
uint8_t s_CSAwallace_rca8_and_5_1 = 0;
uint8_t s_CSAwallace_rca8_and_6_1 = 0;
uint8_t s_CSAwallace_rca8_nand_7_1 = 0;
uint8_t s_CSAwallace_rca8_and_0_2 = 0;
uint8_t s_CSAwallace_rca8_and_1_2 = 0;
uint8_t s_CSAwallace_rca8_and_2_2 = 0;
uint8_t s_CSAwallace_rca8_and_3_2 = 0;
uint8_t s_CSAwallace_rca8_and_4_2 = 0;
uint8_t s_CSAwallace_rca8_and_5_2 = 0;
uint8_t s_CSAwallace_rca8_and_6_2 = 0;
uint8_t s_CSAwallace_rca8_nand_7_2 = 0;
uint8_t s_CSAwallace_rca8_and_0_3 = 0;
uint8_t s_CSAwallace_rca8_and_1_3 = 0;
uint8_t s_CSAwallace_rca8_and_2_3 = 0;
uint8_t s_CSAwallace_rca8_and_3_3 = 0;
uint8_t s_CSAwallace_rca8_and_4_3 = 0;
uint8_t s_CSAwallace_rca8_and_5_3 = 0;
uint8_t s_CSAwallace_rca8_and_6_3 = 0;
uint8_t s_CSAwallace_rca8_nand_7_3 = 0;
uint8_t s_CSAwallace_rca8_and_0_4 = 0;
uint8_t s_CSAwallace_rca8_and_1_4 = 0;
uint8_t s_CSAwallace_rca8_and_2_4 = 0;
uint8_t s_CSAwallace_rca8_and_3_4 = 0;
uint8_t s_CSAwallace_rca8_and_4_4 = 0;
uint8_t s_CSAwallace_rca8_and_5_4 = 0;
uint8_t s_CSAwallace_rca8_and_6_4 = 0;
uint8_t s_CSAwallace_rca8_nand_7_4 = 0;
uint8_t s_CSAwallace_rca8_and_0_5 = 0;
uint8_t s_CSAwallace_rca8_and_1_5 = 0;
uint8_t s_CSAwallace_rca8_and_2_5 = 0;
uint8_t s_CSAwallace_rca8_and_3_5 = 0;
uint8_t s_CSAwallace_rca8_and_4_5 = 0;
uint8_t s_CSAwallace_rca8_and_5_5 = 0;
uint8_t s_CSAwallace_rca8_and_6_5 = 0;
uint8_t s_CSAwallace_rca8_nand_7_5 = 0;
uint8_t s_CSAwallace_rca8_and_0_6 = 0;
uint8_t s_CSAwallace_rca8_and_1_6 = 0;
uint8_t s_CSAwallace_rca8_and_2_6 = 0;
uint8_t s_CSAwallace_rca8_and_3_6 = 0;
uint8_t s_CSAwallace_rca8_and_4_6 = 0;
uint8_t s_CSAwallace_rca8_and_5_6 = 0;
uint8_t s_CSAwallace_rca8_and_6_6 = 0;
uint8_t s_CSAwallace_rca8_nand_7_6 = 0;
uint8_t s_CSAwallace_rca8_nand_0_7 = 0;
uint8_t s_CSAwallace_rca8_nand_1_7 = 0;
uint8_t s_CSAwallace_rca8_nand_2_7 = 0;
uint8_t s_CSAwallace_rca8_nand_3_7 = 0;
uint8_t s_CSAwallace_rca8_nand_4_7 = 0;
uint8_t s_CSAwallace_rca8_nand_5_7 = 0;
uint8_t s_CSAwallace_rca8_nand_6_7 = 0;
uint8_t s_CSAwallace_rca8_and_7_7 = 0;
int64_t s_CSAwallace_rca8_csa0_csa_component_pp_row0 = 0;
int64_t s_CSAwallace_rca8_csa0_csa_component_pp_row1 = 0;
int64_t s_CSAwallace_rca8_csa0_csa_component_pp_row2 = 0;
int64_t s_CSAwallace_rca8_csa0_csa_component_out = 0;
int64_t s_CSAwallace_rca8_csa1_csa_component_pp_row3 = 0;
int64_t s_CSAwallace_rca8_csa1_csa_component_pp_row4 = 0;
int64_t s_CSAwallace_rca8_csa1_csa_component_pp_row5 = 0;
int64_t s_CSAwallace_rca8_csa1_csa_component_out = 0;
int64_t s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_s1 = 0;
int64_t s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_c1 = 0;
int64_t s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_s2 = 0;
int64_t s_CSAwallace_rca8_csa2_csa_component_out = 0;
int64_t s_CSAwallace_rca8_csa3_csa_component_s_CSAwallace_rca8_csa_c2 = 0;
int64_t s_CSAwallace_rca8_csa3_csa_component_pp_row6 = 0;
int64_t s_CSAwallace_rca8_csa3_csa_component_pp_row7 = 0;
int64_t s_CSAwallace_rca8_csa3_csa_component_out = 0;
int64_t s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_s3 = 0;
int64_t s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_c3 = 0;
int64_t s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_s4 = 0;
int64_t s_CSAwallace_rca8_csa4_csa_component_out = 0;
int64_t s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_s5 = 0;
int64_t s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_c5 = 0;
int64_t s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_c4 = 0;
int64_t s_CSAwallace_rca8_csa5_csa_component_out = 0;
uint64_t s_CSAwallace_rca8_u_rca16_a = 0;
uint64_t s_CSAwallace_rca8_u_rca16_b = 0;
uint64_t s_CSAwallace_rca8_u_rca16_out = 0;
uint8_t s_CSAwallace_rca8_xor0 = 0;
s_CSAwallace_rca8_and_0_0 = and_gate(((a >> 0) & 0x01), ((b >> 0) & 0x01));
s_CSAwallace_rca8_and_1_0 = and_gate(((a >> 1) & 0x01), ((b >> 0) & 0x01));
s_CSAwallace_rca8_and_2_0 = and_gate(((a >> 2) & 0x01), ((b >> 0) & 0x01));
s_CSAwallace_rca8_and_3_0 = and_gate(((a >> 3) & 0x01), ((b >> 0) & 0x01));
s_CSAwallace_rca8_and_4_0 = and_gate(((a >> 4) & 0x01), ((b >> 0) & 0x01));
s_CSAwallace_rca8_and_5_0 = and_gate(((a >> 5) & 0x01), ((b >> 0) & 0x01));
s_CSAwallace_rca8_and_6_0 = and_gate(((a >> 6) & 0x01), ((b >> 0) & 0x01));
s_CSAwallace_rca8_nand_7_0 = nand_gate(((a >> 7) & 0x01), ((b >> 0) & 0x01));
s_CSAwallace_rca8_and_0_1 = and_gate(((a >> 0) & 0x01), ((b >> 1) & 0x01));
s_CSAwallace_rca8_and_1_1 = and_gate(((a >> 1) & 0x01), ((b >> 1) & 0x01));
s_CSAwallace_rca8_and_2_1 = and_gate(((a >> 2) & 0x01), ((b >> 1) & 0x01));
s_CSAwallace_rca8_and_3_1 = and_gate(((a >> 3) & 0x01), ((b >> 1) & 0x01));
s_CSAwallace_rca8_and_4_1 = and_gate(((a >> 4) & 0x01), ((b >> 1) & 0x01));
s_CSAwallace_rca8_and_5_1 = and_gate(((a >> 5) & 0x01), ((b >> 1) & 0x01));
s_CSAwallace_rca8_and_6_1 = and_gate(((a >> 6) & 0x01), ((b >> 1) & 0x01));
s_CSAwallace_rca8_nand_7_1 = nand_gate(((a >> 7) & 0x01), ((b >> 1) & 0x01));
s_CSAwallace_rca8_and_0_2 = and_gate(((a >> 0) & 0x01), ((b >> 2) & 0x01));
s_CSAwallace_rca8_and_1_2 = and_gate(((a >> 1) & 0x01), ((b >> 2) & 0x01));
s_CSAwallace_rca8_and_2_2 = and_gate(((a >> 2) & 0x01), ((b >> 2) & 0x01));
s_CSAwallace_rca8_and_3_2 = and_gate(((a >> 3) & 0x01), ((b >> 2) & 0x01));
s_CSAwallace_rca8_and_4_2 = and_gate(((a >> 4) & 0x01), ((b >> 2) & 0x01));
s_CSAwallace_rca8_and_5_2 = and_gate(((a >> 5) & 0x01), ((b >> 2) & 0x01));
s_CSAwallace_rca8_and_6_2 = and_gate(((a >> 6) & 0x01), ((b >> 2) & 0x01));
s_CSAwallace_rca8_nand_7_2 = nand_gate(((a >> 7) & 0x01), ((b >> 2) & 0x01));
s_CSAwallace_rca8_and_0_3 = and_gate(((a >> 0) & 0x01), ((b >> 3) & 0x01));
s_CSAwallace_rca8_and_1_3 = and_gate(((a >> 1) & 0x01), ((b >> 3) & 0x01));
s_CSAwallace_rca8_and_2_3 = and_gate(((a >> 2) & 0x01), ((b >> 3) & 0x01));
s_CSAwallace_rca8_and_3_3 = and_gate(((a >> 3) & 0x01), ((b >> 3) & 0x01));
s_CSAwallace_rca8_and_4_3 = and_gate(((a >> 4) & 0x01), ((b >> 3) & 0x01));
s_CSAwallace_rca8_and_5_3 = and_gate(((a >> 5) & 0x01), ((b >> 3) & 0x01));
s_CSAwallace_rca8_and_6_3 = and_gate(((a >> 6) & 0x01), ((b >> 3) & 0x01));
s_CSAwallace_rca8_nand_7_3 = nand_gate(((a >> 7) & 0x01), ((b >> 3) & 0x01));
s_CSAwallace_rca8_and_0_4 = and_gate(((a >> 0) & 0x01), ((b >> 4) & 0x01));
s_CSAwallace_rca8_and_1_4 = and_gate(((a >> 1) & 0x01), ((b >> 4) & 0x01));
s_CSAwallace_rca8_and_2_4 = and_gate(((a >> 2) & 0x01), ((b >> 4) & 0x01));
s_CSAwallace_rca8_and_3_4 = and_gate(((a >> 3) & 0x01), ((b >> 4) & 0x01));
s_CSAwallace_rca8_and_4_4 = and_gate(((a >> 4) & 0x01), ((b >> 4) & 0x01));
s_CSAwallace_rca8_and_5_4 = and_gate(((a >> 5) & 0x01), ((b >> 4) & 0x01));
s_CSAwallace_rca8_and_6_4 = and_gate(((a >> 6) & 0x01), ((b >> 4) & 0x01));
s_CSAwallace_rca8_nand_7_4 = nand_gate(((a >> 7) & 0x01), ((b >> 4) & 0x01));
s_CSAwallace_rca8_and_0_5 = and_gate(((a >> 0) & 0x01), ((b >> 5) & 0x01));
s_CSAwallace_rca8_and_1_5 = and_gate(((a >> 1) & 0x01), ((b >> 5) & 0x01));
s_CSAwallace_rca8_and_2_5 = and_gate(((a >> 2) & 0x01), ((b >> 5) & 0x01));
s_CSAwallace_rca8_and_3_5 = and_gate(((a >> 3) & 0x01), ((b >> 5) & 0x01));
s_CSAwallace_rca8_and_4_5 = and_gate(((a >> 4) & 0x01), ((b >> 5) & 0x01));
s_CSAwallace_rca8_and_5_5 = and_gate(((a >> 5) & 0x01), ((b >> 5) & 0x01));
s_CSAwallace_rca8_and_6_5 = and_gate(((a >> 6) & 0x01), ((b >> 5) & 0x01));
s_CSAwallace_rca8_nand_7_5 = nand_gate(((a >> 7) & 0x01), ((b >> 5) & 0x01));
s_CSAwallace_rca8_and_0_6 = and_gate(((a >> 0) & 0x01), ((b >> 6) & 0x01));
s_CSAwallace_rca8_and_1_6 = and_gate(((a >> 1) & 0x01), ((b >> 6) & 0x01));
s_CSAwallace_rca8_and_2_6 = and_gate(((a >> 2) & 0x01), ((b >> 6) & 0x01));
s_CSAwallace_rca8_and_3_6 = and_gate(((a >> 3) & 0x01), ((b >> 6) & 0x01));
s_CSAwallace_rca8_and_4_6 = and_gate(((a >> 4) & 0x01), ((b >> 6) & 0x01));
s_CSAwallace_rca8_and_5_6 = and_gate(((a >> 5) & 0x01), ((b >> 6) & 0x01));
s_CSAwallace_rca8_and_6_6 = and_gate(((a >> 6) & 0x01), ((b >> 6) & 0x01));
s_CSAwallace_rca8_nand_7_6 = nand_gate(((a >> 7) & 0x01), ((b >> 6) & 0x01));
s_CSAwallace_rca8_nand_0_7 = nand_gate(((a >> 0) & 0x01), ((b >> 7) & 0x01));
s_CSAwallace_rca8_nand_1_7 = nand_gate(((a >> 1) & 0x01), ((b >> 7) & 0x01));
s_CSAwallace_rca8_nand_2_7 = nand_gate(((a >> 2) & 0x01), ((b >> 7) & 0x01));
s_CSAwallace_rca8_nand_3_7 = nand_gate(((a >> 3) & 0x01), ((b >> 7) & 0x01));
s_CSAwallace_rca8_nand_4_7 = nand_gate(((a >> 4) & 0x01), ((b >> 7) & 0x01));
s_CSAwallace_rca8_nand_5_7 = nand_gate(((a >> 5) & 0x01), ((b >> 7) & 0x01));
s_CSAwallace_rca8_nand_6_7 = nand_gate(((a >> 6) & 0x01), ((b >> 7) & 0x01));
s_CSAwallace_rca8_and_7_7 = and_gate(((a >> 7) & 0x01), ((b >> 7) & 0x01));
s_CSAwallace_rca8_csa0_csa_component_pp_row0 |= ((s_CSAwallace_rca8_and_0_0 >> 0) & 0x01ull) << 0;
s_CSAwallace_rca8_csa0_csa_component_pp_row0 |= ((s_CSAwallace_rca8_and_1_0 >> 0) & 0x01ull) << 1;
s_CSAwallace_rca8_csa0_csa_component_pp_row0 |= ((s_CSAwallace_rca8_and_2_0 >> 0) & 0x01ull) << 2;
s_CSAwallace_rca8_csa0_csa_component_pp_row0 |= ((s_CSAwallace_rca8_and_3_0 >> 0) & 0x01ull) << 3;
s_CSAwallace_rca8_csa0_csa_component_pp_row0 |= ((s_CSAwallace_rca8_and_4_0 >> 0) & 0x01ull) << 4;
s_CSAwallace_rca8_csa0_csa_component_pp_row0 |= ((s_CSAwallace_rca8_and_5_0 >> 0) & 0x01ull) << 5;
s_CSAwallace_rca8_csa0_csa_component_pp_row0 |= ((s_CSAwallace_rca8_and_6_0 >> 0) & 0x01ull) << 6;
s_CSAwallace_rca8_csa0_csa_component_pp_row0 |= ((s_CSAwallace_rca8_nand_7_0 >> 0) & 0x01ull) << 7;
s_CSAwallace_rca8_csa0_csa_component_pp_row0 |= (0x01) << 8;
s_CSAwallace_rca8_csa0_csa_component_pp_row0 |= (0x01) << 9;
s_CSAwallace_rca8_csa0_csa_component_pp_row1 |= (0x00) << 0;
s_CSAwallace_rca8_csa0_csa_component_pp_row1 |= ((s_CSAwallace_rca8_and_0_1 >> 0) & 0x01ull) << 1;
s_CSAwallace_rca8_csa0_csa_component_pp_row1 |= ((s_CSAwallace_rca8_and_1_1 >> 0) & 0x01ull) << 2;
s_CSAwallace_rca8_csa0_csa_component_pp_row1 |= ((s_CSAwallace_rca8_and_2_1 >> 0) & 0x01ull) << 3;
s_CSAwallace_rca8_csa0_csa_component_pp_row1 |= ((s_CSAwallace_rca8_and_3_1 >> 0) & 0x01ull) << 4;
s_CSAwallace_rca8_csa0_csa_component_pp_row1 |= ((s_CSAwallace_rca8_and_4_1 >> 0) & 0x01ull) << 5;
s_CSAwallace_rca8_csa0_csa_component_pp_row1 |= ((s_CSAwallace_rca8_and_5_1 >> 0) & 0x01ull) << 6;
s_CSAwallace_rca8_csa0_csa_component_pp_row1 |= ((s_CSAwallace_rca8_and_6_1 >> 0) & 0x01ull) << 7;
s_CSAwallace_rca8_csa0_csa_component_pp_row1 |= ((s_CSAwallace_rca8_nand_7_1 >> 0) & 0x01ull) << 8;
s_CSAwallace_rca8_csa0_csa_component_pp_row1 |= (0x01) << 9;
s_CSAwallace_rca8_csa0_csa_component_pp_row2 |= (0x00) << 0;
s_CSAwallace_rca8_csa0_csa_component_pp_row2 |= (0x00) << 1;
s_CSAwallace_rca8_csa0_csa_component_pp_row2 |= ((s_CSAwallace_rca8_and_0_2 >> 0) & 0x01ull) << 2;
s_CSAwallace_rca8_csa0_csa_component_pp_row2 |= ((s_CSAwallace_rca8_and_1_2 >> 0) & 0x01ull) << 3;
s_CSAwallace_rca8_csa0_csa_component_pp_row2 |= ((s_CSAwallace_rca8_and_2_2 >> 0) & 0x01ull) << 4;
s_CSAwallace_rca8_csa0_csa_component_pp_row2 |= ((s_CSAwallace_rca8_and_3_2 >> 0) & 0x01ull) << 5;
s_CSAwallace_rca8_csa0_csa_component_pp_row2 |= ((s_CSAwallace_rca8_and_4_2 >> 0) & 0x01ull) << 6;
s_CSAwallace_rca8_csa0_csa_component_pp_row2 |= ((s_CSAwallace_rca8_and_5_2 >> 0) & 0x01ull) << 7;
s_CSAwallace_rca8_csa0_csa_component_pp_row2 |= ((s_CSAwallace_rca8_and_6_2 >> 0) & 0x01ull) << 8;
s_CSAwallace_rca8_csa0_csa_component_pp_row2 |= ((s_CSAwallace_rca8_nand_7_2 >> 0) & 0x01ull) << 9;
s_CSAwallace_rca8_csa0_csa_component_out = csa_component10(s_CSAwallace_rca8_csa0_csa_component_pp_row0, s_CSAwallace_rca8_csa0_csa_component_pp_row1, s_CSAwallace_rca8_csa0_csa_component_pp_row2);
s_CSAwallace_rca8_csa1_csa_component_pp_row3 |= (0x00) << 0;
s_CSAwallace_rca8_csa1_csa_component_pp_row3 |= (0x00) << 1;
s_CSAwallace_rca8_csa1_csa_component_pp_row3 |= (0x00) << 2;
s_CSAwallace_rca8_csa1_csa_component_pp_row3 |= ((s_CSAwallace_rca8_and_0_3 >> 0) & 0x01ull) << 3;
s_CSAwallace_rca8_csa1_csa_component_pp_row3 |= ((s_CSAwallace_rca8_and_1_3 >> 0) & 0x01ull) << 4;
s_CSAwallace_rca8_csa1_csa_component_pp_row3 |= ((s_CSAwallace_rca8_and_2_3 >> 0) & 0x01ull) << 5;
s_CSAwallace_rca8_csa1_csa_component_pp_row3 |= ((s_CSAwallace_rca8_and_3_3 >> 0) & 0x01ull) << 6;
s_CSAwallace_rca8_csa1_csa_component_pp_row3 |= ((s_CSAwallace_rca8_and_4_3 >> 0) & 0x01ull) << 7;
s_CSAwallace_rca8_csa1_csa_component_pp_row3 |= ((s_CSAwallace_rca8_and_5_3 >> 0) & 0x01ull) << 8;
s_CSAwallace_rca8_csa1_csa_component_pp_row3 |= ((s_CSAwallace_rca8_and_6_3 >> 0) & 0x01ull) << 9;
s_CSAwallace_rca8_csa1_csa_component_pp_row3 |= ((s_CSAwallace_rca8_nand_7_3 >> 0) & 0x01ull) << 10;
s_CSAwallace_rca8_csa1_csa_component_pp_row3 |= (0x01) << 11;
s_CSAwallace_rca8_csa1_csa_component_pp_row3 |= (0x01) << 12;
s_CSAwallace_rca8_csa1_csa_component_pp_row4 |= (0x00) << 0;
s_CSAwallace_rca8_csa1_csa_component_pp_row4 |= (0x00) << 1;
s_CSAwallace_rca8_csa1_csa_component_pp_row4 |= (0x00) << 2;
s_CSAwallace_rca8_csa1_csa_component_pp_row4 |= (0x00) << 3;
s_CSAwallace_rca8_csa1_csa_component_pp_row4 |= ((s_CSAwallace_rca8_and_0_4 >> 0) & 0x01ull) << 4;
s_CSAwallace_rca8_csa1_csa_component_pp_row4 |= ((s_CSAwallace_rca8_and_1_4 >> 0) & 0x01ull) << 5;
s_CSAwallace_rca8_csa1_csa_component_pp_row4 |= ((s_CSAwallace_rca8_and_2_4 >> 0) & 0x01ull) << 6;
s_CSAwallace_rca8_csa1_csa_component_pp_row4 |= ((s_CSAwallace_rca8_and_3_4 >> 0) & 0x01ull) << 7;
s_CSAwallace_rca8_csa1_csa_component_pp_row4 |= ((s_CSAwallace_rca8_and_4_4 >> 0) & 0x01ull) << 8;
s_CSAwallace_rca8_csa1_csa_component_pp_row4 |= ((s_CSAwallace_rca8_and_5_4 >> 0) & 0x01ull) << 9;
s_CSAwallace_rca8_csa1_csa_component_pp_row4 |= ((s_CSAwallace_rca8_and_6_4 >> 0) & 0x01ull) << 10;
s_CSAwallace_rca8_csa1_csa_component_pp_row4 |= ((s_CSAwallace_rca8_nand_7_4 >> 0) & 0x01ull) << 11;
s_CSAwallace_rca8_csa1_csa_component_pp_row4 |= (0x01) << 12;
s_CSAwallace_rca8_csa1_csa_component_pp_row5 |= (0x00) << 0;
s_CSAwallace_rca8_csa1_csa_component_pp_row5 |= (0x00) << 1;
s_CSAwallace_rca8_csa1_csa_component_pp_row5 |= (0x00) << 2;
s_CSAwallace_rca8_csa1_csa_component_pp_row5 |= (0x00) << 3;
s_CSAwallace_rca8_csa1_csa_component_pp_row5 |= (0x00) << 4;
s_CSAwallace_rca8_csa1_csa_component_pp_row5 |= ((s_CSAwallace_rca8_and_0_5 >> 0) & 0x01ull) << 5;
s_CSAwallace_rca8_csa1_csa_component_pp_row5 |= ((s_CSAwallace_rca8_and_1_5 >> 0) & 0x01ull) << 6;
s_CSAwallace_rca8_csa1_csa_component_pp_row5 |= ((s_CSAwallace_rca8_and_2_5 >> 0) & 0x01ull) << 7;
s_CSAwallace_rca8_csa1_csa_component_pp_row5 |= ((s_CSAwallace_rca8_and_3_5 >> 0) & 0x01ull) << 8;
s_CSAwallace_rca8_csa1_csa_component_pp_row5 |= ((s_CSAwallace_rca8_and_4_5 >> 0) & 0x01ull) << 9;
s_CSAwallace_rca8_csa1_csa_component_pp_row5 |= ((s_CSAwallace_rca8_and_5_5 >> 0) & 0x01ull) << 10;
s_CSAwallace_rca8_csa1_csa_component_pp_row5 |= ((s_CSAwallace_rca8_and_6_5 >> 0) & 0x01ull) << 11;
s_CSAwallace_rca8_csa1_csa_component_pp_row5 |= ((s_CSAwallace_rca8_nand_7_5 >> 0) & 0x01ull) << 12;
s_CSAwallace_rca8_csa1_csa_component_out = csa_component13(s_CSAwallace_rca8_csa1_csa_component_pp_row3, s_CSAwallace_rca8_csa1_csa_component_pp_row4, s_CSAwallace_rca8_csa1_csa_component_pp_row5);
s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_s1 |= ((s_CSAwallace_rca8_csa0_csa_component_out >> 0) & 0x01ull) << 0;
s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_s1 |= ((s_CSAwallace_rca8_csa0_csa_component_out >> 1) & 0x01ull) << 1;
s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_s1 |= ((s_CSAwallace_rca8_csa0_csa_component_out >> 2) & 0x01ull) << 2;
s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_s1 |= ((s_CSAwallace_rca8_csa0_csa_component_out >> 3) & 0x01ull) << 3;
s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_s1 |= ((s_CSAwallace_rca8_csa0_csa_component_out >> 4) & 0x01ull) << 4;
s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_s1 |= ((s_CSAwallace_rca8_csa0_csa_component_out >> 5) & 0x01ull) << 5;
s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_s1 |= ((s_CSAwallace_rca8_csa0_csa_component_out >> 6) & 0x01ull) << 6;
s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_s1 |= ((s_CSAwallace_rca8_csa0_csa_component_out >> 7) & 0x01ull) << 7;
s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_s1 |= ((s_CSAwallace_rca8_csa0_csa_component_out >> 8) & 0x01ull) << 8;
s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_s1 |= ((s_CSAwallace_rca8_csa0_csa_component_out >> 9) & 0x01ull) << 9;
s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_s1 |= (0x01) << 10;
s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_s1 |= (0x01) << 11;
s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_s1 |= (0x01) << 12;
s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_s1 |= (0x01) << 13;
s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_c1 |= (0x00) << 0;
s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_c1 |= (0x00) << 1;
s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_c1 |= ((s_CSAwallace_rca8_csa0_csa_component_out >> 13) & 0x01ull) << 2;
s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_c1 |= ((s_CSAwallace_rca8_csa0_csa_component_out >> 14) & 0x01ull) << 3;
s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_c1 |= ((s_CSAwallace_rca8_csa0_csa_component_out >> 15) & 0x01ull) << 4;
s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_c1 |= ((s_CSAwallace_rca8_csa0_csa_component_out >> 16) & 0x01ull) << 5;
s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_c1 |= ((s_CSAwallace_rca8_csa0_csa_component_out >> 17) & 0x01ull) << 6;
s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_c1 |= ((s_CSAwallace_rca8_csa0_csa_component_out >> 18) & 0x01ull) << 7;
s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_c1 |= ((s_CSAwallace_rca8_csa0_csa_component_out >> 19) & 0x01ull) << 8;
s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_c1 |= ((s_CSAwallace_rca8_csa0_csa_component_out >> 20) & 0x01ull) << 9;
s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_c1 |= (0x01) << 10;
s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_c1 |= (0x01) << 11;
s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_c1 |= (0x01) << 12;
s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_c1 |= (0x01) << 13;
s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_s2 |= (0x00) << 0;
s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_s2 |= (0x00) << 1;
s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_s2 |= (0x00) << 2;
s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_s2 |= ((s_CSAwallace_rca8_csa1_csa_component_out >> 3) & 0x01ull) << 3;
s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_s2 |= ((s_CSAwallace_rca8_csa1_csa_component_out >> 4) & 0x01ull) << 4;
s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_s2 |= ((s_CSAwallace_rca8_csa1_csa_component_out >> 5) & 0x01ull) << 5;
s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_s2 |= ((s_CSAwallace_rca8_csa1_csa_component_out >> 6) & 0x01ull) << 6;
s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_s2 |= ((s_CSAwallace_rca8_csa1_csa_component_out >> 7) & 0x01ull) << 7;
s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_s2 |= ((s_CSAwallace_rca8_csa1_csa_component_out >> 8) & 0x01ull) << 8;
s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_s2 |= ((s_CSAwallace_rca8_csa1_csa_component_out >> 9) & 0x01ull) << 9;
s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_s2 |= ((s_CSAwallace_rca8_csa1_csa_component_out >> 10) & 0x01ull) << 10;
s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_s2 |= ((s_CSAwallace_rca8_csa1_csa_component_out >> 11) & 0x01ull) << 11;
s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_s2 |= ((s_CSAwallace_rca8_csa1_csa_component_out >> 12) & 0x01ull) << 12;
s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_s2 |= (0x01) << 13;
s_CSAwallace_rca8_csa2_csa_component_out = csa_component14(s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_s1, s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_c1, s_CSAwallace_rca8_csa2_csa_component_s_CSAwallace_rca8_csa_s2);
s_CSAwallace_rca8_csa3_csa_component_s_CSAwallace_rca8_csa_c2 |= (0x00) << 0;
s_CSAwallace_rca8_csa3_csa_component_s_CSAwallace_rca8_csa_c2 |= (0x00) << 1;
s_CSAwallace_rca8_csa3_csa_component_s_CSAwallace_rca8_csa_c2 |= (0x00) << 2;
s_CSAwallace_rca8_csa3_csa_component_s_CSAwallace_rca8_csa_c2 |= (0x00) << 3;
s_CSAwallace_rca8_csa3_csa_component_s_CSAwallace_rca8_csa_c2 |= (0x00) << 4;
s_CSAwallace_rca8_csa3_csa_component_s_CSAwallace_rca8_csa_c2 |= ((s_CSAwallace_rca8_csa1_csa_component_out >> 19) & 0x01ull) << 5;
s_CSAwallace_rca8_csa3_csa_component_s_CSAwallace_rca8_csa_c2 |= ((s_CSAwallace_rca8_csa1_csa_component_out >> 20) & 0x01ull) << 6;
s_CSAwallace_rca8_csa3_csa_component_s_CSAwallace_rca8_csa_c2 |= ((s_CSAwallace_rca8_csa1_csa_component_out >> 21) & 0x01ull) << 7;
s_CSAwallace_rca8_csa3_csa_component_s_CSAwallace_rca8_csa_c2 |= ((s_CSAwallace_rca8_csa1_csa_component_out >> 22) & 0x01ull) << 8;
s_CSAwallace_rca8_csa3_csa_component_s_CSAwallace_rca8_csa_c2 |= ((s_CSAwallace_rca8_csa1_csa_component_out >> 23) & 0x01ull) << 9;
s_CSAwallace_rca8_csa3_csa_component_s_CSAwallace_rca8_csa_c2 |= ((s_CSAwallace_rca8_csa1_csa_component_out >> 24) & 0x01ull) << 10;
s_CSAwallace_rca8_csa3_csa_component_s_CSAwallace_rca8_csa_c2 |= ((s_CSAwallace_rca8_csa1_csa_component_out >> 25) & 0x01ull) << 11;
s_CSAwallace_rca8_csa3_csa_component_s_CSAwallace_rca8_csa_c2 |= ((s_CSAwallace_rca8_csa1_csa_component_out >> 26) & 0x01ull) << 12;
s_CSAwallace_rca8_csa3_csa_component_s_CSAwallace_rca8_csa_c2 |= (0x01) << 13;
s_CSAwallace_rca8_csa3_csa_component_s_CSAwallace_rca8_csa_c2 |= (0x01) << 14;
s_CSAwallace_rca8_csa3_csa_component_pp_row6 |= (0x00) << 0;
s_CSAwallace_rca8_csa3_csa_component_pp_row6 |= (0x00) << 1;
s_CSAwallace_rca8_csa3_csa_component_pp_row6 |= (0x00) << 2;
s_CSAwallace_rca8_csa3_csa_component_pp_row6 |= (0x00) << 3;
s_CSAwallace_rca8_csa3_csa_component_pp_row6 |= (0x00) << 4;
s_CSAwallace_rca8_csa3_csa_component_pp_row6 |= (0x00) << 5;
s_CSAwallace_rca8_csa3_csa_component_pp_row6 |= ((s_CSAwallace_rca8_and_0_6 >> 0) & 0x01ull) << 6;
s_CSAwallace_rca8_csa3_csa_component_pp_row6 |= ((s_CSAwallace_rca8_and_1_6 >> 0) & 0x01ull) << 7;
s_CSAwallace_rca8_csa3_csa_component_pp_row6 |= ((s_CSAwallace_rca8_and_2_6 >> 0) & 0x01ull) << 8;
s_CSAwallace_rca8_csa3_csa_component_pp_row6 |= ((s_CSAwallace_rca8_and_3_6 >> 0) & 0x01ull) << 9;
s_CSAwallace_rca8_csa3_csa_component_pp_row6 |= ((s_CSAwallace_rca8_and_4_6 >> 0) & 0x01ull) << 10;
s_CSAwallace_rca8_csa3_csa_component_pp_row6 |= ((s_CSAwallace_rca8_and_5_6 >> 0) & 0x01ull) << 11;
s_CSAwallace_rca8_csa3_csa_component_pp_row6 |= ((s_CSAwallace_rca8_and_6_6 >> 0) & 0x01ull) << 12;
s_CSAwallace_rca8_csa3_csa_component_pp_row6 |= ((s_CSAwallace_rca8_nand_7_6 >> 0) & 0x01ull) << 13;
s_CSAwallace_rca8_csa3_csa_component_pp_row6 |= (0x01) << 14;
s_CSAwallace_rca8_csa3_csa_component_pp_row7 |= (0x00) << 0;
s_CSAwallace_rca8_csa3_csa_component_pp_row7 |= (0x00) << 1;
s_CSAwallace_rca8_csa3_csa_component_pp_row7 |= (0x00) << 2;
s_CSAwallace_rca8_csa3_csa_component_pp_row7 |= (0x00) << 3;
s_CSAwallace_rca8_csa3_csa_component_pp_row7 |= (0x00) << 4;
s_CSAwallace_rca8_csa3_csa_component_pp_row7 |= (0x00) << 5;
s_CSAwallace_rca8_csa3_csa_component_pp_row7 |= (0x00) << 6;
s_CSAwallace_rca8_csa3_csa_component_pp_row7 |= ((s_CSAwallace_rca8_nand_0_7 >> 0) & 0x01ull) << 7;
s_CSAwallace_rca8_csa3_csa_component_pp_row7 |= ((s_CSAwallace_rca8_nand_1_7 >> 0) & 0x01ull) << 8;
s_CSAwallace_rca8_csa3_csa_component_pp_row7 |= ((s_CSAwallace_rca8_nand_2_7 >> 0) & 0x01ull) << 9;
s_CSAwallace_rca8_csa3_csa_component_pp_row7 |= ((s_CSAwallace_rca8_nand_3_7 >> 0) & 0x01ull) << 10;
s_CSAwallace_rca8_csa3_csa_component_pp_row7 |= ((s_CSAwallace_rca8_nand_4_7 >> 0) & 0x01ull) << 11;
s_CSAwallace_rca8_csa3_csa_component_pp_row7 |= ((s_CSAwallace_rca8_nand_5_7 >> 0) & 0x01ull) << 12;
s_CSAwallace_rca8_csa3_csa_component_pp_row7 |= ((s_CSAwallace_rca8_nand_6_7 >> 0) & 0x01ull) << 13;
s_CSAwallace_rca8_csa3_csa_component_pp_row7 |= ((s_CSAwallace_rca8_and_7_7 >> 0) & 0x01ull) << 14;
s_CSAwallace_rca8_csa3_csa_component_out = csa_component15(s_CSAwallace_rca8_csa3_csa_component_s_CSAwallace_rca8_csa_c2, s_CSAwallace_rca8_csa3_csa_component_pp_row6, s_CSAwallace_rca8_csa3_csa_component_pp_row7);
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_s3 |= ((s_CSAwallace_rca8_csa2_csa_component_out >> 0) & 0x01ull) << 0;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_s3 |= ((s_CSAwallace_rca8_csa2_csa_component_out >> 1) & 0x01ull) << 1;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_s3 |= ((s_CSAwallace_rca8_csa2_csa_component_out >> 2) & 0x01ull) << 2;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_s3 |= ((s_CSAwallace_rca8_csa2_csa_component_out >> 3) & 0x01ull) << 3;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_s3 |= ((s_CSAwallace_rca8_csa2_csa_component_out >> 4) & 0x01ull) << 4;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_s3 |= ((s_CSAwallace_rca8_csa2_csa_component_out >> 5) & 0x01ull) << 5;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_s3 |= ((s_CSAwallace_rca8_csa2_csa_component_out >> 6) & 0x01ull) << 6;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_s3 |= ((s_CSAwallace_rca8_csa2_csa_component_out >> 7) & 0x01ull) << 7;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_s3 |= ((s_CSAwallace_rca8_csa2_csa_component_out >> 8) & 0x01ull) << 8;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_s3 |= ((s_CSAwallace_rca8_csa2_csa_component_out >> 9) & 0x01ull) << 9;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_s3 |= ((s_CSAwallace_rca8_csa2_csa_component_out >> 10) & 0x01ull) << 10;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_s3 |= ((s_CSAwallace_rca8_csa2_csa_component_out >> 11) & 0x01ull) << 11;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_s3 |= ((s_CSAwallace_rca8_csa2_csa_component_out >> 12) & 0x01ull) << 12;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_s3 |= (0x01) << 13;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_s3 |= (0x01) << 14;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_s3 |= (0x01) << 15;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_c3 |= (0x00) << 0;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_c3 |= (0x00) << 1;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_c3 |= (0x00) << 2;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_c3 |= ((s_CSAwallace_rca8_csa2_csa_component_out >> 18) & 0x01ull) << 3;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_c3 |= ((s_CSAwallace_rca8_csa2_csa_component_out >> 19) & 0x01ull) << 4;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_c3 |= ((s_CSAwallace_rca8_csa2_csa_component_out >> 20) & 0x01ull) << 5;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_c3 |= ((s_CSAwallace_rca8_csa2_csa_component_out >> 21) & 0x01ull) << 6;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_c3 |= ((s_CSAwallace_rca8_csa2_csa_component_out >> 22) & 0x01ull) << 7;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_c3 |= ((s_CSAwallace_rca8_csa2_csa_component_out >> 23) & 0x01ull) << 8;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_c3 |= ((s_CSAwallace_rca8_csa2_csa_component_out >> 24) & 0x01ull) << 9;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_c3 |= ((s_CSAwallace_rca8_csa2_csa_component_out >> 25) & 0x01ull) << 10;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_c3 |= (0x01) << 11;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_c3 |= (0x01) << 12;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_c3 |= (0x01) << 13;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_c3 |= (0x01) << 14;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_c3 |= (0x01) << 15;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_s4 |= (0x00) << 0;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_s4 |= (0x00) << 1;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_s4 |= (0x00) << 2;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_s4 |= (0x00) << 3;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_s4 |= (0x00) << 4;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_s4 |= ((s_CSAwallace_rca8_csa3_csa_component_out >> 5) & 0x01ull) << 5;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_s4 |= ((s_CSAwallace_rca8_csa3_csa_component_out >> 6) & 0x01ull) << 6;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_s4 |= ((s_CSAwallace_rca8_csa3_csa_component_out >> 7) & 0x01ull) << 7;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_s4 |= ((s_CSAwallace_rca8_csa3_csa_component_out >> 8) & 0x01ull) << 8;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_s4 |= ((s_CSAwallace_rca8_csa3_csa_component_out >> 9) & 0x01ull) << 9;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_s4 |= ((s_CSAwallace_rca8_csa3_csa_component_out >> 10) & 0x01ull) << 10;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_s4 |= ((s_CSAwallace_rca8_csa3_csa_component_out >> 11) & 0x01ull) << 11;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_s4 |= ((s_CSAwallace_rca8_csa3_csa_component_out >> 12) & 0x01ull) << 12;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_s4 |= ((s_CSAwallace_rca8_csa3_csa_component_out >> 13) & 0x01ull) << 13;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_s4 |= ((s_CSAwallace_rca8_csa3_csa_component_out >> 14) & 0x01ull) << 14;
s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_s4 |= (0x01) << 15;
s_CSAwallace_rca8_csa4_csa_component_out = csa_component16(s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_s3, s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_c3, s_CSAwallace_rca8_csa4_csa_component_s_CSAwallace_rca8_csa_s4);
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_s5 |= ((s_CSAwallace_rca8_csa4_csa_component_out >> 0) & 0x01ull) << 0;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_s5 |= ((s_CSAwallace_rca8_csa4_csa_component_out >> 1) & 0x01ull) << 1;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_s5 |= ((s_CSAwallace_rca8_csa4_csa_component_out >> 2) & 0x01ull) << 2;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_s5 |= ((s_CSAwallace_rca8_csa4_csa_component_out >> 3) & 0x01ull) << 3;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_s5 |= ((s_CSAwallace_rca8_csa4_csa_component_out >> 4) & 0x01ull) << 4;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_s5 |= ((s_CSAwallace_rca8_csa4_csa_component_out >> 5) & 0x01ull) << 5;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_s5 |= ((s_CSAwallace_rca8_csa4_csa_component_out >> 6) & 0x01ull) << 6;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_s5 |= ((s_CSAwallace_rca8_csa4_csa_component_out >> 7) & 0x01ull) << 7;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_s5 |= ((s_CSAwallace_rca8_csa4_csa_component_out >> 8) & 0x01ull) << 8;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_s5 |= ((s_CSAwallace_rca8_csa4_csa_component_out >> 9) & 0x01ull) << 9;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_s5 |= ((s_CSAwallace_rca8_csa4_csa_component_out >> 10) & 0x01ull) << 10;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_s5 |= ((s_CSAwallace_rca8_csa4_csa_component_out >> 11) & 0x01ull) << 11;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_s5 |= ((s_CSAwallace_rca8_csa4_csa_component_out >> 12) & 0x01ull) << 12;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_s5 |= ((s_CSAwallace_rca8_csa4_csa_component_out >> 13) & 0x01ull) << 13;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_s5 |= ((s_CSAwallace_rca8_csa4_csa_component_out >> 14) & 0x01ull) << 14;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_s5 |= (0x01) << 15;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_c5 |= (0x00) << 0;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_c5 |= (0x00) << 1;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_c5 |= (0x00) << 2;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_c5 |= (0x00) << 3;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_c5 |= ((s_CSAwallace_rca8_csa4_csa_component_out >> 21) & 0x01ull) << 4;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_c5 |= ((s_CSAwallace_rca8_csa4_csa_component_out >> 22) & 0x01ull) << 5;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_c5 |= ((s_CSAwallace_rca8_csa4_csa_component_out >> 23) & 0x01ull) << 6;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_c5 |= ((s_CSAwallace_rca8_csa4_csa_component_out >> 24) & 0x01ull) << 7;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_c5 |= ((s_CSAwallace_rca8_csa4_csa_component_out >> 25) & 0x01ull) << 8;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_c5 |= ((s_CSAwallace_rca8_csa4_csa_component_out >> 26) & 0x01ull) << 9;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_c5 |= ((s_CSAwallace_rca8_csa4_csa_component_out >> 27) & 0x01ull) << 10;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_c5 |= ((s_CSAwallace_rca8_csa4_csa_component_out >> 28) & 0x01ull) << 11;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_c5 |= ((s_CSAwallace_rca8_csa4_csa_component_out >> 29) & 0x01ull) << 12;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_c5 |= ((s_CSAwallace_rca8_csa4_csa_component_out >> 30) & 0x01ull) << 13;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_c5 |= (0x01) << 14;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_c5 |= (0x01) << 15;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_c4 |= (0x00) << 0;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_c4 |= (0x00) << 1;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_c4 |= (0x00) << 2;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_c4 |= (0x00) << 3;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_c4 |= (0x00) << 4;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_c4 |= (0x00) << 5;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_c4 |= (0x00) << 6;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_c4 |= ((s_CSAwallace_rca8_csa3_csa_component_out >> 23) & 0x01ull) << 7;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_c4 |= ((s_CSAwallace_rca8_csa3_csa_component_out >> 24) & 0x01ull) << 8;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_c4 |= ((s_CSAwallace_rca8_csa3_csa_component_out >> 25) & 0x01ull) << 9;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_c4 |= ((s_CSAwallace_rca8_csa3_csa_component_out >> 26) & 0x01ull) << 10;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_c4 |= ((s_CSAwallace_rca8_csa3_csa_component_out >> 27) & 0x01ull) << 11;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_c4 |= ((s_CSAwallace_rca8_csa3_csa_component_out >> 28) & 0x01ull) << 12;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_c4 |= ((s_CSAwallace_rca8_csa3_csa_component_out >> 29) & 0x01ull) << 13;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_c4 |= ((s_CSAwallace_rca8_csa3_csa_component_out >> 30) & 0x01ull) << 14;
s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_c4 |= (0x01) << 15;
s_CSAwallace_rca8_csa5_csa_component_out = csa_component16(s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_s5, s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_c5, s_CSAwallace_rca8_csa5_csa_component_s_CSAwallace_rca8_csa_c4);
s_CSAwallace_rca8_u_rca16_a |= ((s_CSAwallace_rca8_csa5_csa_component_out >> 0) & 0x01ull) << 0;
s_CSAwallace_rca8_u_rca16_a |= ((s_CSAwallace_rca8_csa5_csa_component_out >> 1) & 0x01ull) << 1;
s_CSAwallace_rca8_u_rca16_a |= ((s_CSAwallace_rca8_csa5_csa_component_out >> 2) & 0x01ull) << 2;
s_CSAwallace_rca8_u_rca16_a |= ((s_CSAwallace_rca8_csa5_csa_component_out >> 3) & 0x01ull) << 3;
s_CSAwallace_rca8_u_rca16_a |= ((s_CSAwallace_rca8_csa5_csa_component_out >> 4) & 0x01ull) << 4;
s_CSAwallace_rca8_u_rca16_a |= ((s_CSAwallace_rca8_csa5_csa_component_out >> 5) & 0x01ull) << 5;
s_CSAwallace_rca8_u_rca16_a |= ((s_CSAwallace_rca8_csa5_csa_component_out >> 6) & 0x01ull) << 6;
s_CSAwallace_rca8_u_rca16_a |= ((s_CSAwallace_rca8_csa5_csa_component_out >> 7) & 0x01ull) << 7;
s_CSAwallace_rca8_u_rca16_a |= ((s_CSAwallace_rca8_csa5_csa_component_out >> 8) & 0x01ull) << 8;
s_CSAwallace_rca8_u_rca16_a |= ((s_CSAwallace_rca8_csa5_csa_component_out >> 9) & 0x01ull) << 9;
s_CSAwallace_rca8_u_rca16_a |= ((s_CSAwallace_rca8_csa5_csa_component_out >> 10) & 0x01ull) << 10;
s_CSAwallace_rca8_u_rca16_a |= ((s_CSAwallace_rca8_csa5_csa_component_out >> 11) & 0x01ull) << 11;
s_CSAwallace_rca8_u_rca16_a |= ((s_CSAwallace_rca8_csa5_csa_component_out >> 12) & 0x01ull) << 12;
s_CSAwallace_rca8_u_rca16_a |= ((s_CSAwallace_rca8_csa5_csa_component_out >> 13) & 0x01ull) << 13;
s_CSAwallace_rca8_u_rca16_a |= ((s_CSAwallace_rca8_csa5_csa_component_out >> 14) & 0x01ull) << 14;
s_CSAwallace_rca8_u_rca16_a |= (0x01) << 15;
s_CSAwallace_rca8_u_rca16_b |= (0x00) << 0;
s_CSAwallace_rca8_u_rca16_b |= (0x00) << 1;
s_CSAwallace_rca8_u_rca16_b |= (0x00) << 2;
s_CSAwallace_rca8_u_rca16_b |= (0x00) << 3;
s_CSAwallace_rca8_u_rca16_b |= (0x00) << 4;
s_CSAwallace_rca8_u_rca16_b |= ((s_CSAwallace_rca8_csa5_csa_component_out >> 22) & 0x01ull) << 5;
s_CSAwallace_rca8_u_rca16_b |= ((s_CSAwallace_rca8_csa5_csa_component_out >> 23) & 0x01ull) << 6;
s_CSAwallace_rca8_u_rca16_b |= ((s_CSAwallace_rca8_csa5_csa_component_out >> 24) & 0x01ull) << 7;
s_CSAwallace_rca8_u_rca16_b |= ((s_CSAwallace_rca8_csa5_csa_component_out >> 25) & 0x01ull) << 8;
s_CSAwallace_rca8_u_rca16_b |= ((s_CSAwallace_rca8_csa5_csa_component_out >> 26) & 0x01ull) << 9;
s_CSAwallace_rca8_u_rca16_b |= ((s_CSAwallace_rca8_csa5_csa_component_out >> 27) & 0x01ull) << 10;
s_CSAwallace_rca8_u_rca16_b |= ((s_CSAwallace_rca8_csa5_csa_component_out >> 28) & 0x01ull) << 11;
s_CSAwallace_rca8_u_rca16_b |= ((s_CSAwallace_rca8_csa5_csa_component_out >> 29) & 0x01ull) << 12;
s_CSAwallace_rca8_u_rca16_b |= ((s_CSAwallace_rca8_csa5_csa_component_out >> 30) & 0x01ull) << 13;
s_CSAwallace_rca8_u_rca16_b |= ((s_CSAwallace_rca8_csa5_csa_component_out >> 31) & 0x01ull) << 14;
s_CSAwallace_rca8_u_rca16_b |= ((s_CSAwallace_rca8_csa5_csa_component_out >> 32) & 0x01ull) << 15;
s_CSAwallace_rca8_u_rca16_out = u_rca16(s_CSAwallace_rca8_u_rca16_a, s_CSAwallace_rca8_u_rca16_b);
s_CSAwallace_rca8_xor0 = not_gate(((s_CSAwallace_rca8_u_rca16_out >> 15) & 0x01));
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_u_rca16_out >> 0) & 0x01ull) << 0;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_u_rca16_out >> 1) & 0x01ull) << 1;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_u_rca16_out >> 2) & 0x01ull) << 2;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_u_rca16_out >> 3) & 0x01ull) << 3;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_u_rca16_out >> 4) & 0x01ull) << 4;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_u_rca16_out >> 5) & 0x01ull) << 5;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_u_rca16_out >> 6) & 0x01ull) << 6;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_u_rca16_out >> 7) & 0x01ull) << 7;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_u_rca16_out >> 8) & 0x01ull) << 8;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_u_rca16_out >> 9) & 0x01ull) << 9;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_u_rca16_out >> 10) & 0x01ull) << 10;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_u_rca16_out >> 11) & 0x01ull) << 11;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_u_rca16_out >> 12) & 0x01ull) << 12;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_u_rca16_out >> 13) & 0x01ull) << 13;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_u_rca16_out >> 14) & 0x01ull) << 14;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 15;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 16;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 17;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 18;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 19;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 20;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 21;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 22;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 23;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 24;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 25;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 26;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 27;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 28;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 29;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 30;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 31;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 32;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 33;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 34;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 35;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 36;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 37;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 38;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 39;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 40;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 41;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 42;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 43;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 44;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 45;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 46;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 47;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 48;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 49;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 50;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 51;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 52;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 53;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 54;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 55;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 56;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 57;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 58;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 59;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 60;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 61;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 62;
s_CSAwallace_rca8_out |= ((s_CSAwallace_rca8_xor0 >> 0) & 0x01ull) << 63;
return s_CSAwallace_rca8_out;
}