#include #include //int and_gate(int a, int b, int c) int a,b,c; void and_gate(int a, int b, int c) { //#pragma HLS INTERFACE =res //#pragma HLS INTERFACE bram port=a //#pragma HLS RESOURCES variable= input core = AXIS metadata= "-bus bundle a" //#pragma HLS RESOURCES variable= input core = AXIS metadata= "-bus bundle b" //#pragma HLS RESOURCES variable= output core = AXIS metadata= "-bus bundle c" #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS INTERFACE axis port=c c = a & b; // bitwise-and operation // return c; }