|
8 | 8 | #include "vpr_error.h"
|
9 | 9 | #include "vtr_math.h"
|
10 | 10 |
|
| 11 | +static void identify_and_store_noc_router_tile_positions(const DeviceGrid& device_grid, std::vector<t_noc_router_tile_position>& list_of_noc_router_tiles, std::string noc_router_tile_name); |
| 12 | + |
| 13 | +static void generate_noc(const t_arch& arch, NocContext& noc_ctx, std::vector<t_noc_router_tile_position>& list_of_noc_router_tiles); |
| 14 | + |
| 15 | +static void create_noc_routers(const t_noc_inf& noc_info, NocStorage* noc_model, std::vector<t_noc_router_tile_position>& list_of_noc_router_tiles); |
| 16 | + |
| 17 | +static void create_noc_links(const t_noc_inf* noc_info, NocStorage* noc_model); |
| 18 | + |
11 | 19 |
|
12 | 20 | void setup_noc(const t_arch& arch)
|
13 | 21 | {
|
@@ -49,7 +57,7 @@ void setup_noc(const t_arch& arch)
|
49 | 57 |
|
50 | 58 | }
|
51 | 59 |
|
52 |
| -void identify_and_store_noc_router_tile_positions(const DeviceGrid& device_grid, std::vector<t_noc_router_tile_position>& list_of_noc_router_tiles, std::string noc_router_tile_name) |
| 60 | +static void identify_and_store_noc_router_tile_positions(const DeviceGrid& device_grid, std::vector<t_noc_router_tile_position>& list_of_noc_router_tiles, std::string noc_router_tile_name) |
53 | 61 | {
|
54 | 62 | int grid_width = device_grid.width();
|
55 | 63 | int grid_height = device_grid.height();
|
@@ -129,7 +137,7 @@ void generate_noc(const t_arch& arch, NocContext& noc_ctx, std::vector<t_noc_rou
|
129 | 137 |
|
130 | 138 | }
|
131 | 139 |
|
132 |
| -void create_noc_routers(const t_noc_inf& noc_info, NocStorage* noc_model , std::vector<t_noc_router_tile_position>& list_of_noc_router_tiles) |
| 140 | +static void create_noc_routers(const t_noc_inf& noc_info, NocStorage* noc_model , std::vector<t_noc_router_tile_position>& list_of_noc_router_tiles) |
133 | 141 | {
|
134 | 142 | // keep track of the shortest distance between a logical router and the curren physical router tile
|
135 | 143 | // also keep track of the corresponding physical router tile index (within the list)
|
@@ -241,7 +249,7 @@ void create_noc_routers(const t_noc_inf& noc_info, NocStorage* noc_model , std::
|
241 | 249 | return;
|
242 | 250 | }
|
243 | 251 |
|
244 |
| -void create_noc_links(const t_noc_inf* noc_info, NocStorage* noc_model){ |
| 252 | +static void create_noc_links(const t_noc_inf* noc_info, NocStorage* noc_model){ |
245 | 253 | // the ids used to represent the routers in the NoC are not the same as the ones provided by the user in the arch desc file.
|
246 | 254 | // while going through the router connections, the user provided router ids are converted and then stored below before being used
|
247 | 255 | // in the links.
|
|
0 commit comments