Skip to content

Commit ba7b4a1

Browse files
amin1377AlexandreSingerfkosar-qlueqrigigeresk
authored
Update OpenFPGA (#3056)
* [Bison] Raised Minimum Bison Version from 3.0 to 3.3 Raised the minimum Bison version to 3.3 since deprecation warnings were showing up in libblifparse and libsdcparse which could not be resolved unless the Bison version was 3.3. * more fixes for bitstream generation with flat router * [Router] Upstream Fine-Grained Parallel Router (FPT'24) Upstreamed the fine-grained parallel router implementation into the VTR master. The original branch is https://github.com/verilog-to-routing/vtr-verilog-to-routing/tree/mq-parallel-router. Modified the MultiQueue (SPAA'24) implementation and integrated it into the VTR codebase. * [ParallelRouter] Removed Boost from FG Parallel Router The original FG parallel router used to use boost. VTR does not install boost by default. Moved to STL instead. * [Router] Fix Code Formatting Issues * [Router] Added ConnectionRouter Abstraction and Reduced Code Duplication Added a partial abstract class for ConnectionRouter, derived from the pure abstract ConnectionRouterInterface. The SerialConnectionRouter and ParallelConnectionRouter classes are now derived from the ConnectionRouter class, utilizing the common class members and helper functions to reduce code duplication. * [Router] Added Code Comments and Documentation for Connection Routers Added Doxygen-style code comments and documentation for connection routers, including the ConnectionRouter abstract class, the Parallel- ConnectionRouter concrete class, and the SerialConnectionRouter concrete class. Updated the helper messages for command-line options added for parallel connection router. * [Router] Fixed Interface Issues in NestedNetlistRouter and Code Formats Fixed the interface issues of ConnectionRouter in NestedNetlistRouter. Fixed code formats. Fixed typo in read_options.cpp. * [Router] Updated Command-Line Usage for Parallel Connection Router Updated the command-line usage for parallel connection router in both Read the Docs and read_options.cpp. * [Router] Added Regression Tests for Parallel Connection Router Added regression tests for parallel connection router by appending extra sets of configurations to those VTR flow regression tests previously selected by Fahri for testing coarse-grained parallel router. Removed VPR connection router test (vpr/test/test_connection_router.cpp), since it has been out-dated for a very long time and has caused lots of trouble for running VPR C++ tests locally. * Fixed Code Formatting Issue Fixed a weird code formatting issue in libs/librtlnumber/src/include/ internal_bits.hpp. GitHub CI said the file failed dev/check-format.sh, however, the same script runs perfectly in my local environment. Double checked the version of clang-format, which seemed to be the same as CI. Directly copied the file from the GitHub repo to resolve this issue. * [Router] Fixed `No source in route tree` in ParallelConnectionRouter The `No source in route tree` bug in ParallelConnectionRouter (since commit 875b98e) has been fixed. It turns out that putting another member variable `MultiQueueDAryHeap<HeapImplementation::arg_D> heap_` in the derived class ParallelConnectionRouter together with the existing `HeapImplementation heap_` in the base class ConnectionRouter causes the issue. The solution is to keep `heap_` only in the base class and use `ConnectionRouter<MultiQueueDAryHeap<HeapImplementation::arg_D>>` rather than `ConnectionRouter<HeapImplementation>` for deriving the parallel connection router. Please note that ParallelConnectionRouter still has some bugs (i.e., getting stuck in the MultiQueue pop). This commit is not fully working. Please do not use it for any experiments. Updated the previously incorrect command-line options for the parallel connection router in the regression tests. * [AP][MassLegalizer] Revistited Mass Legalizer Found that the mass legalizer was not spreading out the blocks well enough according to the mass. Revistied the spatial partitioning in the mass legalizer. Before, we just cut the window in half in the larger dimension. This was fine, however it may create an inbalanced cut which can cause things to not spread well. Instead, we now search for the best partition by trying different partition lines and computing how balanced the partition is. Although this is more expensive than before, by creating more balanced partitions, it should allow the mass legalizer to converge faster. Time in the mass legalizer is also dominated by partitioning the blocks, so increasing the time to choose the partition line should not have that large of an effect anyways. Found an oversight with how blocks were partitioned when one of the partitions become overfilled. Fixed this issue. * Inverse use of macro_can_be_placed argument check_all_legality to align with meaning * [vpr][pack] fix merge issues w/ flat sync list * make format * [packages] add clang-format * make format 2 * Invalid C++ fix * [docker] set ubuntu version to 24.04 * [dockerfile] enable system-wide python package installation for pip * [dockerfile] add comment * [package] check whehter clang-format-18 package exist * [package] remove deprecated names-only option * [package] remove if condition * [doc] update quick start on installing packages * make format enum class e_rr_type a few remaining t_rr_type vals CHANY ---> t_rr_type::CHANY CHANX ---> t_rr_type::CHANX OPIN ---> t_rr_type::OPIN IPIN ---> t_rr_type::IPIN SINK ---> t_rr_type::SINK SOURCE ---> t_rr_type::SOURCE * [Router] Finally fixed the weird bug in parallel connection router Fixed the weird bug in parallel connection router as mentioned in commit f73212c. The bug occurred because two function parameters 'num_threads' and 'num_queues' have been misplaced when instantiating the MQ_IO. This took two weeks to figure out exactly. The VTR benchmark (`vtr_reg_qor_chain` task) has been tested/passed for different cases (1) 'serial mode' 1T+2Q (1 thread, 2 queues), (2) 2T+4Q, and (3) 4T+2Q. The determinism has also been verified for the VTR benchmark. * [Router] Fixed Code Review Comments and Cleanup Codebase Added more explanation to the command-line options messages and code comments. Cleaned up ParallelConnectionRouter-related codebase. * [doc] clarify that clang-format is not required to build VPR * remove typedef t_rr_type * doxygen comment for Direction * add vtr::array class * make rr_node_typename of type vtr::array to index it only with e_rr_type * add default constructor to vtr::array * access rr_node_indices_ with e_rr_type instead of casting to size_t * add single argument constructor to vtr::array * [Router] Updated Golden Results for Parallel Connection Router CI Tests Updated the golden results for CI tests for parallel connection router: - `vtr_reg_strong/koios_test` - `vtr_reg_strong/strong_flat_router` - `vtr_reg_strong/strong_multiclock` - `vtr_reg_strong/strong_timing` * use vtr::array to index some arrays using e_rr_type * make format * avoid using e_rr_type and casting it in place_macro * [vpr][base] fix assigned pb_graph_pin when graph node is not primitive * [vpr][pack] pass logical type to alloc_and_laod_pb_route * [vpr][pack] update alloc_and_load_pb_route header file * [vpr][pack] fix pb_graph_pin assignment in load_trace_to_pb_route * [test] keep 3d sb and cb tests * [vpr][pack] add intra_lb_pb_pin_lookup_ to cluster legalizer * [vpr][pack] initializer intra_lb_pb_pin_lookup and pass it to alloc_and_load_pb_route * [vpr][pack] use intra_lb_pb_pin_lookup to get pb_pin from pin number * make format * add vtr::array to docs * [vpr][pack] remove casting net id * [vpr][pack] add doxygen comment for alloc_and_load_pb_route * [vpr][pack] remove redundant parameters * [vpr][pack] polish load_trace_to_pb_route * make format * [vpr][pack] fix parameter shadowing * [AP][HotFix] Fixed Bug With Solver Putting Blocks Off-Device After moving fixed blocks to the center of tiles, there is a very small chance that blocks go off the device due to rounding. This is such a small effect that it does not show up locally on my machine, but it shows up on CI. Clamping the positions of blocks after solving to be just within the device region. * Increase the daily stale issue action API call limit * [vpr][pack] add a method to get root_ipin * [vpr][pack] remove unused var * [Router] Added Assert for MQ_IO numQueues and Updated Golden Results Added assert for MultiQueueIO numQueues to ensure it must be greater than two. Updated CI test tasks to ensure the parallel connection router runs in Dijkstra mode to ensure determinism and avoid hanging in CI runs. * [AP][HotFix] Placed Fixed Blocks First During IP The cost terms in the AP initial placer were not placing fixed blocks early enough, causing other blocks to take their place and causing the initial placer to not return a solution. Blocks which have region constraints are now placed first based on how constrained they are. More constrained blocks (can only be placed in a smaller region) will be placed first. Also found that macros that contained fixed blocks were not observing these constraints when calculating the centroid position of the macro. For constrained macros, projected the centroid position onto the partition region to get the closest point in the partition region to the calculated centroid. This new centroid is used to then perform the placement. * [STA] Added Option to Remove Parameters from Post-Implementation Netlist When performing post-implementation timing analysis using OpenSTA, the generated netlist cannot use parameters since each module needs to correspond with a cell in a liberty file. Added a command-line option which tells the netlist writer to not use parameters when generating the netlist. If a primitive cannot be generated without using parameters, it will error out. * [Tatum][Parse] Fixed Extraneous Warning With get_clocks The get_clocks command is used in an SDC file to reference a set of clocks by name using a regex string. The code to do this tries to produce a warning if get_clocks is used on a regex string and no clocks could be found. The issue is that the code to do this was mistakenly producing this warning for each clock in the circuit. For example, if we had {clk1, clk2, clk3} and we wanted to do "get_clocks {clk3}", we will get two warnings since clk1 and clk2 did not match. Fixed this by moving the warning out of one loop nest. * Remove PR staling This commit sets the number of days before marking issues or PRs as stale to 100 years. This number is overriden for issues to be 1 years but stays 100 years for PRs. This means that PR effectively do not get marked as stale. * [LibArchFPGA] Updating Model Data Structures The logical models (the technology-mapped logical blocks) for an architecture were stored using two independent linked lists. One for the library models (the models that all architectures have, such as luts and ffs) and one of the user models. This linked lists were hard to traverse and were injecting pointers all across VPR. Created a new class to store and manage the logical models. This class maintains a unique ID for each logical model (similar to the netlist data structures in VPR). It also contains helper methods to make working with the logical models easier. * fix comments from alex * revert prepacker changes * [vpr][pack] add get_pattern_blocks * [vpr][pack] add blocks in get_all_connected_primitive_pins if they are a part of the pattern * make format * Bump libs/EXTERNAL/libcatch2 from `76f70b1` to `5abfc0a` Bumps [libs/EXTERNAL/libcatch2](https://github.com/catchorg/Catch2) from `76f70b1` to `5abfc0a`. - [Release notes](https://github.com/catchorg/Catch2/releases) - [Commits](catchorg/Catch2@76f70b1...5abfc0a) --- updated-dependencies: - dependency-name: libs/EXTERNAL/libcatch2 dependency-version: 5abfc0aa9c1ef4cb40c9f387495134dab02e1af2 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * [vpr][pack] add more comments * Add helper functions to t_pb_type * Change t_pb_type users to use helper functions * Add documentation for t_pb_type::is_root and is_primitive * Fix formatting in libarchfpga/physical_types.h * [vpr][pack] change count method to find * [Router] Updated the Regression Tests and Corresponding Golden Results Changed `multi_queue_num_threads` and `multi_queue_num_queues` settings in the CI strong regression tests to avoid QoR failure in the CI runs. The coverage of the regression tests for parallel connection router after this change is still fair. * [vpr][CLI] add generate_net_timing_report * [vpr][route] remove debugging msg * [vpr][analysis] add generate_net_timing_report * [vpr][pack] apply formatting comments * make format * [vpr][analysis] add comments * make format * [vpr][CLI] remove generate net timing from CLI parameters and generate the report by default * Unused Packer Options Cleanup (#2976) * Standardized and renamed packer alpha and beta variable. They are now referred to as timing_gain_weight and connection_gain_weight, used as a weight parameter during timing and connection driven clustering respectively. Removed global_clocks, use_attraction_groups, pack_num_moves, pack_move_type from packer. * [APPack] Updated Max Candidate Distance Interface The max candidate distance is used by APPack to decide which molecules to ignore when packing, based on their distance from the cluster being formed. Cleaned up the interface of this by pre-computing the max candidate distance of all logical blocks ahead of time and reading from these pre-computed values during packing. Added a command-line option to allow the user to override some or all of these max distance thresholds. By default, VPR will select values based on the type of logical block and the primitives it contains. Fixed issue with APPack creating too many IO blocks for some circuits due to the max candidate distance thresholds for IO blocks being too low. More tuning should be done on these values once the mass legalizer has been cleaned up a bit more. * [vtr][parse] fix pattern for init place wl * [vpr][analysis] add header for net timing report * [vpr][analysis] add timing format to comments * formatting fix * Revert "[vpr][CLI] remove generate net timing from CLI parameters and generate the report by default" This reverts commit b8289db. * make format * [STA] Generating SDC Commands Post-Implementation Added an option to have VPR generate an SDC file containing the timing commands required for an external timing analysis of the post- implementation netlist to match VPR's timing analysis. * [STA] Added Tutorial for Post-Implementation Timing Analysis Created a tutorial demonstrating how OpenSTA can be used after VPR to perform static timing analysis. * Add artifact upload to nightly test workflow * t_det_routing_arch* --> const t_det_routing_arch& * t_chan_width_dist ---> const t_chan_width_dist& * make format * fix compilation error in route_diag by passing det_routing_arch argument by reference instead of pointer * [task] add generate_net_timing_report to timing report strong test * [doc] add doc for generating _net_timing_report command line option * [vpr][timing] update generate_net_timing_report comment * [vpr][timing] add get_net_bounding_box * [vpr][timing] add net bounding box to the report * [test] add test for net timing report * [doc] update doc with new format to net timing report * [vpr][analysis] fix net timing report bugs + including layer min/max of bb * make format * [vpr][analysis] capture vars by reference in lambda * [packer] Changing the vector of candidate molecules into LazyPopUniquePriorityQueue. The class LazyPopUniquePriorityQueue is a priority queue that allows for lazy deletion of elements. It is implemented using a vector and 2 sets, one set keeps track of the elements in the queue, and the other set keeps track of the elements that are pending deletion. The queue is sorted by the sort-value(SV) of the elements, and the elements are stored in a vector. The set is used to keep track of the elements that are pending deletion, so that they can be removed from the queue when they are popped. The class definiation can be found in vpr/src/util/lazy_pop_unique_priority_queue.h Currently, the class supports the following functions: LazyPopUniquePriorityQueue::push(): Pushes a key-sort-value (K-SV) pair into the priority queue and adds the key to the tracking set. LazyPopUniquePriorityQueue::pop(): Returns the K-SV pair with the highest SV whose key is not pending deletion. LazyPopUniquePriorityQueue::remove(): Removes an element from the priority queue immediately. LazyPopUniquePriorityQueue::remove_at_pop_time(): Removes an element from the priority queue when it is popped. LazyPopUniquePriorityQueue::empty(): Returns whether the queue is empty. LazyPopUniquePriorityQueue::clear(): Clears the priority queue vector and the tracking sets. LazyPopUniquePriorityQueue::size(): Returns the number of elements in the queue. LazyPopUniquePriorityQueue::contains(): Returns true if the key is in the queue, false otherwise. * [packer] recollected golden results for regression basic, basic_odin, strong, strong_odin * [packer] recollected golden results for Nightly * add pointer to VTR9 paper in the readme * Add documentation to explain which parts of VPR are parellel * pass t_chan_width by reference * doxygen comment for alloc_and_load_rr_node_indices * add doxygen comments for load_block_rr_indices() * [AP][Solver] Enabled Parallel Eigen The Eigen solver has the ability to use OpenMP to run the solver computations in parallel. Made the AP flow use the num_workers option to set the number of threads that Eigen can use. VPR did not have the ability to build with OpenMP in its CMAKE. Added an option to the CMAKE to allow the user to enable OpenMP. * remove unused is_flat argument from alloc_and_load_rr_node_indices() and load_block_rr_indices() * use (x, y) convention for CHANX instead of (y, x) * make format * cast x/y to size_t * get rid of warnings in RRSpatialLookup::find_nodes() * Add references to the main VTR papers in the documentation. * Add link to the VTR 9 paper in the documentation * Add link to the VTR 9 paper in the README * add a closing ) to the text printed by node_coordinate_to_string() * fix the x/y mismatch for CHANX nodes in rr_nodes and rr_node_indices * reserve nodes using x/y instead of chan/seg * fix a typo * add rr_graph_genearion directory * resize node lookup for CHANX nodes in RR graph serializer * add rr_node_indices.cpp/.h * add doxygen comment for load_chan_rr_indices() * [Infra] Updated Install Packages Script For Backwards Compatibility The install_apt_packages.sh script is no longer backward compatible with older versions of Ubuntu due to the dependency on clang-format-18. Added an if statement to check if the distribution can support clang-format-18 and only installing it if it can. Added this script to the CI build process so it can always be tested within the CI to prevent future regression. * [RegTest] Disabled `strong_multiclock` test for parallel connection router Temporarily disabled the `strong_multiclock` test in `vtr_reg_strong` CI regression tests for the parallel connection router, due to some random failures as mentioned in Issue #3029. After fixing the problem with the `strong_multiclock` test, this will be reactivated. * [doc] update the doc with new report format * [RegTest] Updated golden results for `strong_multiclock` regression test Removed the golden results of parallel connection router test cases for `strong_multiclock` regression test. * [vpr][analysis] use std::min/max instead of if condition * Add documentation for include sanitization * [vpr][analysis] change report_net_timing format to csv * [vpr][analysis] update comments * [vpr][analysis] print constant nets in the net timing report * [vpr][analysis] apply comments * [vpr][analysis] fix function name * [doc] add net timing report use case * fix a typo * [Infra] Cleaned Up Include Files in VPR Base Directory Many include files in the base directory contained includes to other headers which they do not use. This causes many CPP files to include way more header files than they need, increasing the incremental build time. This process needs to be done on the entire VTR repo, but I found that the base directory was one of the biggest culprits of this and the hardest to untangle. * [Infra] Cleaned Up Header Files in Pack Folder Went through the header files in the pack folder and resolved any unused header files. * [AP] Removed Old Cluster-Level AP Flow Prior to the flat AP flow, a cluster-level AP flow existed in VPR which performed a SimPL-style algorithm on the clusters created during packing before performing a placement quench. Although well-written, this flow was not shown to outperform the SA placer in VPR. It has also been becoming confusing to keep in VPR since the new flat AP flow supercedes it. It is unclear if a cluster-level AP flow will work well with the flat AP flow; however in that case the cluster-level AP flow would be made using the new AP APIs written. Removed the old cluster-level AP flow to reduce confusion. * [Infra] Cleaned Up Header Files in Place Folder * [lib][rr_graph] replace t_rr_type with e_rr_type * [vpr][tileable] remove t_rr_type usage * make is_io_type() a member function of t_physical_tile_type * replace calls to is_io_type() with t_physical_tile_type::is_io() * make format * fix compiler bugs * make format * [lib][libutil] fix size_t issue * inline t_physical_tile_type::is_io() * add doxygen comments for alloc_and_load_tile_rr_node_indices() * [libs][vtrutil] use generate instead of fill to avoid getting potential null pointer dereference * document alloc_and_load_rr_node_indices() arguments * made a few function operating on t_pb_type its member functions * add router_lookahead directory * [STA] Added Multiclock Incremental STA Consistency Check The incremental STA consistency coverage was very good, but was just missing a multiclock circuit with an SDC file. Added a quick test. * [libs][rr_graph] don't reverse xy when calling node lookup * [vpr][util] consider medium node type as inter cluster node --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: AlexandreSinger <[email protected]> Co-authored-by: Fahrican Kosar <[email protected]> Co-authored-by: AlexandreSinger <[email protected]> Co-authored-by: Hang Yan <[email protected]> Co-authored-by: Fred Tombs <[email protected]> Co-authored-by: soheilshahrouz <[email protected]> Co-authored-by: Soheil Shahrouz <[email protected]> Co-authored-by: Amir Poolad <[email protected]> Co-authored-by: Amir Poolad <[email protected]> Co-authored-by: vaughnbetz <[email protected]> Co-authored-by: Fred Tombs <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: James Yen <[email protected]> Co-authored-by: Rongbo Zhang <[email protected]> Co-authored-by: Rongbo Zhang <[email protected]> Co-authored-by: Mohamed Elgammal <[email protected]>
1 parent 7950a1b commit ba7b4a1

File tree

583 files changed

+13272
-12146
lines changed

Some content is hidden

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

583 files changed

+13272
-12146
lines changed

.github/scripts/install_dependencies.sh

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,40 +2,32 @@
22

33
sudo apt update
44

5+
# Required packages specifically for the CI and not VTR in general.
56
sudo apt install -y \
67
autoconf \
78
automake \
89
bash \
9-
bison \
1010
binutils \
1111
binutils-gold \
12-
build-essential \
1312
capnproto \
1413
exuberant-ctags \
1514
curl \
1615
doxygen \
17-
flex \
1816
fontconfig \
1917
gdb \
20-
git \
2118
gperf \
2219
libcairo2-dev \
2320
libcapnp-dev \
24-
libgtk-3-dev \
2521
libevent-dev \
2622
libfontconfig1-dev \
2723
liblist-moreutils-perl \
2824
libncurses5-dev \
29-
libx11-dev \
3025
libxft-dev \
3126
libxml2-utils \
3227
libxml++2.6-dev \
33-
libreadline-dev \
3428
tcllib \
3529
tcl8.6-dev \
36-
libffi-dev \
3730
perl \
38-
pkg-config \
3931
texinfo \
4032
time \
4133
valgrind \
@@ -54,10 +46,10 @@ sudo apt install -y \
5446
clang-15 \
5547
clang-16 \
5648
clang-17 \
57-
clang-18 \
58-
clang-format-18 \
59-
libtbb-dev \
60-
openssl
49+
clang-18
50+
51+
# Standard packages install script.
52+
./install_apt_packages.sh
6153

6254
pip install -r requirements.txt
6355

.github/scripts/install_jammy_dependencies.sh

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,40 +2,32 @@
22

33
sudo apt update
44

5+
# Required packages specifically for the CI and not VTR in general.
56
sudo apt install -y \
67
autoconf \
78
automake \
89
bash \
9-
bison \
1010
binutils \
1111
binutils-gold \
12-
build-essential \
1312
capnproto \
1413
exuberant-ctags \
1514
curl \
1615
doxygen \
17-
flex \
1816
fontconfig \
1917
gdb \
20-
git \
2118
gperf \
2219
libcairo2-dev \
2320
libcapnp-dev \
24-
libgtk-3-dev \
2521
libevent-dev \
2622
libfontconfig1-dev \
2723
liblist-moreutils-perl \
2824
libncurses5-dev \
29-
libx11-dev \
3025
libxft-dev \
3126
libxml2-utils \
3227
libxml++2.6-dev \
33-
libreadline-dev \
3428
tcllib \
3529
tcl8.6-dev \
36-
libffi-dev \
3730
perl \
38-
pkg-config \
3931
texinfo \
4032
time \
4133
valgrind \
@@ -50,9 +42,10 @@ sudo apt install -y \
5042
g++-11 \
5143
gcc-11 \
5244
g++-12 \
53-
gcc-12 \
54-
clang-format-14 \
55-
libtbb-dev
45+
gcc-12
46+
47+
# Standard packages install script.
48+
./install_apt_packages.sh
5649

5750
pip install -r requirements.txt
5851

.github/workflows/nightly_test_manual.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,12 @@ jobs:
104104
run: |
105105
source .venv/bin/activate
106106
./run_reg_test.py -j12 vtr_reg_nightly_test7
107+
108+
- name: Upload regression results
109+
if: success() || failure()
110+
uses: actions/upload-artifact@v4
111+
with:
112+
name: nightly_test_results
113+
path: |
114+
vtr_flow/**/*.log
115+
vtr_flow/**/parse_results*.txt

.github/workflows/stale.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ jobs:
1010
steps:
1111
- uses: actions/stale@v9
1212
with:
13+
# Set default number of days before being marked stale to 100 years
14+
# This will be overriden by "days-before-issue-stale" and "days-before-pr-stale"
15+
# This is done to avoid marking PRs as stale, as it is not something
16+
# we want to do.
17+
days-before-stale: 36500
1318
# The message to be shown for stale issues
1419
stale-issue-message: 'This issue has been inactive for a year and has been marked as stale. It will be closed in 15 days if it continues to be stale. If you believe this is still an issue, please add a comment.'
1520
close-issue-message: 'This issue has been marked stale for 15 days and has been automatically closed.'
@@ -20,6 +25,11 @@ jobs:
2025
# Start from the oldest issues
2126
ascending: true
2227

28+
# Upper limit for number of API calls per day
29+
# This worklfow does 2-3 API calls per issue
30+
# including issues that have been marked stale
31+
operations-per-run: 300
32+
2333
# The configuration below can be used to allow the same behaviour with PRs.
2434
# Since we currently don't want to close old PRs, it is commented out but
2535
# left here in case we change our mind.

CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ option(VTR_ENABLE_CAPNPROTO "Enable capnproto binary serialization support in VP
4343
#Allow the user to decide whether to compile the server module
4444
option(VPR_USE_SERVER "Specify whether vpr enables the server mode" ON)
4545

46-
#Allow the user to enable/disable VPR analytic placement
47-
#VPR option --enable_analytic_placer is also required for Analytic Placement
48-
option(VPR_ANALYTIC_PLACE "Enable analytic placement in VPR." ON)
4946
option(VPR_ENABLE_INTERCHANGE "Enable FPGA interchange." ON)
5047
option(VPR_ENABLE_NOC_SAT_ROUTING "Enable NoC SAT routing." OFF)
5148

Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
FROM ubuntu:22.04
1+
FROM ubuntu:24.04
22
ARG DEBIAN_FRONTEND=noninteractive
33
# set out workspace
44
ENV WORKSPACE=/workspace
55
RUN mkdir -p ${WORKSPACE}
66
WORKDIR ${WORKSPACE}
77
COPY . ${WORKSPACE}
8+
# Required to bypass Python's protection on system-wide package installations in Ubuntu 23.04+.
9+
# This allows pip to install packages globally without using a virtual environment.
10+
ENV PIP_BREAK_SYSTEM_PACKAGES=1
811
# Install and cleanup is done in one command to minimize the build cache size
912
RUN apt-get update -qq \
1013
# Extract package names from install_apt_packages.sh
11-
&& sed '/sudo/d' install_apt_packages.sh | sed '/#/d' | sed 's/ \\//g' | sed '/^$/d' | sed '/^[[:space:]]*$/d' \
14+
&& sed '/sudo/d' install_apt_packages.sh | sed '/#/d' | sed '/if\s.*then$/d' | sed '/else$/d' | sed '/fi$/d' | sed '/echo\s/d' | sed 's/ \\//g' | sed '/^$/d' | sed '/^[[:space:]]*$/d' | sed 's/\s//g' \
1215
# Install packages
1316
| xargs apt-get -y install --no-install-recommends \
1417
# Additional packages not listed in install_apt_packages.sh
1518
&& apt-get -y install --no-install-recommends \
1619
wget \
1720
ninja-build \
18-
default-jre \
1921
libeigen3-dev \
20-
libtbb-dev \
2122
python3-pip \
22-
git \
2323
time \
2424
# Install python packages
2525
&& pip install -r requirements.txt \
@@ -29,4 +29,4 @@ RUN apt-get update -qq \
2929
# Build VTR
3030
RUN rm -rf build && make -j$(nproc) && make install
3131
# Container's default launch command
32-
SHELL ["/bin/bash", "-c"]
32+
SHELL ["/bin/bash", "-c"]

README.developers.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,29 @@ For large scale reformatting (should only be performed by VTR maintainers) the s
179179

180180
Python files are automatically checked using `pylint` to ensure they follow established Python conventions. You can run `pylint` on the entire repository by running `./dev/pylint_check.py`. Certain files which were created before we adopted Python lint checking are grandfathered and are not checked. To check *all* files, provide the `--check_grandfathered` argument. You can also manually check individual files using `./dev/pylint_check.py <path_to_file1> <path_to_file2> ...`.
181181

182+
# Sanitizing Includes
183+
184+
You can use include-what-you-use or the clangd language server to make sure includes are correct and you don't have missing or unused includes.
185+
186+
## include-what-you-use
187+
188+
First, install include-what-you-use. Ubuntu/Debian users can run `sudo apt install iwyu` and Fedora/RHEL users can run `sudo dnf install iwyu`. You can then compile VTR with include-what-you-use enabled to get diagnostic messages about includes in all files with the following command:
189+
190+
```
191+
make CMAKE_PARAMS="-DCMAKE_CXX_INCLUDE_WHAT_YOU_USE=include-what-you-use"
192+
```
193+
194+
Note that this method checks all source files and the diagnostic messages can be very long.
195+
196+
## clangd language server
197+
198+
Alternatively, if your editor supports clangd, you can use it to get diagnostic messages for the specific file you are working with. Visual Studio Code users can use the clangd extension to use clangd instead of Microsoft's C/C++ extension. To enable include diagnostics, create a file named `.clangd` in VTR root directory and add the following lines to it:
199+
```
200+
Diagnostics:
201+
UnusedIncludes: Strict
202+
MissingIncludes: Strict
203+
```
204+
182205
# Running Tests
183206

184207
VTR has a variety of tests which are used to check for correctness, performance and Quality of Result (QoR).

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ See the [full license](LICENSE.md) for details.
3636
## How to Cite
3737
The following paper may be used as a general citation for VTR:
3838

39-
K. E. Murray, O. Petelin, S. Zhong, J. M. Wang, M. ElDafrawy, J.-P. Legault, E. Sha, A. G. Graham, J. Wu, M. J. P. Walker, H. Zeng, P. Patros, J. Luu, K. B. Kent and V. Betz "VTR 8: High Performance CAD and Customizable FPGA Architecture Modelling", ACM TRETS, 2020.
39+
M. A. Elgammal, A. Mohaghegh, S. G. Shahrouz, F. Mahmoudi, F. Kosar, K. Talaei, J. Fife, D. Khadivi, K. Murray, A. Boutros, K. B. Kent, J. Goeders, and V. Betz "VTR 9: Open-Source CAD for Fabric and Beyond FPGA Architecture Exploration", ACM TRETS, 2025. [PDF](https://dl.acm.org/doi/epdf/10.1145/3734798)
4040

4141
Bibtex:
4242
```
43-
@article{vtr8,
44-
title={VTR 8: High Performance CAD and Customizable FPGA Architecture Modelling},
45-
author={Murray, Kevin E. and Petelin, Oleg and Zhong, Sheng and Wang, Jai Min and ElDafrawy, Mohamed and Legault, Jean-Philippe and Sha, Eugene and Graham, Aaron G. and Wu, Jean and Walker, Matthew J. P. and Zeng, Hanqing and Patros, Panagiotis and Luu, Jason and Kent, Kenneth B. and Betz, Vaughn},
43+
@article{vtr9,
44+
title={VTR 9: Open-Source CAD for Fabric and Beyond FPGA Architecture Exploration},
45+
author={Elgammal, Mohamed A. and Mohaghegh, Amin and Shahrouz, Soheil G. and Mahmoudi, Fatemehsadat and Kosar, Fahrican and Talaei, Kimia and Fife, Joshua and Khadivi, Daniel and Murray, Kevin and Boutros, Andrew and Kent, Kenneth B. and Goeders, Jeff and Betz, Vaughn},
4646
journal={ACM Trans. Reconfigurable Technol. Syst.},
47-
year={2020}
47+
year={2025}
4848
}
4949
```
5050

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
==========
2+
Connection Router
3+
==========
4+
5+
ConnectionRouter
6+
---------
7+
.. doxygenfile:: connection_router.h
8+
:project: vpr
9+
10+
SerialConnectionRouter
11+
----------
12+
.. doxygenclass:: SerialConnectionRouter
13+
:project: vpr
14+
15+
ParallelConnectionRouter
16+
----------
17+
.. doxygenclass:: ParallelConnectionRouter
18+
:project: vpr

doc/src/api/vprinternals/vpr_router.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ VPR Router
99

1010
router_heap
1111
router_lookahead
12+
router_connection_router

doc/src/api/vtrutil/containers.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ vtr_vector
88
:project: vtr
99
:sections: briefdescription detaileddescription innernamespace innerclass public-func typedef func
1010

11+
vtr_array
12+
----------
13+
.. doxygenfile:: vtr_array.h
14+
:project: vtr
15+
:sections: briefdescription detaileddescription innernamespace innerclass public-func typedef func
16+
1117
vtr_small_vector
1218
----------------
1319
.. doxygenclass:: vtr::small_vector

doc/src/quickstart/index.rst

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,23 @@ If you cloned the repository, you will need to set up the git submodules (if you
2323
2424
> git submodule init
2525
> git submodule update
26-
27-
VTR requires several system packages and Python packages to build and run the flow. Ubuntu users can install the required system packages using the following command (this works on Ubuntu 18.04, 20.04, 22.04 and 24.04, but you may require different packages on other Linux distributions). Our CI testing is on Ubuntu 24.04, so that is the best tested platform and recommended for development.
26+
27+
VTR requires several system and Python packages to build and run the flow. Ubuntu users can install the required system packages using the provided script or the command below. This setup works on Ubuntu 18.04, 20.04, 22.04, and 24.04, but note that some packages (such as ``clang-format-18``) are only available by default on Ubuntu 24.04. On older versions, this package will not be installed unless you manually add the appropriate LLVM APT repository.
28+
29+
To install ``clang-format-18`` on older Ubuntu versions (e.g., 20.04 or 22.04), you must add the LLVM repository manually. Note that this tool is only required if you want to run ``make format`` to automatically fix formatting issues in the code. It is not necessary for building or running VPR.
30+
31+
.. code-block:: bash
32+
33+
sudo apt install wget gnupg lsb-release
34+
wget https://apt.llvm.org/llvm.sh
35+
chmod +x llvm.sh
36+
sudo ./llvm.sh 18
37+
38+
After that, you can install ``clang-format-18`` using:
39+
40+
.. code-block:: bash
41+
42+
sudo apt install clang-format-18
2843
2944
.. code-block:: bash
3045

doc/src/tutorials/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ Tutorials
1010
arch/index
1111
titan_benchmarks/index
1212
timing_simulation/index
13+
timing_analysis/index

0 commit comments

Comments
 (0)