Skip to content

Commit

Permalink
hw: Also fix and enable util/run_vsim.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
paulsc96 committed Jun 19, 2024
1 parent 59b6986 commit 597c495
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions hw/reqrsp_interface/test/axi_to_reqrsp_tb.sv
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ module axi_to_reqrsp_tb import reqrsp_pkg::*; #(
reqrsp_monitor.rsp_mbx.get(rsp);

// Check that we have seen the appropriate transactions on the inputs.
if (req.write) begin
if (req.write | is_amo(req.amo) | (req.amo == AMOSC)) begin
axi_monitor.aw_mbx.peek(ax);
axi_monitor.w_mbx.get(w);
// Invert bits as this is signalled as a clear condition on AXI.
Expand All @@ -149,7 +149,7 @@ module axi_to_reqrsp_tb import reqrsp_pkg::*; #(
else $error("[Write Strb] Expected `%h` got `%h`", w.w_strb, req.strb);
assert(req.data == w.w_data)
else $error("[Write Data] Expected `%h` got `%h`", w.w_data, req.data);
assert(req.write == 1);
assert(req.write == (req.amo == AMONone));
assert (
req.addr ==
axi_pkg::beat_addr(ax.ax_addr, ax.ax_size, ax.ax_len, ax.ax_burst, id_cnt_write)
Expand Down
2 changes: 1 addition & 1 deletion hw/reqrsp_interface/util/run_vsim.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ call_vsim() {
grep "Errors: 0," vsim.log
}

#call_vsim axi_to_reqrsp_tb
call_vsim axi_to_reqrsp_tb
call_vsim reqrsp_to_axi_tb
call_vsim reqrsp_mux_tb
call_vsim reqrsp_demux_tb
Expand Down

0 comments on commit 597c495

Please sign in to comment.