Home

Clarity User Guide 3.2 - Lattice Semiconductor

image

Contents

1. ECLK Group for CLKOUT wh eclk_groupl_Inst_ECLKBRIDGECS_R H eclk_groupl_Inst_ECLKBRIDGECS Ah eclk_groupl_ECLK3 hk eclk_groupl_ECLK2 Ah eclk_groupl_ECLK1 ECLK Resources th eclk_group1_ECLKO ECLKO_BK6 wh clkout K2 Primitive amp Port List Ax Inst7_ODDRX2F IOL_L50A E 4 A eclk_groupt __ ELK Group for Data A refelke PIL Input REFCLK Ah eclk_group0_ECLK3 fh eclk_group0_ECLK2 H eclk_group0_ECLK1 H eclk_group0_ECLKO ECLK1_BK6 wh dout 4 J1 dout 3 M1 dout 2 L2 L3 K3 ECLK Resources Xe dout 1 xh dout 0 wh Inst_ECLKBRIDGECS R wh Inst_ECLKBRIDGECS ee Primitive amp Port List A Inst8_ODDRX2F4 IOL_LSOB Ah Inst8_ODDRX2F3 IOL_L53B Jh Inst8_ODDRX2F2 IOL_L53A Jh Inst8_ODDRX2F1 IOL_L50D Hh Inst8_ODDRX2F0 IOL_L50C Hh Inst6_CLKDIVF CLKDIV_L1 why Inst3_EHXPLLL Clarity Designer User Manual 21 Accomplishing Tasks with Clarity Designer Reconfiguration of an Interface An interface can be reconfigured by right clicking and selecting Config This will allow you to change the interface parameters by opening the dialog box for that module Placing a DDR Interface The following steps should be used to place any of the generated DDR interfaces 1 Select the clock group under a given interface and then drag and drop onto the chip view A valid location is indicated by a symbol Once the location is sele
2. gt On DDR interfaces the data ports have to be placed before placing the clock input ports Once the data ports are placed manually drag and drop the CLKIN port to the desired location The PLL DLL and CLKDIV used with the clock are not placed until the input CLK port is placed This also applies to REFCLK input ports of PLL modules when generated with the DDR modules 22 Clarity Designer User Manual Accomplishing Tasks with Clarity Designer gt On drag and drop of any interface only data pins are placed You have to manually place the clock input to any of the GDDRX interfaces as explained in Placing a DDR Interface on page 22 gt When placing the data ports Planner does not use the dedicated clock sites on the device These are reserved for the clock inputs You must try to place all the data and clock ports of a given interface on one side If there is a requirement to go around the corner to the other side Planner uses the ECLKBRIDGE if it is available on that device You must enable the ECLKBRIDGE when configuring the IP Refer to the High Speed I O Interfaces technical note for the device for details on how to use Planner to plan an interface with an ECLKBRIDGE gt There are only a limited number of high speed clock PLL DLL and ECLK and I O logic elements on each device Planner does not allow interfaces to be placed if it runs out of resources gt Planner always places the pins in a count
3. 1 If this is the first IP you have ever installed go to your home directory and with a text editor create an empty file named ipsetting_I Ist Enter no text the file must be empty and must have this name If you find you already have a file with this name do not change it This is a text file listing your IP and their path names Go to the location where you saved the IP Enter the following in a command line tar zxvf lt filename gt tar gz In Clarity Designer click the Import User Configurable IP button In the dialog box browse to the installation directory for the IP and select nodeinfo cfg Click Open To see the installed IP click the Catalog tab and then the Lattice IP tab Then expand the IP folder tree To install the IP from a shell file 1 2 Go to the location where you saved the IP Enter the following in a command line sh lt filename gt sh lt Diamond install path gt bin lin lt destination path gt The lt destination path gt is the full path name of where you want the IP to be installed If not included the IP will be installed in the current directory The first time you install an IP the installer creates a file ipsetting_lI Ist in your home directory This is a text file listing your IP and their path names 12 Clarity Designer User Manual Accomplishing Tasks with Clarity Designer 3 To see the installed IP click the Catalog tab and then the Lattice IP tab Then expa
4. Clarity Designer file gt Builder tab connections gt Cannot set HDL parameters of user modules Cannot tie ports with constants gt Cannot connect ports to logic equations gt Implementation process gt No IPexpress ipx files are allowed in the File List view 10 Clarity Designer User Manual Accomplishing Tasks with Clarity Designer Clarity Designer sbx files must be generated before they can be put into the File List view Clarity Designer files must be in the File List view in order to correctly implement the design Accomplishing Tasks with Clarity Designer IP or Module Generation IP or Module configuration is accomplished in the Catalog tab Existing modules and installed IPs are listed in the Lattice IP subtab in the Catalog tab Downloading Additional IP All available modules are installed with the Lattice Diamond software installation Additional IP are downloaded from a Lattice IP site within the Clarity Designer tool To add additional IP the Lattice IP Server tab is used to download and install them To download Lattice IP 1 If you are working on Linux and this is the first IP you have ever installed go to your home directory and with a text editor create an empty file named ipsetting_I Ist Enter no text the file must be empty and must have this name If you find you already have a file with this name do not change it This is a text file listing your IP and their pat
5. DOR2_datavalid 0 fobric 7 lt datavalid_1 DOR2_datavalid1 fabric J dos 0 DDR2_dqs_0 pad pin dq i DOR2_dqs_1 pod pin eo D pause_data DOR2_pause_data fobric j ready DDR2_ready fabric 7 I seik DOR2_sclk fobnc D sync_clhk DDR2_sync_clk fobric E sync_reset DDR2_sync_reset fabric J IPexpress for creating a file with a single module The Export column should be unchecked for signals that are connections between modules The primary use of the builder functionality is to improve ease of use for connecting multiple modules To connect signals between modules select the first signal then Control click on the second signal Right click on either signal name and then select Connect from the popup menu to complete the connection Multiple signals can be connected by selecting them in this manner To disconnect signal connections between modules right click on the signal and select Disconnect in the popup menu Signals can be renamed by double clicking the signal name and typing in the new name Planning After configuring and connecting modules modules and IP can be placed in the Planner tab Currently only PCS based modules and IP and DDR based modules and IP are supported for placement Other design elements should still be placed using Spreadsheet View or through LPF constraints See Figure 3 Design elements that can be placed are shown in the left panel and a chip level view of the FPGA and available resources are sho
6. Designer toolbar and import the Clarity Designer file into the File List view 15 Delete the original IPexpress file from the File List view The module or IP is now configured and is available in the Builder tab for connections It is recommended that the Clarity Designer file be saved and the process repeated for each existing IPexpress file This will allow the original design hierarchy to be reused without changes However if any of the modules or IP use PCS SERDES or DDR resources use the procedure below Importing Existing PCS or DDR Modules or IP Modules and IP that were generated with IPexpress and are in the project can be imported into Clarity Designer They must be imported and configured the file generated and saved in the file list Once the Clarity Designer sbx file is saved in the file list the existing IPexpress files must be deleted from the file list in order to successfully implement the design The steps are shown below for when an existing module or IP uses PCS SERDES or DDR resources This procedure is different because PCS modules or DDR modules should be in the same Clarity Designer file to allow proper planning of the resources in the FPGA To import a PCS or DDR module 1 Open Clarity Design using the toolbar Tools menu or by creating a new file In Clarity Designer click the Catalog tab Click the Import IP tab at the bottom of the view Click Browse OUR G9 30 In the Open IPX File dialog
7. Top level I Os in the subsystem use port names based on instance and port names by default Additionally the instance needs an HDL attribute to indicate it is a Clarity Designer instantiation Templates can be found in the directory in which the sbx file was saved Usage 2 Top Level of Design If a Clarity Designer file is used as the top level of the design the following requirements must be followed gt All modules and IP must be directly instantiated within this file Modules cannot be instantiated within an HDL file For example a PLL module must be in the top level Clarity file It cannot be instantiated within an HDL file Any HDL in the design must be imported into the file as a module HDL files can contain a hierarchy of other HDL modules but no Clarity Designer modules or IP can be instantiated within the HDL Clarity Designer files cannot be used as modules within another Clarity Designer file Basic Tasks Tool usage falls into two primary methods migrating existing designs in Clarity Designer and starting new designs in the tool Design Migration versus New Designs When migrating an existing design into Clarity Designer it is recommended that the design hierarchy should be unchanged and each existing IPexpress ipx file should be imported into Clarity Designer and replaced with a new Clarity Designer sbx file as illustrated in Figure 4 The exceptions to this are PCS SERDES and DDR modules and IP Sin
8. box browse to the ipx or lpc file of the module Use the ipx if it is available 6 Click Open Most of the Import IP view is filled in 7 Type in a name for Target Instance This is the name that will be used for the configured module in the Clarity Designer project 8 Inthe Target area choose a Core Version Usually you will leave it with the latest version 9 Click Import The module s dialog box opens 10 In the dialog box choose desired options To get information about the options click Help Also check the About tab in the Lattice IP view for links to technical notes and user guides Downloaded IP may come with additional information Clarity Designer User Manual Tool Overview As the options change the schematic diagram of the module changes to show the ports and the device resources the module needs 11 Click Configure 12 Click the Generate Log tab to check for warnings and error messages 13 Click Close 14 Repeat steps 2 13 for each existing module using the same resources all PCS SERDES modules should be in one Clarity Designer file and all DDR modules in another Clarity Designer file 15 Click Generate in the Clarity Designer toolbar and import the Clarity Designer file into the File List view 16 Delete the original IPexpress file from the File List view The modules or IP are now configured and are available in the Builder tab for connections They will also show in the Planne
9. clock for the DCU must be compatible with all protocols within the DCU Figure 8 Using Multiple PCS Modules in a Single DCU Catalog Builder Planner g v Resource Placement 4 pcs top 4 h DCUCHANNEL 4 pcs2 4 h DCUCHANNEL 4 E extref 4 h EXTREF 4h EXTREF DCUO _ ak Laned DCU0_CHO Channel 0 of DCUO ah Laned DCU0_CH1 Channel 1 of DCUO Reference Clock for DCUO The placed DCU channels will be displayed as shown in Figure 9 16 Clarity Designer User Manual Accomplishing Tasks with Clarity Designer Figure 9 Placed DCU Channels Sark Sexe swz Sak Saka oan Saks Clarity Designer User Manual 17 Accomplishing Tasks with Clarity Designer DCU Settings In order to choose the TX and RX settings for the DCU click on the placed channel of the DCU and choose the input clock to the TXPLL inside and the reference clock for the RX side of the DCU as shown below Figure 10 Setting DCU Clocks E _ r DCU Settings LaS amp ocu settings 2 E TX Setting TX Setting TXPLL PRIMARY 74 TXPLL PRIMARY x PRIMARY DCUO_EXTREF RX Setting RX Setting Channel Channel Channel PRIMARY Channel PRIMARY PRIMARY DCUO_EXTREF Cancel If there are multiple protocols that use same reference clock or one protocol with a single reference clock frequency choose the input to the TX
10. CU1 Reference clock of DCU1 4 extref 4 Xh EXTREF ah EXTREF DCU0 Reference clock of DCUO Figure 12 Placed DCU Channels Clarity Designer User Manual 19 Accomplishing Tasks with Clarity Designer Figure 13 Setting DCU Clocks y DCU Settings L kes A DCU Settings Lo kes TX Setting TX Setting TXPLL PRIMARY 74 TXPLL PRIMARY x PRIMARY DCU0_EXTREF RX Setting DCU1_EXTREF RX Setting Channel PRIMARY x Channel Channel Channel Cancel j Cancel DDR I O Planning In order to plan the DDR I Os the DDR modules must be generated using the Catalog tab If there is any connectivity between these modules these connections must be completed in the Builder tab IP or Module Generation on page 11 and Building on page 13 describe how these tasks can be accomplished Once the modules are generated you can plan the placement of the DDR modules in the Planner tab Planner View for DDR Modules Once DDR modules are generated they are listed in the Planner The resources required by each of the DDR modules are listed next to the module name This includes the number of I O required number of PLLs used and number of DLLs used by that module Each DDR module when expanded will show the clock groups under that module The ports and primitives in each of the DDR modules is grouped based on the clocking requirement All ports an
11. HDL Verilog EDIF or IPexpress files Clarity Designer files must be added to the file list in order to be used for a project To be added to the file list the file must be generated This should be done after the configuration building and planning steps To generate the file click the Generate button in the Clarity Designer window toolbar Currently Diamond projects support using Clarity Designer files either as a module for a level of hierarchy within a design project using HDL as the top level or as the top level of the design project Usage 1 Used as a Module If a Clarity Designer file is used as a module within an existing design it must be instantiated within an HDL file similar to how IPexpress modules are instantiated within an existing HDL design Within Clarity Designer User Manual Tool Overview an HDL design multiple Clarity Designer files can be used However within a Clarity Designer file an instantiated module cannot be another Clarity Designer file Currently using Clarity Designer files as modules within an HDL design is recommended This allows the current hierarchy of a design to be used without significant changes If a Clarity Designer file is used as the top level of the design the design hierarchy must meet the requirements specified for top level usage Note that when instantiating generated subsystems in an HDL module it is important to use the instance template generated by Clarity Designer
12. P Configuration 4 amp Architecture Modules B Start Page _ E Reports E clarity Designer 3 ORC Gh Generate Refresh Catalog Builder Planner Name Version DDR_MEM 4 Module SEARA a anil that can be used to 2 interface a DDR a 10 s Memory It generates _ nt ddr_generic 54 the bidirectional port 7 f4 ddr mem 54 and the associated ry clocking scheme gddr_7 1 54 Devices Supported nt sdr 54 n LatticeEC LatticeECP ut dynamic bank controller 1 2 periei it extref 1 0 LatticeECP3 E pcs 81 LatticeECP4U iy i 54 LatticeECP4UM p j LatticeXP LatticeXP2 a amp Arithmetic_Modules Platform Manager 2 ut adder 3 2 ad F adder_subtractor 3 2 Revision History F comparator 33 5 4 Bug fixes and F amp F complex_multiplier 15 pre seen Added nt convert 11 support F counter 43 aa es update nt fft_butterfly 12 z 5 72 Minor undates DB Lattice IP Lattice IP Server l Import IP Diamond l About o to understand that RTL modules are imported into Clarity Designer are not automatically updated when the RTL is changed The tool must be manually refreshed if the RTL is updated To import an RTL module the HDL source code must already be in the Diamond project and showing in the file list Then from the Catalog tab select the Diamond tab at the bottom of the window This will show an elaborated view of the design hierar
13. Saa LAT TICE E SEMICONDUCTOR Clarity Designer User Manual Tool Overview Improving design entry has been a goal for many generations of software tools Early tools used only designer entered source and very small basic cell library blocks Later tools expanded the area for pre made or generated blocks But these tools only provide single block generation As multiple complex blocks are used in devices resource allocation problems often occur These issues require blocks to be planned together and potentially can even require blocks to be generated with certain options to allow maximum utilization To solve these problems tools that can provide capabilities beyond simple module generation are required Clarity Designer Benefits and Features Clarity Designer is a new tool within the Lattice Diamond software environment that addresses the need to be able to generate and plan multiple blocks together Clarity Designer is used for configuration of blocks building the connections between blocks and planning the resources used by the PCS and DDR blocks in the design For device families supported by Clarity Designer IPexpress functionality is accomplished within the new tool along with the new functionality for building and planning The previous IPexpress tool is disabled when using a device family supported by Clarity Designer Older device families that are not supported yet by Clarity Designer still require the use of IPexpress A compariso
14. There can be no more than one output port selected There can be zero output ports selected if one of the input ports has its Export box selected Output ports have yellow arrows lt that point left Input ports have dark blue arrows jj that point right 4 Right click the name of one of the selected ports and choose Connect The default name of the connecting net appears in the Connection column for each of the selected ports The default net name is based on the module and port names of the output port You can change the net name by double clicking it in any row and typing over it Once building is complete the subsystem can be planned or generated and saved if no planning is required Once the subsystem has been generated the design can be implemented with the design flow in Lattice Diamond software PCS SERDES Planning In order to plan the PCS SERDES resources the PCS or SERDES modules must be generated using the Catalog tab If there is any connectivity between these modules these connections must be completed in the Builder tab IP or Module Generation on page 11 and Building on page 13 describe how these tasks can be accomplished Once the modules are generated the placement of the PCS or SERDES modules can be planned in the Planner tab 14 Clarity Designer User Manual Accomplishing Tasks with Clarity Designer PCS Configuration An example for creating the SERDES Eye Demo using ECP5 is shown in Fi
15. and RX input clocks TXPLL and RX setting clock on the DCU Either the Primary Clock input from the FPGA logic or a clock input from Extref components of DCUO can be used Multiple Protocols on the Same Device If multiple protocols have to be supported using a single ECP5 device that has different reference clocks then the same DCU cannot be supported A different DCU has to be implemented with its own external reference clock and Tx PLL settings with a PCS block to support multiple protocols as shown in Figure 11 The placed DCU channels will be displayed as shown in Figure 12 DCU Settings with Multiple Protocols In order to choose the TX and RX settings for the DCU click on the placed channel of the DCU and choose the input clock to the TXPLL inside and the reference clock for the RX side of the DCU as shown in Figure 13 on page 20 If there are multiple protocols choose the input to the TX and RX input clocks TXPLL and RX setting clock on the second DCU Use either the Primary Clock input from the FPGA logic or inputs from the Extref components of DCUO or DCU1 18 Clarity Designer User Manual Accomplishing Tasks with Clarity Designer Figure 11 Using Multiple Protocols in the Same Device Catalog Builder Planner Resource Placement 4 pcs_top 4 h DCUCHANNEL ah Laned DCU0_CHO Channel 0 of DCUO 4 pcs2 4 h DCUCHANNEL ah Laned DCU1_CHO Channel 0 of DCU1 4 extref2 4 xh EXTREF ah EXTREF D
16. b to the resources in the chip view on the right The PCS related resources are shown in the bottom section of the chip view as show in Figure 7 By placing the PCS module and the Extref Clarity Designer will incorporate the placement of PCS module and the Extref block to the location automatically without any additional constraints or editor preferences Once all PCS related resources are placed then the DRC can be used to check that there are no DRC errors and use the generate button to complete the Clarify Designer subsystem and incorporate it into the Diamond project design flow Clarity Designer User Manual 15 Accomplishing Tasks with Clarity Designer Figure 7 PCS Related Resources Catalog Builder Planner Resource Placement 4 pcs top 4 DCUCHANNEL Lane0 DCU0_CHO 4 ml extref 4 ay EXTREF ay EXTREF DCUO ut By Resource Using Multiple PCS Modules in a Single DCU To place multiple PCS channels in the same DCU proper care must be taken to ensure that the two PCS blocks used in the design should be using the same external reference clock frequency and TXPLL settings for both the channels in the same DCU For example a PCI Express x1 at 2 5 Gbps and a Gigabit Ethernet channel can share the same DCU using the half rate option on the Gigabit Ethernet channel When a DCU shares a PCI Express x1 channel with a non PCl Express channel the reference
17. ce these should be placed together for efficient resource use the PCS SERDES modules need to be in one Clarity Designer file and DDR modules in another file This means one module should be imported and then the existing Clarity Designer file should have the other modules copied and instantiated within it See Importing Existing PCS or DDR Modules or IP on page 9 on steps needed for this New designs can be optimized for efficient use in Clarity Designer Modules that have a high amount of interconnection should be placed in the same Clarity Designer file Modules at the same hierarchy level even though they Clarity Designer User Manual Tool Overview Figure 4 Migrating Existing Designs in Clarity Designer IPexpress Clarity Designer One module per file Migrated from Pexpress One module per file Existing Design Migration are not interconnected can also be placed within the same file See Figure 5 This will reduce the effort to configure generate and save them independently The goal for new designs should be to use the tools most efficiently for your design structure rather than follow the same method needed for using IPexpress Figure 5 New Design Entry in Clarity Designer Clarity Designer Clarity Designer New design New design Multiple modules per file Single SBX for top Bestfor subsystem Best for full system planning planning May need design change New Design Entr
18. chy Select the instance that should be imported and select Import The imported module will be available in the Builder tab for connecting to the rest of the design Building Once one or more modules or IP have been configured then any connections between them or to the top of the subsystem file can be set Each Clarity Designer file is the equivalent of a subsystem like an HDL module Information in the file can be self contained within the subsystem or connected to the top where it can connect to a higher level of the design hierarchy The Builder function allows blocks to be connected to each other or to the top of the design file equivalent to an HDL module description of the blocks and connections See Figure 2 In the Builder tab there are columns showing the components used connections connection type and a column named Export The Export column is for connecting a signal to the top of the Clarity Design file Checking this column for a signal means that signal connects to the top of the file so it can be used at a higher level in the hierarchy By default the Export column is checked when a module is created in order to mimic the behavior with Clarity Designer User Manual Tool Overview Figure 2 Clarity Designer Building 2 Start Page TG Reports K Clarity Designer E orc E Generate Catalog Bulder Planner Components Connection Type Export a DDR2 tat burstdet E cikop datavalid_0
19. cted the interface pins will be placed in a counterclockwise direction The following also happens gt The pins used are displayed in the chip view The corresponding IOLOGIC cell will be highlighted gt Ifthe group is an ECLK group the ECLK tree used will be displayed gt The left pane will also display the locations of the Ports ECLKs and Primitives 2 Drag and drop of a clock group will only place the data pins of that interface The clock input pins in that interface will have to be placed manually Expand the clock group and select the clock input pin Drag it onto the dedicated clock pin Right click in the chip view to get the option to filter out all the dedicated clock pins The following happens gt Once the clock pin is placed the PLL DLL CLKDIV and ECLKBRIDGE used by the DDR module will be displayed in the chip view The left pane will also display the locations of these modules If an interface cannot be placed in the location when the ports are dropped due to architectural limitations all the data ports will be placed in the next available location If it is a clock input port Planner will not place the port and will issue a DRC message in the Output view DDR Interface Planning Guidelines Here are some general rules to follow when placing DDR modules Refer to the High Speed Interface technical note for the device for details on placement of each type of DDR interface using Clarity
20. d elements clocked by the same clock are listed in a given clock group This clock group could be a high speed ECLK edge clock group for interfaces that use a gearbox x2 or x4 or a slower speed SCLK primary clock group for interfaces that do not use a gearbox x1 Each clock group will include gt Port list gt Primitive list gt ECLK and ECLKBRIDGE resources if used by that module Once a port is placed the Placement column shows pin numbers next to each of the ports and the ECLK resources shows the ECLK that was used for that interface 20 Clarity Designer User Manual Accomplishing Tasks with Clarity Designer The figure below shows how an interface will look when listed in the Planner tab This interface is used for an example to show the clock grouping and port list This Interface has two ECLK groups Each group lists the ports clocked by that ECLK the primitives that are clocked by that clock and the ECLK resources Note that in this release the ECLK resource section lists all the ECLKs and ECLKBRIDGEs available on the device even though only one ECLK is used in the clock group Once the interface is assigned it will only show placement information for the ECLK that is used by that interface Figure 14 DDR Modules in the Planner View Catalog Builder Planner F Resource Placement s mi gddrx2_tx_centered 10 7 PLL 1 DLL 0 4 A eclk_group
21. erclockwise direction You must drag and drop interfaces at the optimum location so that pins are not lost during planning For example if you require that all pins be placed in a single bank the interface should be dropped at the first valid location of that bank counting counterclockwise so pins do not overflow to the next bank Similarly if all pins need to be on the same side you must drag and drop at the first valid pin of the side If you drag it into the edge of the side the ports will automatically overflow to the other side which forces Planner to use an ECLKBRIDGE when it is not required gt When placing a GDDRX or DDR_MEM module that requires a PLL module you can either choose to generate a PLL with the interface module or use a stand alone module If you choose to generate a PLL with the DDR interface you must also choose the input buffer standard for the CLKI input of the PLL This is required for Planner to correctly place the PLL This will apply for GDDR TX centered and DDR Memory modules gt If planning the DDR Memory IP Cores refer to the IP Core user manual for guidelines on placement of each IP module The chip view after placement of interfaces is shown in Figure 15 This figure highlights some of the DDR resources that get used for an interface For more details on the DDR resources refer to the High Speed I O Interface technical note for the device Viewing Interface Placement Once an interface ha
22. g a module or IP and then double clicking A separate dialog box will open that allows the appropriate options to be set and when the configure button is pressed this information will be added to the Clarity Designer file that is currently open To add new IP when the Catalog tab is selected select the Lattice IP Server tab at the bottom of the window and click the IP folder to get an updated list of the available IP Select the IP you want to download from the available list and click the Download or Install button Once the IP is installed it can be configured as explained above If an existing project is being migrated to Clarity Designer from Pexpress existing IPexpress files in the design must be imported and saved as Clarity Designer files To import existing ipx files in the Catalog tab select the Import IP tab at the bottom of the window In the window you can now select the existing file and include the name of the converted module for use in Clarity Designer After completing the necessary fields press the Import button to complete the process Each existing IPexpress file must be imported individually A new feature in Clarity Designer compared to IPexpress is the ability to use an RTL module within the design as a block within the Clarity Designer file This is the same as instantiating a block within an HDL module It is important Clarity Designer User Manual Tool Overview Figure 1 Clarity Designer Module and I
23. gure 6 For this application both the Extref and PCS modules must be selected and configured from the Catalog tab Figure 6 PCS Configuration Example Catalog Builder Planner Name Version EXTREF Description 4 Module Interface for external reference clock 4 amp Architecture_Modules Devices Supported l0 Version ddr_generic 5 4 1 0 ft ddr_mem 54 y Revision History Pa gddr 71 54 E 1 0 Original released version E sdr 54 it dynamic bank controller 1 2 it extref 10 it pcs 8 1 pll 54 4 amp Arithmetic_Modules it adder 3 2 f adder_subtractor 3 2 comparator 3 3 complex_multiplier 15 it convert 11 i counter 43 f fft_butterfly 12 Ifsr 34 F mult_add_sub 25 mult_add_sub_sum 25 i multiplier 4 6 i multiply_accumulate 25 fut sin cos table 13 is Lattice IP Lattice IP Server Import IP l Diamond About Each module must be configured independently Once both modules have been configured they will appear in the Builder tab They can then be connected to other modules in the subsystem or exported to the level above for connection in RTL code to the rest of the design See IP or Module Generation on page 11 and Building on page 13 for details on module configuration and building PCS Planning To place the generated PCS module and the Extref modules they can be dragged and dropped from the Resource listing on the left side of the Planner ta
24. h names In Clarity Designer click the Catalog tab Click the Lattice IP Server sub tab located at the bottom of the tool Click IP in the left pane The software connects to the Lattice Semiconductor Web site Expand the folder tree and select the IP you want to download Information about the IP appears in the right pane including links for additional information Do one of the following gt To download and install the IP right click the IP and choose s Install in the pop up menu gt To just download the IP for later installation right click the IP and choose amp Download in the pop up menu Follow the on screen instructions Clarity Designer User Manual 11 Accomplishing Tasks with Clarity Designer Installing a Downloaded IP After downloading an IP you must install it to make it available in Clarity Designer Installing on Windows To install the IP 1 2 3 If Clarity Designer is open close it Go to the location where you saved the IP Double click the executable file exe The Lattice Semiconductor Setup program opens Follow the on screen instructions Open Clarity Designer to see the installed IP Click the Catalog tab and then the Lattice IP tab Then expand the IP folder tree Installing on Linux To install an IP that you downloaded earlier on Linux the process depends on whether the download is a tar file tar gz or a shell file sh To install the IP from a tar file
25. ht clicking on the chip view or on the toolbar Planner allows filtering of dedicated PCLK pins PLL DLL clock pins True LVDS pins VREF pins and so on These will vary for each device Refer to the High Speed Interface technical note for the device to see the options available Design Rule Check Once all the interfaces are placed you can click 4 DRC in the toolbar to see the list of warning and error messages Current Restrictions Planner does not see the signal connectivity in Builder The workaround is to export the ports to the SBX file and make the connectivity outside of the SBX module So any clock sharing between different DDR modules has to be external to the SBX Stand alone PLL are not available in Planner for placement or connection Any connections to stand alone PLL have to be done externally to the SBX Clarity Designer User Manual 25 Accomplishing Tasks with Clarity Designer Trademarks Lattice Semiconductor Corporation L Lattice Semiconductor Corporation logo L stylized L design Lattice design LSC CleanClock Custom Mobile Device DiePlus E7 gt CMOS ECP5 Extreme Performance FlashBAK FlexiClock flexiFLASH flexiMAC flexiPCS FreedomChip GAL GDX Generic Array Logic HDL Explorer iCE Dice iCE40 iCE65 iCEblink iCEcable iCEchip iCEcube iCEcube2 iCEman iCEprog iCEsab iCEsocket IPexpress ISP ispATE ispClock issDOWNLOAD ispGAL ispGDS ispGDX isoGDX2 ispGDXV i
26. n chart between Pexpress and Clarity Designer features is shown Table 1 Configuration and Importing Clarity Designer produces design sbx files that can be used in the design project like an HDL file or an IPexpress generated ipx file A key difference compared to IPexpress generated files is that Clarity Designer files can Copyright April 2014 Lattice Semiconductor Corporation Tool Overview Table 1 IPexpress versus Clarity Designer Clarity Designer Configuration Generation Modules Yes Yes IP Yes Yes Download IP Yes Yes Building Rule checking No Yes Generate Connectivity No Yes Connection Assistance No Yes Design Reuse No Yes Planning PCS amp DDR Pre Synthesis No Yes Placement Assistance No Yes Rule checking No Yes Graphical usage Yes contain multiple modules or IP blocks not just a single block and can represent a subsystem With IPexpress the process is to generate a module or IP This is one step since an IPexpress file can only contain one module or IP For Clarity Designer the saving of a file is a separate step Modules or IP are configured and then more modules or IP can optionally be added within the same file Additionally since building and planning can also be done saving the file and generating the blocks needs to be done as a later step Configuring modules is done by going to the Catalog tab selecting the Lattice IP tab at the bottom of the window and selectin
27. nd the IP folder tree Configuring Modules or IP To customize a module or IP with Clarity Designer go to the Catalog tab After the module or IP has been configured it will be available in the Builder tab and if it uses PCS SERDES or DDR resources the Planner tab To configure a module or IP 1 Inthe Catalog tab double click the IP that you want to configure A dialog box opens with some general information about the IP To get more information about the IP see the About tab to the right in Clarity Designer 2 Inthe dialog box specify the Instance Name Instance Name is the base name for the module s files that is with no extension Choose from the Module Output menu This is how the IP will be coded Click Customize The IP s dialog box opens 5 Inthe dialog box choose desired options To get information about the options click Help Also check the About tab in Clarity Designer for links to technical notes and user guides Downloaded IP may come with additional information As the options change the schematic diagram of the module changes to show the ports and the device resources the IP needs Click Configure Click the Generate Log tab to check for warnings and error messages Click Close The IP is added to the Builder tab and if it uses PCS SERDES or DDR resources to the Planner tab Building After configuring modules and IP they need to be connected to each other and to the top of the Clarity De
28. r tab to allow those resources to be placed Consolidating multiple modules within a single hierarchy level in a Clarity Designer file may require the original design hierarchy to be modified This will vary for different designs on a case by case basis Although this may cause design changes there is a benefit to doing this By putting the DDR modules for example in the same file these resources can now be planned together and feedback given on whether a valid placement is possible Previously constraints would need to be entered and if the solution was not valid later implementation engine stages would generate errors This new methodology is a faster and easier solution to placing resources within an FPGA and getting feedback if the solution is possible Current Restrictions Clarity Designer contains several restrictions in this release The list below lists the general usage restrictions Restrictions within each module or IP are dependent upon the FPGA target and the use of that module or IP Using Clarity Designer file as the top level of a design gt All modules and IP must be directly instantiated within this file Modules cannot be instantiated within an HDL file Any HDL in the design must be imported into the file as a module HDL files can contain a hierarchy of other HDL modules but no Clarity Designer modules or IP can be instantiated within the HDL Clarity Designer files cannot be used as modules within another
29. s been placed you can view the placement by gt Clicking on the port in the left pane to locate it in the chip view The location of this port is highlighted in the chip view gt Clicking on the placed pin in the chip view which will highlight the port in the left pane Clarity Designer User Manual 23 Accomplishing Tasks with Clarity Designer Figure 15 DDR Resources in the Planner View Sek o Sark amp Secret Sekt Resetting or Modifying Placement Once the interface has been placed it can be reset or modified using the following methods Seka CLKDIV ECLK Tree _DQS Group I O Logic 8 U m DDRDLL gt Ifthe entire interface placement has to be reset right click on the Interface name in the left pane and choose Reset Ifthe assignments for one of the clock groups under the interface have to be reset right click on the clock group in the left pane and choose Reset 24 Clarity Designer User Manual Accomplishing Tasks with Clarity Designer gt If placement for a signal port has to be modified choose the port in the left pane and drag and drop it to its new location Note that in the this release you cannot reset placement of an individual port Clarity also does not support multiple select on ports The workaround is to modify placement of each port or modify placement of the entire clock group Filtering Pin Types You can get to the filter by either rig
30. signer sbx file is saved in the file list the existing IPexpress files must be deleted from the file list in order to successfully implement the design The steps are shown below To import an IPexpress module 1 Open Clarity Design using the toolbar Tools menu or by creating a new file In Clarity Designer click the Catalog tab Click the Import IP tab at the bottom of the view Click Browse Gi eB 1G IND In the Open IPX File dialog box browse to the ipx or lpc file of the module Use the ipx if it is available 6 Click Open Most of the Import IP view is filled in 7 Type in a name for Target Instance This is the name that will be used for the configured module in the Clarity Designer project 8 Inthe Target area choose a Core Version Usually you will leave it with the latest version 9 Click Import The module s dialog box opens 10 In the dialog box choose desired options To get information about the options click Help Also check the About tab in the Lattice IP view for links to technical notes and user guides Downloaded IP may come with additional information As the options change the schematic diagram of the module changes to show the ports and the device resources the module needs 11 Click Configure 12 Click the Generate Log tab to check for warnings and error messages Clarity Designer User Manual Tool Overview 13 Click Close 14 Click Generate in the Clarity
31. signer subsystem The Builder tab provides for this task The Builder tab lists all of the modules in the Clarity Designer project along with all of their ports For each port there are three fields gt Connection is the name of the connecting net that you will define in Builder gt Type is how the port was connected gt un connected indicates the signal has not been connected yet Clarity Designer User Manual 13 Accomplishing Tasks with Clarity Designer fabric indicates a user defined connection gt internal indicates a connection made in the Planner tab gt pad pin indicates a connection to the I O of the FPGA gt Export is checked when the signal is connected to the top of the subsystem To connect a port to the top of the Clarity Designer subsystem gt Select the check box in the Export column The default name of the connecting net appears in the Connection column for the selected port This will also be the name of the port in the Clarity Designer subsystem The default name is based on the module and port names of the port You can change the name by double clicking it and typing over it To connect module ports to each other 1 Click the Builder tab 2 If you want to change a connection right click one of the ports and choose Disconnect 3 Select the ports that you want to connect together You can select several input ports if they will all use the same source
32. soGENERATOR ispJTAG ispLEVER ispLeverCORE ispLSI isoMACH ispPAC isp TRACY isp TURBO isoVIRTUAL MACHINE ispVM ispXP ispXPGA ispXPLD Lattice Diamond LatticeCORE LatticeEC LatticeECP LatticeECP DSP LatticeECP2 LatticeECP2M LatticeECP3 LatticeECP4 LatticeMico LatticeMico8 LatticeMico32 LatticeSC LatticeSCM LatticeXP LatticeXP2 MACH MachXO MachXO2 MachXO3 MACO mobileFPGA ORCA PAC PAC Designer PAL Performance Analyst Platform Manager ProcessorPM PURESPEED Reveal SensorExtender SiliconBlue Silicon Forest Speedlocked Speed Locking SuperBIG SuperCOOL SuperFAST SuperWIDE sysCLOCK sysCOMFIG sysDSP sysHSI sysl O sysMEM The Simple Machine for Complex Design TracelD TransFR UltraMOS and specific product designations are either registered trademarks or trademarks of Lattice Semiconductor Corporation or its subsidiaries in the United States and or other countries ISP Bringing the Best Together and More of the Best are service marks of Lattice Semiconductor Corporation Other product names used in this publication are for identification purposes only and may be trademarks of their respective companies 26 Clarity Designer User Manual
33. wn on the right Elements can be dragged from the left panel onto the appropriate resource on the right panel to be placed When an element is dragged onto a resource that can be used the cursor will change to a to show a valid solution is Clarity Designer User Manual Tool Overview Figure 3 Clarity Designer Planning 6D Start Page E Reports EH arity Designer 3 5 Sh DRC E Generate gu bend Al bu Colapse Al i Select Q Zoom Area Pan Filters Catalog Suider Planner Resource Placement T 4 EI DDR2 10 36 PLL 0 DLL 1 4 Ay eclk_groupd A odti0 Ay eclk_group0_ECLK3 Sx eclk_groupd_ECLK2 Ay eclk_group0_ECLKI AX eclk_group0_ECLKO fn dqs_i Ay das A dgs 0 Sn dqs0 Ay dain Ax dq 16 Ax dois Ax dails A dq lf Ay dail A dq tft dq 100 A dq_0 7 A dq_0f6 amp do 051 SR Resource ECLKO_BK6 emneen ae meeemmenee eetpeeeees ECLKO_BK7 i i i MI u2 f i N3 Ha Ni i i u 7 Ki E rs n sen K2 Fi 4 M6 cal eens Ls ha possible The chip view on the right can be zoomed in and out to help with placing the design elements Design elements can be dragged as a group or as individual elements to be placed For details on how to do placement on PCS SERDES and DDR modules PCS SERDES Planning on page 14 and DDR I O Planning on page 20 Diamond Integration Clarity Designer outputs source files that are used in a Diamond project like other source file types such as V
34. y Getting Started To open Clarity Designer launch the tool from either the Lattice Diamond toolbar or Tools menu Clarity Designer is currently only available for the ECP5 device family The project device must be set to a device from this family for the Clarity Designer tool to be available The tool can also be launched by choosing File gt New gt 5 File to create a new Clarity Designer file Double clicking an existing Clarity Designer file in the File List view will launch the tool Only one Clarity Designer file can be open at a time Once Clarity Designer is open the following tasks can be done Configure modules and IP from the Catalog tab gt Download and install new IP from the Catalog tab gt Import IPexpress ipx files from an existing project and convert them into Clarity Designer format Clarity Designer User Manual Tool Overview gt Import HDL modules from the project for use as modules within Clarity Designer Connect modules from the Builder tab Place PCS SERDES and DDR elements into FPGA resources from the Planner tab For details on these tasks refer to Accomplishing Tasks with Clarity Designer on page 11 Importing Existing Modules and IP from an Existing Design Modules and IP that were generated with IPexpress and are in the project can be imported into Clarity Designer They must be imported and configured and the file generated and saved in the file list Once the Clarity De

Download Pdf Manuals

image

Related Search

Related Contents

Sunbeam 3112 /Y User's Manual    Grupo: Grp Clases Teóricas Cultivos Herbáceos(959524  

Copyright © All rights reserved.
Failed to retrieve file