DG0534: Interfacing IGLOO2 FPGA with External LPDDR Memory through MDDR Controller - Libero SoC v11.7 Demo Guide

Interfacing IGLOO2 FPGA with External
LPDDR Memory through MDDR Controller Libero SoC v11.7
DG0534 Demo Guide
Contents
1 Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.1
1.2
1.3
Purpose . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Intended Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2 Interfacing IGLOO2 FPGA with External LPDDR Memory through MDDR
Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.1
2.2
2.3
2.4
2.5
2.6
2.7
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Design Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Demo Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.3.1
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.3.2
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.3.3
Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.3.3.1
MDDR_Demo_0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.3.3.2
UART_IF_0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Running the Demo Using Simulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.4.1
Simulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.4.2
Running the Simulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Setting Up the Hardware Demo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Programming the Demo Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
2.6.1
Setting Up the Device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
2.6.2
Programming the Device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
2.6.3
Running the Hardware Demo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
2.6.4
Steps to Run GUI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
2.6.5
Performing Single Data Transfer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
2.6.6
Performing Burst Data Transfer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Conclusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
3 Appendix: Configuring MDDR Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
3.1
MDDR Configuration Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.1.1
General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.1.2
Memory Initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.1.3
Memory Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
29
30
30
31
4 Appendix: Finding Correct COM Port Number when Using USB 3.0 . . . . . . . . . . . 33
5 Appendix: Performing Write/Read Operation when Non 64-bit Aligned Address is
Provided . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
6 Revision History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
7 Product Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
7.1
7.2
7.3
7.4
7.5
Customer Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Customer Technical Support Center . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Technical Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Website . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Contacting the Customer Technical Support Center . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7.5.1
Email . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Revision 6
38
38
38
38
38
38
2
7.6
7.5.2
My Cases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
7.5.3
Outside the U.S. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
ITAR Technical Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Revision 6
3
Figures
Figure 1.
Figure 2.
Figure 3.
Figure 4.
Figure 5.
Figure 6.
Figure 7.
Figure 8.
Figure 9.
Figure 10.
Figure 11.
Figure 12.
Figure 13.
Figure 14.
Figure 15.
Figure 16.
Figure 17.
Figure 18.
Figure 19.
Figure 20.
Figure 21.
Figure 22.
Figure 23.
Figure 24.
Figure 25.
Figure 26.
Figure 27.
Figure 28.
Figure 29.
Figure 30.
Figure 31.
Figure 32.
Figure 33.
Demo Design Files Top-Level Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
IGLOO2 MDDR Demo Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
IGL2_MDDR_Demo SmartDesign . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
MDDR_Demo_0 SmartDesign Component . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
UART_IF_0 SmartDesign Component . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
AXI_LPDDR_Simulation SmartDesign Testbench . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
DO File Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Waveforms Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Invoking Organize Stimulus Files Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Organize Stimulus Files Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Transcript Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Single Write and Read Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
16-Beat AXI Burst Write and Read . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
IGLOO2 Evaluation Kit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
USB Serial 2.0 Port Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
FlashPro New Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
FlashPro Project Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
FlashPro Program Passed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
IGL2_MDDR_Demo Utility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
IGL2_MDDR_Demo- Connection Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Single Write Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Clear Data Field . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Single Read Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Burst Write Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Burst Read Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
System Builder - Memories - MDDR Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
System Builder MDDR Configuration – General Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
System Builder MDDR Configuration – Memory Initialization Tab . . . . . . . . . . . . . . . . . . . . . . . . . 31
System Builder MDDR Configuration – Memory Timing Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
USB 3.0 Serial Port Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Read Error . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Non 64-bit Aligned Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Converted 64-bit Aligned Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Revision 6
4
Tables
Table 1.
Table 2.
Design Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
IGLOO2 FPGA Evaluation Kit Jumper Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Revision 6
5
Preface
1
Preface
1.1
Purpose
This demo guide is for IGLOO®2 field programmable gate array (FPGA) devices. It provides instructions
on how to use the corresponding reference design.
1.2
Intended Audience
This demo guide is intended for:
•
•
1.3
FPGA designers
System-level designers
References
The following documents are referred in this demo guide:
•
•
•
•
•
UG0446: SmartFusion2 and IGLOO2 FPGA High Speed DDR Interfaces User Guide
UG0448: IGLOO2 FPGA High Performance Memory Subsystem User Guide
IGLOO2 System Builder User Guide
UG0478: IGLOO2 Evaluation Kit User Guide
CoreUART Handbook
Refer to the following web page for a complete and up-to-date listing of IGLOO2 device documentation:
http://www.microsemi.com/products/fpga-soc/fpga/igloo2-fpga.
Revision 6
6
Interfacing IGLOO2 FPGA with External LPDDR Memory through MDDR
Controller
2
Interfacing IGLOO2 FPGA with External
LPDDR Memory through MDDR Controller
2.1
Introduction
This demo shows that the high-performance memory subsystem (HPMS) double data rate (DDR)
controller accessing the external DDR synchronous dynamic random access memory (SDRAM)
memories in the IGLOO2 devices.
This demo has two parts:
•
•
Demo using simulation
Demo using the IGLOO2 Evaluation Kit
In the demo design, AXI master in the FPGA fabric accesses the low power DDR (LPDDR) memory
present in the IGLOO2 Evaluation Kit board using the microcontroller/memory subsystem double data
rate (MDDR) controller. A utility, IGL2_MDDR_Demo is provided along with the demo deliverables. Using
the utility, you can drive the AXI master logic. AXI master converts the commands from the utility to AXI
transactions for the MDDR controller to perform the read/write operations on the LPDDR memory.
2.2
Design Requirements
Table 1 shows the design requirements.
Table 1 • Design Requirements
Design Requirements
Description
Hardware Requirements
IGLOO2 Evaluation Kit:
• FlashPro4 programmer
• 12 V adapter
• USB A to Mini-B cable
Rev C or later
Host PC or Laptop
Any 64-bit Windows Operating System
Software Requirements
Libero® System-on-Chip (SoC)
v11.7
FlashPro programming software
v11.7
Microsoft .NET Framework 4
–
Host PC Drivers
USB to UART drivers
Revision 6
7
Interfacing IGLOO2 FPGA with External LPDDR Memory through MDDR
Controller
2.3
Demo Design
2.3.1
Introduction
The demo design files are available for download from the following path in the Microsemi website:
http://soc.microsemi.com/download/rsc/?f=m2gl_dg0534_liberov11p7_df
Design files include:
•
•
•
•
•
Demo_Utility
Libero_project
•
IGL2_MDDR_Demo
Programming_file
Source_files
readme.txt
Figure 1 shows the top-level structure of the design files. For further details, refer to the readme.txt
file.
Figure 1 • Demo Design Files Top-Level Structure
<download_folder>
IGLOO2_MDDR_Demo_DF
Demo_Utility
Libero_project
IGL2_MDDR_Demo
Programming_file
Source_file
readme.txt
In the demo design, AXI master implemented in the FPGA fabric accesses the LPDDR memory present
in the IGLOO2 Evaluation Kit board using the MDDR controller. The AXI master logic communicates to
the MDDR controller via CoreAXI interface and the DDR_FIC interface.The read/write operations
initiated by the IGL2_MDDR_Demo utility are sent to the UART_IF block using the UART protocol. AXI
master receives the address and data from the UART_IF block.
During a write operation, the UART_IF block sends the address and data to the AXI master logic. During
a read operation, the UART_IF block sends the address to the AXI master and stores the read data in
TPSRAM. When the read operation is complete, the read data is sent to the host PC via UART.
Revision 6
8
Interfacing IGLOO2 FPGA with External LPDDR Memory through MDDR
Controller
Figure 2 shows the top-level view of demo design.
Figure 2 • IGLOO2 MDDR Demo Block Diagram
D
D
R
LPDDR
SDRAM
D
D
R
P
H
Y
MDDR
DDR
Controller
I
O
AXI
Transaction
Controller
eNVM
DDR_FIC
APB Config
Reg
AHB Bus Matrix
FIC_0
FIC_2
AHB
CoreConfigMaster
CoreConfigP
HPMS
CoreAXI
UART_IF_FSM
TPSRAM
AXI Master
COREUART
FPGA FABRIC
UART_IF
IGLOO2
UART Communication
Legend:
UART Communication Protocol
Data and Control Path - UART_IF and AXI_Master
Data and Control Path – AXI_Master and LPDDR
User GUI
Interface
Host PC
In this demo design, the following blocks are configured:
•
•
•
•
•
MDDR controller is configured for LPDDR memory available in the IGLOO2 Evaluation Kit board.
The LPDDR memory is a Micron® DRAM (Part Number: MT46H32M16LF).
DDR_FIC is configured for AXI bus interface.
Both AXI clock and LPDDR clock are configured for 160 MHz.
CoreUART IP has the following configuration:
•
Baud Rate: 115200
•
Data Bits: 8
•
Parity: None
TPSRAM IP has the following configuration:
•
Write port depth: 256
•
Write port width: 64
•
Read port depth: 2048
•
Read port width: 8
Revision 6
9
Interfacing IGLOO2 FPGA with External LPDDR Memory through MDDR
Controller
Refer to "Appendix: Configuring MDDR Controller" on page 29 for more information on how to configure
the DDR controller.
2.3.2
Features
The IGLOO2 MDDR demo design has the following features:
•
•
•
•
•
2.3.3
Single AXI read/write transactions
16-beat burst AXI read/write transactions
LPDDR memory model simulation using SmartDesign testbench
Design validation using the IGLOO2 Evaluation Kit board that has the LPDDR memory
Initiation of the read/write transactions using IGL2_MDDR_Demo utility
Description
The demo design consists the following SmartDesign components:
•
•
MDDR_Demo_0: This SmartDesign handles the data transactions between the MDDR controller
and LPDDR SDRAM.
UART_IF_0: This SmartDesign handles the communication between the host PC and the IGLOO2
Evaluation Kit board.
Figure 3 shows the MDDR_Demo_0 and UART_IF_0 connection.
Figure 3 • IGL2_MDDR_Demo SmartDesign
2.3.3.1 MDDR_Demo_0
MDDR_Demo_0 consists the MDDR_Demo_sb_0 subsystem generated using the system builder and
the AXI_IF_0 master logic. The AXI_IF_0 master logic is an RTL code that implements the AXI read and
write transactions. It receives the read/write operations, burst length (RLEN and WLEN), address and
data as inputs. Based on inputs received, it communicates with the LPDDR memory through the MDDR
controller.
Revision 6
10
Interfacing IGLOO2 FPGA with External LPDDR Memory through MDDR
Controller
Figure 4 shows the MDDR_Demo_0 SmartDesign component.
Figure 4 • MDDR_Demo_0 SmartDesign Component
2.3.3.2 UART_IF_0
The UART_IF_0 SmartDesign component handles the UART communication between host PC demo
utility and the AXI master logic. The COREUART_0 IP receives the UART signals from the host PC user
interface. The UART_IF_FSM_0 is a wrapper for COREUART_0, collects the data from COREUART_0
IP and converts the data to the relevant AXI_IF_0 master signals.
For a single write operation, the UART_IF_FSM_0 wrapper receives the address and data from the
demo utility. For a burst write operation, the address and data are received from the demo utility and the
subsequent incremental data are provided by the UART_IF_FSM_0 wrapper.
For a burst read operation, UART_IF_FSM_0 collects the address from the demo utility and sends that to
the AXI_IF_0 master logic. It then receives the read data from the AXI_IF_0 master logic and stores it in
the TPSRAM_0. After completion of the read burst transactions, the UART_IF_FSM_0 wrapper fetches
the stored data from the TPSRAM_0 and sends it to the COREUART IP.
Revision 6
11
Interfacing IGLOO2 FPGA with External LPDDR Memory through MDDR
Controller
Figure 5 shows the UART_IF_0 SmartDesign component.
Figure 5 • UART_IF_0 SmartDesign Component
2.4
Running the Demo Using Simulation
The demo design can be simulated using SmartDesign testbench and LPDDR memory model
(MT46H32M16LF with 512 Mb density).
The simulation is set to run the following:
•
•
Single AXI write and read operation
16-beat AXI burst write and read operation
Revision 6
12
Interfacing IGLOO2 FPGA with External LPDDR Memory through MDDR
Controller
Figure 6 shows the AXI_LPDDR_Simulation SmartDesign testbench. The AXI_testbench provides the
read/write operations, burst length, address, and data to the MDDR_Demo_0 SmartDesign component.
Figure 6 • AXI_LPDDR_Simulation SmartDesign Testbench
To run the simulation, ensure that the following files are present in the Libero SoC project:
•
•
•
dram.v
dram_parameters.vh
AXI_testbench.v
The default location of the files is:
<Download folder>\IGLOO2_MDDR_Demo_DF\Libero_project\IGL2_MDDR_Demo\stimulus
Revision 6
13
Interfacing IGLOO2 FPGA with External LPDDR Memory through MDDR
Controller
2.4.1
Simulation
Simulation setup configuration can be set properly by using the following steps:
1.
2.
3.
4.
Launch the Libero SoC software.
Browse the IGL2_MDDR_Demo project provided in the design file.
Go to Project > Project Settings > Simulation Options.
Ensure that the DO File tab has the configuration, as shown in Figure 7
Figure 7 • DO File Settings
5.
Ensure that the Waveforms tab has the configuration, as shown in Figure 8.
Figure 8 • Waveforms Settings
Revision 6
14
Interfacing IGLOO2 FPGA with External LPDDR Memory through MDDR
Controller
6.
7.
Go to Design Flow tab.
Right-click Simulate under Verify Pre-Synthesized Design and select Organize Input Files >
Organize Stimulus Files..., as shown in Figure 9.
Figure 9 • Invoking Organize Stimulus Files Window
Revision 6
15
Interfacing IGLOO2 FPGA with External LPDDR Memory through MDDR
Controller
8.
Ensure the Organize Stimulus files window has the configuration, as shown in Figure 10.
Figure 10 • Organize Stimulus Files Window
Revision 6
16
Interfacing IGLOO2 FPGA with External LPDDR Memory through MDDR
Controller
2.4.2
Running the Simulation
The following steps describe how to run the simulation:
1.
2.
3.
Right-click Simulate under Verify Pre-Synthesized Design.
Click Open Interactively.
Simulation run time is 900 µs, as shown in Figure 7 on page 14.
Figure 11 shows the transcript window of the simulation.
Figure 11 • Transcript Window
Revision 6
17
Interfacing IGLOO2 FPGA with External LPDDR Memory through MDDR
Controller
Figure 12 shows the single AXI write and AXI read operation.
Figure 12 • Single Write and Read Operation
Figure 13 shows the 16-beat AXI burst write and read operation.
Figure 13 • 16-Beat AXI Burst Write and Read
Revision 6
18
Interfacing IGLOO2 FPGA with External LPDDR Memory through MDDR
Controller
2.5
Setting Up the Hardware Demo
The following steps describe how to setup the hardware demo:
1.
Connect the jumpers on the IGLOO2 Evaluation Kit, as shown in Table 2.
Table 2 • IGLOO2 FPGA Evaluation Kit Jumper Settings
Jumper
Pin (From)
Pin (To)
Comments
J22
1
2
Default
J23
1
2
Default
J24
1
2
Default
J8
1
2
Default
J3
1
2
Default
CAUTION: Ensure that the power supply switch SW7 is switched OFF while connecting the jumpers.
2.
3.
4.
Connect the Power supply to the J6 connector, switch ON the power supply switch, SW7.
Connect the FlashPro4 programmer to the J5 connector of the IGLOO2 Evaluation Kit board.
Connect the Host PC USB port to the IGLOO2 Evaluation Kit board J18 USB connector using the
USB mini-B cable.
Figure 14 shows the board setup for running the IGLOO2 MDDR demo on the IGLOO2 Evaluation Kit.
Figure 14 • IGLOO2 Evaluation Kit
Revision 6
19
Interfacing IGLOO2 FPGA with External LPDDR Memory through MDDR
Controller
5.
Ensure that the USB to UART bridge drivers are automatically detected. This can be verified in the
Device Manager of the host PC. The FTDI USB to UART converter enumerates four COM ports.
For USB 2.0, note down the USB Serial Converter D COM port number to use it in the GUI.
Figure 15 shows the USB 2.0 Serial port properties. As shown in Figure 15, COM10 is connected to
USB Serial Converter D. Refer to "Appendix: Finding Correct COM Port Number when Using USB
3.0" on page 33 for finding the correct COM port in USB 3.0.
Figure 15 • USB Serial 2.0 Port Properties
6.
If the USB to UART bridge drivers are not installed, download and install the drivers from
www.microsemi.com/soc/documents/CDM_2.08.24_WHQL_Certified.zip.
Revision 6
20
Interfacing IGLOO2 FPGA with External LPDDR Memory through MDDR
Controller
2.6
Programming the Demo Design
The following steps describe how to program the demo design:
1.
2.
3.
4.
5.
6.
7.
8.
Download the demo design from the following link:
http://soc.microsemi.com/download/rsc/?f=m2gl_dg0534_liberov11p7_df
Switch ON the power supply switch SW7.
Launch the FlashPro software.
Click New Project.
In the New Project window, type the project name as IGL2_MDDR_Demo.
Click Browse and navigate to the location where you want to save the project.
Select Single device as the Programming mode.
Click OK to save the project.
Figure 16 • FlashPro New Project
Revision 6
21
Interfacing IGLOO2 FPGA with External LPDDR Memory through MDDR
Controller
2.6.1
Setting Up the Device
The following steps describe how to configure the device:
1.
2.
3.
Click Configure Device on the FlashPro GUI.
Click Browse and navigate to the location where IGL2_MDDR_Demo.stp file is located, and select the
file. The default location is:
<download_folder>\IGLOO2_MDDR_Demo_DF\Programming_file\
Click Open. The required programming file is selected and is ready to be programmed in the device.
Figure 17 • FlashPro Project Configuration
Revision 6
22
Interfacing IGLOO2 FPGA with External LPDDR Memory through MDDR
Controller
2.6.2
Programming the Device
Click PROGRAM to start programming the device. Wait until the Programmer Status is changed to RUN
PASSED, as shown in Figure 18.
Figure 18 • FlashPro Program Passed
2.6.3
Running the Hardware Demo
The IGLOO2 MDDR demo comes with a utility, IGL2_MDDR_Demo, that runs on the host PC to
communicate with the IGLOO2 Evaluation Kit. The UART protocol is used as the underlying
communication protocol between the host PC and IGLOO2 Evaluation Kit.
Revision 6
23
Interfacing IGLOO2 FPGA with External LPDDR Memory through MDDR
Controller
Figure 19 shows initial screen of the IGL2_MDDR_Demo utility.
Figure 19 • IGL2_MDDR_Demo Utility
The IGL2_MDDR_Demo utility consists the following sections:
•
•
•
•
•
2.6.4
Serial Port Configuration: Displays the serial port. Baud rate is fixed at 115200
Data Transfer Type: Single or Burst
LPDDR SDRAM: Provides Address and Data
LPDDR Burst Read: Displays the Burst Read Values for the corresponding address
C: Clears the existing data
Steps to Run GUI
The following steps describe how to run the GUI:
1.
2.
3.
Launch the utility. The default location is:
<download_folder>\\IGLOO2_MDDR_Demo_DF\Demo_Utility\IGL2_MDDR_Demo.exe
Select the appropriate COM port from drop down menu. In this case, it is COM 10.
Click Connect. The connection status along with the COM Port and Baud rate is shown in the left
bottom corner of the screen.
Revision 6
24
Interfacing IGLOO2 FPGA with External LPDDR Memory through MDDR
Controller
Figure 20 shows the connection status of the utility.
Figure 20 • IGL2_MDDR_Demo- Connection Status
2.6.5
Performing Single Data Transfer
For a single write or read operation, the AXI master logic is configured to transfer a burst length of 1 (that
is, 8 bytes). For a write operation, the utility sends a 32-bit address and 64-bit (8 bytes) data. The data is
then written to the LPDDR SDRAM. For a read operation, the utility sends a 32-bit address and receives
64-bit data from LPDDR and is displayed in the utility.
The following steps describe how to perform a single data transfer:
1.
2.
3.
4.
Select Single (8-bytes) as Data Transfer Type.
A 64-bit aligned address is required in the address field. Enter a 32-bit HEX Address in the range
0×00000000 - 0×03FFFFF8. When a non 64-bit aligned address is provided, the GUI converts it to
64-bit aligned address and performs the write/read. Refer to "Appendix: Performing Write/Read
Operation when Non 64-bit Aligned Address is Provided" on page 35 to perform write/read when
non 64-bit aligned address is provided.
In the Data field, enter a 64-bit data in HEX format.
Click Write. The entered data is written to the LPDDR memory.
Revision 6
25
Interfacing IGLOO2 FPGA with External LPDDR Memory through MDDR
Controller
Figure 21 shows the Address and Data values entered for a Single Write operation.
Figure 21 • Single Write Operation
5.
6.
To verify the write operation, perform a read operation to the same address where the data is written.
Press C to clear the data present in the Data field. Figure 22 highlights the Clear button, C.
Figure 22 • Clear Data Field
7.
Click Read to read the data from the LPDDR SDRAM.
Revision 6
26
Interfacing IGLOO2 FPGA with External LPDDR Memory through MDDR
Controller
Figure 23 shows the data read from the LPDDR SDRAM.
Figure 23 • Single Read Operation
8.
2.6.6
Compare the read and write data. The write and read data being same establishes that the write and
read operations to the LPDDR SDRAM were successful.
Performing Burst Data Transfer
For a burst write or read operation, the AXI master logic is configured to transfer a burst length of 16 (that
is, 128 bytes). In this demo, 16 transfers of 16-beat burst operations are implemented (16 transfers ×
16-beat burst data = 2048 bytes data). For a write operation, the utility sends a 32-bit initial address and
64-bit (8 bytes) initial data. After the initial write operation, incremental data is written. For a read
operation, the utility sends a 32-bit address and receives 2048 bytes of data from the LPDDR SDRAM
and the data is displayed in the utility.
The following steps describe how to perform a burst data transfer:
1.
2.
3.
4.
Select Burst (2048-bytes) as Data Transfer Type.
A 64-bit aligned address is required in the address field. Enter a 32-bit HEX Address in the range
0×00000000 - 0×03FFF7F8. When a non 64-bit aligned address is provided, the GUI converts it into
64-bit aligned address and performs the write/read operation. Refer to "Appendix: Performing
Write/Read Operation when Non 64-bit Aligned Address is Provided" on page 35 to perform
write/read when non 64-bit aligned address is provided.
In the Data field, enter a 64-bit data in HEX format.
Click Write. The entered data is written to the Address location specified in the Address filed and
then the data is incremented by 1 and written to the next address location. This is repeated 256
times to write all the 2048 bytes of data.
Revision 6
27
Interfacing IGLOO2 FPGA with External LPDDR Memory through MDDR
Controller
Figure 24 shows the Address and Data values entered for a Burst Write operation.
Figure 24 • Burst Write Operation
5.
6.
To verify the write operation, perform a read operation to the same address where the data is written.
Click Read. All the 2048 bytes of data written to the LPDDR is read, and the read data is displayed
on the LPDDR Burst Read panel.
Figure 25 shows the burst read data.
Figure 25 • Burst Read Operation
7.
2.7
Click Exit to exit the utility.
Conclusion
This demo shows how to perform read/write operations to LPDDR SDRAM using the IGLOO2 MDDR
controller. Options are provided to simulate the design using a SmartDesign testbench and validate the
design on the IGLOO2 Evaluation Kit using a GUI interface.
Revision 6
28
Appendix: Configuring MDDR Controller
3
Appendix: Configuring MDDR Controller
This section describes how to configure the MDDR controller registers using Libero SoC. The
configuration options for MDDR are available at the MDDR tab of the Memories tab in system builder.
Figure 26 shows the MDDR tab.
The IGLOO2 Evaluation Kit has the LPDDR memory from Micron. All values provided here are from the
Micron datasheet; part number, MT46H32M16LF.
Note: The Automotive Mobile Low-Power DDR SDRAM Datasheet is available to download it from Micron
website.
Figure 26 • System Builder - Memories - MDDR Tab
3.1
MDDR Configuration Tab
When using an external memory, the memory controller must wait for the memory to initialize (settling
time) before accessing it. The IGLOO2 Evaluation Kit uses the LPDDR memory. Therefore, the DDR
controller has to wait at least 200 us. Provide 200 as the value for the field, DDR memory settling time
(us).
Note: All the values provided here are from the Micron datasheet. The parameters can be configured according
to the user’s requirements.
Revision 6
29
Appendix: Configuring MDDR Controller
3.1.1
General
This section shows the configurations of the General tab:
•
•
•
Memory Type: LPDDR
Data Width: 16
Address Width (bits):
•
Row: 16
•
Bank: 2
•
Column: 10
Figure 27 shows the General tab after configuration parameters are set.
Figure 27 • System Builder MDDR Configuration – General Tab
3.1.2
Memory Initialization
This section shows the configurations of the Memory Initialization tab:
•
•
•
•
•
•
•
•
•
•
Burst length: 8
Burst Order: Sequential
Timing Mode: 1T
CAS Latency: 3
Self Refresh Enabled: NO
Auto Refresh Burst Count: Single
Powerdown Enabled: YES
Stop the Clock: NO
Deep Powerdown enabled: NO
Powerdown Entry Time: 320
Revision 6
30
Appendix: Configuring MDDR Controller
Figure 28 shows the Memory Initialization tab after configuration parameters are set.
Figure 28 • System Builder MDDR Configuration – Memory Initialization Tab
3.1.3
Memory Timing
This section shows the configurations of the Memory Timing tab:
•
•
•
•
•
•
•
•
•
•
•
•
Time To Hold Reset before INIT: 0
MRD: 4
RAS (Min): 8
RAS (Max): 8192
RCD: 6
RP: 7
REFI: 3104
RC: 12
XP: 3
CKE: 3
RFC: 79
FAW: 0
Revision 6
31
Appendix: Configuring MDDR Controller
Figure 29 shows the Memory Timing tab after configuration parameters are set.
Figure 29 • System Builder MDDR Configuration – Memory Timing Tab
Revision 6
32
Appendix: Finding Correct COM Port Number when Using USB 3.0
4
Appendix: Finding Correct COM Port Number
when Using USB 3.0
FTDI USB to UART converter enumerates the four COM ports. In USB 3.0, the four available COM ports
are in Location 0. Figure 30 shows the USB 3.0 Serial port properties.
Figure 30 • USB 3.0 Serial Port Properties
To find out the correct COM port, program the IGLOO2 Evaluation Kit board with the provided
programming file. Connect each available COM port and click Write. If a wrong COM port is selected, the
GUI displays the read error. Try with all four available COM ports until the read error message
disappears.
Revision 6
33
Appendix: Finding Correct COM Port Number when Using USB 3.0
Figure 31 shows the Read Error message.
Figure 31 • Read Error
Revision 6
34
Appendix: Performing Write/Read Operation when Non 64-bit Aligned
Address is Provided
5
Appendix: Performing Write/Read Operation
when Non 64-bit Aligned Address is Provided
When a non 64-bit aligned address is provided in the GUI, the GUI converts it into the 64-bit aligned
address (0, 8,10,18,20,28,30,38 …) and performs the write/read operation.
1.
2.
Enter the non 64-bit aligned 32-bit address in HEX format.
Enter the 64-bit data in HEX format.
Figure 32 shows the non 64-bit aligned address entered in the GUI.
Figure 32 • Non 64-bit Aligned Address
3.
Click Write to perform the write operation. GUI converts the address into 64-bit aligned address and
performs the write operation.
Revision 6
35
Appendix: Performing Write/Read Operation when Non 64-bit Aligned
Address is Provided
Figure 33 shows the GUI pop-up information message and converted 64-bit aligned address.
Figure 33 • Converted 64-bit Aligned Address
Revision 6
36
Revision History
6
Revision History
The following table shows important changes made in this document for each revision.
Revision
Changes
Revision 6
(March 2016)
Updated the document for Libero v11.7 software release changes (SAR 76992).
Revision 5
(November 2015)
Changed MDDR_CLK: DDR_FIC_CLK ratio to 1:1 and updated Figure 6 on page 13,
Figure 12 on page 18, and Figure 13 on page 18 (SAR 73229).
Revision 4
(October 2015)
Updated the document for Libero v11.6 software release changes (SAR 72065).
Revision 3
(March 2015)
Updated the document for Libero SoC v11.5 (SAR 65209).
Revision 2
(August 2014)
Updated the document for Libero SoC v11.4
Revision 1
(March 2014)
Initial release
Revision 6
37
Product Support
7
Product Support
Microsemi SoC Products Group backs its products with various support services, including Customer
Service, Customer Technical Support Center, a website, electronic mail, and worldwide sales offices.
This appendix contains information about contacting Microsemi SoC Products Group and using these
support services.
7.1
Customer Service
Contact Customer Service for non-technical product support, such as product pricing, product upgrades,
update information, order status, and authorization.
From North America, call 800.262.1060
From the rest of the world, call 650.318.4460
Fax, from anywhere in the world, 408.643.6913
7.2
Customer Technical Support Center
Microsemi SoC Products Group staffs its Customer Technical Support Center with highly skilled
engineers who can help answer your hardware, software, and design questions about Microsemi SoC
Products. The Customer Technical Support Center spends a great deal of time creating application
notes, answers to common design cycle questions, documentation of known issues, and various FAQs.
So, before you contact us, please visit our online resources. It is very likely we have already answered
your questions.
7.3
Technical Support
For Microsemi SoC Products Support, visit
http://www.microsemi.com/products/fpga-soc/design-support/fpga-soc-support.
7.4
Website
You can browse a variety of technical and non-technical information on the Microsemi SoC Products
Group home page, at http://www.microsemi.com/products/fpga-soc/fpga-and-soc.
7.5
Contacting the Customer Technical Support
Center
Highly skilled engineers staff the Technical Support Center. The Technical Support Center can be
contacted by email or through the Microsemi SoC Products Group website.
7.5.1
Email
You can communicate your technical questions to our email address and receive answers back by email,
fax, or phone. Also, if you have design problems, you can email your design files to receive assistance.
We constantly monitor the email account throughout the day. When sending your request to us, please
be sure to include your full name, company name, and your contact information for efficient processing of
your request.
The technical support email address is [email protected]
7.5.2
My Cases
Microsemi SoC Products Group customers may submit and track technical cases online by going to My
Cases.
Revision 6
38
Product Support
7.5.3
Outside the U.S.
Customers needing assistance outside the US time zones can either contact technical support via email
([email protected]) or contact a local sales office. Visit About Us for sales office listings and
corporate contacts.
7.6
ITAR Technical Support
For technical support on RH and RT FPGAs that are regulated by International Traffic in Arms
Regulations (ITAR), contact us via [email protected] Alternatively, within My Cases, select Yes
in the ITAR drop-down list. For a complete list of ITAR-regulated Microsemi FPGAs, visit the ITAR web
page.
Revision 6
39
Microsemi Corporation (Nasdaq: MSCC) offers a comprehensive portfolio of semiconductor
and system solutions for communications, defense & security, aerospace and industrial
markets. Products include high-performance and radiation-hardened analog mixed-signal
integrated circuits, FPGAs, SoCs and ASICs; power management products; timing and
synchronization devices and precise time solutions, setting the world's standard for time; voice
processing devices; RF solutions; discrete components; Enterprise Storage and
Communication solutions, security technologies and scalable anti-tamper products; Ethernet
solutions; Power-over-Ethernet ICs and midspans; as well as custom design capabilities and
services. Microsemi is headquartered in Aliso Viejo, Calif, and has approximately 4,800
employees globally. Learn more at www.microsemi.com.
Microsemi Corporate
Headquarters
One Enterprise, Aliso Viejo,
CA 92656 USA
Within the USA: +1 (800) 713-4113
Outside the USA: +1 (949) 380-6100
Sales: +1 (949) 380-6136
Fax: +1 (949) 215-4996
E-mail: [email protected]
© 2016 Microsemi Corporation. All
rights reserved. Microsemi and the
Microsemi logo are trademarks of
Microsemi Corporation. All other
trademarks and service marks are the
property of their respective owners.
Microsemi makes no warranty, representation, or guarantee regarding the information contained herein or
the suitability of its products and services for any particular purpose, nor does Microsemi assume any
liability whatsoever arising out of the application or use of any product or circuit. The products sold
hereunder and any other products sold by Microsemi have been subject to limited testing and should not
be used in conjunction with mission-critical equipment or applications. Any performance specifications are
believed to be reliable but are not verified, and Buyer must conduct and complete all performance and
other testing of the products, alone and together with, or installed in, any end-products. Buyer shall not rely
on any data and performance specifications or parameters provided by Microsemi. It is the Buyer's
responsibility to independently determine suitability of any products and to test and verify the same. The
information provided by Microsemi hereunder is provided “as is, where is” and with all faults, and the entire
risk associated with such information is entirely with the Buyer. Microsemi does not grant, explicitly or
implicitly, to any party any patent rights, licenses, or any other IP rights, whether with regard to such
information itself or anything described by such information. Information provided in this document is
proprietary to Microsemi, and Microsemi reserves the right to make any changes to the information in this
document or to any products and services at any time without notice.
50200534-6/3.16
Similar pages