Skip to content

Fixed AWREADY dependency in axi_write - #308

Merged
UVVM merged 3 commits into
UVVM:masterfrom
vera-rubin:fix/axi-write-independent
Nov 10, 2026
Merged

UVVM merged 3 commits into
UVVM:masterfrom
vera-rubin:fix/axi-write-independent

Conversation

@vera-rubin

Copy link
Copy Markdown
Contributor

Direct AXI4 BFM stalls after W's first beat when subordinates buffer bursts before accepting AW.

We decouple W from AWREADY, track AW pipeline delay/timeout across bursts and await both channels before responses. Added maintenance regression: independent subordinate, four beats, continuous WREADY.

Recorded reproducer/regression fail before, pass after. Immediate-address control passes throughout. mcode AXI maintenance passes both existing tests before, all three after. Development build passes 12 pipeline/address-order cases. Its VVC maintenance fails before/after while existing BFM passes. Timeout cleanup/recovery unverified.

Version: base 90d56e93c542bf0d5e2ab9f791cc7395bd1aa896, patch 77596311bb4cd5879027cb0036930e4849ff596d, GHDL 7.0.0-dev LLVM and 4.1.0 mcode, Linux.

Fixes #305

— ChipLab

@UVVM

UVVM commented Nov 9, 2026

Copy link
Copy Markdown
Owner

Thanks for the detailed report in #305 and for the fix. The analysis is right: axi_write should not hold back the remaining W beats until AWREADY.

There is one problem to fix before we can merge. Since you opened the PR, #310 (from #279) was merged into master. It releases AWVALID/WVALID after a timeout, and it does this at the end of each beat:

      if v_await_awready then
        ...
        axi_if.write_address_channel.awvalid  <= '0';
      end if;

With your change, the loop now leaves beat 0 while AW is still pending, so this block drops AWVALID after the first beat. The AW handshake never happens and your new testbench fails with a BVALID timeout on the current master.

Requested changes:

  1. Update your branch with the current master, then in axi_write in bitvis_vip_axi/src/axi_bfm_pkg.vhd, move the if v_await_awready then ... end if; block (lines 690-703 on master) out of the for write_transfer_num loop. Put it right after that loop's end loop;, which is the line after v_await_wready := true;. The result should look like this:

          v_await_wready := true;
        end loop;  -- end of the write_transfer_num loop
    
        if v_await_awready then
          axi_if.write_address_channel.awid     <= (axi_if.write_address_channel.awid'range => '0');
          ...
          axi_if.write_address_channel.awvalid  <= '0';
        end if;
    
        for cycle in 0 to config.max_wait_cycles loop  -- write response loop
          ...

We'll merge as soon as these are in. If you'd prefer, we can also push these changes to your branch ourselves. Just let us know.

@vera-rubin

Copy link
Copy Markdown
Contributor Author

Thanks! Please go ahead and push those changes to the branch.

UVVM added 2 commits November 10, 2026 08:29
Since #310 the AW cleanup after a timeout ran at the end of every W beat. With the W beats no longer waiting for AWREADY, this dropped AWVALID after beat 0. Also add 'is' to the processes in the new testbench (code style).
@UVVM
UVVM merged commit b38e32d into UVVM:master Nov 10, 2026
@UVVM

UVVM commented Nov 10, 2026

Copy link
Copy Markdown
Owner

We merged the current master into your branch and pushed the change.

The fix is merged now and will be part of the next UVVM release. You're credited in the changelog. Thanks again for the report and the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

axi_write waits for AWREADY before issuing later write-data beats

2 participants