Store Buffer Operation - Store Buffer Operation - 1.15 English - UG585

Zynq 7000 SoC Technical Reference Manual (UG585)

Document_ID
UG585
Release_Date
2026-02-06
Version
1.15 English

Two buffered write accesses to the same address and the same security bit cause the first write access to be overridden if the controller does not drain the store buffer after the first access. The store buffer has merging capabilities, so it merges successive writes to the same line address into the same buffer slot. This means that the controller does not drain the slots as soon as they contain data, but rather waits for other potential accesses that target the same cache line. The store buffer draining policy is as follows. Slave port refers to the port from the SCU to the L2 cache controller:

  • The store buffer slot is immediately drained if targeting device memory area.
  • The store buffer slots are drained as soon as they are full.
  • The store buffer is drained at each strongly-ordered read occurrence in the slave port.
  • The store buffer is drained at each strongly ordered write occurrence in the slave port.
  • If the three slots of the store buffer contain data, the least recently accessed slot is drained.
  • If a hazard is detected with one store buffer slot, it is drained to resolve the hazard. Hazards can occur when data is present in the cache buffers, but not yet present in the cache RAM or external memory.
  • The store buffer slots are drained when a locked transaction is received by the slave port.
  • The store buffer slots are drained when a transaction targeting the configuration registers is received by the slave port.

Merging condition is based on address and security attribute. Merging takes place only when data is in the store buffer and it is not draining.

When a write-allocate cacheable slot is drained, misses in the cache, and is not full, the store buffer sends a request through the master ports to the main interconnects or DDR to complete the cache line. The corresponding master port sends a read request through the interconnects and provides data to the store buffer in return. When the slot is full, it can be allocated into the cache.