SPRACT2 August   2020  – MONTH  AM68 , AM68 , AM68A , AM68A , AM69 , AM69 , AM69A , AM69A , DRA829J , DRA829J , DRA829V , DRA829V , TDA4VM , TDA4VM , TDA4VM-Q1 , TDA4VM-Q1

 

  1.   Trademarks
  2. 1Introduction
    1. 1.1 Acronyms Used in This Document
  3. 2 Tuning Algorithm
    1. 2.1 Passing Regions
    2. 2.2 Temperature Effect on Passing Region
    3. 2.3 Algorithm

Introduction

Figure 1-1 shows the OSPI controller connected to the Flash device.

The data lines (DQ[7..0]) are bidirectional. During the command and address sections of the read transaction the controller drives those pins. During the data section of the transaction the flash devices drives the data lines. Figure 1-2 is an example of 4-byte read transaction.

GUID-20200710-SS0I-V9D7-GQSR-H8JSQCCFFPGG-low.gif Figure 1-1 OSPI Controller and Flash Device

The controller provides the OSPI clock to the Flash device. It is generated by delaying the ref_clk through the TX PDL. The flash device uses the clock to capture the command and address during the command and address phases. During the data phase, the OSPI device drives a new data byte on each edge of the OSPI clock. Figure 1-2 is an example of 4-byte read transaction.

Some OSPI devices provide a DQS signal. The DQS and data are edge aligned at points 4 and 5 in Figure 1-1. DQS must be delayed by the RX PDL to a point inside the data eye to sample valid data at point 2.

GUID-20200710-SS0I-Q5ZX-XWHF-DV4RJVPJXQ17-low.gif Figure 1-2 Timing Diagram of a Read Transaction

The “round trip delay” of data is the time from a ref_clk edge, to the sampling time of the data triggered by that edge. The sum of delays created by the TX PDL, the travel time of the OSPI clock from the controller to the flash device, the output delay of the flash device, and the RX PDL Delay, creates the round trip delay. The controller samples the data into an RX FIFO using the Delayed DQS. The data is read by the controller out of the RX FIFO using the ref_clk.

GUID-20200710-SS0I-QR6Q-0VF0-P3VM9VJ0XGXM-low.gif Figure 1-3 Data Sampling

The controller expects the first byte of data to be captured within a specific ref_clk cycle (the target cycle), and all remaining data in the following cycles. In cases where the round trip delay is higher than the ref_clk period, the target cycle must be moved to the next ref_clk cycle using the Read Data Capture register’s Read Delay field OSPI_RD_DATA_CAPTURE_REG[4:1].

The goal of the tuning procedure is to select an optimal tuning point (OTP) of Read Delay, TX PDL Delay, and RX PDL Delay for sampling data.

GUID-20200710-SS0I-QR6Q-0VF0-P3VM9VJ0XGXM-low.gif Figure 1-4 RCLK Target Cycles