Skip to content

Commit bb0ba83

Browse files
authored
Merge pull request verilog-to-routing#370 from SymbiFlow/read_edge_metadata
Add read edge metadata flag
2 parents 00847b7 + 6e6d927 commit bb0ba83

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

vpr/src/base/SetupVPR.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ static void SetupRouterOpts(const t_options& Options, t_router_opts* RouterOpts)
343343
RouterOpts->router_algorithm = Options.RouterAlgorithm;
344344
RouterOpts->fixed_channel_width = Options.RouteChanWidth;
345345
RouterOpts->min_channel_width_hint = Options.min_route_chan_width_hint;
346+
RouterOpts->read_edge_metadata = Options.read_edge_metadata;
346347

347348
//TODO document these?
348349
RouterOpts->trim_empty_channels = false; /* DEFAULT */

vpr/src/base/read_options.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1650,6 +1650,11 @@ argparse::ArgumentParser create_arg_parser(std::string prog_name, t_options& arg
16501650
.default_value("off")
16511651
.show_in(argparse::ShowIn::HELP_ONLY);
16521652

1653+
route_timing_grp.add_argument<bool, ParseOnOff>(args.read_edge_metadata, "--read_edge_metadata")
1654+
.help("Read edge metadata from --read_rr_graph. Edge metadata is not used in core VPR algorithms, and is typically not read to save runtime and memory. (Default: off).")
1655+
.default_value("off")
1656+
.show_in(argparse::ShowIn::HELP_ONLY);
1657+
16531658
route_timing_grp.add_argument(args.router_debug_net, "--router_debug_net")
16541659
.help(
16551660
"Controls when router debugging is enabled.\n"

vpr/src/base/read_options.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ struct t_options {
136136
argparse::ArgValue<int> min_incremental_reroute_fanout;
137137
argparse::ArgValue<bool> disable_check_route;
138138
argparse::ArgValue<bool> quick_check_route;
139+
argparse::ArgValue<bool> read_edge_metadata;
139140

140141
/* Timing-driven router options only */
141142
argparse::ArgValue<float> astar_fac;

vpr/src/route/connection_box.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44
// This class relates IPIN rr nodes with connection box type and locations, used
55
// for connection box driven map lookahead.
66

7+
#include <map>
8+
#include <string>
79
#include <tuple>
8-
#include "vtr_strong_id.h"
10+
911
#include "vtr_flat_map.h"
1012
#include "vtr_range.h"
11-
#include <map>
13+
#include "vtr_strong_id.h"
1214

1315
struct connection_box_tag {};
1416
typedef vtr::StrongId<connection_box_tag> ConnectionBoxId;

0 commit comments

Comments
 (0)