exFAT2-IP for NVMe Gen5 Reference Design Manual
2.2.3 PCIe Hard IP (Versal Adaptive SoC CPM Mode)
3.1 Test Firmware (exfat2nvmeg5test.c)
3.2 Function List in Test Firmware
To store a data stream on an NVMe SSD, a high-performance storage solution, users must decide between two data formats: raw data format or file system format. In the raw data format, data indices use the physical address of SSD, and users are responsible for managing data structure themselves, especially when dealing with various data types stored on the SSD. Implementing a customized data structure requires dedicated human resources for development and maintenance, especially when integrating with multiple host systems accessing the SSD. However, this approach offers the best performance for data transfer with the SSD.
On the other hand, standard file systems like FAT32 and exFAT provide a comprehensive solution for treating each piece of data as a ‘file’. These file systems are well-designed, utilizing file entries to denote file names, types, sizes, and data allocations. FAT32 and exFAT file systems have been widely implemented by various developers, enabling users to integrate standard libraries into their host systems for accessing files on the SSD. However, this convenience comes at the cost of CPU or processor resources required to manage file entries and file data, which can result in constrained write/read performance during file data access.
To overcome the performance constraints associated with using a file system, Design Gateway offers IP cores that implement the FAT32 and exFAT file systems using pure hardware logic, called FAT32-IP and exFAT2-IP. This approach ensures maximum transfer performance for data transfers with SSD, similar to the raw data format. Further information about the FAT32-IP is available on the following website.
https://dgway.com/products/IP/NVMe-IP/dg_fat32ip_nvme_data_sheet_en/
Compared to the FAT32 file system, the exFAT file system offers several improvements. Firstly, exFAT supports file sizes larger than 4 GB and disk capacities exceeding 2 TB. Additionally, it implements name hashing for file names to enhance search functionality and employs checksums in the system data area to boost data reliability. However, exFAT requires significant host resources for file system management and some legacy systems support only the FAT32 file system, not exFAT.
The exFAT2-IP is an IP core designed to directly interface with the (mu)NVMe-IP, an NVMe host controller IP core from Design Gateway. It achieves the same performance as using the raw data format under PCIe Gen5 speed, with write access reaching up to 11,000 MB/s.
Figure 1 shows the block diagram of the reference design, showcasing the comparison between the raw data access without the exFAT2-IP and the file system access using the exFAT2-IP.

Figure 1 Hardware System Using (mu)NVMe-IP for Raw Data and File System
As shown on the left side of Figure 1, when using the (mu)NVMe-IP to access an NVMe SSD, the stored data is in raw data format, accessed via physical address. Consequently, the input parameters assigned to the (mu)NVMe-IP consist of physical address and transfer length measured in 512-byte units.
In contrast, on the right side of Figure 1, with the exFAT2-IP inserted between the user logic and the (mu)NVMe-IP for accessing an NVMe SSD, the data stored on the SSD adopts the exFAT file system format, denoted as File0, File1, and File2. The input parameters designated for the exFAT2-IP include file names and the number of files, which are subsequently computed into physical address and 512-byte transfer length supplied to the (mu)NVMe-IP.
Both the raw data system and exFAT file system utilize FIFO interfaces for their data interfaces.
The exFAT2-IP can interface with the NVMe-IP for a single user interface or the muNVMe-IP for multiple user interfaces, as illustrated in Figure 2.

Figure 2 Hardware Comparison Between Single User and Multiple Users
For a single user system, the exFAT2-IP interfaces with the NVMe-IP via channel#0, supporting six commands: Format, Secure Format, Shutdown, Write File, Read File, and Read File Info. In a multiple-user system, the exFAT2-IP connects to the muNVMe-IP, offering both User#0 I/F and User#1 I/F. While User#0 supports all six commands, User#1 is limited to two commands: Read File and Read File Info.

Figure 3 exFAT2-IP Reference Design
The exFAT2-IP can be connected to the muNVMe-IP for file access through two user interfaces, User#0 and User#1, as shown in Figure 3. When the exFAT2-IP is connected to the NVMe-IP, only the User#0 interface is used.
The hardware modules in the test system can be divided into three main functional groups: the test logic, consisting of TestGen#0 and TestGen#1; the exFAT subsystem, consisting of U2IPFIFO, IP2UFIFO, exFAT2-IP, (mu)NVMe-IP, and the PCIe Hard IP; and the CPU subsystem, consisting of the CPU and LAxi2Reg.
TestGen#0 operates with the exFAT2-IP User#0 data path through U2IPFIFO and IP2UFIFO. It generates file data for Write File commands and verifies the file data received during Read File commands. Write data generated by TestGen#0 are buffered in U2IPFIFO before being transferred to the exFAT2-IP, while data returned from the exFAT2-IP during a Read File command are buffered in IP2UFIFO before being verified by TestGen#0. TestGen#0 supports continuous data transfer when the corresponding FIFO is ready, allowing the reference design to evaluate transfer performance at the configured rate. It also supports selectable test data patterns for evaluating SSD operation under different data conditions.
For the exFAT2-IP User#1 interface, the reference design supports only the Read File data path. Therefore, only IP2UFIFO is implemented, and TestGen#1 verifies the file data received from the exFAT2-IP. User#1 is available only when the exFAT2-IP is used with the muNVMe-IP in the multiple-user configuration.
The exFAT subsystem consists of the exFAT2-IP, (mu)NVMe-IP, and PCIe Hard IP (Versal Adaptive SoC CPM Mode). These modules provide file-level access from the exFAT2-IP to the NVMe Gen5 SSD. Command requests and command parameters for the exFAT2-IP are configured by the CPU through the LAxi2Reg module. The reference design supports six commands: Format, Secure Format, Write File, Read File, Read File Info, and Shutdown. For Write File and Read File commands, the user can also configure the maximum transfer rate to evaluate SSD operation at a specified test speed.
The CPU controls and monitors the hardware test system through the LAxi2Reg module. Through the Serial console, the user can configure test parameters, such as the test data pattern and the maximum Write File and Read File transfer rates, and monitor the operating status of the reference design.
Figure 3 displays three clock domains used in the design: CpuClk, UserClk, and PCIeClk.
· CpuClk is used by the CPU and its associated peripherals, requiring a stable clock independent of other hardware components.
· UserClk is the clock domain used for the operation of the exFAT2-IP, (mu)NVMe-IP, and TestGen. According to the (mu)NVMe-IP datasheet, the frequency of UserClk must be equal to or greater than PCIeClk. In the reference design, UserClk is set to 300 MHz, which exceeds the PCIeClk frequency of 250 MHz.
· PCIeClk is generated by the PCIe Hard IP and is synchronized with the 512-bit AXI4-Stream interface. It operates at 250 MHz for 4-lane PCIe Gen5 configuration.
Further details of each submodule in the exFAT2-IP reference design are described below.

