aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Moch <Andrew.Moch@ni.com>2020-07-30 22:51:24 +0100
committerWade Fife <wade.fife@ettus.com>2020-07-31 13:10:00 -0500
commitcb7e9e24578ccf4db79878a7437a6a85ad315ee2 (patch)
treec80b9aaf6c6001571de8db00c4172de9dbb09e1b
parent6ef642e3ac44c52b98b124f30dc84b1683859989 (diff)
downloaduhd-cb7e9e24578ccf4db79878a7437a6a85ad315ee2.tar.gz
uhd-cb7e9e24578ccf4db79878a7437a6a85ad315ee2.tar.bz2
uhd-cb7e9e24578ccf4db79878a7437a6a85ad315ee2.zip
fpga: sim: Fix AxiLiteBfm
AxiLiteBfm incorrectly included stb argument on rd() and printed actual response instead of expected in debug message.
-rw-r--r--fpga/usrp3/sim/rfnoc/PkgAxiLiteBfm.sv6
1 files 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();