Sei sulla pagina 1di 4

Floor planning and Place and Route (Flat)

Module 9 Database Commands

Table of Contents

Lab 9-1 Using the dbGet and dbSet Commands.................................................................................. 1


Getting Started............................................................................................................................... 1

Floorplanning and Place and Route (Flat)


Module 9 Database Commands

Lab 9-1 Using the dbGet and dbSet Commands


Objective: To explore the dbGet and dbSet commands to report and change design database objects.

Getting Started

1. Verify that your working directory is set to


FPR/work

2. Start the software by entering this command in a csh window (after you source the
cshrc):
innovus

3. Using the GUI, restore a previously stored design preCTSopt.enc from you current directory.
You can restore any other saved design instead of preCTSopt.enc.
4. In the Innovus csh window, enter the following:
help dbGet
This will return the comman d-line options of the command. The usage is:
Usage: dbGet
dbGet
[-p \ -<p_number>]
[-u]
[-regexp]
[-d]
{<objectList> | head | top |selected}
[.<object_type>]*
[.<attribute_name> | .? | .?? | .?h]
[<pattern>]
[-help]

5. Select head from the attributes that are available at this level and enter:
dbGet head.?
This command returns the attributes that are available at this level.
The attributes are:
head: allCells dbunits layers mfgGrid objType props ptns
rules vias

6. Some interesting attributes at this level are dbUnits and mfgGrid. To report the values, enter
the following commands:
dbGet head.dbUnits
What is the value that is returned? Answer: __________
7. Enter the following command:
dbGet head.mfgGrid
What is the value that is returned? Answer: __________

8. List all the attributes and their values by entering the


following: dbGet head.??
The results might not always be readable text, as in this example.

9. To list the layers, enter the following


command: dbGet head.layers
Floorplanning and Place and Route (Flat) Page 1
Module 9 Database Commands

But, this command returns a hex representation of the layer names.

10. To list the layers, enter the following


command: dbGet head.layers.?
The name attribute displays the text.
11. Enter the following command:
dbGet head.layers.name
What does this command return? Answer: __________

12. To get to the top level of the hierarchy, enter the


following command: dbGet top.?
13. This lists all the attributes that you can query.
topCell: bumps fPlan hInst insts markers name nets
numBidirs numInputs numInsts numNets numPGTerms
numPhysInsts numPhysNets numPhysTerms numTermsobjType
pgTerms physInsts physNets physTerms pinToCornerDist
props statusClockSynthesized statusGRouted statusIoPlaced
statusPlaced statusPowerAnalyzed statusRCExtracted
statusRouted statusScanOpted symmetryR90 symmetryX
symmetryY terms texts
Try out different attributes and think of examples of how you can use the results in
scripts, or just to query the attributes of your design and check a few things.
14. Select ROM_512x16_0_INST in the design window.
15. Enter the following command:
dbGet selected.?
This command returns the following attributes:
inst: box boxes cell instTerms isDontTouch isHaloBlock
isJtagElem isPhysOnly isSpareGate name objType orient
pHaloBot pHaloBox pHaloLeft pHaloRight pHaloTop pStatus
pgCellTerms pgTermNets props pt rHaloBotLayer
rHaloSideSize rHaloTopLayer

16. Report the size of the halo on the right of the block by entering the
following command: dbGet selected.pHaloRight
What is the value that is returned? Answer: __________

17. Change the size of the halo around the block by entering
the following: dbSet selected.pHaloRight 5
18. Refresh the Innovus design window to view the change.

19. Now query some of the properties of the selected instances, by entering
this command: dbGet selected.pgTermNets.?
20. Explore the attributes and properties that are returned and change them
21. Save the design as preCTSopt_db.enc.
22. Close the Innovus software.

Floorplanning and Place and Route (Flat) Page 2


Module 9 Database Commands

Summary

In this lab, you ran the db commands to report and modify the attributes of the design and its objects.

Floorplanning and Place and Route (Flat) Page 3

Potrebbero piacerti anche