您当前的位置: 首页 > 

FPGA硅农

暂无认证

  • 3浏览

    0关注

    282博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

HLS实现浮点数乘法

FPGA硅农 发布时间:2020-03-04 12:37:51 ,浏览量:3

HLS Code

编写HLS代码如下

#include
float float_test(volatile float *src1,volatile float *src2,volatile float *dest){
#pragma HLS INTERFACE m_axi depth=10 port=src1 offset=slave bundle=MASTER_BUS1
#pragma HLS INTERFACE m_axi depth=10 port=src2 offset=slave bundle=MASTER_BUS2
#pragma HLS INTERFACE m_axi depth=10 port=dest offset=slave bundle=MASTER_BUS3
#pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS
float buff1[10];
float buff2[10];
float buff3[10];
memcpy(buff1,(const float*)src1,10*sizeof(float));
memcpy(buff2,(const float*)src2,10*sizeof(float));
int i;
for(i=0;i            
关注
打赏
1658642721
查看更多评论
0.0393s