mirror of
https://github.com/ehw-fit/ariths-gen.git
synced 2025-04-20 05:41:25 +01:00

* #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>
253 lines
14 KiB
C
253 lines
14 KiB
C
#include <stdio.h>
|
|
#include <stdint.h>
|
|
|
|
int64_t s_cska12(int64_t a, int64_t b){
|
|
int64_t s_cska12_out = 0;
|
|
uint8_t s_cska12_xor0 = 0;
|
|
uint8_t s_cska12_ha0_xor0 = 0;
|
|
uint8_t s_cska12_ha0_and0 = 0;
|
|
uint8_t s_cska12_xor1 = 0;
|
|
uint8_t s_cska12_fa0_xor0 = 0;
|
|
uint8_t s_cska12_fa0_and0 = 0;
|
|
uint8_t s_cska12_fa0_xor1 = 0;
|
|
uint8_t s_cska12_fa0_and1 = 0;
|
|
uint8_t s_cska12_fa0_or0 = 0;
|
|
uint8_t s_cska12_xor2 = 0;
|
|
uint8_t s_cska12_fa1_xor0 = 0;
|
|
uint8_t s_cska12_fa1_and0 = 0;
|
|
uint8_t s_cska12_fa1_xor1 = 0;
|
|
uint8_t s_cska12_fa1_and1 = 0;
|
|
uint8_t s_cska12_fa1_or0 = 0;
|
|
uint8_t s_cska12_xor3 = 0;
|
|
uint8_t s_cska12_fa2_xor0 = 0;
|
|
uint8_t s_cska12_fa2_and0 = 0;
|
|
uint8_t s_cska12_fa2_xor1 = 0;
|
|
uint8_t s_cska12_fa2_and1 = 0;
|
|
uint8_t s_cska12_fa2_or0 = 0;
|
|
uint8_t s_cska12_and_propagate00 = 0;
|
|
uint8_t s_cska12_and_propagate01 = 0;
|
|
uint8_t s_cska12_and_propagate02 = 0;
|
|
uint8_t s_cska12_mux2to10_not0 = 0;
|
|
uint8_t s_cska12_mux2to10_and1 = 0;
|
|
uint8_t s_cska12_xor4 = 0;
|
|
uint8_t s_cska12_fa3_xor0 = 0;
|
|
uint8_t s_cska12_fa3_and0 = 0;
|
|
uint8_t s_cska12_fa3_xor1 = 0;
|
|
uint8_t s_cska12_fa3_and1 = 0;
|
|
uint8_t s_cska12_fa3_or0 = 0;
|
|
uint8_t s_cska12_xor5 = 0;
|
|
uint8_t s_cska12_fa4_xor0 = 0;
|
|
uint8_t s_cska12_fa4_and0 = 0;
|
|
uint8_t s_cska12_fa4_xor1 = 0;
|
|
uint8_t s_cska12_fa4_and1 = 0;
|
|
uint8_t s_cska12_fa4_or0 = 0;
|
|
uint8_t s_cska12_xor6 = 0;
|
|
uint8_t s_cska12_fa5_xor0 = 0;
|
|
uint8_t s_cska12_fa5_and0 = 0;
|
|
uint8_t s_cska12_fa5_xor1 = 0;
|
|
uint8_t s_cska12_fa5_and1 = 0;
|
|
uint8_t s_cska12_fa5_or0 = 0;
|
|
uint8_t s_cska12_xor7 = 0;
|
|
uint8_t s_cska12_fa6_xor0 = 0;
|
|
uint8_t s_cska12_fa6_and0 = 0;
|
|
uint8_t s_cska12_fa6_xor1 = 0;
|
|
uint8_t s_cska12_fa6_and1 = 0;
|
|
uint8_t s_cska12_fa6_or0 = 0;
|
|
uint8_t s_cska12_and_propagate13 = 0;
|
|
uint8_t s_cska12_and_propagate14 = 0;
|
|
uint8_t s_cska12_and_propagate15 = 0;
|
|
uint8_t s_cska12_mux2to11_and0 = 0;
|
|
uint8_t s_cska12_mux2to11_not0 = 0;
|
|
uint8_t s_cska12_mux2to11_and1 = 0;
|
|
uint8_t s_cska12_mux2to11_xor0 = 0;
|
|
uint8_t s_cska12_xor8 = 0;
|
|
uint8_t s_cska12_fa7_xor0 = 0;
|
|
uint8_t s_cska12_fa7_and0 = 0;
|
|
uint8_t s_cska12_fa7_xor1 = 0;
|
|
uint8_t s_cska12_fa7_and1 = 0;
|
|
uint8_t s_cska12_fa7_or0 = 0;
|
|
uint8_t s_cska12_xor9 = 0;
|
|
uint8_t s_cska12_fa8_xor0 = 0;
|
|
uint8_t s_cska12_fa8_and0 = 0;
|
|
uint8_t s_cska12_fa8_xor1 = 0;
|
|
uint8_t s_cska12_fa8_and1 = 0;
|
|
uint8_t s_cska12_fa8_or0 = 0;
|
|
uint8_t s_cska12_xor10 = 0;
|
|
uint8_t s_cska12_fa9_xor0 = 0;
|
|
uint8_t s_cska12_fa9_and0 = 0;
|
|
uint8_t s_cska12_fa9_xor1 = 0;
|
|
uint8_t s_cska12_fa9_and1 = 0;
|
|
uint8_t s_cska12_fa9_or0 = 0;
|
|
uint8_t s_cska12_xor11 = 0;
|
|
uint8_t s_cska12_fa10_xor0 = 0;
|
|
uint8_t s_cska12_fa10_and0 = 0;
|
|
uint8_t s_cska12_fa10_xor1 = 0;
|
|
uint8_t s_cska12_fa10_and1 = 0;
|
|
uint8_t s_cska12_fa10_or0 = 0;
|
|
uint8_t s_cska12_and_propagate26 = 0;
|
|
uint8_t s_cska12_and_propagate27 = 0;
|
|
uint8_t s_cska12_and_propagate28 = 0;
|
|
uint8_t s_cska12_mux2to12_and0 = 0;
|
|
uint8_t s_cska12_mux2to12_not0 = 0;
|
|
uint8_t s_cska12_mux2to12_and1 = 0;
|
|
uint8_t s_cska12_mux2to12_xor0 = 0;
|
|
uint8_t s_cska12_xor12 = 0;
|
|
uint8_t s_cska12_xor13 = 0;
|
|
|
|
s_cska12_xor0 = ((a >> 0) & 0x01) ^ ((b >> 0) & 0x01);
|
|
s_cska12_ha0_xor0 = ((a >> 0) & 0x01) ^ ((b >> 0) & 0x01);
|
|
s_cska12_ha0_and0 = ((a >> 0) & 0x01) & ((b >> 0) & 0x01);
|
|
s_cska12_xor1 = ((a >> 1) & 0x01) ^ ((b >> 1) & 0x01);
|
|
s_cska12_fa0_xor0 = ((a >> 1) & 0x01) ^ ((b >> 1) & 0x01);
|
|
s_cska12_fa0_and0 = ((a >> 1) & 0x01) & ((b >> 1) & 0x01);
|
|
s_cska12_fa0_xor1 = ((s_cska12_fa0_xor0 >> 0) & 0x01) ^ ((s_cska12_ha0_and0 >> 0) & 0x01);
|
|
s_cska12_fa0_and1 = ((s_cska12_fa0_xor0 >> 0) & 0x01) & ((s_cska12_ha0_and0 >> 0) & 0x01);
|
|
s_cska12_fa0_or0 = ((s_cska12_fa0_and0 >> 0) & 0x01) | ((s_cska12_fa0_and1 >> 0) & 0x01);
|
|
s_cska12_xor2 = ((a >> 2) & 0x01) ^ ((b >> 2) & 0x01);
|
|
s_cska12_fa1_xor0 = ((a >> 2) & 0x01) ^ ((b >> 2) & 0x01);
|
|
s_cska12_fa1_and0 = ((a >> 2) & 0x01) & ((b >> 2) & 0x01);
|
|
s_cska12_fa1_xor1 = ((s_cska12_fa1_xor0 >> 0) & 0x01) ^ ((s_cska12_fa0_or0 >> 0) & 0x01);
|
|
s_cska12_fa1_and1 = ((s_cska12_fa1_xor0 >> 0) & 0x01) & ((s_cska12_fa0_or0 >> 0) & 0x01);
|
|
s_cska12_fa1_or0 = ((s_cska12_fa1_and0 >> 0) & 0x01) | ((s_cska12_fa1_and1 >> 0) & 0x01);
|
|
s_cska12_xor3 = ((a >> 3) & 0x01) ^ ((b >> 3) & 0x01);
|
|
s_cska12_fa2_xor0 = ((a >> 3) & 0x01) ^ ((b >> 3) & 0x01);
|
|
s_cska12_fa2_and0 = ((a >> 3) & 0x01) & ((b >> 3) & 0x01);
|
|
s_cska12_fa2_xor1 = ((s_cska12_fa2_xor0 >> 0) & 0x01) ^ ((s_cska12_fa1_or0 >> 0) & 0x01);
|
|
s_cska12_fa2_and1 = ((s_cska12_fa2_xor0 >> 0) & 0x01) & ((s_cska12_fa1_or0 >> 0) & 0x01);
|
|
s_cska12_fa2_or0 = ((s_cska12_fa2_and0 >> 0) & 0x01) | ((s_cska12_fa2_and1 >> 0) & 0x01);
|
|
s_cska12_and_propagate00 = ((s_cska12_xor0 >> 0) & 0x01) & ((s_cska12_xor2 >> 0) & 0x01);
|
|
s_cska12_and_propagate01 = ((s_cska12_xor1 >> 0) & 0x01) & ((s_cska12_xor3 >> 0) & 0x01);
|
|
s_cska12_and_propagate02 = ((s_cska12_and_propagate00 >> 0) & 0x01) & ((s_cska12_and_propagate01 >> 0) & 0x01);
|
|
s_cska12_mux2to10_not0 = ~(((s_cska12_and_propagate02 >> 0) & 0x01)) & 0x01;
|
|
s_cska12_mux2to10_and1 = ((s_cska12_fa2_or0 >> 0) & 0x01) & ((s_cska12_mux2to10_not0 >> 0) & 0x01);
|
|
s_cska12_xor4 = ((a >> 4) & 0x01) ^ ((b >> 4) & 0x01);
|
|
s_cska12_fa3_xor0 = ((a >> 4) & 0x01) ^ ((b >> 4) & 0x01);
|
|
s_cska12_fa3_and0 = ((a >> 4) & 0x01) & ((b >> 4) & 0x01);
|
|
s_cska12_fa3_xor1 = ((s_cska12_fa3_xor0 >> 0) & 0x01) ^ ((s_cska12_mux2to10_and1 >> 0) & 0x01);
|
|
s_cska12_fa3_and1 = ((s_cska12_fa3_xor0 >> 0) & 0x01) & ((s_cska12_mux2to10_and1 >> 0) & 0x01);
|
|
s_cska12_fa3_or0 = ((s_cska12_fa3_and0 >> 0) & 0x01) | ((s_cska12_fa3_and1 >> 0) & 0x01);
|
|
s_cska12_xor5 = ((a >> 5) & 0x01) ^ ((b >> 5) & 0x01);
|
|
s_cska12_fa4_xor0 = ((a >> 5) & 0x01) ^ ((b >> 5) & 0x01);
|
|
s_cska12_fa4_and0 = ((a >> 5) & 0x01) & ((b >> 5) & 0x01);
|
|
s_cska12_fa4_xor1 = ((s_cska12_fa4_xor0 >> 0) & 0x01) ^ ((s_cska12_fa3_or0 >> 0) & 0x01);
|
|
s_cska12_fa4_and1 = ((s_cska12_fa4_xor0 >> 0) & 0x01) & ((s_cska12_fa3_or0 >> 0) & 0x01);
|
|
s_cska12_fa4_or0 = ((s_cska12_fa4_and0 >> 0) & 0x01) | ((s_cska12_fa4_and1 >> 0) & 0x01);
|
|
s_cska12_xor6 = ((a >> 6) & 0x01) ^ ((b >> 6) & 0x01);
|
|
s_cska12_fa5_xor0 = ((a >> 6) & 0x01) ^ ((b >> 6) & 0x01);
|
|
s_cska12_fa5_and0 = ((a >> 6) & 0x01) & ((b >> 6) & 0x01);
|
|
s_cska12_fa5_xor1 = ((s_cska12_fa5_xor0 >> 0) & 0x01) ^ ((s_cska12_fa4_or0 >> 0) & 0x01);
|
|
s_cska12_fa5_and1 = ((s_cska12_fa5_xor0 >> 0) & 0x01) & ((s_cska12_fa4_or0 >> 0) & 0x01);
|
|
s_cska12_fa5_or0 = ((s_cska12_fa5_and0 >> 0) & 0x01) | ((s_cska12_fa5_and1 >> 0) & 0x01);
|
|
s_cska12_xor7 = ((a >> 7) & 0x01) ^ ((b >> 7) & 0x01);
|
|
s_cska12_fa6_xor0 = ((a >> 7) & 0x01) ^ ((b >> 7) & 0x01);
|
|
s_cska12_fa6_and0 = ((a >> 7) & 0x01) & ((b >> 7) & 0x01);
|
|
s_cska12_fa6_xor1 = ((s_cska12_fa6_xor0 >> 0) & 0x01) ^ ((s_cska12_fa5_or0 >> 0) & 0x01);
|
|
s_cska12_fa6_and1 = ((s_cska12_fa6_xor0 >> 0) & 0x01) & ((s_cska12_fa5_or0 >> 0) & 0x01);
|
|
s_cska12_fa6_or0 = ((s_cska12_fa6_and0 >> 0) & 0x01) | ((s_cska12_fa6_and1 >> 0) & 0x01);
|
|
s_cska12_and_propagate13 = ((s_cska12_xor4 >> 0) & 0x01) & ((s_cska12_xor6 >> 0) & 0x01);
|
|
s_cska12_and_propagate14 = ((s_cska12_xor5 >> 0) & 0x01) & ((s_cska12_xor7 >> 0) & 0x01);
|
|
s_cska12_and_propagate15 = ((s_cska12_and_propagate13 >> 0) & 0x01) & ((s_cska12_and_propagate14 >> 0) & 0x01);
|
|
s_cska12_mux2to11_and0 = ((s_cska12_mux2to10_and1 >> 0) & 0x01) & ((s_cska12_and_propagate15 >> 0) & 0x01);
|
|
s_cska12_mux2to11_not0 = ~(((s_cska12_and_propagate15 >> 0) & 0x01)) & 0x01;
|
|
s_cska12_mux2to11_and1 = ((s_cska12_fa6_or0 >> 0) & 0x01) & ((s_cska12_mux2to11_not0 >> 0) & 0x01);
|
|
s_cska12_mux2to11_xor0 = ((s_cska12_mux2to11_and0 >> 0) & 0x01) ^ ((s_cska12_mux2to11_and1 >> 0) & 0x01);
|
|
s_cska12_xor8 = ((a >> 8) & 0x01) ^ ((b >> 8) & 0x01);
|
|
s_cska12_fa7_xor0 = ((a >> 8) & 0x01) ^ ((b >> 8) & 0x01);
|
|
s_cska12_fa7_and0 = ((a >> 8) & 0x01) & ((b >> 8) & 0x01);
|
|
s_cska12_fa7_xor1 = ((s_cska12_fa7_xor0 >> 0) & 0x01) ^ ((s_cska12_mux2to11_xor0 >> 0) & 0x01);
|
|
s_cska12_fa7_and1 = ((s_cska12_fa7_xor0 >> 0) & 0x01) & ((s_cska12_mux2to11_xor0 >> 0) & 0x01);
|
|
s_cska12_fa7_or0 = ((s_cska12_fa7_and0 >> 0) & 0x01) | ((s_cska12_fa7_and1 >> 0) & 0x01);
|
|
s_cska12_xor9 = ((a >> 9) & 0x01) ^ ((b >> 9) & 0x01);
|
|
s_cska12_fa8_xor0 = ((a >> 9) & 0x01) ^ ((b >> 9) & 0x01);
|
|
s_cska12_fa8_and0 = ((a >> 9) & 0x01) & ((b >> 9) & 0x01);
|
|
s_cska12_fa8_xor1 = ((s_cska12_fa8_xor0 >> 0) & 0x01) ^ ((s_cska12_fa7_or0 >> 0) & 0x01);
|
|
s_cska12_fa8_and1 = ((s_cska12_fa8_xor0 >> 0) & 0x01) & ((s_cska12_fa7_or0 >> 0) & 0x01);
|
|
s_cska12_fa8_or0 = ((s_cska12_fa8_and0 >> 0) & 0x01) | ((s_cska12_fa8_and1 >> 0) & 0x01);
|
|
s_cska12_xor10 = ((a >> 10) & 0x01) ^ ((b >> 10) & 0x01);
|
|
s_cska12_fa9_xor0 = ((a >> 10) & 0x01) ^ ((b >> 10) & 0x01);
|
|
s_cska12_fa9_and0 = ((a >> 10) & 0x01) & ((b >> 10) & 0x01);
|
|
s_cska12_fa9_xor1 = ((s_cska12_fa9_xor0 >> 0) & 0x01) ^ ((s_cska12_fa8_or0 >> 0) & 0x01);
|
|
s_cska12_fa9_and1 = ((s_cska12_fa9_xor0 >> 0) & 0x01) & ((s_cska12_fa8_or0 >> 0) & 0x01);
|
|
s_cska12_fa9_or0 = ((s_cska12_fa9_and0 >> 0) & 0x01) | ((s_cska12_fa9_and1 >> 0) & 0x01);
|
|
s_cska12_xor11 = ((a >> 11) & 0x01) ^ ((b >> 11) & 0x01);
|
|
s_cska12_fa10_xor0 = ((a >> 11) & 0x01) ^ ((b >> 11) & 0x01);
|
|
s_cska12_fa10_and0 = ((a >> 11) & 0x01) & ((b >> 11) & 0x01);
|
|
s_cska12_fa10_xor1 = ((s_cska12_fa10_xor0 >> 0) & 0x01) ^ ((s_cska12_fa9_or0 >> 0) & 0x01);
|
|
s_cska12_fa10_and1 = ((s_cska12_fa10_xor0 >> 0) & 0x01) & ((s_cska12_fa9_or0 >> 0) & 0x01);
|
|
s_cska12_fa10_or0 = ((s_cska12_fa10_and0 >> 0) & 0x01) | ((s_cska12_fa10_and1 >> 0) & 0x01);
|
|
s_cska12_and_propagate26 = ((s_cska12_xor8 >> 0) & 0x01) & ((s_cska12_xor10 >> 0) & 0x01);
|
|
s_cska12_and_propagate27 = ((s_cska12_xor9 >> 0) & 0x01) & ((s_cska12_xor11 >> 0) & 0x01);
|
|
s_cska12_and_propagate28 = ((s_cska12_and_propagate26 >> 0) & 0x01) & ((s_cska12_and_propagate27 >> 0) & 0x01);
|
|
s_cska12_mux2to12_and0 = ((s_cska12_mux2to11_xor0 >> 0) & 0x01) & ((s_cska12_and_propagate28 >> 0) & 0x01);
|
|
s_cska12_mux2to12_not0 = ~(((s_cska12_and_propagate28 >> 0) & 0x01)) & 0x01;
|
|
s_cska12_mux2to12_and1 = ((s_cska12_fa10_or0 >> 0) & 0x01) & ((s_cska12_mux2to12_not0 >> 0) & 0x01);
|
|
s_cska12_mux2to12_xor0 = ((s_cska12_mux2to12_and0 >> 0) & 0x01) ^ ((s_cska12_mux2to12_and1 >> 0) & 0x01);
|
|
s_cska12_xor12 = ((a >> 11) & 0x01) ^ ((b >> 11) & 0x01);
|
|
s_cska12_xor13 = ((s_cska12_xor12 >> 0) & 0x01) ^ ((s_cska12_mux2to12_xor0 >> 0) & 0x01);
|
|
|
|
s_cska12_out |= ((s_cska12_ha0_xor0 >> 0) & 0x01ull) << 0;
|
|
s_cska12_out |= ((s_cska12_fa0_xor1 >> 0) & 0x01ull) << 1;
|
|
s_cska12_out |= ((s_cska12_fa1_xor1 >> 0) & 0x01ull) << 2;
|
|
s_cska12_out |= ((s_cska12_fa2_xor1 >> 0) & 0x01ull) << 3;
|
|
s_cska12_out |= ((s_cska12_fa3_xor1 >> 0) & 0x01ull) << 4;
|
|
s_cska12_out |= ((s_cska12_fa4_xor1 >> 0) & 0x01ull) << 5;
|
|
s_cska12_out |= ((s_cska12_fa5_xor1 >> 0) & 0x01ull) << 6;
|
|
s_cska12_out |= ((s_cska12_fa6_xor1 >> 0) & 0x01ull) << 7;
|
|
s_cska12_out |= ((s_cska12_fa7_xor1 >> 0) & 0x01ull) << 8;
|
|
s_cska12_out |= ((s_cska12_fa8_xor1 >> 0) & 0x01ull) << 9;
|
|
s_cska12_out |= ((s_cska12_fa9_xor1 >> 0) & 0x01ull) << 10;
|
|
s_cska12_out |= ((s_cska12_fa10_xor1 >> 0) & 0x01ull) << 11;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 12;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 13;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 14;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 15;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 16;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 17;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 18;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 19;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 20;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 21;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 22;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 23;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 24;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 25;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 26;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 27;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 28;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 29;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 30;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 31;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 32;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 33;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 34;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 35;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 36;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 37;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 38;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 39;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 40;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 41;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 42;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 43;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 44;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 45;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 46;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 47;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 48;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 49;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 50;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 51;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 52;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 53;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 54;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 55;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 56;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 57;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 58;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 59;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 60;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 61;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 62;
|
|
s_cska12_out |= ((s_cska12_xor13 >> 0) & 0x01ull) << 63;
|
|
return s_cska12_out;
|
|
} |