Compiler Design 2

Outline s Refreshing … Uncensored … Groundbreaking …. The Dr. Wang’s original lecture: s s s s s Tutorial of Design Compiler s s Introduction Setting Up the Tutorial Graphical Interface The Alarm Clock Design Setting Design Environment Setting Design Constraints Overview of Optimization Phases Analysis of Report DC Tutorial – 2 Introduction s s s Introduction s s s s The Synthesis Process Design Compiler Products Synthesis Programs and Tools Design Styles Input and Output Formats User Interfaces Script Files DC Tutorial – 4 The Synthesis Process

Start Rewrite Verilog Code Read in Design Set Attributes Set Realistic Timing Goal Check Design Errors No Yes Fix Bugs Change Constraints Modify Compile Attributes Ungroup Design Blocks The DC Products s DC Professional – No multi-frequency clocking, latch-based time borrowing, pipeline re-timing, critical path resynthesis, in-place optimization, and incremental editing s DC Expert – Include features for maximizing performance s FPGA Compiler – Targets only FPGA technology Optimize No Good? Yes Done DC Tutorial – 5 DC Tutorial – 6 1 Synthesis Tools HDL Design Analyzer HDL Compilers DesignWare DesignWare Developer

Architectural Optimization s s Architectural Optimization Gate-Level s s Design Analyzer Logic Optimization Design Compilers Cell Library Library Compiler s s Arithmetic Optimization Timing and Area-Based Resource Sharing Sub-expression Removal Constraint-Driven Resource Selection Inference of Synthetic Part (DesignWare) For more information – HDL Compiler for Verilog Reference Manual Optimized Gate-level Netlist DC Tutorial – 7 DC Tutorial – 8 DesignWare s DesignWare Developer Provide a library of high-level design components – Adders, Multiplier, etc. s s

The HDL compiler will select the proper components for you based on your timing and area goals See Documentation Collection (open collection) – Synopsys DesignWare 1997. 01 s Create DesignWare Libraries DC Tutorial – 9 DC Tutorial – 10 DC Products s Cell Library s Library of basic cells used by DC – AND, OR, XOR, etc. s Optimize your design at the gate level Using selected cell libraries s For FPGA compiler, it may contain more complex cells – Xilinx CLBs, IOBs, etc. DC Tutorial – 11 DC Tutorial – 12 2 Library Compiler Design Styles s Yes, you can create your own cell libraries s s Hierarchical or Flatten Combinational or Sequential

We will write a custom essay sample on
Compiler Design 2
or any similar topic only for you
We will write a custom essay sample on
Compiler Design 2
or any similar topic only for you
Order now
Order now

DC Tutorial – 13 DC Tutorial – 14 Input Formats s s s s Output Formats s s s s s VHDL Verilog PLA & EDIF 2. 00 Xilinx XNF s Synopsys binary format (. db files) VHDL Verilog EDIF 2. 00 Equation, LSI Logic, Mentor Graphics, PLA, state table, Tegas formats Xilinx XNF format DC Tutorial – 15 DC Tutorial – 16 User Interfaces s Scripts s shell> dc_shell – – – – – – – – – unix-like command shell dc_shell> quit dc_shell> cd my_dir dc_shell> alias wv write -f verilog dc_shell> pwd dc_shell> history n dc_shell> list -command dc_shell> man dc_shell> sh “lpr ” s s s s shell> design_analyzer graphical interface DC Tutorial – 17 A set of command can be put together into a file called “script” Then, you don’t need to re-type some the commands again and again when using the dc_shell Scripts for this tutorial will be provided for your reference You can run them when you are home without the X-window capability DC Tutorial – 18 3 Locate Documentation s s s s s s s shell> design_analyzer & select Help –> On-Line Documentation …. Ignore the square window with “Titles” – select Cancel to close it – focus on the one with “File, Edit, View …” select File –> Open Collection select Synopsys Synthesis Tools 1997. 1 and then click OK select Documents Formatted for Printing and then click Open In the “File, Edit, View …” window, now you can select a list of on-line documents DC Tutorial – 19 Setting Up the Tutorial Setting Up the Tutorial s s s s Creating The Directories s >cp -r /baby/synopsys/doc/syn/tutorial . Home Directory tutorial Creating the directories Setting paths and aliases Creating a start-up file Running tutorial with scripts db/ verilog/ vhdl/ appendix_A/ Script files work (empty) DC Tutorial – 21 DC Tutorial – 22 Path s s .synopsys_dc. setup file %> source /usr/local/bin/setup. synopsys Or you can put it in . cshrc file – %> source . cshrc – %> rehash s s You can take a look of the setup file – %> more /usr/local/bin/setup. synopsys s Creating a . synopsys_dc. setup file can overwrite system default settings %> cp ~/tutorial/. sysnopsys_dc. setup ~/. synopsys_dc. setup %> vi ~/. synopsys_dc. setup – company = “Motorola Somerset”; – designer = “CEO”; – view_background = “while”; s It basically setup the right environmental variables for you DC Tutorial – 23 DC Tutorial – 24 4

