aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/ast/ast.cc
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-08-10 14:18:16 -0700
committerGitHub <noreply@github.com>2019-08-10 14:18:16 -0700
commitc851dc13108021834533094a8a3236da6d9e0161 (patch)
tree73ac462dd723cc389070cea893ddc9c1998339a2 /frontends/ast/ast.cc
parentf54bf1631ff37a83733c162e6ebd188c1d5ea18f (diff)
parentf9020ce2b35f2fc205fc71cb095efce1a24fd86d (diff)
downloadyosys-c851dc13108021834533094a8a3236da6d9e0161.tar.gz
yosys-c851dc13108021834533094a8a3236da6d9e0161.tar.bz2
yosys-c851dc13108021834533094a8a3236da6d9e0161.zip
Merge pull request #1280 from YosysHQ/revert-1266-eddie/ice40_full_adder
Revert "Wrap SB_LUT+SB_CARRY into $__ICE40_CARRY_WRAPPER"
Diffstat (limited to 'frontends/ast/ast.cc')
-rw-r--r--frontends/ast/ast.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/ast/ast.cc b/frontends/ast/ast.cc
index 0d6626b19..07ef0a86e 100644
--- a/frontends/ast/ast.cc
+++ b/frontends/ast/ast.cc
@@ -1172,7 +1172,7 @@ void AST::process(RTLIL::Design *design, AstNode *ast, bool dump_ast1, bool dump
if (design->has((*it)->str)) {
RTLIL::Module *existing_mod = design->module((*it)->str);
- if (!nooverwrite && !overwrite && !existing_mod->get_blackbox_attribute()) {
+ if (!nooverwrite && !overwrite && !existing_mod->get_bool_attribute("\\blackbox")) {
log_file_error((*it)->filename, (*it)->linenum, "Re-definition of module `%s'!\n", (*it)->str.c_str());
} else if (nooverwrite) {
log("Ignoring re-definition of module `%s' at %s:%d.\n",