Changes between Version 3 and Version 4 of howto/XPS_to_PlanAhead
- Timestamp:
- Mar 4, 2014, 8:55:59 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
howto/XPS_to_PlanAhead
v3 v4 21 21 You should now see the PlanAhead workspace. 22 22 23 == Creating the PlanAhead XPS Source==23 === Creating the PlanAhead XPS Source === 24 24 1. Start in the PlanAhead workspace and find the '''Sources''' tab, probably in the upper-left of the Project Manager sub-pane. 25 25 1. Right-click and select '''Add Sources''' … … 47 47 If XPS throws an error, you probably forgot to copy cores/code from the old XPS project. Also double check that your edk_user_repository is up to date and that the edk_user_repository is in the Global Peripheral Repository Search Path in the XPS preferences (see [wiki:edk_user_repository edk_user_repository] for more). 48 48 49 === HDL Wrapper === 50 49 51 At this point your PlanAhead project has one source, the XPS project. Unfortunately PlanAhead does not support XPS projects as top-level modules for implementation. 50 52 … … 53 55 [[Image(pa_src_top_hdl.png)]] 54 56 1. Notice that the XPS project instance has been renamed {{{xps_top_i}}} - this is important for the next step 57 58 === Constraints === 55 59 56 60 You must now add a constraints file to the PlanAhead Project. Your constraints will be based on the top-level constraints from your source XPS project. … … 68 72 The PlanAhead-wrapped XPS project uses the same net names when connecting XPS ports to top-level pins. For constraints which refer to top-level nets, like {{{NET clk_in LOC = SOME_PIN}}}, no changes are required. 69 73 70 For constraints which refer to nets or instances by hierarchical name, the new UCF must be udpated to reflect the XPS project instance name. 74 For constraints which refer to nets or instances by hierarchical name, the new UCF must be updated to reflect the XPS project instance name and hierarchy. 75 76 For example, assume your original XPS project {{{system.ucf}}} had the following constraints: 77 {{{#!sh 78 #XPS system.ucf 79 80 #Top-level ports 81 NET "led_red" LOC = A1; 82 NET "led_green" LOC = A2; 83 NET "led_yellow" LOC = A3; 84 85 #TEMAC loc 86 INST "ETH_MAC*v6_emac" LOC = "TEMAC_X0Y0"; 87 }}} 88 89 The updated constraints for the PlanAhead {{{xps_constraints.ucf}}} file would be: 90 91 {{{#!sh 92 #PlanAhead xps_constraints.ucf 93 94 #Top-level ports 95 NET "led_red" LOC = A1; 96 NET "led_green" LOC = A2; 97 NET "led_yellow" LOC = A3; 98 99 #TEMAC loc 100 INST "xps_top_i/ETH_MAC*v6_emac" LOC = "TEMAC_X0Y0"; 101 }}} 102 103 Notice the '''{{{xps_top_i}}}''' prefix on the TEMAC LOC constraint. Because this constraint refers to a design object by hierarchical name the path must include the new XPS project instance name. 104