aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/ast/ast.cc
diff options
context:
space:
mode:
authorclairexen <claire@symbioticeda.com>2020-10-01 18:17:36 +0200
committerGitHub <noreply@github.com>2020-10-01 18:17:36 +0200
commit7e2fc2eaeb70179c8da3e5dc8be800f486d5b912 (patch)
treefe4cf490249e3939b1461c0dc27f70ad5652fd2b /frontends/ast/ast.cc
parent2412e754953595627e8c87ff0aa773929c71a852 (diff)
parent7ed0e23e19871e36bbfd332437125d50d3251f0d (diff)
downloadyosys-7e2fc2eaeb70179c8da3e5dc8be800f486d5b912.tar.gz
yosys-7e2fc2eaeb70179c8da3e5dc8be800f486d5b912.tar.bz2
yosys-7e2fc2eaeb70179c8da3e5dc8be800f486d5b912.zip
Merge pull request #2378 from udif/pr_dollar_high_low
Added $high(), $low(), $left(), $right()
Diffstat (limited to 'frontends/ast/ast.cc')
-rw-r--r--frontends/ast/ast.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/frontends/ast/ast.cc b/frontends/ast/ast.cc
index 9520ae32c..c8183580b 100644
--- a/frontends/ast/ast.cc
+++ b/frontends/ast/ast.cc
@@ -336,6 +336,12 @@ void AstNode::dumpAst(FILE *f, std::string indent) const
fprintf(f, " %d", v);
fprintf(f, " ]");
}
+ if (!multirange_swapped.empty()) {
+ fprintf(f, " multirange_swapped=[");
+ for (auto v : multirange_swapped)
+ fprintf(f, " %d", v);
+ fprintf(f, " ]");
+ }
if (is_enum) {
fprintf(f, " type=enum");
}