More about setup file s Scripts s s %> more . synopsys_dc. setup – search_path = { } + search_path – link_library … target_library … symbol_library … define_design_lib … s s s s s search_path = {a directory} + search_path – if you cp tutorial into a directory other than home link_library: location of subdesgins referenced by the design target_library: identify technology libraries symbol_library: identify symbols library for generating/viewing schematics define_design_lib: identify a temporary place to store intermediate files created by the analyzer DC Tutorial – 25 No X-Window, No Problem Find script files in ~/tutorial/appendix_A/. See Design Analyzer Reference Manual for more detail DC Tutorial – 26 Graphical Interface s s Start: %> design_analyzer & Quit: Select File –> Quit Menu Bar Graphical Interface View Buttons Level Buttons Scroll Bar Message Area (view_background = “while”;) View Window DC Tutorial – 28 Mouse Buttons s Check Default Setup s Setup –> Defaults … Left Button – Select design and design objects s Mid Button – Add or remove objects from a group of objects already selected s Right Button Bring up the pop-up menu DC Tutorial – 29 DC Tutorial – 30 5 Read in a Design s Save a Design s File –> – analyze & elaborate – read File –> Save or Save As … – Once a design is selected s analyze : – read in VHDL/Verilog; check for syntax and synthesizale logic; store as intermediate formats – Use to read each sub-design + top level design s elaborate : – create the design from intermediate formats; determine the correct bus size; Use for top level design + sub-design with parameters passing in s read : read design formats other than HDL (db, PLA, tc. ) DC Tutorial – 31 DC Tutorial – 32 A Design Has 4 Views s s s s s Design View s Design View Symbol View Schematic View Hierarchy View T View (No Use) After “read” in all 13 verilog files in the tutorial directory – you first enter the Design View DC Tutorial – 33 DC Tutorial – 34 Symbol View s Schematic View s Select TIME_STATE_MACHINE and double-click on it -> you enter the symbol view of the design Click on the “schematic view” button on the left hand side DC Tutorial – 35 DC Tutorial – 36 6 Hierarchy View s Design View Icons s s s s

Click the up arrow (left hand side) to go back to design view; doubleclick on TOP; Select View –> Change View –> Hierarchy – TOP contains 6 modules Netlist: read in as a netlist and optimized to gates Equation: In VHDL, Verilog, or equation format that is partially or completely behavioral PLA: Specified in PLA format State Table: Specified in state table format Y=A+B 010-0 1-101 PLA State Table Netlist Equation DC Tutorial – 37 DC Tutorial – 38 Command Window s dc_shell Commands Setup –> Command Window … s For more information, – see Design Compiler Reference Manual: Fundamentals DC Tutorial – 39

DC Tutorial – 40 Design Attributes s Operating Environment Sub-menu s Attributes are values you set to control the optimization process – Select Attributes from the menu s The Attributes menu provide access to – – – – – – – Set input and output delays Set drive strengths set loads Characterize subdesigns Select operating conditions Choose a wire load model Create or modify a clock DC Tutorial – 41 Set design properties that describes the internal conditions of a design and the design’s interaction with its surrounding – drive strength on ports – the time that signals arrive on ports – load driven by output ports

DC Tutorial – 42 7 Optimization Constraints s Design Optimization s Set the goal for design optimization – largest delay allowed – greatest area allowed Select Tools –> Design Optimization – See Design Compiler Reference Manual: Optimization and Timing Analysis for more detail s Two set-constraint windows – Design Constraints window • Goals for area and power • Design rules implied by technology library • Test-related constraints (testability) – Timing Constraints window • Timing constraints s DC Tutorial – 43 DC Tutorial – 44

Locating Problems s Generate Report s Before and after optimization, use Schematic View and Check Design to locate problems – Generate schematic view – Select Analysis –> Check Design – Jump to a design object • Click on an error or warning message in the Design error window • Click on the show button Analysis –> Report … DC Tutorial – 45 DC Tutorial – 46 Run a Script File s Setup –> Execute Script – check out ~/tutorial/appendix_A/*. script – dc_shell> include The Alarm Clock Design DC Tutorial – 47 8

Custom writing services

×

Hi there, would you like to get such a paper? How about receiving a customized one? Check it out