You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9707faf
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/user/FAQS.md
+28Lines changed: 28 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,34 @@ For development purposes, it is a good practice to work on branches and leave ma
48
48
49
49
See how to update using the Metrics [guide](../contrib/Metrics.md).
50
50
51
+
## How do I run OpenROAD under gdb, valgrind or perf?
52
+
53
+
Put the tool in front of the binary in `OPENROAD_EXE`. Every rule runs
54
+
`OPENROAD_EXE` as a command, sub-makes included, so it reaches every
55
+
stage and the `open_*`, `gui_*` and `web_*` targets. Below, `openroad`
56
+
stands for the binary the flow would run otherwise. The binary is the
57
+
last word of `OPENROAD_EXE`: the flow asks it alone for its version when
58
+
it writes the metrics, so the tool in front is not run for that.
59
+
60
+
```shell
61
+
# a backtrace when OpenROAD crashes, its own exit code otherwise
62
+
make DESIGN_CONFIG=./designs/nangate45/gcd/config.mk OPENROAD_EXE="gdb -batch -return-child-result -ex run -ex 'thread apply all bt' --args openroad" floorplan
63
+
64
+
# memory errors
65
+
make DESIGN_CONFIG=./designs/nangate45/gcd/config.mk OPENROAD_EXE="valgrind openroad" floorplan
66
+
67
+
# a profile, written to perf.data
68
+
make DESIGN_CONFIG=./designs/nangate45/gcd/config.mk OPENROAD_EXE="perf record -g -- openroad" floorplan
69
+
70
+
# an interactive debugger on a result
71
+
make DESIGN_CONFIG=./designs/nangate45/gcd/config.mk OPENROAD_EXE="gdb --args openroad" open_floorplan
72
+
```
73
+
74
+
A stage logs OpenROAD's output through a pipe, so use gdb in batch mode
75
+
for a stage, as in the first example; an interactive session suits
76
+
`open_*`, `gui_*` and `command`. `OPENROAD_EXE` can also come from the
77
+
environment.
78
+
51
79
## How do I get better search results?
52
80
53
81
As quoted from [ReadTheDocs](https://docs.readthedocs.io/en/stable/server-side-search/syntax.html#special-queries), this documentation is powered by [Simple Query String](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-simple-query-string-query.html#) from [Elasticsearch](https://www.elastic.co/elasticsearch/). Here are some helpful patterns:
0 commit comments