2020-02-01 12:49:39 -06:00
|
|
|
#ifndef RR_GRAPH_OBJ_UTIL_H
|
|
|
|
#define RR_GRAPH_OBJ_UTIL_H
|
|
|
|
|
|
|
|
/* Include header files which include data structures used by
|
|
|
|
* the function declaration
|
|
|
|
*/
|
|
|
|
#include <vector>
|
|
|
|
#include "rr_graph_obj.h"
|
2020-02-11 17:37:14 -06:00
|
|
|
#include "device_grid.h"
|
2020-02-01 12:49:39 -06:00
|
|
|
|
|
|
|
/* Get node-to-node switches in a RRGraph */
|
|
|
|
std::vector<RRSwitchId> find_rr_graph_switches(const RRGraph& rr_graph,
|
|
|
|
const RRNodeId& from_node,
|
|
|
|
const RRNodeId& to_node);
|
|
|
|
|
|
|
|
std::vector<RRNodeId> find_rr_graph_nodes(const RRGraph& rr_graph,
|
|
|
|
const int& x,
|
|
|
|
const int& y,
|
|
|
|
const t_rr_type& rr_type,
|
|
|
|
const int& ptc);
|
|
|
|
|
2020-02-03 20:05:18 -06:00
|
|
|
std::vector<RRNodeId> find_rr_graph_chan_nodes(const RRGraph& rr_graph,
|
|
|
|
const int& x,
|
|
|
|
const int& y,
|
|
|
|
const t_rr_type& rr_type);
|
|
|
|
|
2020-02-11 17:37:14 -06:00
|
|
|
std::vector<RRNodeId> find_rr_graph_grid_nodes(const RRGraph& rr_graph,
|
|
|
|
const DeviceGrid& device_grid,
|
|
|
|
const int& x,
|
|
|
|
const int& y,
|
|
|
|
const t_rr_type& rr_type,
|
|
|
|
const e_side& side);
|
|
|
|
|
2020-02-03 20:05:18 -06:00
|
|
|
|
2020-02-01 12:49:39 -06:00
|
|
|
#endif
|