Reading The Otp Block - Renesas ForgeFPGA User Manual

Table of Contents

Advertisement

ForgeFPGA Configuration Guide
Table 3: OTP Write Packet Format (Incoming)
Bits
0
Byte 1
W/Rn (1)
Byte 2
O1_A[12]
Byte 3
O1_A[3]
Byte 4
O2_A[15]
Byte 5
O2_A[6]
Byte 6
O2_D[2]
Byte 7
O3_A[10]
Byte 8
O3_A[1]
Address and Data
OTP1
OTP2
OTP3
Table 4: Read/Write Option Bits
Byte 1 [0:1] of OTP Packet format
2'b00: Read mode
2'b01: Reserved
2'b10: Write mode
2'b11: Return
6.2

Reading the OTP Block

Reading of the NVM via SPI is done by sending a three-byte command packet, which is met with a five-byte
response packet containing the requested NVM data. A diagram of the read command packet structure is given
in
Figure
12.
Reading to the OTP has the following steps:
1. Waiting for POR and PLL lock time (1300 us), after that we are sending the Signature bytes through
SPI_MOSI (GPIO_5) by keeping SPI_SS (GPIO_4) low.
2. After Signature bytes matches, GPIO_9 (Config-Sig match) goes high and giving delay of 80 us and then
sending the OTP Read command packet on SPI_MOSI (GPIO_5) by keeping low SPI_SS (GPIO_4) and OTP
read data will come on SPI_MISO (GPIO_6).
Rev.1.0
May 31, 2022
1
2
SP/AP (0)
R
O1_A[11]
O1_A[10]
O1_A[8]
O1_A[2]
O1_A[1]
O1_A[0]
O2_A[14]
O2_A[13]
O2_A[12]
O2_A[5]
O2_A[4]
O2_A[3]
O2_D[1]
O2_D[0]
O3_A[15]
O3_A[8]
O3_A[7]
O3_A[6]
O3_A[0]
O3_D[3]
O3_D[2]
Figure 11: OTP Write Waveforms
3
4
5
R
R
O1_A[15]
O1_A[7]
O1_A[6]
O1_D[3]
O1_D[2]
O2_A[11]
O2_A[10]
O2_A[2]
O2_A[1]
O3_A[14]
O3_A[13]
O3_A[5]
O3_A[4]
O3_D[1]
O3_D[0]
Comments
Table 5
Follows format in
Not Used
Follows format in Table 3
Exit Read/Write OTP
6
7
O1_A[14]
O1_A[13]
O1_A[5]
O1_A[4]
O1_D[1]
O1_D[0]
O2_A[8]
O2_A[7]
O2_A[0]
O2_D[3]
O3_A[12]
O3_A[11]
O3_A[3]
O3_A[2]
Last
P
Page 10

Advertisement

Table of Contents
loading

Table of Contents