mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-07 06:33:24 +00:00
sv: Fix memories of typedefs
Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
parent
497faf4ec0
commit
c0bb47beca
1 changed files with 1 additions and 1 deletions
|
@ -1350,7 +1350,7 @@ wire_name:
|
||||||
if ($2 != NULL) {
|
if ($2 != NULL) {
|
||||||
if (node->is_input || node->is_output)
|
if (node->is_input || node->is_output)
|
||||||
frontend_verilog_yyerror("input/output/inout ports cannot have unpacked dimensions.");
|
frontend_verilog_yyerror("input/output/inout ports cannot have unpacked dimensions.");
|
||||||
if (!astbuf2) {
|
if (!astbuf2 && !node->is_custom_type) {
|
||||||
AstNode *rng = new AstNode(AST_RANGE);
|
AstNode *rng = new AstNode(AST_RANGE);
|
||||||
rng->children.push_back(AstNode::mkconst_int(0, true));
|
rng->children.push_back(AstNode::mkconst_int(0, true));
|
||||||
rng->children.push_back(AstNode::mkconst_int(0, true));
|
rng->children.push_back(AstNode::mkconst_int(0, true));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue