- Request exclusive access to the flash memory using the OPEN command.
- Select the flash device using the CHIP_SELECT command.
- Specify the flash device address using the READ_ADDR command.
- Specify the number using the READ_WORDS command.
- Flush the read data FIFO before performing any read operations by writing 2b’10 to the READ_OP command.
- Start the read operation by transferring data from flash to the read data FIFO by writing 2’b01 to the READ_OP command.
- Poll the Rddata valid of the ISR register to when the data stored in read data FIFO is ready to read. You can also read the fill level of the internal read data FIFO using the READ_FIFO_LEVEL command. You can also read the Cmd_err field of the ISR register to check the status of the read transaction. The ISR writes a value of one to the Cmd_err field of the ISR register if a read is unsuccessful. You can also check the Rsp_status field of the STATUS register.
- Read the data stored in read data FIFO via read data interfaces.
- Assert the rd_mem_read signal while the rd_mem_waitrequest signal is low. If the rd_mem_waitrequest signal is high, the rd_mem_read signal must be kept high until the wr_mem_waitrequest signal goes low.
- Set the address value at the rd_mem_address bus.
Note: Refer to the base address assigned to the rd_mem bus for the Serial Flash Mailbox Client Intel FPGA IP in the Intel® Quartus® Prime Platform Designer for the assigned addresses. .
- Read the rd_mem_readdata bus if the rd_mem_readdatavalid signal is asserted.
- Repeat steps a to c to continuously read the data from the read data FIFO.
- De-assert the rd_mem_read signal once you have completed reading the data from the read data FIFO.
- Optional: You can read the fill level of the internal read data FIFO using the READ_FIFO_LEVEL command.
- Repeat step 3 to 8 to continue performing read operations.
Note: You can check the STATUS register each time you send a command to ensure that the command completed successfully.Figure 5. Read Operation Example Timing Diagram
- Release exclusive access to the flash device using the CLOSE command.
Did you find the information on this page useful?