Skip to content

Commit 6dbd7cf

Browse files
committed
2 parents 0fdc5f0 + 08f357f commit 6dbd7cf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+245
-341
lines changed

libs/EXTERNAL/libblifparse/src/blif_parser.y

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,12 +193,12 @@ subckt: DOT_SUBCKT STRING { $$ = SubCkt(); $$.model = $2; }
193193
latch: DOT_LATCH STRING STRING {
194194
//Input and output only
195195
callback.lineno(lexer.lineno());
196-
callback.latch($2, $3, LatchType::UNSPECIFIED, "", LogicValue::UNKOWN);
196+
callback.latch($2, $3, LatchType::UNSPECIFIED, "", LogicValue::UNKNOWN);
197197
}
198198
| DOT_LATCH STRING STRING latch_type latch_control {
199199
//Input, output, type and control
200200
callback.lineno(lexer.lineno());
201-
callback.latch($2, $3, $4, $5, LogicValue::UNKOWN);
201+
callback.latch($2, $3, $4, $5, LogicValue::UNKNOWN);
202202
}
203203
| DOT_LATCH STRING STRING latch_type latch_control latch_init {
204204
//Input, output, type, control and init-value
@@ -215,7 +215,7 @@ latch: DOT_LATCH STRING STRING {
215215
latch_init: LOGIC_TRUE { $$ = LogicValue::TRUE; }
216216
| LOGIC_FALSE { $$ = LogicValue::FALSE; }
217217
| LATCH_INIT_2 { $$ = LogicValue::DONT_CARE; }
218-
| LATCH_INIT_3 { $$ = LogicValue::UNKOWN; }
218+
| LATCH_INIT_3 { $$ = LogicValue::UNKNOWN; }
219219
;
220220

221221
latch_control: STRING { $$ = $1;}

libs/EXTERNAL/libblifparse/src/blif_pretty_print.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ void BlifPrettyPrinter::latch(std::string input, std::string output, LatchType t
112112
case LogicValue::FALSE: printf("%s0", indent().c_str()); break;
113113
case LogicValue::TRUE: printf("%s1", indent().c_str()); break;
114114
case LogicValue::DONT_CARE: printf("%s2", indent().c_str()); break;
115-
case LogicValue::UNKOWN: printf("%s3", indent().c_str()); break;
115+
case LogicValue::UNKNOWN: printf("%s3", indent().c_str()); break;
116116
default: assert(false);
117117
}
118118
--indent_level_;

libs/EXTERNAL/libblifparse/src/blifparse.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ enum class LogicValue {
108108
FALSE = 0, //Logic zero
109109
TRUE = 1, //Logic one
110110
DONT_CARE, //Don't care
111-
UNKOWN //Unkown (e.g. latch initial state)
111+
UNKNOWN //Unkown (e.g. latch initial state)
112112
};
113113

114114
enum class LatchType {

libs/EXTERNAL/libtatum/libtatum/tatum/base/TimingType.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace tatum {
77
enum class TimingType {
88
SETUP,
99
HOLD,
10-
UNKOWN
10+
UNKNOWN
1111
};
1212

1313
} //namespace

libs/EXTERNAL/libtatum/libtatum/tatum/report/TimingPath.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class TimingPathInfo {
3939
DomainId capture_domain() const { return capture_domain_; }
4040

4141
private:
42-
TimingType path_type_ = TimingType::UNKOWN;
42+
TimingType path_type_ = TimingType::UNKNOWN;
4343

4444
Time delay_;
4545
Time slack_;

libs/EXTERNAL/libtatum/libtatum/tatum/report/graphviz_dot_writer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ void GraphvizDotWriter::write_dot_file(std::ostream& os) {
3838
for(NodeId node : nodes_to_dump_) {
3939
node_slacks[node] = std::vector<TimingTag>(); //No slacks
4040
}
41-
TimingType timing_type = TimingType::UNKOWN;
41+
TimingType timing_type = TimingType::UNKNOWN;
4242

4343
write_dot_format(os, node_tags, node_slacks, timing_type);
4444
}
@@ -175,7 +175,7 @@ void GraphvizDotWriter::write_dot_edge(std::ostream& os, const EdgeId edge, cons
175175
} else if (timing_type == TimingType::HOLD) {
176176
os << "\\n"<< delay_calc_.hold_time(tg_, edge) << " (thld)";
177177
} else {
178-
TATUM_ASSERT(timing_type == TimingType::UNKOWN);
178+
TATUM_ASSERT(timing_type == TimingType::UNKNOWN);
179179
//Create both setup and hold edges if type is unknown
180180
os << "\\n"<< -delay_calc_.setup_time(tg_, edge) << " (-tsu)";
181181
os << "\\n"<< delay_calc_.hold_time(tg_, edge) << " (thld)";
@@ -190,7 +190,7 @@ void GraphvizDotWriter::write_dot_edge(std::ostream& os, const EdgeId edge, cons
190190
} else if (timing_type == TimingType::HOLD) {
191191
os << "\\n" << delay_calc_.min_edge_delay(tg_, edge);
192192
} else {
193-
TATUM_ASSERT(timing_type == TimingType::UNKOWN);
193+
TATUM_ASSERT(timing_type == TimingType::UNKNOWN);
194194
os << "\\n" << delay_calc_.max_edge_delay(tg_, edge) << " (tmax)";
195195
os << "\\n" << delay_calc_.min_edge_delay(tg_, edge) << " (tmin)";
196196
}

libs/librrgraph/src/base/rr_graph_storage.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -757,11 +757,8 @@ void t_rr_graph_storage::remove_nodes(std::vector<RRNodeId> nodes_to_remove) {
757757
// entries where either endpoint of an edge is in the nodes_to_remove list.
758758
// It also updates the node IDs of the remaining edges, since node IDs have
759759
// been shifted.
760-
auto adjust_edges = [&](vtr::vector<RREdgeId, RRNodeId>& edge_nodes) {
761-
for (size_t edge_index = 0; edge_index < edge_nodes.size(); ++edge_index) {
762-
RREdgeId edge_id = RREdgeId(edge_index);
763-
RRNodeId node = edge_nodes[edge_id];
764-
760+
auto adjust_edges = [&nodes_to_remove, &removed_edges](vtr::vector<RREdgeId, RRNodeId>& edge_nodes) {
761+
for (auto [edge_id, node] : edge_nodes.pairs()) {
765762
// Find insertion point in the sorted vector
766763
auto node_it = std::lower_bound(nodes_to_remove.begin(), nodes_to_remove.end(), node);
767764

libs/librrgraph/src/io/rr_graph_reader.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ void load_rr_file(RRGraphBuilder* rr_graph_builder,
6666
const t_arch* arch,
6767
t_chan_width* chan_width,
6868
const e_base_cost_type base_cost_type,
69-
RRSwitchId* wire_to_rr_ipin_switch,
70-
int* wire_to_rr_ipin_switch_between_dice,
7169
const char* read_rr_graph_name,
7270
std::string* loaded_rr_graph_filename,
7371
bool read_edge_metadata,
@@ -90,8 +88,6 @@ void load_rr_file(RRGraphBuilder* rr_graph_builder,
9088
RrGraphSerializer reader(
9189
graph_type,
9290
base_cost_type,
93-
wire_to_rr_ipin_switch,
94-
wire_to_rr_ipin_switch_between_dice,
9591
do_check_rr_graph,
9692
read_rr_graph_name,
9793
loaded_rr_graph_filename,

libs/librrgraph/src/io/rr_graph_reader.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ void load_rr_file(RRGraphBuilder* rr_graph_builder,
2323
const t_arch* arch,
2424
t_chan_width* chan_width,
2525
const e_base_cost_type base_cost_type,
26-
RRSwitchId* wire_to_rr_ipin_switch,
27-
int* wire_to_rr_ipin_switch_between_dice,
2826
const char* read_rr_graph_name,
2927
std::string* loaded_rr_graph_filename,
3028
bool read_edge_metadata,

libs/librrgraph/src/io/rr_graph_uxsdcxx_serializer.h

Lines changed: 1 addition & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,6 @@ class RrGraphSerializer final : public uxsd::RrGraphBase<RrGraphContextTypes> {
274274
RrGraphSerializer(
275275
const e_graph_type graph_type,
276276
const enum e_base_cost_type base_cost_type,
277-
RRSwitchId* wire_to_rr_ipin_switch,
278-
int* wire_to_rr_ipin_switch_between_dice,
279277
bool do_check_rr_graph,
280278
const char* read_rr_graph_name,
281279
std::string* loaded_rr_graph_filename,
@@ -297,9 +295,7 @@ class RrGraphSerializer final : public uxsd::RrGraphBase<RrGraphContextTypes> {
297295
MetadataStorage<std::tuple<int, int, short>>* rr_edge_metadata,
298296
vtr::string_internment* strings,
299297
bool is_flat)
300-
: wire_to_rr_ipin_switch_(wire_to_rr_ipin_switch)
301-
, wire_to_rr_ipin_switch_between_dice_(wire_to_rr_ipin_switch_between_dice)
302-
, chan_width_(chan_width)
298+
: chan_width_(chan_width)
303299
, rr_nodes_(rr_nodes)
304300
, rr_graph_builder_(rr_graph_builder)
305301
, rr_graph_(rr_graph)
@@ -1129,20 +1125,6 @@ class RrGraphSerializer final : public uxsd::RrGraphBase<RrGraphContextTypes> {
11291125
return nullptr;
11301126
}
11311127
inline void finish_rr_graph_rr_edges(void*& /*ctx*/) final {
1132-
/*initialize a vector that keeps track of the number of wire to ipin switches
1133-
* There should be only one wire to ipin switch. In case there are more, make sure to
1134-
* store the most frequent switch */
1135-
const auto& rr_graph = (*rr_graph_);
1136-
std::vector<int> count_for_wire_to_ipin_switches;
1137-
count_for_wire_to_ipin_switches.resize(rr_switch_inf_->size(), 0);
1138-
//switch for same layer Track to IPIN connection
1139-
//first is index, second is count
1140-
std::pair<int, int> most_frequent_switch(-1, 0);
1141-
//switch for different layer Track to IPIN connection
1142-
std::vector<int> count_for_wire_to_ipin_switches_between_dice;
1143-
count_for_wire_to_ipin_switches_between_dice.resize(rr_switch_inf_->size(), 0);
1144-
std::pair<int,int> most_frequent_switch_between_dice(-1,0);
1145-
11461128
// Partition the rr graph edges for efficient access to
11471129
// configurable/non-configurable edge subsets. Must be done after RR
11481130
// switches have been allocated.
@@ -1165,37 +1147,8 @@ class RrGraphSerializer final : public uxsd::RrGraphBase<RrGraphContextTypes> {
11651147
"switch_id %zu is larger than num_rr_switches %zu",
11661148
switch_id, rr_switch_inf_->size());
11671149
}
1168-
auto node = (*rr_nodes_)[source_node];
1169-
1170-
/*Keeps track of the number of the specific type of switch that connects a wire to an ipin
1171-
* use the pair data structure to keep the maximum*/
1172-
if (rr_graph.node_type(node.id()) == e_rr_type::CHANX || rr_graph.node_type(node.id()) == e_rr_type::CHANY) {
1173-
if(rr_graph.node_type(RRNodeId(sink_node)) == e_rr_type::IPIN){
1174-
if (rr_graph.node_layer_low(RRNodeId(sink_node)) == rr_graph.node_layer_low(RRNodeId(source_node))) {
1175-
count_for_wire_to_ipin_switches[switch_id]++;
1176-
if (count_for_wire_to_ipin_switches[switch_id] > most_frequent_switch.second) {
1177-
most_frequent_switch.first = switch_id;
1178-
most_frequent_switch.second = count_for_wire_to_ipin_switches[switch_id];
1179-
}
1180-
}
1181-
else{
1182-
VTR_ASSERT(rr_graph.node_layer_low(RRNodeId(sink_node)) != rr_graph.node_layer_low(RRNodeId(source_node)));
1183-
count_for_wire_to_ipin_switches_between_dice[switch_id]++;
1184-
if(count_for_wire_to_ipin_switches_between_dice[switch_id] > most_frequent_switch_between_dice.second){
1185-
most_frequent_switch_between_dice.first = switch_id;
1186-
most_frequent_switch_between_dice.second = count_for_wire_to_ipin_switches_between_dice[switch_id];
1187-
}
1188-
}
1189-
}
1190-
}
11911150
}
11921151
}
1193-
1194-
VTR_ASSERT(wire_to_rr_ipin_switch_ != nullptr);
1195-
*wire_to_rr_ipin_switch_ = (RRSwitchId)most_frequent_switch.first;
1196-
1197-
VTR_ASSERT(wire_to_rr_ipin_switch_between_dice_ != nullptr);
1198-
*wire_to_rr_ipin_switch_between_dice_ = most_frequent_switch_between_dice.first;
11991152
}
12001153

12011154
inline EdgeWalker get_rr_graph_rr_edges(void*& /*ctx*/) final {
@@ -1827,7 +1780,6 @@ class RrGraphSerializer final : public uxsd::RrGraphBase<RrGraphContextTypes> {
18271780
segment_inf_y_,
18281781
segment_inf_z_,
18291782
*rr_indexed_data_,
1830-
*wire_to_rr_ipin_switch_,
18311783
base_cost_type_,
18321784
echo_enabled_,
18331785
echo_file_name_);
@@ -2169,8 +2121,6 @@ class RrGraphSerializer final : public uxsd::RrGraphBase<RrGraphContextTypes> {
21692121
std::array<uxsd::enum_loc_side, 16> side_map_;
21702122

21712123
// Output for loads, and constant data for writes.
2172-
RRSwitchId* wire_to_rr_ipin_switch_;
2173-
int* wire_to_rr_ipin_switch_between_dice_;
21742124
t_chan_width* chan_width_;
21752125
t_rr_graph_storage* rr_nodes_;
21762126
RRGraphBuilder* rr_graph_builder_;

0 commit comments

Comments
 (0)