Figure 4 TestGen Interface
Each TestGen module manages the data interface for each user of the exFAT2-IP, facilitating data transfer in both directions. However, since the User#1 I/F of the exFAT2-IP does not support the Write File command, the write interface logic is not available in User#1.
During a Write File command, TestGen sends 512-bit test data to the exFAT2-IP. In contrast, during a Read File command, the test data is received for comparison with the expected value, ensuring data accuracy.
Within this block, the MaxSpeed Control Logic generates an enable pulse that regulates the number of clock cycles in which 1b is asserted out of every 100 clock cycles. This enable pulse is fed to both the Wr FIFO and Rd FIFO Control Logic, enabling control over the maximum data rate for Write and Read data transfers. The Wr FIFO and Rd FIFO Control Logics assert the write enable and read enable signals when the FIFO is ready and the enable pulse from the MaxSpeed Control Logic is active.
The Register file in TestGen receives various test parameters from the user, including file name, file size, number of files, transfer direction, verification enable, test pattern selector, and transfer rate. For further details on the hardware logic of TestGen, refer to Figure 5.

Figure 5 TestGen Hardware
The MaxSpeed Control Logic utilizes a counter named MaxSpeed Counter along with a decoder to assert rTrnRateEn to 1b. The TrnRate input specifies the number of cycles which rTrnRateEn is asserted to 1b out of every 100 clock cycles. This counter operates when either a Write File or Read File command is in progress (rWrTrans=1b or rRdTrans=1b). By monitoring rTrnRateCnt, rTrnRateEn can be asserted to 1b or de-asserted to 0b at specific times to control the maximum data rate. The Write and Read FIFO enable signals are only asserted when rTrnRateEn is set to 1b.
The primary flow control signal for the Write File command is WrFfAFull, while for the Read File command, it is RdFfEmpty. In the case of a Write File command, WrFfAFull is de-asserted to 0b when there is free space in the Write FIFO beyond a certain threshold. When WrFfAFull=0b and rTrnRateEn=1b, WrFfWrEn is asserted to 1b to send Write data to the FIFO. For a Read File command, RdFfEmpty is de-asserted to 0b when there is available data in the Read FIFO. When RdFfEmpty=0b and rTrnRateEn=1b, RdFfRdEn is asserted to 1b to read data from the FIFO.
The user can configure the following test parameters: the number of files (UserFLen), the first file name (UserFName), file size (FSize), test pattern selector (PattSel), and transfer rate (TrnRate). UserFLen and FSize are used to determine the end position (rEndSize) for comparison with the Data counter. Once all data is completely transferred, WrFfWrEn and RdFfRdEn are set to 0b.
Note: The assertion of UserAbort can de-assert WrFfWrEn and RdFfRdEn to 0b, similar to the end transfer condition.
The “TestData Generator” subblock is responsible for generating the test data (WrData) that will be transmitted to the exFAT2-IP during the Write File command. Each 512-byte data segment comprises a 64-bit header and a test pattern, selected by the PattSel parameter.

Figure 6 Test Pattern Format in Each 512-byte Data Segment for Increment/Decrement/LFSR Patterns
As shown in Figure 6, each 512-byte data segment consists of eight 512-bit data transfers. The 64-bit header at DW#0 (Dword#0) and DW#1 is generated by combining the 48-bit signal of rTrnAddr, computed from UserFName and FSize, with a 16-bit zero value. The remaining data (DW#2 – DW#127) represents the test pattern, which can be selected from three different formats: 32-bit incremental data, 32-bit decremental data, and 32-bit LFSR data. The 32-bit incremental data is derived from the output of the Data Counter. The decremental data is obtained by applying the bitwise NOT operation to the incremental data. The LFSR data is generated using the Fibonacci LFSR algorithm, following the equation x^31 + x^21 + x + 1.
To implement the 512-bit LFSR pattern, the 512-bit data is divided into four 128-bit sets, each with a distinct initial value. For each set, a look-ahead technique is used to generate four consecutive 32-bit LFSR values in a single clock cycle. As illustrated in Figure 7, the initial value for each set is derived from TrnAddr[31:0] and its bitwise complement, TrnAddrB[31:0], using a different bit combination for each set.
In case of the all-zero and all-one patterns, a 64-bit header is not included within the 512-byte data. These patterns are often used to assess the optimal Write/Read performance of certain SSDs.

Figure 7 512-bit LFSR Pattern in TestGen
The generated test data serves as the Write data for the FIFO (rWrFfWrData) during the Write File command, or it is used as the expected data for verification against the read data obtained from the FIFO (RdFfRdData) during the Read File command. In the event of a verification failure, the failure flag (PattFail) is asserted to 1b.
The timing diagram for writing data to the FIFO during the Write File command is shown in Figure 8.

Figure 8 Timing Diagram of Write File Operation in TestGen
1) The operation begins when WrPattStart is asserted to 1b. This signal remains asserted for only one clock cycle. Subsequently, rWrTrans is set to 1b, indicating that a Write request is in progress. It is de-asserted upon completion of the operation or reception of abort.
2) While rWrTrans is set to 1b, rTrnRateCnt counts up from 1 to 100. The initial value of rTrnRateCnt is 100. When rWrTrans=1b and rTrnRateCnt=100, rTrnRateEn is asserted to 1b.
3) When both rWrTrans and rTrnRateEn are asserted to 1b, and the FIFO is not almost full (WrFfAFull=0b), rWrFfWrEn is asserted to 1b, allowing the test data to be written to FIFO.
4) The data counter (rDataCnt) increments when rWrFfWrEn is asserted to 1b. Therefore, it can be monitored to determine the total amount of data transmitted to the FIFO.
5) In this example, TrnRate is set to 40, resulting in a maximum data rate of approximately 40/100 = 40% of the logic’s maximum throughput. rTrnRateEn is asserted to 1b for 40 cycles out of every 100 cycles. Once rTrnRateCnt=40, rTrnRateEn is de-asserted to 0b.
6) When rTrnRateEn is de-asserted to 0b, rWrFfWrEn is also de-asserted to 0b, temporarily pausing the transmission of data.
7) If the FIFO becomes almost full (WrFfAFull=1b), the writing process is paused by de-asserting rWrFfWrEn to 0b. rWrFfWrEn is re-asserted to 1b when WrFfAFull is de-asserted to 0b.
8) Once the total data count (rDataCnt) equals the total transfer size (rEndSize), both rWrTrans and rWrFfWrEn are de-asserted to 0b, indicating the completion of the Write File command.
The timing diagram for reading data during the Read file command is shown in Figure 9.

