Skip to content

Commit d2095e5

Browse files
authored
Merge pull request #2055 from verilog-to-routing/graphics_cmd_fix
Graphics Command Documentation Updated
2 parents ba52c3a + d131e14 commit d2095e5

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

doc/src/vpr/command_line_usage.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ Graphics Options
119119
.. option:: --graphics_commands <string>
120120

121121
A set of semi-colon seperated graphics commands.
122+
Graphics commands must be surrounded by quotation marks (e.g. --graphics_commands "save_graphics place.png;")
122123

123124
* save_graphics <file>
124125
Saves graphics to the specified file (.png/.pdf/
@@ -152,14 +153,14 @@ Graphics Options
152153

153154
.. code-block:: none
154155
155-
save_graphics place.png; \
156+
"save_graphics place.png; \
156157
set_nets 1; save_graphics nets1.png;\
157158
set_nets 2; save_graphics nets2.png; set_nets 0;\
158159
set_cpd 1; save_graphics cpd1.png; \
159160
set_cpd 3; save_graphics cpd3.png; set_cpd 0; \
160161
set_routing_util 5; save_graphics routing_util5.png; \
161162
set_routing_util 0; \
162-
set_congestion 1; save_graphics congestion1.png;
163+
set_congestion 1; save_graphics congestion1.png;"
163164
164165
The above toggles various graphics settings (e.g. drawing nets, drawing critical path) and then saves the results to .png files.
165166

vpr/src/base/read_options.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1277,7 +1277,8 @@ argparse::ArgumentParser create_arg_parser(std::string prog_name, t_options& arg
12771277

12781278
gfx_grp.add_argument(args.graphics_commands, "--graphics_commands")
12791279
.help(
1280-
"A set of semi-colon seperated graphics commands.\n"
1280+
"A set of semi-colon seperated graphics commands. \n"
1281+
"Commands must be surrounded by quotation marks (e.g. --graphics_commands \"save_graphics place.png\")\n"
12811282
" Commands:\n"
12821283
" * save_graphics <file>\n"
12831284
" Saves graphics to the specified file (.png/.pdf/\n"

0 commit comments

Comments
 (0)