Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

axi_sim_mem write after read leads to AXI error #273

Open
christian-lanius opened this issue Oct 20, 2022 · 1 comment
Open

axi_sim_mem write after read leads to AXI error #273

christian-lanius opened this issue Oct 20, 2022 · 1 comment

Comments

@christian-lanius
Copy link

christian-lanius commented Oct 20, 2022

Hi,
I use the axi_sim_mem to model off-chip memory. If write and read at the same address happens in quick succession, AXI handshaking is not being followed:
Once RVALID goes high, the RDATA has to be stable if RREADY is low. So if the read data is stalling and the write happens, the RDATA is being updated with the new value. Xilinx protocol checker will flag this as an error:

BIT( 62) : ERROR : AXI_ERRS_RDATA_STABLE: RDATA must remain stable when RVALID is asserted and RREADY low. Spec: section A3.2.1.

Here is the simulation view:
image

The error occurs at the red cursor, slightly before that, the data changes even though RVALID is high and RREADY is low. The read has been triggered at the start of the shown sequence (ID 0C from address 02135a20). Because later a write to the same address is performed, the error occurs.

While AXI does not have any ordering between reads and writes (both of the values are acceptable output values), however they have to be stable.

@vborchsh
Copy link

vborchsh commented Mar 5, 2024

Hi,

The same thing here. Are there any update or workaround on it?

Thanks

PS. Just for history: you need to clarify timescale values in whole your project

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

No branches or pull requests

2 participants