aboutsummaryrefslogtreecommitdiffstats
path: root/frontends
diff options
context:
space:
mode:
authorJannis Harder <me@jix.one>2022-11-21 17:46:34 +0100
committerJannis Harder <me@jix.one>2022-11-21 17:47:43 +0100
commit239ecf9185e319b98d809d16d6f7d01dcb003b70 (patch)
tree63edeb211149b2567d5050a2c5bf5a79ed59e083 /frontends
parentb64141f48bcd0d8283ddbe849ccf794c8b12d780 (diff)
parent71e7e09092dc262b7cddbfc99e1b92e81ac58f21 (diff)
downloadyosys-239ecf9185e319b98d809d16d6f7d01dcb003b70.tar.gz
yosys-239ecf9185e319b98d809d16d6f7d01dcb003b70.tar.bz2
yosys-239ecf9185e319b98d809d16d6f7d01dcb003b70.zip
Merge branch 'zachjs-master'
Diffstat (limited to 'frontends')
-rw-r--r--frontends/ast/simplify.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc
index 49bf9af09..c932e2c49 100644
--- a/frontends/ast/simplify.cc
+++ b/frontends/ast/simplify.cc
@@ -3656,6 +3656,8 @@ skip_dynamic_range_lvalue_expansion:;
goto apply_newNode;
}
+ if (current_scope.count(str) == 0)
+ str = try_pop_module_prefix();
if (current_scope.count(str) == 0 || current_scope[str]->type != AST_FUNCTION)
log_file_error(filename, location.first_line, "Can't resolve function name `%s'.\n", str.c_str());
}
@@ -3727,6 +3729,8 @@ skip_dynamic_range_lvalue_expansion:;
goto apply_newNode;
}
+ if (current_scope.count(str) == 0)
+ str = try_pop_module_prefix();
if (current_scope.count(str) == 0 || current_scope[str]->type != AST_TASK)
log_file_error(filename, location.first_line, "Can't resolve task name `%s'.\n", str.c_str());
}