axi_rd_rsp_fifo_ = new tlm_fifo <tlm_generic_payload*> (16);
axi_wr_rsp_fifo_ = new tlm_fifo <tlm_generic_payload*> (16);
axi_rd_req_ptr_fifo_ = new tlm_fifo <tlm_generic_payload*> (4096);
axi_wr_req_ptr_fifo_ = new tlm_fifo <tlm_generic_payload*> (4096);
cout<<"axi_wr_req_ptr_fifo_ used:"<<axi_wr_req_ptr_fifo_->used()<<endl;
for(uint32_t i= 0; i<(axi_wr_req_ptr_fifo_->used()+1); i++){
gp_req_tmp = axi_wr_req_ptr_fifo_->peek();
cout<<"axi_wr_req_ptr_fifo_ peek:"<<gp_req_tmp<<endl;
cout<<"axi_wr_rsp_fifo_ used:"<<axi_wr_rsp_fifo_->used()<<endl;
for(uint32_t j=0; j<(axi_wr_rsp_fifo_->used()+1); j++){
gp_rsp_tmp = axi_wr_rsp_fifo_->get();
cout<<"axi_wr_rsp_fifo_ get:"<<gp_rsp_tmp<<endl;
if(gp_req_tmp == gp_rsp_tmp){
gp_req_tmp = axi_wr_req_ptr_fifo_->get();
cout<<"axi_wr_req_ptr_fifo_ get:"<<gp_req_tmp<<endl;
customized_wr_rsp->b_transport(*gp_rsp_tmp, delay);
cout<<"axi_wr_req_ptr_fifo_ free:"<<gp_req_tmp<<endl;
cout<<"axi_wr_rsp_fifo_ free:"<<gp_rsp_tmp<<endl;
free_gp(gp_req_tmp);
free_gp(gp_rsp_tmp);
find = true;
break;
}
else {
axi_wr_rsp_fifo_->put(gp_rsp_tmp);
cout<<"axi_wr_rsp_fifo_ put:"<<gp_rsp_tmp<<endl;
}
}
最后
以上就是诚心毛衣最近收集整理的关于systemc TLM FIFO 使用的全部内容,更多相关systemc内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复