-
Notifications
You must be signed in to change notification settings - Fork 414
Move rr_graph_reader & rr_graph_writer to librrgraph. #2101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
vaughnbetz
merged 25 commits into
verilog-to-routing:master
from
oscarcheng105:librrgraph_vpr
Aug 11, 2022
Merged
Changes from 10 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
e785f1c
Files moved to Librrgraph and Files added to Libarchfpga
oscarcheng105 377186b
Merge branch 'verilog-to-routing:master' into master
oscarcheng105 93a7dc6
Fix input parameters for load_rr_graph(), write_rr_graph(), check_rr_…
oscarcheng105 b42102a
Fix input parameters of add_rr_edge_metadata(), add_rr_node_metadata(…
oscarcheng105 5db7988
[vpr] move VTR_ENABLE_CAPNPROTO to librrgraph CMakeList.txt
oscarcheng105 0bb613f
[vpr] move cmake dependencies in vpr/src/route to librrgraph/src/base/
oscarcheng105 3cccda7
Merge branch 'verilog-to-routing:master' into librrgraph_vpr
oscarcheng105 e428f8a
[vpr] clean up dead code
oscarcheng105 a30ca69
[vpr] clean up dead code 2
oscarcheng105 7840120
[vpr] format fix
oscarcheng105 3200ba9
[vpr] move files to corresponding folder in librrgraph/src
oscarcheng105 916c6fe
[vpr] fix parameters of check_rr_graph, check_rr_node, RrGraphSeriali…
oscarcheng105 ff83a48
[vpr] move histogram to libarchfpga, merge rr_graph_util, add alloc_a…
oscarcheng105 77971b0
Merge branch 'verilog-to-routing:master' into librrgraph_vpr
oscarcheng105 bfcb7ec
[vpr] move describe_rr_node.cpp to librrgraph/src/utils
oscarcheng105 c3ff424
[vpr] add get_parallel_segs.cpp to librrgraph
oscarcheng105 ca391d3
[vpr] format fix
oscarcheng105 70cc0b4
[vpr] format
oscarcheng105 9682216
[vpr] format fix 2
oscarcheng105 2280445
[vpr] categorize files to rr_graph_type & rr_graph_cost in librrgraph
oscarcheng105 2aa7ce6
Merge branch 'verilog-to-routing:master' into librrgraph_vpr
oscarcheng105 4a4eb96
[vpr] code cleanup
oscarcheng105 783fa6b
Merge branch 'librrgraph_vpr' of github.com:oscarcheng105/vtr-verilog…
oscarcheng105 e900c68
[vpr] doc update
oscarcheng105 1b8d060
Merge branch 'verilog-to-routing:master' into librrgraph_vpr
oscarcheng105 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#ifndef BASE_COST_TYPE_H | ||
#define BASE_COST_TYPE_H | ||
|
||
enum e_base_cost_type { | ||
DELAY_NORMALIZED, | ||
DELAY_NORMALIZED_LENGTH, | ||
DELAY_NORMALIZED_FREQUENCY, | ||
DELAY_NORMALIZED_LENGTH_FREQUENCY, | ||
DELAY_NORMALIZED_LENGTH_BOUNDED, | ||
DEMAND_ONLY, | ||
DEMAND_ONLY_NORMALIZED_LENGTH | ||
}; | ||
|
||
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#ifndef CHAN_WIDTH_H | ||
#define CHAN_WIDTH_H | ||
|
||
#include <vector> | ||
|
||
struct t_chan_width { | ||
int max = 0; | ||
int x_max = 0; | ||
int y_max = 0; | ||
int x_min = 0; | ||
int y_min = 0; | ||
std::vector<int> x_list; | ||
std::vector<int> y_list; | ||
}; | ||
|
||
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#ifndef COST_INDICES_H | ||
#define COST_INDICES_H | ||
|
||
///@brief Index of the SOURCE, SINK, OPIN, IPIN, etc. member of device_ctx.rr_indexed_data. | ||
enum e_cost_indices { | ||
SOURCE_COST_INDEX = 0, | ||
SINK_COST_INDEX, | ||
OPIN_COST_INDEX, | ||
IPIN_COST_INDEX, | ||
CHANX_COST_INDEX_START | ||
}; | ||
|
||
#endif |
1 change: 0 additions & 1 deletion
1
vpr/src/base/device_grid.cpp → libs/libarchfpga/src/device_grid.cpp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#ifndef GRAPH_TYPE_H | ||
#define GRAPH_TYPE_H | ||
|
||
enum e_graph_type { | ||
GRAPH_GLOBAL, /* One node per channel with wire capacity > 1 and full connectivity */ | ||
GRAPH_BIDIR, /* Detailed bidirectional graph */ | ||
GRAPH_UNIDIR, /* Detailed unidir graph, untilable */ | ||
/* RESEARCH TODO: Get this option debugged */ | ||
GRAPH_UNIDIR_TILEABLE /* Detail unidir graph with wire groups multiples of 2*L */ | ||
}; | ||
typedef enum e_graph_type t_graph_type; | ||
|
||
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#ifndef ROUTE_TYPE_H | ||
#define ROUTE_TYPE_H | ||
|
||
enum e_route_type { | ||
GLOBAL, | ||
DETAILED | ||
}; | ||
|
||
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#ifndef UNIFIED_TO_PARALLEL_SEG_INDEX_H | ||
#define UNIFIED_TO_PARALLEL_SEG_INDEX_H | ||
|
||
#include "physical_types.h" | ||
|
||
/* This map is used to get indices w.r.t segment_inf_x or segment_inf_y based on parallel_axis of a segment, | ||
* from indices w.r.t the **unified** segment vector, segment_inf in devices context which stores all segments | ||
* regardless of their axis. (see get_parallel_segs for more details)*/ | ||
typedef std::unordered_multimap<size_t, std::pair<size_t, e_parallel_axis>> t_unified_to_parallel_seg_index; | ||
|
||
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#ifndef ALLOC_AND_LOAD_RR_INDEXED_DATA_H | ||
oscarcheng105 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
#define ALLOC_AND_LOAD_RR_INDEXED_DATA_H | ||
|
||
#include "physical_types.h" | ||
|
||
void alloc_and_load_rr_indexed_data(const std::vector<t_segment_inf>& segment_inf, | ||
const std::vector<t_segment_inf>& segment_inf_x, | ||
const std::vector<t_segment_inf>& segment_inf_y, | ||
int wire_to_ipin_switch, | ||
enum e_base_cost_type base_cost_type); | ||
|
||
#endif |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.