Skip to content

Commit 47d0622

Browse files
committed
Fixed merge conflict
2 parents 9d4ed2e + 34f583a commit 47d0622

File tree

77 files changed

+1153
-18350
lines changed

Some content is hidden

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

77 files changed

+1153
-18350
lines changed

.github/kokoro/continuous/nightly.cfg

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ action {
1616
regex: "**/place.log"
1717
regex: "**/route.log"
1818
regex: "**/*_qor.csv"
19+
regex: "**/*.out.gz"
20+
regex: "**/vpr_stdout.log.gz"
21+
regex: "**/parse_results.txt.gz"
22+
regex: "**/qor_results.txt.gz"
23+
regex: "**/pack.log.gz"
24+
regex: "**/place.log.gz"
25+
regex: "**/route.log.gz"
26+
regex: "**/*_qor.csv.gz"
27+
1928
strip_prefix: "github/vtr-verilog-to-routing/"
2029
}
2130
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
build_file: "vtr-verilog-to-routing/.github/kokoro/run-vtr.sh"
4+
5+
# 12 hours
6+
timeout_mins: 720
7+
8+
action {
9+
define_artifacts {
10+
# File types
11+
regex: "**/*.out"
12+
regex: "**/vpr_stdout.log"
13+
regex: "**/parse_results.txt"
14+
regex: "**/qor_results.txt"
15+
regex: "**/pack.log"
16+
regex: "**/place.log"
17+
regex: "**/route.log"
18+
regex: "**/*_qor.csv"
19+
strip_prefix: "github/vtr-verilog-to-routing/"
20+
}
21+
}
22+
23+
env_vars {
24+
key: "KOKORO_TYPE"
25+
value: "continuous"
26+
}
27+
28+
env_vars {
29+
key: "KOKORO_DIR"
30+
value: "vtr-verilog-to-routing"
31+
}
32+
33+
env_vars {
34+
key: "VTR_DIR"
35+
value: "vtr-verilog-to-routing"
36+
}
37+
38+
#Use default build configuration
39+
env_vars {
40+
key: "VTR_CMAKE_PARAMS"
41+
value: ""
42+
}
43+
44+
env_vars {
45+
key: "VTR_TEST"
46+
value: "odin_reg_strong"
47+
}
48+
49+
#Options for run_reg_test.py
50+
# -show_failures: show tool failures in main log output
51+
env_vars {
52+
key: "VTR_TEST_OPTIONS"
53+
value: "-show_failures"
54+
}
55+
56+
env_vars {
57+
key: "NUM_CORES"
58+
value: "3"
59+
}

.github/kokoro/continuous/strong.cfg

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ action {
1616
regex: "**/place.log"
1717
regex: "**/route.log"
1818
regex: "**/*_qor.csv"
19+
regex: "**/*.out.gz"
20+
regex: "**/vpr_stdout.log.gz"
21+
regex: "**/parse_results.txt.gz"
22+
regex: "**/qor_results.txt.gz"
23+
regex: "**/pack.log.gz"
24+
regex: "**/place.log.gz"
25+
regex: "**/route.log.gz"
26+
regex: "**/*_qor.csv.gz"
1927
strip_prefix: "github/vtr-verilog-to-routing/"
2028
}
2129
}

.github/kokoro/continuous/strong_sanitized.cfg

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ action {
1616
regex: "**/place.log"
1717
regex: "**/route.log"
1818
regex: "**/*_qor.csv"
19+
regex: "**/*.out.gz"
20+
regex: "**/vpr_stdout.log.gz"
21+
regex: "**/parse_results.txt.gz"
22+
regex: "**/qor_results.txt.gz"
23+
regex: "**/pack.log.gz"
24+
regex: "**/place.log.gz"
25+
regex: "**/route.log.gz"
26+
regex: "**/*_qor.csv.gz"
27+
1928
strip_prefix: "github/vtr-verilog-to-routing/"
2029
}
2130
}

.github/kokoro/continuous/weekly.cfg

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ action {
1616
regex: "**/place.log"
1717
regex: "**/route.log"
1818
regex: "**/*_qor.csv"
19+
regex: "**/*.out.gz"
20+
regex: "**/vpr_stdout.log.gz"
21+
regex: "**/parse_results.txt.gz"
22+
regex: "**/qor_results.txt.gz"
23+
regex: "**/pack.log.gz"
24+
regex: "**/place.log.gz"
25+
regex: "**/route.log.gz"
26+
regex: "**/*_qor.csv.gz"
27+
1928
strip_prefix: "github/vtr-verilog-to-routing/"
2029
}
2130
}

