Skip to content

Commit 309a96d

Browse files
committed
Revert "Integrate upstream uxsdcxx parser with connection box lookahead"
This reverts commit 8c4519c8723b7adf2c4571700202f06690d04278.
1 parent 52014e7 commit 309a96d

File tree

10 files changed

+15
-1053
lines changed

10 files changed

+15
-1053
lines changed

libs/libvtrcapnproto/gen/rr_graph_uxsdcxx.capnp

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -137,18 +137,6 @@ struct BlockTypes {
137137
blockTypes @0 :List(BlockType);
138138
}
139139

140-
struct ConnectionBoxDeclaration {
141-
id @0 :UInt32;
142-
name @1 :Text;
143-
}
144-
145-
struct ConnectionBoxes {
146-
numBoxes @0 :UInt32;
147-
xDim @1 :UInt32;
148-
yDim @2 :UInt32;
149-
connectionBoxes @3 :List(ConnectionBoxDeclaration);
150-
}
151-
152140
struct GridLoc {
153141
blockTypeId @0 :Int32;
154142
heightOffset @1 :Int32;
@@ -188,18 +176,6 @@ struct Metadata {
188176
metas @0 :List(Meta);
189177
}
190178

191-
struct CanonicalLoc {
192-
x @0 :UInt32;
193-
y @1 :UInt32;
194-
}
195-
196-
struct ConnectionBoxAnnotation {
197-
id @0 :UInt32;
198-
sitePinDelay @1 :Float32;
199-
x @2 :UInt32;
200-
y @3 :UInt32;
201-
}
202-
203179
struct Node {
204180
capacity @0 :UInt32;
205181
direction @1 :NodeDirection;
@@ -209,8 +185,6 @@ struct Node {
209185
timing @5 :NodeTiming;
210186
segment @6 :NodeSegment;
211187
metadata @7 :Metadata;
212-
canonicalLoc @8 :CanonicalLoc;
213-
connectionBox @9 :ConnectionBoxAnnotation;
214188
}
215189

216190
struct RrNodes {
@@ -236,8 +210,7 @@ struct RrGraph {
236210
switches @4 :Switches;
237211
segments @5 :Segments;
238212
blockTypes @6 :BlockTypes;
239-
connectionBoxes @7 :ConnectionBoxes;
240-
grid @8 :GridLocs;
241-
rrNodes @9 :RrNodes;
242-
rrEdges @10 :RrEdges;
213+
grid @7 :GridLocs;
214+
rrNodes @8 :RrNodes;
215+
rrEdges @9 :RrEdges;
243216
}

vpr/src/base/read_options.cpp

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -692,8 +692,6 @@ struct ParseRouterLookahead {
692692
conv_value.set_value(e_router_lookahead::CLASSIC);
693693
else if (str == "map")
694694
conv_value.set_value(e_router_lookahead::MAP);
695-
else if (str == "connection_box_map")
696-
conv_value.set_value(e_router_lookahead::CONNECTION_BOX_MAP);
697695
else {
698696
std::stringstream msg;
699697
msg << "Invalid conversion from '"
@@ -707,22 +705,17 @@ struct ParseRouterLookahead {
707705

708706
ConvertedValue<std::string> to_str(e_router_lookahead val) {
709707
ConvertedValue<std::string> conv_value;
710-
if (val == e_router_lookahead::CLASSIC) {
708+
if (val == e_router_lookahead::CLASSIC)
711709
conv_value.set_value("classic");
712-
} else if (val == e_router_lookahead::MAP) {
710+
else {
711+
VTR_ASSERT(val == e_router_lookahead::MAP);
713712
conv_value.set_value("map");
714-
} else if (val == e_router_lookahead::CONNECTION_BOX_MAP) {
715-
conv_value.set_value("connection_box_map");
716-
} else {
717-
std::stringstream msg;
718-
msg << "Unrecognized e_router_lookahead";
719-
conv_value.set_error(msg.str());
720713
}
721714
return conv_value;
722715
}
723716

724717
std::vector<std::string> default_choices() {
725-
return {"classic", "map", "connection_box_map"};
718+
return {"classic", "map"};
726719
}
727720
};
728721

vpr/src/base/vpr_types.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,7 @@ constexpr const char* EMPTY_BLOCK_NAME = "EMPTY";
108108
enum class e_router_lookahead {
109109
CLASSIC, //VPR's classic lookahead (assumes uniform wire types)
110110
MAP, //Lookahead considering different wire types (see Oleg Petelin's MASc Thesis)
111-
NO_OP, //A no-operation lookahead which always returns zero
112-
CONNECTION_BOX_MAP,
113-
// Lookahead considering different wire types and IPIN
114-
// connection box.
111+
NO_OP //A no-operation lookahead which always returns zero
115112
};
116113

117114
enum class e_route_bb_update {

0 commit comments

Comments
 (0)