File tree Expand file tree Collapse file tree 1 file changed +0
-54
lines changed
vpr/src/route/rr_graph_generation/tileable_rr_graph/crr_generator Expand file tree Collapse file tree 1 file changed +0
-54
lines changed Original file line number Diff line number Diff line change 11#pragma once
22
3- #include < algorithm>
4- #include < atomic>
5- #include < cmath>
6- #include < condition_variable>
7- #include < fstream>
8- #include < functional>
9- #include < future>
10- #include < iostream>
11- #include < iterator>
12- #include < map>
13- #include < memory>
14- #include < mutex>
15- #include < numeric>
16- #include < optional>
17- #include < queue>
18- #include < regex>
19- #include < set>
20- #include < sstream>
21- #include < stdexcept>
22- #include < string>
23- #include < thread>
24- #include < unordered_map>
25- #include < unordered_set>
263#include < vector>
27- #include < chrono>
28- #include < sys/resource.h> // For getrusage on Unix/Linux
294
305#include " rr_graph_fwd.h"
316#include " rr_node_types.h"
@@ -51,15 +26,6 @@ constexpr int NUM_EMPTY_COLS = 4;
5126constexpr SwitchId DELAY_0_ID = 1 ;
5227constexpr int DEFAULT_SWITCH_DELAY_MIN = 10000 ;
5328
54- // Node types
55- enum class NodeType { SOURCE,
56- SINK,
57- IPIN,
58- OPIN,
59- CHANX,
60- CHANY,
61- INVALID };
62-
6329// Direction types
6430enum class Direction { INC_DIR,
6531 DEC_DIR };
@@ -201,26 +167,6 @@ struct NodeHasher {
201167 }
202168};
203169
204- // Utility functions
205- inline std::string to_string (NodeType type) {
206- switch (type) {
207- case NodeType::SOURCE:
208- return " SOURCE" ;
209- case NodeType::SINK:
210- return " SINK" ;
211- case NodeType::IPIN:
212- return " IPIN" ;
213- case NodeType::OPIN:
214- return " OPIN" ;
215- case NodeType::CHANX:
216- return " CHANX" ;
217- case NodeType::CHANY:
218- return " CHANY" ;
219- default :
220- return " UNKNOWN" ;
221- }
222- }
223-
224170inline e_rr_type string_to_node_type (const std::string& str) {
225171 if (str == " SOURCE" || str == " source" ) return e_rr_type::SOURCE;
226172 if (str == " SINK" || str == " sink" ) return e_rr_type::SINK;
You can’t perform that action at this time.
0 commit comments