Skip to content
Snippets Groups Projects
Commit 4c14c596 authored by Thomas Kramer's avatar Thomas Kramer
Browse files

README: add section on debugging

parent d3e9eb33
No related branches found
No related tags found
No related merge requests found
...@@ -85,6 +85,14 @@ lclayout --output-dir mylibrary --tech examples/dummy_tech.py --netlist examples ...@@ -85,6 +85,14 @@ lclayout --output-dir mylibrary --tech examples/dummy_tech.py --netlist examples
## Adapting design rules ## Adapting design rules
Design rulesi and technology related data need to be encoded in a Python script file as shown in `examples/dummy_tech.py`. Design rulesi and technology related data need to be encoded in a Python script file as shown in `examples/dummy_tech.py`.
## Debugging
Getting the configuration right can be tricky. There's some debugging options which can
help inspecting the cell generation:
* `--verbose`: Print more debug information.
* `--debug-routing-graph`: Plot the full routing grid into the layout file. This helps understanding if the pitch and tracks are well aligned with the rest of the cell.
* `--debug-routing-iterations`: Plot the intermediate results of the router to files. This helps debugging the routing algorithm.
* `--debug-output-dir`: Directory where debug information will be written.
### Known issues ### Known issues
#### Reproducibility #### Reproducibility
......
...@@ -957,7 +957,7 @@ def main(): ...@@ -957,7 +957,7 @@ def main():
orientation_change_penalty=tech.orientation_change_penalty orientation_change_penalty=tech.orientation_change_penalty
) )
if args.debug_visual: if args.debug_routing_iterations:
router = InspectRouter(router, output_dir = args.debug_output_dir) router = InspectRouter(router, output_dir = args.debug_output_dir)
layouter = LcLayout(tech=tech, layouter = LcLayout(tech=tech,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment