Project

General

Profile

Mini LFR - Bitstream Generation » History » Revision 2

Revision 1 (Jean-Christophe Pellion, 01/12/2016 02:00 PM) → Revision 2/16 (Jean-Christophe Pellion, 01/12/2016 02:02 PM)

# Mini LFR - Bitstream Generation 


 ## 1 Generates scripts files ## 

 Clean the project directory, and run the makefile scripts command to generate all project's files. 

 ```bash 
 # clean the project and re-generates the scripts 
 $> make distclean scripts 
 ``` 

 The files MINI\_LFR\_top\_libero.prj should be created. 

 ## 2 Launch Libero IDE ## 

 Open the project MINI\_LFR\_top\_libero.prj with Libero IDE v9.1. 
 ![](Capture1.PNG) 
 ![Capture1.PNG]( "Libero IDE v9.1") 

 ### 2.1 Synthesis ### 
 Synthesis tools should be configured to use **Synplify** version **2012-03A-SP1-2**. 

 Launch the synthesis step (You must not add constraint file).  
 In the synplify Pro windows, click on the Run button. 

 The project status obtained should be : 

 ![image](./README_dir/Capture2.PNG "Synplify Project Status") 

 > You must verfify the block RAM's usage. The expected value is 100. 
 >  
 > If it's around 60/70, LEON3 processor is not mapped. In this case, you must clean your project and restart the generation procedure. 

 You can close Synplify and return to Libero. 


 If the Sythesis step is green like that : 

 You must activate the option `Detect new files on disk automatically` in the project settings. 

 ![image](./README_dir/Capture3.PNG "Project > Settings...") 

 ![image](./README_dir/Capture4.PNG "Detect new files on disk automatically") 
 ### 2.2 Place&Route ### 

 Launch the Place&Route step. You must add the constraint files : 

   * `default.pdc` (Input/Output constraint)  
   * `MINI-LFR_PlaceAndRoute.sdc` (Timing constraint) 

 ![image](./README_dir/Capture5.PNG "Constraints") 


 #### 2.2.1 Compile Step #### 
 ![image](./README_dir/Capture6.PNG "Compile Step") 

 Run the Compile step.  

 #### 2.2.2 Layout Step #### 
 ![image](./README_dir/Capture7.PNG "An exemplary image") 

 Run the Layout step. 

 In the Layout options windows, select Advanced Layout Options : 

 ![image](./README_dir/Capture8.PNG "An exemplary image") 

 And checked those options :  

 ![image](./README_dir/Capture9.PNG "An exemplary image") 

 Click Ok and wait... 

 ![image](./README_dir/Capture10.PNG "An exemplary image") 
 #### 2.2.3 Timing Analyser #### 

 Launch theTiming Analyser. 

 ![image](./README_dir/Capture11.PNG "An exemplary image") 

 #### 2.2.3.a SpaceWire Output #### 

 You must verify the SpaceWire output timing for the Max and Min delay. 

 ![image](./README_dir/Capture12.PNG "An exemplary image") 

 ![image](./README_dir/Capture19.PNG "An exemplary image") 

 The ouput skew is equal to Ouput\_SOut timing - Ouput\_DOut timing. This output skew must be positive. 

 > In this exemple, 
 > 
 > SPW\_NOM skew max = 13.907 - 15.882 = -1.975 ns 
 > 
 > SPW\_NOM skew min = 6.367 - 7.317 = -0.950 ns 
 >  
 > SPW\_RED skew max = 17.937 - 13.510 =    4.427 ns 
 >  
 > SPW\_RED skew min = 8.304 - 6.175 =    2.129 ns 
 > 
 > The SPW\_NOM interface must be modified. In ChipPlanner, we will move element in the SPW\_NOM path to have a positive skew in min and max delay. 
 > ![image](./README_dir/Capture13.PNG "An exemplary image") 
 > ![image](./README_dir/Capture14.PNG "An exemplary image") 

 #### 2.2.3.b SpaceWire Input #### 

 You must also verify the SpaceWire input timing. For that, you must add a new set for SPW_INPUT: 

 ![image](./README_dir/Capture15.PNG "An exemplary image") 

 and configure it like that : 
  you 
 ![image](./README_dir/Capture16.PNG "An exemplary image") 

 You obtain those timing for min and max delay. 

 ![image](./README_dir/Capture17.PNG "An exemplary image") 

 ![image](./README_dir/Capture18.PNG "An exemplary image") 

 You must also add a new set for the FF setup time : 
 
 ![image](./README_dir/Capture20.PNG "An exemplary image") 

 ![image](./README_dir/Capture21.PNG "An exemplary image") 

 In resume, for the input SPW_NOM interface : 


 <table> 
     <thead> 
         <tr> 
             <th>header 1</th> 
             <th align="center">header 2</th> 
             <th align="right">header 3</th> 
         </tr> 
     </thead> 
     <tbody> 
         <tr> 
             <td>line 1</td> 
             <td align="center">1</td> 
             <td align="right">value</td> 
         </tr> 
         <tr> 
             <td>row 2</td> 
             <td align="center">2</td> 
             <td align="right">value</td> 
         </tr> 
         <tr> 
             <td>line 3</td> 
             <td align="center">3</td> 
             <td align="right">value</td> 
         </tr> 
     </tbody> 
 </table> 


 The input skew is equal to Ouput\_SOut timing - Ouput\_DOut timing. This output skew must be positive.