.github/kokoro/presubmit/nightly.cfg

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ action {
1616
regex: "**/place.log"
1717
regex: "**/route.log"
1818
regex: "**/*_qor.csv"
19+
regex: "**/*.out.gz"
20+
regex: "**/vpr_stdout.log.gz"
21+
regex: "**/parse_results.txt.gz"
22+
regex: "**/qor_results.txt.gz"
23+
regex: "**/pack.log.gz"
24+
regex: "**/place.log.gz"
25+
regex: "**/route.log.gz"
26+
regex: "**/*_qor.csv.gz"
1927
strip_prefix: "github/vtr-verilog-to-routing/"
2028
}
2129
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
build_file: "vtr-verilog-to-routing/.github/kokoro/run-vtr.sh"
4+
5+
# 12 hours
6+
timeout_mins: 720
7+
8+
action {
9+
define_artifacts {
10+
# File types
11+
regex: "**/*.out"
12+
regex: "**/vpr_stdout.log"
13+
regex: "**/parse_results.txt"
14+
regex: "**/qor_results.txt"
15+
regex: "**/pack.log"
16+
regex: "**/place.log"
17+
regex: "**/route.log"
18+
regex: "**/*_qor.csv"
19+
strip_prefix: "github/vtr-verilog-to-routing/"
20+
}
21+
}
22+
23+
env_vars {
24+
key: "KOKORO_TYPE"
25+
value: "presubmit"
26+
}
27+
28+
env_vars {
29+
key: "KOKORO_DIR"
30+
value: "vtr-verilog-to-routing"
31+
}
32+
33+
env_vars {
34+
key: "VTR_DIR"
35+
value: "vtr-verilog-to-routing"
36+
}
37+
38+
#Use default build configuration
39+
env_vars {
40+
key: "VTR_CMAKE_PARAMS"
41+
value: ""
42+
}
43+
44+
env_vars {
45+
key: "VTR_TEST"
46+
value: "odin_reg_strong"
47+
}
48+
49+
#Options for run_reg_test.py
50+
# -show_failures: show tool failures in main log output
51+
env_vars {
52+
key: "VTR_TEST_OPTIONS"
53+
value: "-show_failures"
54+
}
55+
56+
env_vars {
57+
key: "NUM_CORES"
58+
value: "3"
59+
}

.github/kokoro/run-vtr.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ source $SCRIPT_DIR/steps/hostinfo.sh
1616
# Output git information
1717
source $SCRIPT_DIR/steps/git.sh
1818

19-
if [ $VTR_TEST == "vtr_reg_strong" ]; then
19+
if [ $VTR_TEST == "vtr_reg_strong" ] || [ $VTR_TEST == "odin_reg_strong" ]; then
2020
source $SCRIPT_DIR/steps/vtr-min-setup.sh
2121
else
2222
source $SCRIPT_DIR/steps/vtr-full-setup.sh

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ jobs:
199199
./.github/travis/setup.sh
200200
201201
ODINII:
202-
name: 'ODIN-II Micro Tests'
202+
name: 'ODIN-II Basic Tests'
203203
runs-on: ubuntu-18.04
204204
steps:
205205

@@ -219,7 +219,7 @@ jobs:
219219
source .github/travis/common.sh
220220
./.github/travis/setup.sh
221221
./.github/travis/build.sh
222-
./run_reg_test.py odin_reg_micro -show_failures -j2
222+
./run_reg_test.py odin_reg_basic -show_failures -j2
223223
./.github/travis/setup.sh
224224
225225

ODIN_II/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ endforeach()
189189
#Supress IPO link warnings if IPO is enabled
190190
get_target_property(ODIN_USES_IPO odin_II INTERPROCEDURAL_OPTIMIZATION)
191191
if (ODIN_USES_IPO)
192-
set_target_properties(odin_II PROPERTIES LINK_FLAGS ${IPO_LINK_WARN_SUPRESS_FLAGS})
192+
set_property(TARGET odin_II APPEND PROPERTY LINK_FLAGS ${IPO_LINK_WARN_SUPRESS_FLAGS})
193193
endif()
194194

195195
#add strict odin compiler flags, if set