Figure 9 Timing Diagram of Read File Operation in TestGen
1) The operation begins when RdPattStart is asserted to 1b. This signal remains asserted for only one clock cycle. Subsequently, rRdTrans is asserted to 1b to control rTrnRateEn. It is de-asserted once all data has been completely transferred or the abort has been requested.
2) While rRdTrans is set to 1b, rTrnRateCnt increments from 1 to 100. The initial value of rTrnRateCnt is 100. If rRdTrans=1b and rTrnRateCnt=100, rTrnRateEn is asserted to 1b.
3) When rTrnRateEn is asserted to 1b and the FIFO contains data (RdFfEmpty=0b), RdFfRdEn is asserted to 1b, enabling the reading of test data from the FIFO.
4) The data counter (rDataCnt) increments with a two-clock-cycle delay after RdFfRdEn is asserted to 1b. It can be monitored to determine the total amount of received data from the FIFO.
5) In this example, TrnRate is set to 40, resulting in a maximum data rate of approximately 40/100 = 40% of the logic’s maximum throughput. rTrnRateEn is asserted to 1b for 40 cycles out of every 100 cycles. Once rTrnRateCnt=40, rTrnRateEn is de-asserted to 0b.
6) If rTrnRateEn is de-asserted to 0b, RdFfRdEn is also de-asserted to 0b, pausing the transmission of data in the same clock cycle.
7) If the FIFO becomes empty (RdFfEmpty=1b), the reading process is paused by de-asserting RdFfRdEn to 0b. RdFfRdEn is re-asserted to 1b when RdFfEmpty is de-asserted to 0b.
8) Once the total data count (rDataCnt) equals the total transfer size (rEndSize), rRdTrans is de-asserted to 0b, indicating the completion of the Read File command.

Figure 10 exFAT Subsystem
The exFAT subsystem consists of three main submodules: the exFAT2-IP, (mu)NVMe-IP, and PCIe Hard IP (Versal Adaptive SoC CPM Mode). The top-level module is the exFAT2-IP, which provides two types of user interfaces: the Control interface for file-system parameter configuration and the Data interface for file-data transfer.
In this reference design, the Control interface is connected to the LAxi2Reg module, allowing the CPU firmware to configure file-system parameters and monitor the operating status. The Data interface is connected to FIFOs used to buffer file data. U2IPFIFO buffers data generated by TestGen before transferring it to the exFAT2-IP during Write File commands, while IP2UFIFO buffers data received from the exFAT2-IP during Read File commands.
When the exFAT2-IP is used with NVMe-IP, only the User#0 interface is available. When it is used with muNVMe-IP, both User#0 and User#1 are available. In this reference design, User#0 supports both Write File and Read File data paths, while User#1 supports only the Read File data path. Therefore, only IP2UFIFO is implemented for User#1.
Within the exFAT subsystem, the exFAT2-IP accesses the (mu)NVMe-IP to transfer file-system metadata and file data to and from the NVMe SSD. Identify information received through the Identify interface is decoded to determine whether the connected SSD supports the Secure Format operation. The (mu)NVMe-IP is connected to the PCIe Hard IP through a 512-bit AXI4-Stream interface. In this reference design, the PCIe interface is configured for 4-lane PCIe Gen5.
Further details of each submodule are described in the following subsections.
The exFAT2-IP is an extension module designed to operate with Design Gateway's (mu)NVMe-IP, enabling data to be stored on and retrieved from NVMe SSDs using the exFAT file system instead of raw block access while maintaining high data-transfer performance. It supports both single-user and multiple-user configurations, depending on the connected NVMe-IP model (NVMe-IP or muNVMe-IP). In addition, the exFAT2-IP supports an Abort function for terminating an ongoing Write File or Read File operation. Further details of the exFAT2-IP are provided in the product datasheet available on our website:
https://dgway.com/products/IP/NVMe-IP/exFAT2-NVMe-IP-g5-datasheet-amd/
Design Gateway provides several NVMe-IP solutions for accessing an NVMe Gen5 SSD. It implements seven commands: Write, Read, Identify, Shutdown, SMART, Secure Erase, and Flush, all directly controlled by the exFAT2-IP for NVMe host-side operations. No CPU or external memory is required.
The PCIe interface of the (mu)NVMe-IP for Gen5 utilizes a 512-bit data bus, matching the bus width of 4-lane PCIe Gen5 configurations for the PCIe Hard IP (Versal Adaptive SoC CPM Mode).
More information can be found on our website:
https://dgway.com/NVMe-IP_X_E.html
This block is a hard IP integrated into certain AMD Versal devices. It implements the Physical, Data Link, and Transaction layers of the PCIe specification. More details can be found in the following AMD document.
PG346: Versal Adaptive SoC CPM Mode for PCI Express
https://docs.amd.com/r/en-US/pg346-cpm-pcie
The CPU Subsystem uses a 32-bit AXI4-Lite bus as the interface to access peripherals such as the Timer and UART. Additionally, the system integrates a peripheral to access the hardware logics by assigning a unique base address and address range. To support CPU read and write operations, the hardware logic must comply with the AXI4-Lite bus standard. The LAxi2Reg module, as shown in Figure 11, connects via the AXI4-Lite interface in compliance with the standard.

Figure 11 CPU Subsystem
LAxi2Reg consists of two main components: AsyncAxiReg and UserReg. AsyncAxiReg converts the AXI4-Lite signals into a simple Register interface with a 32-bit data bus size, matching the AXI4-Lite data bus size. It also incorporates asynchronous logic to handle clock domain crossing between the CpuClk and UserClk domains.
UserReg contains the register file for parameters and status signals from other modules in the test system, including the exFAT2-IP, (mu)NVMe-IP, and TestGen. The details of AsyncAxiReg and UserReg are explained further below.

