Skip to content

Commit 3eddd97

Browse files
authored
Merge pull request #2 from verilog-to-routing/master
Pulling down changes to VTR upstream
2 parents ed15840 + 7465954 commit 3eddd97

File tree

152 files changed

+40509
-2975
lines changed

Some content is hidden

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

152 files changed

+40509
-2975
lines changed

.github/kokoro/continuous/strong_sanitized.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
build_file: "vtr-verilog-to-routing/.github/kokoro/run-vtr.sh"
44

5-
# 1 hour
6-
timeout_mins: 60
5+
# 2 hour
6+
timeout_mins: 120
77

88
action {
99
define_artifacts {

.github/kokoro/presubmit/strong_sanitized.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
build_file: "vtr-verilog-to-routing/.github/kokoro/run-vtr.sh"
44

5-
# 1 hour
6-
timeout_mins: 60
5+
# 2 hour
6+
timeout_mins: 120
77

88
action {
99
define_artifacts {

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ jobs:
142142
script:
143143
- ./.github/travis/build.sh
144144
#We skip QoR since we are only checking for errors in sanitizer runs
145-
- travis_wait 30 ./run_reg_test.pl vtr_reg_basic -show_failures -skip_qor -j2
145+
- travis_wait 50 ./run_reg_test.pl vtr_reg_basic -show_failures -skip_qor -j2
146146
#Currently strong regression with sanitizers is disabled as it exceeds the maximum travis job run-time
147147
#- stage: Test
148148
#name: "Sanitized Strong Regression Tests"

BUILDING.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,24 @@ apt-get install \
9494
ctags
9595
```
9696

97+
#### Using Nix ####
98+
99+
Although the recommended platform is Debian or Ubuntu, Nix can be used to build VTR on other platforms, such as MacOS.
100+
101+
If you don't have [Nix](https://nixos.org/nix/), you can [get it](https://nixos.org/nix/download.html) with:
102+
103+
```shell
104+
$ curl -L https://nixos.org/nix/install | sh
105+
```
106+
107+
These commands will set up dependencies for Linux and MacOS and build VTR:
108+
109+
```shell
110+
#In the VTR root
111+
$ nix-shell dev/nix/shell.nix
112+
$ make
113+
```
114+
97115
### Building using the Makefile wrapper ###
98116
Run `make` from the root of the VTR source tree
99117

ODIN_II/Makefile

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,16 +112,30 @@ test:
112112
./verify_odin.sh -j $(NB_OF_PROCESS) \
113113
-t regression_test/benchmark/suite/heavy_suite
114114

115-
qor:
115+
generate_expectation:
116116
# rebuild with sanitize flags on to run the same test as travis
117-
$(MAKE) sanitize
117+
$(MAKE) sanitize
118118
./verify_odin.sh -j $(NB_OF_PROCESS) \
119-
--regenerate_qor \
119+
--generate_expectation\
120120
-t regression_test/benchmark/suite/light_suite \
121121
-t vtr_reg_basic \
122-
-t vtr_reg_strong
123-
# larger test should run with regular flags to speed up the process
122+
-t vtr_reg_strong || true
123+
# larger test should run with regular flags to speed up the process
124+
$(MAKE) build
125+
./verify_odin.sh -j $(NB_OF_PROCESS) \
126+
--generate_expectation \
127+
-t regression_test/benchmark/suite/heavy_suite
128+
129+
regenerate_expectation:
130+
# rebuild with sanitize flags on to run the same test as travis
131+
$(MAKE) sanitize
132+
./verify_odin.sh -j $(NB_OF_PROCESS) \
133+
--regenerate_expectation\
134+
-t regression_test/benchmark/suite/light_suite \
135+
-t vtr_reg_basic \
136+
-t vtr_reg_strong || true
137+
# larger test should run with regular flags to speed up the process
124138
$(MAKE) build
125139
./verify_odin.sh -j $(NB_OF_PROCESS) \
126-
--regenerate_qor \
140+
--regenerate_expectation \
127141
-t regression_test/benchmark/suite/heavy_suite

ODIN_II/SRC/adders.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ void declare_hard_adder(nnode_t* node) {
146146

147147
/* See if this size instance of adder exists? */
148148
if (hard_adders == NULL)
149-
warning_message(NETLIST_ERROR, node->related_ast_node->line_number, node->related_ast_node->file_number, "%s\n", "Instantiating adder where adders do not exist");
149+
warning_message(NETLIST, node->related_ast_node->line_number, node->related_ast_node->file_number, "%s\n", "Instantiating adder where adders do not exist");
150150

151151
tmp = (t_adder*)hard_adders->instances;
152152
width_a = node->input_port_sizes[0];

ODIN_II/SRC/ast_elaborate.cpp

Lines changed: 81 additions & 64 deletions
Large diffs are not rendered by default.

ODIN_II/SRC/ast_loop_unroll.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,25 +129,25 @@ ast_node_t* resolve_for(ast_node_t* node) {
129129

130130
ast_node_t* value = 0;
131131
if (resolve_pre_condition(pre, &value)) {
132-
error_message(PARSE_ERROR, pre->line_number, pre->file_number, "%s", "Unsupported pre-condition node in for loop");
132+
error_message(AST, pre->line_number, pre->file_number, "%s", "Unsupported pre-condition node in for loop");
133133
}
134134

135135
int error_code = 0;
136136
condition_function cond_func = resolve_condition(cond, pre->children[0], &error_code);
137137
if (error_code) {
138-
error_message(PARSE_ERROR, cond->line_number, cond->file_number, "%s", "Unsupported condition node in for loop");
138+
error_message(AST, cond->line_number, cond->file_number, "%s", "Unsupported condition node in for loop");
139139
}
140140

141141
post_condition_function post_func = resolve_post_condition(post, pre->children[0], &error_code);
142142
if (error_code) {
143-
error_message(PARSE_ERROR, post->line_number, post->file_number, "%s", "Unsupported post-condition node in for loop");
143+
error_message(AST, post->line_number, post->file_number, "%s", "Unsupported post-condition node in for loop");
144144
}
145145

146146
bool dup_body = cond_func(value->types.vnumber->get_value());
147147
while (dup_body) {
148148
ast_node_t* new_body = dup_and_fill_body(body, pre, &value, &error_code);
149149
if (error_code) {
150-
error_message(PARSE_ERROR, pre->line_number, pre->file_number, "%s", "Unsupported pre-condition node in for loop");
150+
error_message(AST, pre->line_number, pre->file_number, "%s", "Unsupported pre-condition node in for loop");
151151
}
152152

153153
VNumber* temp_vnum = value->types.vnumber;

0 commit comments

Comments
 (0)