aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/ast/ast.h
diff options
context:
space:
mode:
authorClaire Wolf <claire@symbioticeda.com>2020-04-15 20:36:40 +0200
committerClaire Wolf <claire@symbioticeda.com>2020-04-16 12:11:07 +0200
commite1fb12a4b9e1d0685a1a1b060f2887f79b3c297f (patch)
treef4928c7e4c62b041ae1ac3a88f205abb855d247e /frontends/ast/ast.h
parent4711fea6c085e773d65f10c630f8d7a698f5b323 (diff)
downloadyosys-e1fb12a4b9e1d0685a1a1b060f2887f79b3c297f.tar.gz
yosys-e1fb12a4b9e1d0685a1a1b060f2887f79b3c297f.tar.bz2
yosys-e1fb12a4b9e1d0685a1a1b060f2887f79b3c297f.zip
Add LookaheadRewriter for proper bitselwrite support
Signed-off-by: Claire Wolf <claire@symbioticeda.com>
Diffstat (limited to 'frontends/ast/ast.h')
-rw-r--r--frontends/ast/ast.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/frontends/ast/ast.h b/frontends/ast/ast.h
index 3dd40238f..3f6329112 100644
--- a/frontends/ast/ast.h
+++ b/frontends/ast/ast.h
@@ -202,6 +202,9 @@ namespace AST
// this is used by simplify to detect if basic analysis has been performed already on the node
bool basic_prep;
+ // this is used for ID references in RHS expressions that should use the "new" value for non-blocking assignments
+ bool lookahead;
+
// this is the original sourcecode location that resulted in this AST node
// it is automatically set by the constructor using AST::current_filename and
// the AST::get_line_num() callback function.
@@ -352,6 +355,7 @@ namespace AST_INTERNAL
extern AST::AstNode *current_always, *current_top_block, *current_block, *current_block_child;
extern AST::AstModule *current_module;
extern bool current_always_clocked;
+ struct LookaheadRewriter;
struct ProcessGenerator;
}