diff options
author | Claire Wolf <claire@symbioticeda.com> | 2020-04-27 17:04:47 +0200 |
---|---|---|
committer | Claire Wolf <claire@symbioticeda.com> | 2020-05-02 11:21:01 +0200 |
commit | bbbce0d1c58f8bfb0a615f1ed53fa046552b5adf (patch) | |
tree | 6a8df40ad6343d3af573020f4e39e5a55f4da55a /frontends/ast/ast.cc | |
parent | ca3fc3c882b9a454c48bee7d701fa5cb254ae671 (diff) | |
download | yosys-bbbce0d1c58f8bfb0a615f1ed53fa046552b5adf.tar.gz yosys-bbbce0d1c58f8bfb0a615f1ed53fa046552b5adf.tar.bz2 yosys-bbbce0d1c58f8bfb0a615f1ed53fa046552b5adf.zip |
Add "nowrshmsk" attribute, fix shift-and-mask bit slice write for signed offset, fixes #1990
Signed-off-by: Claire Wolf <claire@symbioticeda.com>
Diffstat (limited to 'frontends/ast/ast.cc')
-rw-r--r-- | frontends/ast/ast.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/frontends/ast/ast.cc b/frontends/ast/ast.cc index 6a9af3f57..8daae7dcb 100644 --- a/frontends/ast/ast.cc +++ b/frontends/ast/ast.cc @@ -110,6 +110,8 @@ std::string AST::type2str(AstNodeType type) X(AST_SHIFT_RIGHT) X(AST_SHIFT_SLEFT) X(AST_SHIFT_SRIGHT) + X(AST_SHIFTX) + X(AST_SHIFT) X(AST_LT) X(AST_LE) X(AST_EQ) @@ -628,6 +630,8 @@ void AstNode::dumpVlog(FILE *f, std::string indent) const if (0) { case AST_SHIFT_RIGHT: txt = ">>"; } if (0) { case AST_SHIFT_SLEFT: txt = "<<<"; } if (0) { case AST_SHIFT_SRIGHT: txt = ">>>"; } + if (0) { case AST_SHIFTX: txt = "@shiftx@"; } + if (0) { case AST_SHIFT: txt = "@shift@"; } if (0) { case AST_LT: txt = "<"; } if (0) { case AST_LE: txt = "<="; } if (0) { case AST_EQ: txt = "=="; } |