The LEF Parser

This document describes the function of the software unit that reads LEF files and stores all library elements as primitive cells in ZDB for later use.

Introduction

In addition of using the RTLvision PRO GUI to read LEF files either the stand alone binary lef2zdb or the Tcl command zlef can be used.

The lef2zdb binary reads the given LEF file and creates a binfile containing the libraries of the input file:

lef2zdb -o binfile.zdb <OPTIONS> <FILE.LEF>

The zlef Tcl command reads the given LEF file and returns the created in-memory database:

set db [zlef <OPTIONS> <FILE.LEF>]

The Tcl command is available in the Console window of the RTLvision PRO GUI .

This document describes the usage of this flow.

Options

Option Parameters Description

-argsFromFile

<file>

Read cmdline arguments from file.

-binlib

<file>

Open this binfile as a precompiled library.

-breakOnError | -breakOnErr

on|off

Stop on errors during parsing.
(The default value for this option is off.)

-connectByName

<netnamepattern>

Connect matching net by name, i.e. don’t route it.

-debugFlag

<flag>

Enable a specific debug flag.

-dontCut

Don’t cut long filenames in messages.

-help | -h

Print a help text with a short description of each option.

-ignoreCase

on|off

Case-insensitive parser.
(The default value for this option is on.)

-info

None|Error|Warning|Verbose|Debug

Level of verbosity for issued messages.
(The default value for this option is Error.)
(This option is only available for the lef2zdb executable.)

-into

<dbname>

Compile the given files into an already existing database.
(This option is only available for the zlef command.)

-logAppend

Append to logfile.

-logfile

<file>

Generate log file.
(This option is only available for the lef2zdb executable.)

-nologo

Print no greeting message.

-o | -out

<file>

Name of the zdb output binfile.
(This option is only available for the lef2zdb executable.)

-prog

Print progress information.
(This option is only available for the lef2zdb executable.)

-reduceInvChain

on|off

Replace odd number of INVs in a chain by one INV and remove an even number of INVs in a chain.
(The default value for this option is off.)

-removeBuffer

on|off

Remove all BUF and WIDE_BUF instances and merge the connected nets.
(The default value for this option is off.)

-renameSuffix

<suffix>

Suffix for renaming duplicate cells.

-resolveDuplicates

on|off

Resolve duplicate cells. If "off" all duplicate cells are renamed.
(The default value for this option is on.)

-scale

<scale>

Scale all coordinates by this factor.
(The default value for this option is 1.00.)

-skipSupplyPorts

on|off

Skip power/ground supply ports.
(The default value for this option is off.)

-spos

on|off

Create source code references.
(The default value for this option is on.)

-suppress

<type> <pattern>

Suppress messages which match pattern.
(This option is only available for the lef2zdb executable.)

-time

Print CPU time consumption (requires enabled progress updates).
(This option is only available for the lef2zdb executable.)

-validate

Validate DB before creating the zdb output file.

-wait_for_license | -waitForLicense

<sec>

Wait 'sec' seconds for a license. If the value is -1 then the started tool will not wait for the next free license. Use a value of 0 to wait forever.
(The default value for this option is -1.)
(This option is only available for the lef2zdb executable.)