Figure 12 AsyncAxiReg Interface
According to the AXI4-Lite standard, the write channel and read channel operate independently for both control and data interfaces. Therefore, the logic in the AsyncAxiReg module to interface with the AXI4-Lite bus is divided into four groups: Write control logic, Write data logic, Read control logic, and Read data logic, as shown on the left side of Figure 12. The Write control I/F and Write data I/F of the AXI4-Lite bus are latched and transferred to become the Write register interface with clock domain crossing registers. Similarly, the Read control I/F of the AXI4-Lite bus is latched and transferred to the Read register interface, while Read data is returned from the Register interface to the AXI4-Lite bus via clock domain crossing registers. In the Register interface, RegAddr is a shared signal for write and read access, loading the value from LAxiAw* for write access or LAxiAr* for read access.
The Register interface is compatible with a single-port RAM interface for a write transaction. However, the read transaction of the Register interface has been slightly modified from the RAM interface by adding the RegRdReq and RegRdValid signals to control read latency. Since the address of the Register interface is shared for both write and read transactions, the user cannot write and read the register simultaneously. The timing diagram of the Register interface is shown in Figure 13.

Figure 13 Register Interface Timing Diagram
1) The timing diagram for writing a register is similar to that of a single-port RAM. The RegWrEn signal is set to 1b, along with a valid RegAddr (Register address in 32-bit units), RegWrData (write data for the register), and RegWrByteEn (write byte enable). The RegWrByteEn signal consists of four bits, each corresponding to a byte within the 32-bit RegWrData value. For example, bits[0], [1], [2], and [3] are set to 1b when RegWrData[7:0], [15:8], [23:16], and [31:24] are valid, respectively.
2) To read a register, AsyncAxiReg sets the RegRdReq signal to 1b with a valid value for RegAddr. Once the read request is received, the 32-bit data is returned. The slave detects the RegRdReq signal to initiate the read transaction. The address value (RegAddr) remains constant until RegRdValid is set to 1b. The address can then be used to select the returned data using multiple layers of multiplexers.
3) The slave returns the read data via the RegRdData bus by setting the RegRdValid signal to 1b. Afterward, AsyncAxiReg forwards the read value to the LAxir* interface.

