Embedded Memory User Guide: Agilex™ 3 FPGAs and SoCs

ID 849316
Date 5/22/2025
Public
Document Table of Contents

3.3. Read-During-Write

Unpredictable behavior can occur when the memory address is accessed simultaneous for reading and writing (read-during-write).

Depending on the timing, the read operation might capture:

  • Old data
  • New data being written
  • A mix of old and new data

You can configure the output behavior for when the M20K memory block encounters read-during-write conflict. Select one of these options in the IP parameter editor:

  • Old Data—read the data at the address first before beginning the write operation.
  • Don't Care—leave it as unknown because the data value during the conflict is not critical.

Avoiding Read-During-Write Conflict in Design Using Separate Read and Write Clocks

Make the write operation change the address on the rising edge of the write clock to a value different than the read address. This change must happen before read operation occurs on the rising edge of the read clock.