Xilinx BFM仿真过程中遇到的问题
环境:
windows7 64bit
Modelsim 6.5a
Vivado2016.2
bfm对应函数查看pg129-cdn-axi-bfm.pdf
仿真过程中遇到的问题:
Google后相关连接:https://forums.xilinx.com/t5/Installation-and-Licensing/Help-AXI-BFM-Issues/td-p/657396
解决办法:
在windows环境变量中添加LD_LIBRARY_PATH = D:\Xilinx\SDK\2016.2\lib\win64.o; 即可解决问题。
task Lite_Write;
input [31:0] address;
input [31:0] wdata;
integer status;
begin
cdn_axi_bfm_0.cdn_axi4_lite_master_bfm_inst.SEND_WRITE_ADDRESS(address, 3'b000);
cdn_axi_bfm_0.cdn_axi4_lite_master_bfm_inst.SEND_WRITE_ADDRESS(address, 3'b000);
cdn_axi_bfm_0.cdn_axi4_lite_master_bfm_inst.SEND_WRITE_DATA(wdata,4'hff);
cdn_axi_bfm_0.cdn_axi4_lite_master_bfm_inst.RECEIVE_WRITE_RESPONSE(status);
$display("write response:%d",status);
repeat(10) @(posedge axi_clk);
end
endtask
task Lite_Read;
input [31:0] address;
output [31:0] rdata;
integer status;
begin
cdn_axi_bfm_0.cdn_axi4_lite_master_bfm_inst.SEND_READ_ADDRESS(address, 3'b000);
cdn_axi_bfm_0.cdn_axi4_lite_master_bfm_inst.RECEIVE_READ_DATA(rdata,status);
$display("read response:%d",status);
repeat(10) @(posedge axi_clk);
end
endtask