Figure 14 UserReg Interface
1) 0x0000 – 0x03FF: Mapped to User#0 of exFAT2-IP, TestGen#0, and status of exFAT2-IP.
2) 0x0400 – 0x07FF: Mapped to User#1 of exFAT2-IP and TestGen#1. User#1-related registers are available only when the reference design is configured with muNVMe-IP for multiple-user operation.
3) 0x1000 – 0x13FF: Mapped to additional interfaces for exFAT2-IP and (mu)NVMe-IP such as IP version.
The Address decoder uses the upper bits of RegAddr to determine the corresponding hardware module – exFAT2-IP, TestGen#0, or TestGen#1 - for the transaction. Internally, the Register File operates on a 32-bit data bus. Since full-word writes are used, the write byte enable (RegWrByteEn) is unused in this test system. The CPU accesses the hardware registers using 32-bit address pointers.
For register read operations, a multi-level multiplexers structure is used to select the output data based on the address. The lower bits of RegAddr are utilized within the submodule to choose a specific internal register, while the upper bits are used by UserReg to identify the appropriate submodule for the read. The overall latency for a read operation is three clock cycles. The RegRdValid signal is generated using three D Flip-flops, which are triggered upon a RegRdReq assertion.
Additional information regarding address mapping and register definitions within the UserReg module is provided in Table 1.
Table 1 Register Map of exFAT2-IP Reference Design
|
Address |
Register Name |
Description |
|
Rd/Wr |
(Label in “exfat2nvmeg5test.c”) |
|
|
BA+0x0000 – BA+0x00FF: Control Signals of User#0 (exFAT2-IP) and TestGen#0 |
||
|
BA+0x0000 |
User#0 File Name Reg |
[26:0]: Input to U0FName of exFAT2-IP, the first file name to execute commands. |
|
Wr/Rd |
(U0FNAME_INTREG) |
|
|
BA+0x0004 |
User#0 File Length Reg |
[26:0]: Input to U0FLen of exFAT2-IP, the total number of files requested in this command. |
|
Wr/Rd |
(U0FLEN_INTREG) |
|
|
BA+0x0008 |
User#0 Command Reg |
[2:0]: Input to U0Cmd of exFAT2-IP, commands. 000b: Format, 001b: Shutdown, 010b: Write File, 011b: Read File, 100b: Secure Format, 101b: Read File Info [8]: Input to U0Req of exFAT2-IP, command request. [9]: Input to U0Abort of exFAT2-IP, abort request. |
|
Wr/Rd |
(U0CMD_INTREG) |
|
|
BA+0x000C |
User#0 Test Pattern Reg |
[2:0]: Select test data pattern of TestGen#0. 000b-Increment, 001b-Decrement, 010b-All 0, 011b-All 1, 100b-LFSR. |
|
Wr/Rd |
(U0PATTSEL_INTREG) |
|
|
BA+0x0010 |
User#0 Transfer Rate Reg |
[6:0]: Transfer rate of TestGen#0 as a percentage. It is valid range: 1–100. For example, when set to a value of 40, the maximum data rate equals 40% of the maximum data rate, which is 300 MHz x 512 bits (19,200 MB/s), equivalent to 7,680 MB/s. |
|
Wr/Rd |
(U0TRNRATE_INTREG) |
|
|
BA+0x0014 |
User#0 Fifo Reset Reg |
[0]: Reset flag for U2IPFIFO and IP2UFIFO of User#0. Set to 1b to assert a reset and then clear to 0b to de-assert a reset and initiate the test operation. |
|
Wr/Rd |
(U0RSTFIFO_INTREG) |
|
|
BA+0x0020 |
User#0 File Size Reg |
[3:0]: Input to U0FSize of exFAT2-IP, configured file size. |
|
Wr/Rd |
(U0FSIZE_INTREG) |
|
|
BA+0x0024 |
User#0 Created Date and Time Reg |
[4:0]: Input to U0FTimeS of exFAT2-IP, second value divided by 2 (0–29). [10:5]: Input to U0FTimeM of exFAT2-IP, minute. [15:11]: Input to U0FTimeH of exFAT2-IP, hour. [20:16]: Input to U0FDateD of exFAT2-IP, date. [24:21]: Input to U0FDateM of exFAT2-IP, month. [31:25]: Input to U0FDateY of exFAT2-IP, year. |
|
Wr/Rd |
(U0DATETIME_INTREG) |
|
|
BA+0x0100 – BA+0x03FF: Status Signals of User#0 (exFAT2-IP), TestGen#0, and (mu)NVMe-IP (Read Access Only) |
||
|
BA+0x0100 |
User#0 Status Reg |
[0]: Mapped to U0Busy of exFAT2-IP, busy status. [1]: Mapped to U0Error of exFAT2-IP, error flag. [2]: Data verification failure in TestGen#0 (0b: Normal, 1b: Fail). |
|
(U0STS_INTREG) |
||
|
BA+0x0110 |
User#0 Error Type Reg |
[7:0]: Mapped to U0ErrorType[7:0] of exFAT2-IP, indicating error status of exFAT2-IP. |
|
(U0ERRTYPE_INTREG) |
||
|
BA+0x0114 |
User#0 NVMe Error Type Reg |
[31:0]: Mapped to U0NVMeErrorType[31:0] of exFAT2-IP, indicating error status of (mu)NVMe-IP. |
|
(U0NVMERRTYPE_INTREG) |
||
|
BA+0x0118 |
User#0 NVMe Completion Status Reg |
Completion status from (mu)NVMe-IP. [15:0]: Admin Completion status. [31:16]: IO Completion status. |
|
(NVMCOMPSTS_INTREG) |
||
|
BA+0x011C |
NVMe CAP Reg |
[31:0]: Mapped to NVMeCAPReg[31:0] of (mu)NVMe-IP, capabilities of NVMe. |
|
(NVMCAP_INTREG) |
||
|
BA+0x0120 |
User#0 Test Pin (Low) Reg |
[31:0]: Mapped to U0TestPin[31:0] of exFAT2-IP, reserved for internal use. |
|
(U0TESTPINL_INTREG) |
||
|
BA+0x0124 |
User#0 Test Pin (High) Reg |
[31:0]: Mapped to U0TestPin[63:32] of exFAT2-IP, reserved for internal use. |
|
(U0TESTPINH_INTREG) |
||
|
BA+0x0128 |
User#0 NVMe Test pin (Low) Reg |
[31:0]: Mapped to U0TestPin[31:0] of muNVMe-IP or TestPin[31:0] of NVMe-IP, reserved for internal use. |
|
(NVMU0TESTPINL_INTREG) |
||
|
BA+0x012C |
NVMe User#0 Test pin (High) Reg |
[15:0]: Mapped to U0TestPin[47:32] of muNVMe-IP. |
|
(NVMU0TESTPINH_INTREG) |
||
|
Address |
Register Name |
Description |
|
Rd/Wr |
(Label in “exfat2nvmeg5test.c”) |
|
|
BA+0x0100 – BA+0x03FF: Status Signals of User#0 (exFAT2-IP), TestGen#0, and (mu)NVMe-IP (Read Access Only) |
||
|
BA+0x0140 |
Total File Capacity Reg |
[26:0]: Mapped to TotalFCap[26:0] of the exFAT2-IP, indicating the total file capacity supported by the file system. A non-zero value indicates that the SSD is formatted with the exFAT file system by DG's exFAT-IP, while zero indicates that it is not. |
|
(TOTALFCAP_INTREG) |
||
|
BA+0x0144 |
Directory Capacity Reg |
[19:0]: Mapped to DirCap[19:0] of exFAT2-IP, maximum number of files supported in each directory. |
|
(DIRCAP_INTREG) |
||
|
BA+0x0148 |
Disk File Size Reg |
[3:0]: Mapped to DiskFsize of exFAT2-IP, the total number of files stored on the SSD. |
|
(DFSIZE_INTREG) |
||
|
BA+0x014C |
Total Count of Files in the Disk Reg |
[26:0]: Mapped to DiskFnum of exFAT2-IP, total count of files in the SSD. |
|
(DFNUM_INTREG) |
||
|
BA+0x0158 |
Secure Format Support Reg |
[0]: Mapped to SuppSecureFmt of exFAT2-IP, indicating whether the connected SSD supports the Secure Format command. 1b: Supported, 0b: Not supported. |
|
(SECFMTSUPP_INTREG) |
||
|
BA+0x0160 |
NVMe LBA Size (Low) Reg |
[31:0]: Mapped to LBASize[31:0] of (mu)NVMe-IP, the lower 32 bits of the SSD capacity in units of 512 bytes. |
|
(NVMLBASIZEL_INTREG) |
||
|
BA+0x0164 |
NVMe LBA Size (High) Reg |
[15:0]: Mapped to LBASize[47:32] of (mu)NVMe-IP, the upper 16 bits of the SSD capacity in units of 512 bytes. [31]: Mapped to LBAMode of (mu)NVMe-IP, indicating LBA unit size of SSD. 0b: 512-byte LBA, 1b: 4-KB LBA (not supported). |
|
(NVMLBASIZEH_INTREG) |
||
|
BA+0x0180 |
User#0 File Info Reg |
[31:0]: Mapped to U0FInfo of exFAT2-IP, modified/created date and time of file. Valid after the Read File Info command completes. |
|
(U0FINFO_INTREG) |
||
|
BA+0x01A0 |
User#0 Abort Write File Name Reg |
[26:0]: Mapped to U0AbortFName[26:0] of exFAT2-IP, indicating the last written file name after the Write File operation is aborted. |
|
(U0ABTFNAME_INTREG) |
||
|
BA+0x01A4 |
User#0 Abort Current Write Length Reg |
[25:0]: Mapped to U0AbortCurWrLen[25:0] of exFAT2-IP, indicating completely written data size of the last file, in 512-byte unit. |
|
(U0ABTCURWRLEN_INTREG) |
||
|
BA+0x0200 |
User#0 Current Test Data in Bytes (Low) Reg |
[31:0]: Bits[31:0] of the current data transfer size in bytes of TestGen#0 module when operating Write File or Read File command. |
|
(U0CURTESTSIZEL_INTREG) |
||
|
BA+0x0204 |
User#0 Current Test Data in Bytes (High) Reg |
[24:0]: Bits[56:32] of the current data transfer size in bytes of TestGen#0 module when operating Write File or Read File command. |
|
(U0CURTESTSIZEH_INTREG) |
||
|
BA+0x0210 |
User#0 Failure Byte Address (Low) Reg |
[31:0]: Bits[31:0] of the byte address in the file at the 1st failure data in TestGen#0 when operating Read File command. |
|
(U0FAILADDRL_INTREG) |
||
|
BA+0x0214 |
User#0 Failure Byte Address (High) Reg |
[6:0]: Bits[38:32] of the byte address in the file at the 1st failure data in TestGen#0 when operating Read File command. |
|
(U0FAILADDRH_INTREG) |
||
|
BA+0x0218 |
User#0 Failure File Name Reg |
[26:0]: Filename of the 1st failure data in TestGen#0 when operating Read File command. |
|
(U0FAILFNAME_INTREG) |
||
|
BA+0x0280– BA+0x02BC |
User#0 Expected Value Word0-15 Reg |
512-bit of the expected data at the 1st failure data in TestGen#0 when operating Read File command. 0x0280: Bits[31:0], 0x0284: Bits[63:32], …, 0x02BC: Bits[511:480]. |
|
(U0EXPPATW0-15_INTREG) |
||
|
BA+0x02C0– BA+0x02FC |
User#0 Read Value Word0-15 Reg |
512-bit of the read data at the 1st failure data in TestGen#0 when operating Read File command. 0x02C0: Bits[31:0], 0x02C4: Bits[63:32], …, 0x02FC: Bits[511:480]. |
|
(U0RDPATW0-15_INTREG) |
||
|
Address |
Register Name |
Description |
|
Rd/Wr |
(Label in “exfat2nvmeg5test.c”) |
|
|
BA+0x0400 – BA+0x07FF: Signal Interface of User#1 (exFAT2-IP) and TestGen#1 Note: The User#1 register set is derived from the User#0 register set by applying the offset specified by the ‘USEROFFSET_INT’ parameter. User#1 registers are available only when the reference design uses muNVMe-IP in the multiple-user configuration. |
||
|
BA+0x0400– BA+0x0417 |
User#1 File Name Reg – User#1 Fifo Reset Reg |
These registers correspond to the User#0 registers at 0x0000 – 0x0017. However, the User#1 Command Reg supports only the Read File and Read File Info commands. |
|
Wr/Rd |
||
|
BA+0x0500 – BA+0x0583 |
User#1 Status Reg – User#1 File Info Reg |
These registers correspond to the User#0 registers at 0x0100 – 0x0183, with several exceptions. The User#1 Test Pin and NVMe Test Pin signals fit within a single register; therefore, separate High registers are not required. In addition, some status signals, such as NVMCOMPSTS_INTREG[15:0], are available only for User#0. |
|
Rd |
||
|
BA+0x0600 – BA+0x061B |
User#1 Current Test Data in Bytes (Low) Reg – User#1 Failure File Name Reg |
These registers correspond to the User#0 registers at 0x0200 – 0x021B. Since User#1 supports only Read File operation in this reference design, the User#1 Current Test Data in Bytes register indicates the amount of data transferred during Read File command execution. |
|
Rd |
||
|
BA+0x0680 – BA+0x06FF |
User#1 Expected Value Word0 Reg – User#1 Read Value Word15 Reg |
These registers correspond to the User#0 registers at 0x0280 – 0x02FF. |
|
Rd |
||
|
BA+0x1000 – BA+0x13FF: Other Interfaces |
||
|
BA+0x1000 |
Timeout Reg |
[31:0]: Mapped to TimeOutSet[31:0] of exFAT2-IP, timeout value for waiting for a response from SSD. |
|
Wr/Rd |
(TIMEOUT_INTREG) |
|
|
BA+0x1200 |
exFAT2-IP Version Reg |
[31:0]: Mapped to IPVersion[31:0] of exFAT2-IP, indicating the version of exFAT2-IP. |
|
Rd |
(EXFAT2VER_INTREG) |
|
|
BA+0x1204 |
NVMe-IP Version Reg |
[31:0]: Mapped to IPVersion[31:0] of (mu)NVMe-IP, indicating the version of (mu)NVMe-IP. |
|
Rd |
(NVMVER_INTREG) |
|
Upon system startup, the CPU follows these steps to complete the initialization process.
1) Initialize UART and Timer settings.
2) Wait for the completion of the exFAT2-IP initialization process, indicated by U0STS_INTREG[0]=0b.
3) Display the device information, including Secure erase support (SECFMTSUPP_INTREG[0]).
4) Read TOTALFCAP_INTREG to determine whether the SSD uses the exFAT file system by DG’s exFAT-IP.
· If the read value equals zero, display a message informing the user that the SSD does not use the exFAT file system by DG’s exFAT-IP. After that, present the format menu, offering Format or Secure format (the latter only if supported by the SSD). The user can choose to execute the Format command, Secure Format command, or proceed to the next step without executing the (Secure) Format command.
· Otherwise, display a message informing the user that the SSD uses the exFAT file system by DG’s exFAT-IP, along with the file system information such as the maximum number of files supported on the SSD (TOTALFCAP_INTREG), the maximum number of files supported per directory (DIRCAP_INTREG), the current file size configuration (DFSIZE_INTREG), and total number of files stored in SSD (DFNUM_INTREG).
5) Display the main menu, providing four test options: (Secure) Format, Write/Read File, Read File Info, and Shutdown.
Further details for executing each test option are described below.
The Secure Format and Format commands can be executed only through User#0. When this test option is selected, the selected (Secure) Format operation is executed following the steps below.
1) Display three options on this menu: Format execution, Secure Format execution, and No execution. The user enters the corresponding keys to proceed or cancel the Format operation.
2) Prompt the user to set the created date and created time of the empty directories or skip setting and use the same value. Once all inputs are received, determine the value for setting to U0DATETIME_INTREG and set it.
3) Read the SSD capacity from NVMLBASIZEL/H_INTREG, calculate supported file sizes, and display results on the console.
4) Ask the user to set the file size. Validate the input and set it to U0FSIZE_INTREG.
5) Set bit[8] and bits[2:0] of U0CMD_INTREG to issue (Secure) Format command. The exFAT2-IP asserts busy status (U0STS_INTREG[0]) to 1b upon initiating the operation.
6) The CPU waits for the command completion or an error detection by monitoring the value of U0STS_INTREG[1:0].
· Bit[0] = 0b indicates completion of the command. Proceed to the next step.
· Bit[1] = 1b indicates an error detection on User#0. Following this, read the error details from U0ERRTYPE_INTREG and U0NVMERRTYPE_INTREG, interpret the read value, and display an error message corresponding to the error type on the console.
7) Upon completion of the command, read the SSD information and display the retrieved values on the console. The SSD information includes the maximum number of files supported on the SSD (TOTALFCAP_INTREG), the maximum number of files supported per directory (DIRCAP_INTREG), the current file size configuration (DFSIZE_INTREG), and the total number of files stored in SSD (DFNUM_INTREG).
The Write File and Read File commands can be executed by User#0. The process upon selecting this test option is described below.
1) Read TOTALFCAP_INTREG to ensure the selected SSD uses the exFAT file system by DG’s exFAT-IP. If not, the user is prompted to execute the (Secure) Format. If the SSD remains unformatted, execute (Secure) Format operation as described in Section 3.1.1 (Secure) Format.
2) Prompt the user to select either the Write File or Read File operation.
3) Receive the additional parameters and write them to the registers corresponding to the selected operation.
Write File Operation
i) Prompt the user to configure the created date and created time of the new files, or use the latest value. Compute the result and set it to U0DATETIME_INTREG.
ii) Show the latest write file name and prompt the user to either continue numbering from this value or specify another value (less than the recommended value) to overwrite existing files with new data. Validate the input and configure it to U0FNAME_INTREG.
iii) Receive additional inputs from the user: number of files, test pattern, and maximum speed in percentage unit. Validate these inputs and compute the total transfer size for displaying on the console.
iv) Display the key that can be entered during command execution to request an Abort operation.
v) Configure the user inputs into the corresponding registers, including U0FNAME_INTREG, U0FLEN_INTREG, U0PATTSEL_INTREG, U0TRNRATE_INTREG, and U0CMD_INTREG. After all parameters have been configured, write the appropriate command value to U0CMD_INTREG to start the Write File operation.
Read File Operation
i) Read DFNUM_INTREG to determine the number of files stored on the SSD, and display the read value to indicate the valid range of the first file name for the Read File command.
ii) Prompt the user to specify the file name, validate its value, and then configure it to U0FNAME_INTREG if it is valid. After this, follow steps (iii) – (v) of Write File operation.
4) The CPU waits for the command completion, detects errors by monitoring the value of U0STS_INTREG[2:0], or detects an abort request from the user.
· Bit[0] = 0b indicates command completion. Proceed to the next step.
· Bit[1] = 1b indicates an error detection on User#0. Upon this detection, read the error details from U0ERRTYPE_INTREG and U0NVMERRTYPE_INTREG, interpret the read values, and display an error message corresponding to the error type on the console.
· Bit[2] = 1b indicates an error due to data verification failure. Upon this detection, display the details of the error data on the console. Despite a verification error, the test operation continues until its completion or the reception of a user abort.
· If the user requests an Abort, assert bit[9] of U0CMD_INTREG to request termination of the current command. Wait until U0STS_INTREG[0] becomes 0b, indicating completion of the Abort operation, before returning to the normal command loop.
During data transfer, read U0CURTESTSIZEL/H_INTREG to check the current transfer size, and display the result on the console every second to monitor the test progress.
· Retrieve the total transfer size from U0CURTESTSIZEL/H_INTREG.
· Retrieve the timer value to compute the total time usage and average transfer speed.
· Retrieve the file name and number of files to compute and display the first and last file names with their directories.
These results are displayed on the console. If an abort is requested during the Write File command, display information about the last data position. The information after an abort operation includes:
· Write File: The last file name with its directory and its valid data size, decoded from U0ABTFNAME_INTREG and U0ABTCURWRLEN_INTREG, respectively.
· Read File: The last file name with its directory and its valid data size, calculated from U0CURTESTSIZEL/H _INTREG.
The Read File info command can be requested by User#0. If Read File Info is selected while the DG’s exFAT file system is not detected, the firmware starts the (Secure) Format procedure first. The selected operation proceeds only after the Format operation completes successfully.
The operation when selecting this test operation includes the following steps.
1) Read TOTALFCAP_INTREG to ensure the selected SSD uses the exFAT file system by DG’s exFAT-IP. If not, the user is prompted to execute the (Secure) Format. If the SSD remains unformatted, execute (Secure) Format operation as described in Section 3.1.1 (Secure) Format.
2) Read DFNUM_INTREG to check the number of available files on the SSD and display the read value to indicate the valid range of the requested file name for the Read File Info command.
3) Prompt the user to specify the file name, validate its value, and then configure it to U0FNAME_INTREG if it is valid.
4) Set bit[8] and bits[2:0] of U0CMD_INTREG to execute the Read File Info command. The exFAT2-IP asserts busy status (U0STS_INTREG[0]) to 1b upon initiating the Read File Info operation.
5) The CPU waits for the command completion or an error detection by monitoring the value of U0STS_INTREG[1:0].
· Bit[0] = 0b indicates completion of the command. Proceed to the next step.
· Bit[1] = 1b indicates an error detection on User#0. Following this, read the error details from U0ERRTYPE_INTREG and U0NVMERRTYPE_INTREG, interpret the read value, and display an error message corresponding to the error type on the console.
6) Upon the completion of the command, read U0FINFO_INTREG to retrieve the modified/created date and time of the requested file. After that, display the read value on the console along with the file name and its directory.
The Shutdown command can be executed only by User#0. When this test option is selected, the Shutdown operation is executed following these steps.
1) Ask the user to confirm the Shutdown operation. The user enters the keys to proceed or cancel the Shutdown operation.
2) Set bit[8] and bits[2:0] of U0CMD_INTREG to issue the Shutdown command. The exFAT2-IP sets busy status (U0STS_INTREG[0]) to 1b upon initiating the operation.
3) The CPU waits for the command completion or an error detection by monitoring the value of U0STS_INTREG[1:0].
· Bit[0] = 0b indicates completion of the command. Proceed to the next step.
· Bit[1] = 1b indicates an error detection on User#0. Following this, read the error details from U0ERRTYPE_INTREG and U0NVMERRTYPE_INTREG, interpret the read value, and display an error message corresponding to the error type on the console.
4) Upon the completion of the command, display a message to indicate the SSD becomes inactive. The user cannot send additional command requests to the exFAT2-IP. To continue testing, the user must power off and power on the system.
This section describes the list of functions used to operate exFAT2-IP.
|
void change_ftime(void) |
|
|
Parameters |
None |
|
Return value |
None |
|
Description |
Print the current created date and time calling the ‘cur_ftime’ function. Afterward, prompt the user to either keep the current value or input a new one. If a new value is received, validate each input (year, month, date, hour, minute, second), update the global variable (DataTime), and write it to U0DATETIME_INTREG. |
|
void cur_ftime(void) |
|
|
Parameters |
None |
|
Return value |
None |
|
Description |
Display the “Current time created” message and call the ‘show_ftime’ function to display the current created date and time. |
|
void error_handler(void) |
|
|
Parameters |
None |
|
Return value |
None |
|
Description |
This function is called when the system encounters an error. By default, it waits indefinitely, halting all further operations. Users can customize this function to implement error handling procedures that suit their specific requirements. |
|
int format_fat(void) |
|
|
Parameters |
None |
|
Return value |
STATUS_SUCCESS: Operation is successful. STATUS_ERROR: An error is found. STATUS_INVALIDINPUT: Receive invalid input. STATUS_CANCEL: Operation is cancelled. |
|
Description |
Execute (Secure) Format command as outlined in Section 3.1.1. |
|
void get_cursize(unsigned long long* cursize) |
|
|
Parameters |
cursize: Pointer to a variable that will receive the current transfer size. |
|
Return value |
None |
|
Description |
Read U0CURTESTSIZEL/H_INTREG, combine the values into a 64-bit size, determine current transfer size, and update result to ‘cursize’ parameter. |
|
int get_param(userin_struct* userin) |
|
|
Parameters |
userin: A set of test parameters input from the user, including command, file name, number of files, test pattern, and transfer rate. |
|
Return value |
STATUS_SUCCESS: All parameters are valid. STATUS_INVALIDINPUT: Receive invalid input. STATUS_CANCEL: The selected command is neither Write nor Read. |
|
Description |
Receive test parameters from the user via the console. Validates inputs and updates the ‘userin’ structure. |
|
int rd_fileinfo(void) |
|
|
Parameters |
None |
|
Return value |
STATUS_SUCCESS: Operation is successful. STATUS_ERROR: An error is found. STATUS_INVALIDINPUT: Receive invalid input. |
|
Description |
Execute Read File Info command as outlined in Section 3.1.3. |
|
void show_dir(unsigned int firstfile, unsigned int lastfile) |
|
|
Parameters |
firstfile: File number of the first file in the operation. lastfile: File number of the last file in the operation. |
|
Return value |
None |
|
Description |
Calculate and display the directory and file name (in hex) for both the first and last files, involved in the operation, using ‘DirCap’ variable to compute the directory path. |
|
void show_diskinfo(void) |
|
|
Parameters |
None |
|
Return value |
None |
|
Description |
Display SSD file system information on the console, including file size by calling ‘show_fsize’ function, maximum number of files in the SSD (TotalFCap), maximum number of files per directory (DirCap), and total number of existing files (DFnum). |
|
void show_error(void) |
|
|
Parameters |
None |
|
Return value |
None |
|
Description |
Read U0ERRTYPE_INTREG and U0NVMERRTYPE_INTREG, interpret the error type, and display the result on the console. Then, display the internal debug values (test pins) of exFAT2-IP and (mu)NVMe-IP by calling the ‘show_testpin’ function. Finally, display a message recommending the user to check the environment or reset the system before starting a new test. |
|
void show_fsize(void) |
|
|
Parameters |
None |
|
Return value |
None |
|
Description |
Decodes the global file size parameter (DFsize) into human-readable units (MB or GB) and displays the result on the console |
|
void show_ftime(unsigned int time_input) |
|
|
Parameters |
time_input: time and date input |
|
Return value |
None |
|
Description |
Decodes ‘time_input’ into date (DD/MM/YYYY) and time (HH:MM:SS) format, accounting for the 2-second resolution in the seconds field, and displays the result on the console. |
|
void show_result(userin_struct* userin, unsigned int abort, unsigned int timeuseh, unsigned int timeusel) |
|
|
Parameters |
userin: Pointer to a structure to receive user’s parameters, including command type, file name, number of files, pattern, and transfer rate. abort: Indicate whether an abort was requested. timeuseh: Upper 32 bits of elapsed time timeusel: Lower 32 bits of elapsed time |
|
Return value |
None |
|
Description |
Execute the following steps. 1) Update the total transfer size by calling the ‘get_cursize’ function and display the result on the console using the ‘show_size’ function. 2) Display the total time usage using the ‘show_time’ function. 3) Calculate and display transfer performance. 4) Calculate the last file name and call ‘show_dir’ to display the file name and directory name of the first file and the last existing file. If an abort is requested, the actual transfer size is also displayed. 5) Update and display the latest file count on the SSD by reading ‘DFNUM_INTREG’. |
|
void show_size(unsigned long long size_input) |
|
|
Parameters |
size_input: Data size in bytes |
|
Return value |
None |
|
Description |
Formats and displays ‘size_input’ as MB or GB. If less than 1 GB, displays MB with fractional precision; if greater than or equal to 1 GB, displays GB with fractional precision. |
|
void show_testpin(void) |
|
|
Parameters |
None |
|
Return value |
None |
|
Description |
Read and display test pin values from U0TESTPINL/H_INTREG and NVMU0TESTPINL/H in hex format on the console. |
|
void show_time(unsigned int timeuseh, unsigned int timeusel) |
|
|
Parameters |
timeuseh: The upper 32-bit read value of timer timeusel: The lower 32-bit read value of timer |
|
Return value |
None |
|
Description |
Calculate and display elapsed time on the console. Formats time in usec, msec, or sec depending on magnitude, derived from ‘timeuseh’ and ‘timeusel’ values. |
|
void show_vererr(void) |
|
|
Parameters |
None |
|
Return value |
None |
|
Description |
Read and display verification error details, including U0FAILFNAME_INTREG (error file name), U0FAILADDRL/H_INTREG (error address), U0EXPPATW0-15_INTREG (expected data), and U0RDPATW0-15_INTREG (read data). |
|
int shutdown_dev(void) |
|
|
Parameters |
None |
|
Return value |
STATUS_SUCCESS: Operation is successful. STATUS_ERROR: An error is found. |
|
Description |
Execute Shutdown command as outlined in Section 3.1.4. |
|
void update_diskparam(void) |
|
|
Parameters |
None |
|
Return value |
None |
|
Description |
Read TOTALFCAP_INTREG, DIRCAP_INTREG, DFSIZE_INTREG, and DFNUM _INTREG, update corresponding internal variables (TotalFCap, DirCap, DFSize, and DFnum), and set ‘filesys_det’ to indicate if an exFAT file system by DG’s exFAT-IPs is detected. |
|
int wrrd_file(void) |
|
|
Parameters |
None |
|
Return value |
STATUS_SUCCESS: Operation is successful. STATUS_ERROR: An error is found. STATUS_INVALIDINPUT: Receive invalid input. |
|
Description |
Execute the Write File or Read File command as outlined in Section 3.1.2. |
Figure 15 shows the test results obtained from running the demo system with a single user. The test results were obtained using a 6.4 TB MEMBLAZE PBlaze7 7A46 SSD, a transfer size of 32 GB, and an all-zero test pattern, which demonstrates optimal performance.

Figure 15 Test Performance of exFAT2-IP for NVMe Gen5 Demo Using MEMBLAZE PBlaze7 7A46 SSD
Using PCIe Gen5 on the VHK158 board achieves approximately 11,400 MB/s for Write and 7,800 MB/s for Read.
|
Revision |
Date (D-M-Y) |
Description |
|
1.00 |
7-Oct-26 |
Initial release |