Viewing layouts graphically

You can use gui.py to view final layout from a specified run and from the major stages of the flow. Available viewers are OpenROAD and KLayout.

Usage

To view the final layout using OpenROAD:

make mount
python3 gui.py --viewer openroad ./designs/spm/runs/RUN_2023.05.28_13.36.45

To view the layout from floorplan stage:

make mount
python3 gui.py --viewer openroad --stage floorplan ./designs/spm/runs/RUN_2023.05.28_13.36.45

Finally, you can chose to open def view instead of odb view:

make mount
python3 gui.py --format def --viewer openroad --stage floorplan ./designs/spm/runs/RUN_2023.05.28_13.36.45

Note

The script needs to run from the same environment as the OpenLane run, i.e., if you’re using OpenLane using make mount and the Docker container, gui.py must be run from the Docker container.

Command-line interface (CLI)

Argument

Description

--viewer <viewer>
(Optional)

The layout viewer, or tool, to display the layout. Available viewers are OpenROAD and KLayout.
Default: OpenROAD.

--format <layout_format>
(Optional)

The layout format to use. Available formats are gds, def and odb. odb is only supported by OpenROAD and gds is only supported by KLayout.
Default: odb for OpenROAD, gds for KLayout.

--stage <stage>
(Optional)

The flow stage to fetch the layout from. cts, floorplan, placement, routing and signoff.
Default: Latest layout produced by the flow.