ODIN_II/SRC/ast_elaborate.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1813,8 +1813,11 @@ ast_node_t* reduce_expressions(ast_node_t* node, sc_hierarchy* local_ref, long*
18131813

18141814
vtr::free(max_size);
18151815

1816-
/* cast to unsigned if necessary */
1817-
if (node_is_constant(node->children[1])) {
1816+
/*
1817+
* cast to unsigned if necessary
1818+
* Concatenate results are unsigned, regardless of the operands. IEEE.1364-2005 pp.65
1819+
*/
1820+
if (node->children[0]->type != CONCATENATE && node_is_constant(node->children[1])) {
18181821
char* id = NULL;
18191822
if (node->children[0]->type == IDENTIFIERS) {
18201823
id = node->children[0]->types.identifier;

ODIN_II/regression_test/benchmark/suite/light_suite/task_list.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ regression_test/benchmark/task/syntax
99
regression_test/benchmark/task/FIR
1010
regression_test/benchmark/task/micro
1111
regression_test/benchmark/suite/complex_synthesis_suite
12+
regression_test/benchmark/suite/vtr_multiclock_suite
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
vtr::vtr_reg_multiclock

ODIN_II/verify_odin.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1255,7 +1255,7 @@ FILTERED_VTR_TASK_PATH="${NEW_RUN_DIR}/vtr/task_list.txt"
12551255
function run_vtr_reg() {
12561256
pushd "${VTR_DIR}" &> /dev/null
12571257
RELATIVE_PATH_TO_TEST=$(realapath_from "${FILTERED_VTR_TASK_PATH}" "${VTR_REG_DIR}")
1258-
/usr/bin/env perl run_reg_test.py -j "${_NUMBER_OF_PROCESS}" "${RELATIVE_PATH_TO_TEST}"
1258+
/usr/bin/env perl run_reg_test.py -j "${_NUMBER_OF_PROCESS}" $(dirname ${RELATIVE_PATH_TO_TEST})
12591259
popd &> /dev/null
12601260
}
12611261

@@ -1277,7 +1277,7 @@ function filter_vtr_test() {
12771277
pushd "${VTR_REG_DIR}" &> /dev/null
12781278
for test in $(cat "${VTR_TASK_PATH}")
12791279
do
1280-
if grep -E "circuit_list_add=.*\.v" "${test/regression_tests\//}/config/config.txt" &> "/dev/null"
1280+
if grep -E "circuit_list_add=.*\.v" "${VTR_REG_DIR/regression_tests}${test}/config/config.txt" &> "/dev/null"
12811281
then
12821282
echo $test >> "${FILTERED_VTR_TASK_PATH}";
12831283
fi

README.developers.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ The overall approach is similar, but we call out the differences below.
7272
7373
8. Create a Pull Request (PR) to request your changes be merged into VTR.
7474
75-
* Navitage to your branch on GitHub
75+
* Navigate to your branch on GitHub
7676
7777
a. **External Developers**
7878
@@ -92,7 +92,7 @@ The overall approach is similar, but we call out the differences below.
9292
9393
## Commit Messages
9494
95-
Commit messagaes are an important part of understanding the code base and it's history.
95+
Commit messages are an important part of understanding the code base and it's history.
9696
It is therefore *extremely* important to provide the following information in the commit message:
9797
9898
* What is being changed?
@@ -285,14 +285,14 @@ $ ./run_reg_test.py vtr_reg_basic vtr_reg_strong -j4
285285

286286
Odin has its own set of tests to verify the correctness of its synthesis results:
287287

288-
* `odin_reg_micro`: ~2 minutes serial
289-
* `odin_reg_full`: ~6 minutes serial
288+
* `odin_reg_basic`: ~2 minutes serial
289+
* `odin_reg_strong`: ~6 minutes serial
290290

291291
These can be run with:
292292
```shell
293293
#From the VTR root directory
294-
$ ./run_reg_test.py odin_reg_micro
295-
$ ./run_reg_test.py odin_reg_full
294+
$ ./run_reg_test.py odin_reg_basic
295+
$ ./run_reg_test.py odin_reg_strong
296296
```
297297
and should be used when making changes to Odin.
298298

blifexplorer/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ else()
5959
#Supress IPO link warnings if IPO is enabled
6060
get_target_property(TEST_BLIFEXPLORER_USES_IPO blifexplorer INTERPROCEDURAL_OPTIMIZATION)
6161
if (TEST_BLIFEXPLORER_USES_IPO)
62-
set_target_properties(blifexplorer PROPERTIES LINK_FLAGS ${IPO_LINK_WARN_SUPRESS_FLAGS})
62+
set_property(TARGET blifexplorer APPEND PROPERTY LINK_FLAGS ${IPO_LINK_WARN_SUPRESS_FLAGS})
6363
endif()
6464

6565

dev/pylint_check.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090

9191

9292
class TermColor:
93-
""" Terminal codes for printing in color """
93+
"""Terminal codes for printing in color"""
9494

9595
# pylint: disable=too-few-public-methods
9696

@@ -105,14 +105,14 @@ class TermColor:
105105

106106

107107
def error(*msg, returncode=-1):
108-
""" Print an error message and exit program """
108+
"""Print an error message and exit program"""
109109

110110
print(TermColor.RED + "ERROR:", " ".join(str(item) for item in msg), TermColor.END)
111111
sys.exit(returncode)
112112

113113

114114
def expand_paths():
115-
""" Build a list of all python files to process by going through 'paths_to_lint' """
115+
"""Build a list of all python files to process by going through 'paths_to_lint'"""
116116

117117
paths = []
118118
for (path, is_recursive) in paths_to_lint:

libs/EXTERNAL/libargparse/src/argparse.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include <cassert>
55
#include <string>
66
#include <set>
7+
#include <limits>
78

89
#include "argparse.hpp"
910
#include "argparse_util.hpp"

libs/EXTERNAL/libblifparse/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ if (USES_IPO)
5757
CHECK_CXX_COMPILER_FLAG(${flag} CXX_COMPILER_SUPPORTS_${flag})
5858
if(CXX_COMPILER_SUPPORTS_${flag})
5959
#Flag supported, so enable it
60-
set_target_properties(blifparse_test PROPERTIES LINK_FLAGS ${flag})
60+
set_property(TARGET blifparse_test APPEND PROPERTY LINK_FLAGS ${flag})
6161
endif()
6262
endforeach()
6363
endif()
@@ -69,4 +69,4 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
6969
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/test/test_parser.sh ${CMAKE_CURRENT_SOURCE_DIR}/test/*/*.blif ${CMAKE_CURRENT_SOURCE_DIR}/test/*/*.eblif)
7070
endif()
7171

72-
install(TARGETS libblifparse blifparse_test DESTINATION bin)
72+
install(TARGETS libblifparse DESTINATION bin)

libs/EXTERNAL/libsdcparse/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ if (USES_IPO)
6161
CHECK_CXX_COMPILER_FLAG(${flag} CXX_COMPILER_SUPPORTS_${flag})
6262
if(CXX_COMPILER_SUPPORTS_${flag})
6363
#Flag supported, so enable it
64-
set_target_properties(sdcparse_test PROPERTIES LINK_FLAGS ${flag})
64+
set_property(TARGET sdcparse_test APPEND PROPERTY LINK_FLAGS ${flag})
6565
endif()
6666
endforeach()
6767
endif()
6868

69-
install(TARGETS libsdcparse sdcparse_test DESTINATION bin)
69+
install(TARGETS libsdcparse DESTINATION bin)

libs/libarchfpga/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ target_link_libraries(read_arch libarchfpga)
3030
#Supress IPO link warnings if IPO is enabled
3131
get_target_property(READ_ARCH_USES_IPO read_arch INTERPROCEDURAL_OPTIMIZATION)
3232
if (READ_ARCH_USES_IPO)
33-
set_target_properties(read_arch PROPERTIES LINK_FLAGS ${IPO_LINK_WARN_SUPRESS_FLAGS})
33+
set_property(TARGET read_arch APPEND PROPERTY LINK_FLAGS ${IPO_LINK_WARN_SUPRESS_FLAGS})
3434
endif()
3535

3636
install(TARGETS libarchfpga read_arch DESTINATION bin)

libs/liblog/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ set_target_properties(liblog PROPERTIES PREFIX "") #Avoid extra 'lib' prefix
2121
add_executable(test_log ${EXEC_SOURCES})
2222
target_link_libraries(test_log liblog)
2323

24-
install(TARGETS test_log liblog DESTINATION bin)
24+
install(TARGETS liblog DESTINATION bin)

0 commit comments

Comments
 (0)