aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/ast/ast.cc
diff options
context:
space:
mode:
authorMarcelina Koƛcielnicka <mwk@0x04.net>2021-05-21 02:27:06 +0200
committerMarcelina Koƛcielnicka <mwk@0x04.net>2021-07-28 23:18:38 +0200
commit8bdc019730c665f678fc1f3bdd8ed96cf2f513d3 (patch)
tree9b8800178f8bd519f8a7c393b32887cfd6a56c28 /frontends/ast/ast.cc
parente9effd58d24afc8470813aec3028e932ea677aa5 (diff)
downloadyosys-8bdc019730c665f678fc1f3bdd8ed96cf2f513d3.tar.gz
yosys-8bdc019730c665f678fc1f3bdd8ed96cf2f513d3.tar.bz2
yosys-8bdc019730c665f678fc1f3bdd8ed96cf2f513d3.zip
verilog: Emit $meminit_v2 cell.
Fixes #2447.
Diffstat (limited to 'frontends/ast/ast.cc')
-rw-r--r--frontends/ast/ast.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/frontends/ast/ast.cc b/frontends/ast/ast.cc
index e42cf0348..fe503c547 100644
--- a/frontends/ast/ast.cc
+++ b/frontends/ast/ast.cc
@@ -199,7 +199,7 @@ bool AstNode::get_bool_attribute(RTLIL::IdString id)
// create new node (AstNode constructor)
// (the optional child arguments make it easier to create AST trees)
-AstNode::AstNode(AstNodeType type, AstNode *child1, AstNode *child2, AstNode *child3)
+AstNode::AstNode(AstNodeType type, AstNode *child1, AstNode *child2, AstNode *child3, AstNode *child4)
{
static unsigned int hashidx_count = 123456789;
hashidx_count = mkhash_xorshift(hashidx_count);
@@ -236,6 +236,8 @@ AstNode::AstNode(AstNodeType type, AstNode *child1, AstNode *child2, AstNode *ch
children.push_back(child2);
if (child3)
children.push_back(child3);
+ if (child4)
+ children.push_back(child4);
}
// create a (deep recursive) copy of a node