17.2.1.3 Custom Flow
(Ask a Question)The following figure shows how Libero SoC can be integrated as a part of the larger FPGA design flow with the third-party synthesis and simulation tools outside the Libero SoC environment. The following figure shows various steps involved in the flow, starting from design creation and stitching all the way to programming the device. The figure also shows the data exchange (inputs and outputs) that must occur at each design flow step.
Tip:
- Component Data Files and Memory Config Files:
- Component Data Files and Memory Config Files:
- SmartFusion 2/IGLOO 2: *.reg files for MDDR/FDDR/SerDes blocks.
- Memory Config Files:
- SmartFusion 2/IGLOO 2: ENVM.cfg.
- RTG4: UPROM.cfg.
- PolarFire: SNVM.cfg, UPROM.cfg.
- Component Data Files and Memory Config Files:
- *.mem file generation for Simulation for different families:
- SmartFusion 2: pa4mssenvmgen.exe takes ENVM.cfg as input and generates ENVM_init.mem.
- IGLOO 2: pa4mssenvmgen.exe takes *.reg files for MDDRR/FDDR/SerDes blocks and ENVM.cfg as input and generates ENVM_init.mem.
- RTG4, PolarFire: pa4rtupromgen.exe takes UPROM.cfg as input and generates UPROM.mem.
- For PolarFire only.
The following are the steps in the custom flow:
- Component configuration and generation:
- Create a first Libero project (to serve as a Reference Project).
- Select the Core from the Catalog. Double-click the core to give it a component name and configure the component.Important: For SmartFusion 2 and IGLOO 2 System Builder and SmartFusion 2 MSS blocks, generate the component in the SmartDesign canvas after configuration of the SmartFusion 2 MSS block and System Builder block.
This automatically exports component data and files. A Component Manifests is also generated. See Component Manifests for details. For more details, see Component Configuration.
- Complete your RTL design outside of Libero:
- Instantiate the component HDL files.
- The location of the HDL files is listed in the Component Manifests files.
- Generate SDC/PDC/NDC constraints for the components. Use Derive Constraints utility to generate the floorplanning .*pdc (only for SmartFusion 2/IGLOO 2), the timing .*sdc, and netlist constraints .*ndc (in RTG4 designs using RTG4FCCCECALIB core) files based on:
- Component HDL files
- Component SDC/NDC files
- User HDL files
For more details, see Appendix D—Derive Constraints.
- Synthesis tool/simulation tool:
- Get HDL files, stimulus files, and component data from the specific locations as noted in the Component Manifests.
- Synthesize and simulate the design with third-party tools outside Libero SoC.
- Firmware tool (SmartFusion 2 only):
- Get drivers from the specific locations as noted in the manifest.
- Edit source code to enable run time initialization for specific components C compile firmware project.
- Create your second (Implementation) Libero Project.
- Remove synthesis from the design flow tool chain (Enable Synthesis check box) if it is a netlist file. > > > clear the
- Import the design source files (post-synthesis *.edn or *.vm netlist from synthesis tool):
- For SmartFusion 2 and IGLOO 2, import post-synthesis *.edn netlist ( > > .
- For PolarFire, import post-synthesis
*.vm
netlist ( > > ). - Component metadata such as *.reg files for MDDR/FDDR/SerDes (SmartFusion 2 and IGLOO 2), *.cfg file for eNVM (SmartFusion 2 and IGLOO 2), and *.cfg file for uPROM (RTG4), *.cfg files for uPROM and/or sNVM (PolarFire).
- Import any Libero SoC block component files. The block files must be in the *.cxz file format. For more information on how to create a block, see PolarFire Block Flow User Guide and SmartFusion2, IGLOO2, and RTG4 Block Flow User’s Guide.
- Import the design constraints:
- Import I/O constraint files ( > > ).
- Import floorplanning *.pdc files ( > > ). If your design contains CoreConfigP (SmartFusion 2 and IGLOO 2), import the PDC file generated with the Derive Constraints utility (generate SDC and PDC constraints for the components).
- Import *.sdc timing constraint files ( > > ). Import the SDC file generated through Derive Constraint tool.
- Import *.ndc constraint files ( > > ), if any. In RTG4 designs using the RTG4FCCCECALIB core, import the NDC file generated through Derive Constraints utility outside of Libero.
- Constraint file and tool association
- In the Constraint Manager, associate the *.pdc files to place and route, the *.sdc files to place and route and timing verifications, and the *.ndc files to compile netlist.
- Complete design implementation
- Place and route, verify timing and power, configure design initialization data and memories (PolarFire only), and programming file generation.
- Validate the design
- Validate the design on FPGA and debug as necessary using the design tools provided with the Libero SoC design suite.