From cb7e9e24578ccf4db79878a7437a6a85ad315ee2 Mon Sep 17 00:00:00 2001 From: Andrew Moch Date: Thu, 30 Jul 2020 22:51:24 +0100 Subject: fpga: sim: Fix AxiLiteBfm AxiLiteBfm incorrectly included stb argument on rd() and printed actual response instead of expected in debug message. --- fpga/usrp3/sim/rfnoc/PkgAxiLiteBfm.sv | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fpga/usrp3/sim/rfnoc/PkgAxiLiteBfm.sv b/fpga/usrp3/sim/rfnoc/PkgAxiLiteBfm.sv index 62fd2a078..b0b88d5c9 100644 --- a/fpga/usrp3/sim/rfnoc/PkgAxiLiteBfm.sv +++ b/fpga/usrp3/sim/rfnoc/PkgAxiLiteBfm.sv @@ -264,7 +264,7 @@ package PkgAxiLiteBfm; get_wr_response(xaction); assert (xaction.resp == resp) else begin xaction.print(); - $error({"mismatch on wr response. expected:",xaction.resp.name}); + $error({"mismatch on wr response. expected:",resp.name}); end end join_none @@ -321,7 +321,7 @@ package PkgAxiLiteBfm; endtask : rd_block // Non-blocking read that checks against an expected data response - task automatic rd(addr_t addr, data_t data, strb_t strb='1,resp_t resp=OKAY); + task automatic rd(addr_t addr, data_t data, resp_t resp=OKAY); AxiLiteTransaction_t xaction = new; post_rd(addr,xaction); fork @@ -329,7 +329,7 @@ package PkgAxiLiteBfm; get_rd_response(xaction); assert (xaction.resp == resp) else begin xaction.print(); - $error({"mismatch on rd response. expected:",xaction.resp.name}); + $error({"mismatch on rd response. expected:",resp.name}); end assert (xaction.data === data) else begin xaction.print(); -- cgit v1.2.3