• Menu
  • Product
  • Email
  • PDF
  • Order now
  • OSPI Controller PHY Tuning Algorithm

    • SPRACT2 August   2020  – MONTH  AM67 , AM67 , AM67A , AM67A , AM68 , AM68 , AM68A , AM68A , AM69 , AM69 , AM69A , AM69A , DRA821U , DRA821U , DRA821U-Q1 , DRA821U-Q1 , DRA829J , DRA829J , DRA829J-Q1 , DRA829J-Q1 , DRA829V , DRA829V , DRA829V-Q1 , DRA829V-Q1 , TDA4AEN-Q1 , TDA4AEN-Q1 , TDA4AH-Q1 , TDA4AH-Q1 , TDA4AL-Q1 , TDA4AL-Q1 , TDA4AP-Q1 , TDA4AP-Q1 , TDA4APE-Q1 , TDA4APE-Q1 , TDA4VE-Q1 , TDA4VE-Q1 , TDA4VEN-Q1 , TDA4VEN-Q1 , TDA4VH-Q1 , TDA4VH-Q1 , TDA4VL-Q1 , TDA4VL-Q1 , TDA4VM , TDA4VM , TDA4VM-Q1 , TDA4VM-Q1 , TDA4VP-Q1 , TDA4VP-Q1 , TDA4VPE-Q1 , TDA4VPE-Q1

       

  • CONTENTS
  • SEARCH
  • OSPI Controller PHY Tuning Algorithm
  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
  4. IMPORTANT NOTICE
search No matches found.
  • Full reading width
    • Full reading width
    • Comfortable reading width
    • Expanded reading width
  • Card for each section
  • Card with all content

 

APPLICATION NOTE

OSPI Controller PHY Tuning Algorithm

Trademarks

All other trademarks are the property of their respective owners.

1 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

1.1 Acronyms Used in This Document

Table 1-1 Acronyms Used in This Document
Acronym Description
Ref_clk The internal clock of the OSPI controller.
OSPI Clock The clock of the OSPI bus.
DQS

Sometimes referred to as data strobe, this is a signal provided by some OSPI devices. It acts as a high speed clock for the data lanes. The controller can use a delayed DQS to sample incoming data.

DLL

Delay locked loop

PDL Programmable delay line
OSPI PHY

The part of the OSPI controller which sets up TX delay, and samples incoming data.

Read Delay

A parameter of the OSPI controller which determines which ref_clk cycle incoming data must be sampled in.

Data Eye

The period of time in which all data bits are valid. The sampling edge must occur inside the data eye for the byte to be read successfully.

OTP Optimal Tuning Point

2 Tuning Algorithm

 

Texas Instruments

© Copyright 1995-2025 Texas Instruments Incorporated. All rights reserved.
Submit documentation feedback | IMPORTANT NOTICE | Trademarks | Privacy policy | Cookie policy | Terms of use | Terms of sale