fpga: sim: Fix AxiLiteBfm
AxiLiteBfm incorrectly included stb argument on rd() and printed actual response instead of expected in debug message. Original-commit: cb7e9e24578ccf4db79878a7437a6a85ad315ee2
This commit is contained in:
@@ -264,7 +264,7 @@ package PkgAxiLiteBfm;
|
|||||||
get_wr_response(xaction);
|
get_wr_response(xaction);
|
||||||
assert (xaction.resp == resp) else begin
|
assert (xaction.resp == resp) else begin
|
||||||
xaction.print();
|
xaction.print();
|
||||||
$error({"mismatch on wr response. expected:",xaction.resp.name});
|
$error({"mismatch on wr response. expected:",resp.name});
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
join_none
|
join_none
|
||||||
@@ -321,7 +321,7 @@ package PkgAxiLiteBfm;
|
|||||||
endtask : rd_block
|
endtask : rd_block
|
||||||
|
|
||||||
// Non-blocking read that checks against an expected data response
|
// 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;
|
AxiLiteTransaction_t xaction = new;
|
||||||
post_rd(addr,xaction);
|
post_rd(addr,xaction);
|
||||||
fork
|
fork
|
||||||
@@ -329,7 +329,7 @@ package PkgAxiLiteBfm;
|
|||||||
get_rd_response(xaction);
|
get_rd_response(xaction);
|
||||||
assert (xaction.resp == resp) else begin
|
assert (xaction.resp == resp) else begin
|
||||||
xaction.print();
|
xaction.print();
|
||||||
$error({"mismatch on rd response. expected:",xaction.resp.name});
|
$error({"mismatch on rd response. expected:",resp.name});
|
||||||
end
|
end
|
||||||
assert (xaction.data === data) else begin
|
assert (xaction.data === data) else begin
|
||||||
xaction.print();
|
xaction.print();
|
||||||
|
|||||||
Reference in New Issue
Block a user