VALID cycles are not beats when READY is low. The terminal rule therefore belongs inside the handshake branch, where the accepted index and observed LAST are compared together.
Accepted-beat terminal checksystemverilog
always_ff @(posedge ACLK or negedge ARESETn) begin
if (!ARESETn) begin
beat_index <= '0;
end else if (WVALID && WREADY) begin
assert (WLAST == (beat_index == expected_beats - 1));
if (WLAST)
beat_index <= '0;
else
beat_index <= beat_index + 1'b1;
end
end
assert property (@(posedge ACLK) disable iff (!ARESETn)
WVALID && !WREADY |=>
WVALID && $stable({WDATA, WSTRB, WLAST}));