I new to fusion compiler from Synopsys and EDA and IC design. I have a few files, such as .lib, .db, .tf .def, .lef, .v, .sdc. Can show them in fusion compiler? The trouble I encountered was there is not read_lef command but only read_tech_left, and that seems wrong. I've heard that the fusion compiler is pretty much just design compiler + icc2, but what do each of them do? Which step will need lef?
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Of course! Welcome to the world of EDA and IC design. It can seem overwhelming with all the different file formats and tools, but your questions are excellent and very common for newcomers. Let's break it all down.
Part 1: Fusion Compiler = Design Compiler + ICC2?
You've heard correctly! This is a great way to think about it.
Design Compiler (DC): This is a synthesis tool. Its primary job is to take your high-level hardware description (like a Verilog .v file) and translate it into a gate-level netlist. Think of it as a "compiler" for hardware, turning your "C code" (Verilog) into "assembly language" (a list of standard cells like AND, OR, FLIP-FLOP and how they connect). It focuses on logic, timing, and power, but not the physical layout.
IC Compiler II (ICC2): This is a Place and Route (P&R) tool. Its job is to take the gate-level netlist from DC and create the actual physical layout. It performs:
Placement: Deciding where to put each of those millions of standard cells on the silicon floorplan.
Clock Tree Synthesis (CTS): Building the network that delivers the clock signal to all the flip-flops.
Routing: Drawing the tiny metal wires that connect all the cells together according to the netlist.
Fusion Compiler's Advantage:
Historically, you would run DC, save its output, then start ICC2 and load that output. This created a disconnect. If ICC2 found a timing problem it couldn't fix by moving cells, you had to go back to DC, change synthesis settings, and repeat the whole process.
Fusion Compiler integrates both synthesis and P&R into a single, unified environment. It uses a single data model and command set. This means it can perform synthesis while being "physically aware" of the layout, and it can perform P&R while being "logically aware" of the design structure. This leads to a much faster and more optimized design closure process.
Part 2: Your Files and How to Load Them in Fusion Compiler
Here is a breakdown of your files, what they are for, and the typical command to "show" or load them into Fusion Compiler.
File Extension
File Name Example
What it is
Fusion Compiler Command(s)
When is it needed?
.v
my_design.v
Verilog Netlist/RTL. This is your design's logic. It can be the Register-Transfer Level (RTL) code you wrote, or a gate-level netlist from a previous synthesis run.
read_verilog [file_list]
Synthesis & P&R (Start)
.sdc
my_design.sdc
Synopsys Design Constraints. This is a critical file. It tells the tool your performance goals: clock speeds, input/output delays, false paths, etc. It's the "contract" your design must meet.
read_sdc [file_list]
Synthesis & P&R (All stages)
.lib / .db
saed32.lib, saed32.db
Logic Library. Contains timing, power, and function information for the standard cells (AND, OR, FF, etc.). .lib is human-readable text (Liberty format), .db is the compiled binary format Synopsys tools prefer.
set_target_library [file_list]set_link_library [file_list] (or use search_path)
Synthesis & P&R (All stages)
.lef
saed32.lef
Library Exchange Format. Contains the physical-only abstract view of the cells: their size, pin locations, and metal blockages. It's the "physical shape" of the cells.
(See explanation below)
P&R (All physical stages)
.tf
saed32.tf
Technology File. This is the foundry's rulebook for manufacturing. It defines the metal layers, vias, design rules (DRC), etc. It's the "physics" of the silicon process.
read_tech_file [file_name] or read_tech_lef
P&R (All physical stages)
.def
my_design.def
Design Exchange Format. Contains the physical layout information of a design: cell placements, routing geometry, floorplan info. It's a snapshot of the physical design state.
read_def [file_name]
P&R (To load a previous state)
Part 3: The read_lef vs. read_tech_lef Confusion (Your Key Question)
You are right to be confused, this is a very important distinction!
Technology LEF: This LEF file describes the "world" your design lives in. It contains the layer definitions, manufacturing rules, and via definitions. It is provided by the foundry. Because it's so fundamental to the technology, Fusion Compiler uses a specific command for it:
read_tech_lef my_foundry.tlef (if your tech file is in LEF format)
read_tech_file my_foundry.tf (if it's in the older Interconnect Technology Format)
Cell LEF: This LEF file describes the "Lego bricks" (your standard cells and macros). It defines their physical footprint, pin locations, etc.
So why is there no read_cell_lef command?
Because in the modern Synopsys flow (ICC2/Fusion Compiler), the physical information from the Cell LEF is already compiled into your physical library, which is part of the .db files.
When you set up your libraries, you provide a set of .db files that represent different "views" of the cells (timing, power, simulation, etc.). One of these views is the physical or "frame" view. Fusion Compiler automatically extracts the necessary physical data (the LEF info) from these libraries when it needs it.
Therefore, you do not typically need to read the standard cell LEF file separately. The tool gets this information from the libraries you specify with set_link_library.
A Sample Loading Script (Putting it all together)
Here is a conceptual Tcl script showing the order in which you would load your files in Fusion Compiler to start a place-and-route flow.
tcl
# Tcl script to load a design in Fusion Compiler
# 1. Set up paths to find your libraries.
# The tool will search here for the .db files.
set search_path ". /path/to/libs/db"
# 2. Define which libraries to use for linking and optimization.
# The "*" tells the tool to find the libraries in the search_path.
# The link library contains the full cell information (.db).
# The target library is the subset of cells the tool is allowed to use for new logic.
set link_library "* slow.db"
set target_library "slow.db"
# 3. Load the Technology File (the "rules of physics").
# This is where you would use read_tech_lef if you had a .tlef file.
read_tech_file /path/to/tech/foundry.tf
# 4. Read in your design's logic.
# This could be RTL or a gate-level netlist.
read_verilog my_design.v
# 5. Set the "current design" to the top-level module from your Verilog.
current_design my_top_module
# 6. Link the design. This is a crucial step!
# It resolves the design's cells (e.g., DFF_X1) against the libraries you specified.
# The tool will now know the function, timing, and PHYSICAL SHAPE of every cell.
link_design
# 7. Read the design constraints (clocks, delays, etc.).
read_sdc my_design.sdc
# 8. (Optional) If you are starting from an existing floorplan or placement, read it now.
# This file contains placement information for the cells.
read_def my_design_floorplan.def
# Now your design is fully loaded in memory!
# You can run commands like `check_timing` or `place_opt`.
Summary: Which step needs LEF?
The entire Place & Route (P&R) process needs the information from LEF files.
Technology LEF Info (from .tf or read_tech_lef): Needed immediately to create the floorplan and understand the routing layers.
Cell LEF Info (from the .db library):
Placement needs it to know the size of each cell to place them without overlaps.
Routing needs it to know the exact coordinates of the cell pins to connect the wires.
Verification needs it to check for physical design rule violations around each cell.
I hope this detailed explanation helps you get started. The key takeaway is that Fusion Compiler streamlines this by embedding the cell's physical data (from LEF) into the main library (.db), so you only need one command (link_design) to connect it all. Good luck