Allwinner T3 + FPGA domestic core board - FPGA program loading and solidification of Pango Design Suite
[Copy link]
This article mainly demonstrates the methods of loading, curing, and compiling FPGA programs based on the Pango Design Suite (PDS) software developed by Unigroup Tongchuang. The applicable development environment is Windows 7/10 64bit.
The test board is the Allwinner T3 + Logos FPGA core board, which is a heterogeneous multi-core domestic industrial core board based on the Allwinner Technology T3 quad-core ARM Cortex-A7 processor + Unisplendour Tongchuang Logos PGL25G/PGL50G FPGA design. The ARM Cortex-A7 processing unit has a main frequency of up to 1.2GHz. All components of the core board, including CPU, FPGA, ROM, RAM, power supply, crystal oscillator, connector, etc., are domestically produced industrial-grade solutions, with a localization rate of 100%.
Click to add image description (up to 60 characters)Edit
The T3 inside the core board is connected to Logos through SPI, CSI, and I2C communication buses, and the LVDS DISPLAY, RGB DISPLAY, MIPI DSI, TVOUT, TVIN, CSI, GMAC, EMAC, USB, SATA, SDIO, UART, SPI, TWI and other interfaces and FPGA IO pins are led out through industrial-grade B2B connectors, supporting dual-screen display, Mali400 MP2 GPU, and 1080P@45fps H.264 video hardware codec. The core board has been verified by professional PCB Layout and high and low temperature tests, and is stable and reliable, which can meet various industrial application environments.
The FPGA program is located in the Demo directory of the product information. Please copy the corresponding FPGA program to a non-Chinese path in Windows. The following table shows the directory structure of the FPGA program in the Demo directory and the main file description.
Table 1
Table of contents
Files/Directories
illustrate
bin
xxx.sbit
Executable program (BitStramFile file) for online loading
xxx.sfc
Executable program for flashing into SPI FLASH
project
xxx_pgl25g/xxx_pgl50g
constraints
Constraints File Directory
hdl
Verilog source code file directory
xxx.pds
Pango Design Suite Project File
Before following this document, please refer to the software installation documentation to install Pango Design Suite and connect the evaluation board to the PC through the FPGA downloader.
Program loading
This section takes the led_flash case as an example to demonstrate the program loading method.
- Open the Windows Device Manager and check to confirm that the FPGA downloader is properly connected to the PC.
Figure 1
Click to add image description (up to 60 characters)Edit
Double-click "C:\pango\PDS_2021.1-SP7.1\bin\cdt_cfg.exe" in the Pango Design Suite installation directory to open the Fabric Configuration interface.
Figure 2
Click to add image description (up to 60 characters)Edit
Figure 3
Click to add image description (up to 60 characters)Edit
Power on the evaluation board, right-click on a blank area of the Fabric Configuration interface, and select "Scan Device" to scan and connect to the FPGA device through the FPGA downloader.
Figure 4
Click to add image description (up to 60 characters)Edit
After the connection is successful, the FPGA chip icon will appear and the FPGA program selection window will pop up automatically. Please select the corresponding xxx.sbit file to load.
Figure 5
Click to add image description (up to 60 characters)Edit
Figure 6
Click to add image description (up to 60 characters)Edit
Right-click the FPGA chip icon and select "Program..." to load the target program to the FPGA for execution.
Figure 7
Click to add image description (up to 60 characters)Edit
Figure 8
Click to add image description (up to 60 characters)Edit
After the program is successfully loaded, the Console will print and display the message "COMMAND [Program] execute successfully". At the same time, you can observe that the evaluation board LED turns on and off at a certain time interval, indicating that the program is loaded and running normally online.
Figure 9
Click to add image description (up to 60 characters)Edit
Program solidification
This section takes the led_flash case as an example to demonstrate the program solidification method.
Double-click "C:\pango\PDS_2021.1-SP7.1\bin\cdt_cfg.exe" in the Pango Design Suite installation directory to open the Fabric Configuration interface.
Fig.10
Click to add image description (up to 60 characters)Edit
Power on the evaluation board, right-click on a blank area of the Fabric Configuration interface, and select "Scan Device" to scan and connect to the FPGA device through the FPGA downloader.
Fig.11
Click to add image description (up to 60 characters)Edit
After the connection is successful, the FPGA chip icon will appear and the FPGA program selection window will pop up automatically. Click Cancel to not load the xxx.sbit file.
Fig.12
Click to add image description (up to 60 characters)Edit
Right-click the FPGA chip icon and select "Scan Outer Flash" to scan and identify the SPI FLASH chip.
Fig.13
Click to add image description (up to 60 characters)Edit
After the scan is successful, a file selection window will pop up automatically, select the xxx.sfc file to be solidified.
Fig.14
Click to add image description (up to 60 characters)Edit
Right-click the "Outer Flash" chip icon and select "Program..." to solidify the program.
Fig.15
Click to add image description (up to 60 characters)Edit
Fig.16
Click to add image description (up to 60 characters)Edit
After the program is solidified, the Console will print and display the following information.
Fig.17
Click to add image description (up to 60 characters)Edit
Disconnect the evaluation board from the FPGA downloader and power it on again. You can observe that the LED on the evaluation board turns on and off in a cycle at a certain time interval, indicating that the program has been successfully solidified and is running normally.
Project import and program compilation
If you need to import a project and recompile the program, please follow the steps below. If you do not need to import a project or recompile the program, please ignore this section.
This section uses the led_flash case as an example to demonstrate the steps of importing and compiling FPGA projects based on Pango Design Suite.
Project Import
- Please double-click the Pango Design Suite icon on the desktop to open the software.
Fig.18
Click to add image description (up to 60 characters)Edit
Click "Open Project" in the pop-up interface.
Fig.19
Click to add image description (up to 60 characters)Edit
In the pop-up interface, select the xxx.pds file in the FPGA case "project\led_flash_xxx\ directory and click Open to open it.
Fig. 20
Click to add image description (up to 60 characters)Edit
The following interface pops up and the project import is completed.
Fig.21
Click to add image description (up to 60 characters)Edit
New construction and transplantation
This section mainly describes the steps to create a new project and migrate an existing project. If you do not need to create a new project or migrate an existing project, please skip this section.
- Double-click to open Pango Design Suite and click "New Project" in the pop-up interface.
Fig. 22
Click to add image description (up to 60 characters)Edit
- In the pop-up interface, click Next to jump to the next interface.
Fig.23
Click to add image description (up to 60 characters)Edit
- Enter the project name, modify the file save path according to the actual situation, and click Next.
Fig.24
Click to add image description (up to 60 characters)Edit
- In the pop-up interface, check "RTL project" and click Next.
Fig.25
Click to add image description (up to 60 characters)Edit
- The Add Design Source Files interface below pops up. Just click Next to skip it.
Fig.26
Click to add image description (up to 60 characters)Edit
- The following Add Existing IP interface pops up. Just click Next to skip it.
Fig. 27
Click to add image description (up to 60 characters)Edit
The following Add Constraints interface pops up. Just click Next to skip it.
Fig.28
Click to add image description (up to 60 characters)Edit
In the pop-up project configuration interface, set the FPGA chip parameters. Family: Logos, Device: PGL25G, Package: MBG324, Speed: -6, Synthesis Tool: ADS. After the settings are completed, please click Next.
Fig.29
Click to add image description (up to 60 characters)Edit
In the pop-up interface, click Finish to complete the project creation.
Fig.30
Click to add image description (up to 60 characters)Edit
Fig.31
Click to add image description (up to 60 characters)Edit
In the project interface, right-click the project Designs and click "Add Source" to create a new module file.
Fig.32
Click to add image description (up to 60 characters)Edit
In the following pop-up interface, select "Add or create design sources" and click Next.
Fig.33
Click to add image description (up to 60 characters)Edit
In the pop-up interface, click the "Create File" option, enter the name of the new module file, and click OK in sequence.
Fig.34
Click to add image description (up to 60 characters)Edit
Fig.35
Click to add image description (up to 60 characters)Edit
In the pop-up interface, you can directly configure pin constraints through the graphical interface. Since this demonstration uses a new constraint file to configure pin constraints, please click OK to skip.
Fig.36
Click to add image description (up to 60 characters)Edit
After completing the creation of the module file, the program editing window will appear on the right side of the project interface.
Fig.37
Click to add image description (up to 60 characters)Edit
Open the case "project\led_flash_xxx\hdl\led_test.v" file, copy all the codes to the program editing interface or write them yourself, and click Save to edit. After saving, if there are no Errors and Warnings in the Console window, it means that there are no errors in the program syntax.
Fig.38
Click to add image description (up to 60 characters)Edit
Fig.39
Click to add image description (up to 60 characters)Edit
In the project interface, right-click "Constraints -> Add Source" to make pin constraints.
Fig.40
Click to add image description (up to 60 characters)Edit
In the pop-up interface, select "Add or create constraint sources" and click Next.
Fig.41
Click to add image description (up to 60 characters)Edit
In the pop-up interface, click the "Create File" option, enter the name of the new pin constraint file, and click OK in sequence.
Fig.42
Click to add image description (up to 60 characters)Edit
Fig.43
Click to add image description (up to 60 characters)Edit
After the pin constraint file is created, double-click to open the xxx.fdc file in the project interface, as shown in the figure below.
Fig.44
Click to add image description (up to 60 characters)Edit
Fig.45
Click to add image description (up to 60 characters)Edit
In the following interface option bar, click "Device -> IO" in sequence, and generate a pin constraint list in the "Tool Tabs" window according to the project xxx.v file. Please select the pin according to the hardware connection.
Fig.46
Click to add image description (up to 60 characters)Edit
After the pin selection is completed, the interface is shown as below. At this point, the FPGA project is created.
Fig.47
Click to add image description (up to 60 characters)Edit
Program Compilation
- Double-click "Generate Bitstream" to compile the FPGA program.
Fig.48
Click to add image description (up to 60 characters)Edit
After programming is completed, the Console window will print the message: Process "Generate Bitstream" done, and generate the xxx.sbit file in the generate_bitstream directory of the FPGA project.
Fig.49
Click to add image description (up to 60 characters)Edit
Fig.50
Click to add image description (up to 60 characters)Edit
To generate the xxx.sfc file for flashing to SPI FLASH, please follow the steps below.
- Click "Tools -> Configuration" in the menu bar to enter the Fabric Configuration interface, and click "Operations -> Convert File" in the menu bar.
Fig.51
Click to add image description (up to 60 characters)Edit
Fig.52
Click to add image description (up to 60 characters)Edit
In the pop-up interface, please configure the SPI FLASH information according to the method shown below. Factory Name: WINBOND, Device Name: W25Q64Q (SPI FLASH chip model), BitStramFile: BitStramFile file (xxx.sbit) path, Output File Name: Generate xxx.sfc file save path (by default, saved in the same directory as the BitStramFile file). After the configuration is completed, please click OK to save the configuration.
Fig.53
Click to add image description (up to 60 characters)Edit
The following interface pops up, please click OK. The xxx.sfc file for flashing to SPI FLASH has been successfully generated.
Fig.54
Click to add image description (up to 60 characters)Edit
Fig.55
Click to add image description (up to 60 characters)Edit
|