// multi_apuint.cpp
#include <stdio.h>
#include <string.h>
#include <ap_int.h>
#define PRAGMA_SUB(x) _Pragma (#x)
#define PRAGMA_HLS(x) PRAGMA_SUB(x)
#define II_VAL_D 1
static const size_t INW = 8;
static const size_t OUTW = INW * 2;
void multi_apuint(ap_uint<INW> multi_in0, ap_uint<INW> multi_in1,
ap_uint<OUTW> *multi_out){
PRAGMA_HLS(HLS PIPELINE II=II_VAL_D)
#pragma HLS INTERFACE s_axilite register port=multi_in1 bundle=AXI4LS
#pragma HLS INTERFACE s_axilite register port=multi_in0 bundle=AXI4LS
#pragma HLS INTERFACE s_axilite register port=multi_out bundle=AXI4LS
#pragma HLS INTERFACE s_axilite port=return bundle=AXI4LS
*multi_out = multi_in0 * multi_in1;
}
// multi_apuint.cpp
#include <stdio.h>
#include <string.h>
#include <ap_int.h>
static const size_t INW = 8;
static const size_t OUTW = INW * 2;
static const size_t II_VAL = 2;
void multi_apuint(ap_uint<INW> multi_in0, ap_uint<INW> multi_in1,
ap_uint<OUTW> *multi_out){
#pragma HLS PIPELINE II=II_VAL
#pragma HLS INTERFACE s_axilite register port=multi_in1 bundle=AXI4LS
#pragma HLS INTERFACE s_axilite register port=multi_in0 bundle=AXI4LS
#pragma HLS INTERFACE s_axilite register port=multi_out bundle=AXI4LS
#pragma HLS INTERFACE s_axilite port=return bundle=AXI4LS
*multi_out = multi_in0 * multi_in1;
}
日 | 月 | 火 | 水 | 木 | 金 | 土 |
---|---|---|---|---|---|---|
- | - | - | - | - | 1 | 2 |
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 | - | - | - | - | - | - |