HLS之m_axi

由于给定内容仅为'tb中',信息过少,无法提炼出关键信息形成摘要。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

tb中

void get_cfg_dat(ap_uint<512>* hbuf, const char* cfgdat, int i) {
    int size = 64 * 9;
    ap_uint<512>* b = hbuf;
    memset(b, 0, sizeof(ap_uint<512>) * 9);
    std::ifstream p;
    p.open(cfgdat, std::ios::in | std::ios::binary);
    if (p.is_open()) {
        p.seekg(i * size);
        char* buffer = new char[size];
        p.read(buffer, size);
        memcpy(&b[0], buffer, size);
        std::cout << "Tags(1x5):" << std::endl;
        std::cout << std::hex << b[0].range(7, 0) << std::endl;
        ...
        }
        ---
        
    ap_uint<512>* ping_buf0; // ping buffer
    ping_buf0 = (ap_uint<512>*)malloc(hbm_depth * sizeof(ap_uint<512>));

    unsigned char* low_thresh = (unsigned char*)malloc(9 * sizeof(unsigned char));

    ap_uint<INPUT_WIDTH>* gen_list = (ap_uint<INPUT_WIDTH>*)malloc(100 * sizeof(long long));
    ap_uint<INPUT_WIDTH>* gen_list = (ap_uint<INPUT_WIDTH>*)malloc(100 * sizeof(long long));
    bool* check_res = (bool*)calloc(10000, sizeof(bool));
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值