mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-09 23:53:26 +00:00
read_verilog: Mark struct as custom type
Being a custom type means that it will be resolved *before* (e.g.) a wire can use it as a type.
This commit is contained in:
parent
995a893afd
commit
32ce23458f
2 changed files with 2 additions and 1 deletions
|
@ -1433,6 +1433,7 @@ bool AstNode::simplify(bool const_fold, int stage, int width_hint, bool sign_hin
|
||||||
current_ast_mod->children.push_back(wnode);
|
current_ast_mod->children.push_back(wnode);
|
||||||
}
|
}
|
||||||
basic_prep = true;
|
basic_prep = true;
|
||||||
|
is_custom_type = false;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -1855,7 +1855,7 @@ struct_decl:
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
struct_type: struct_union { astbuf2 = $1; } struct_body { $$ = astbuf2; }
|
struct_type: struct_union { astbuf2 = $1; astbuf2->is_custom_type = true; } struct_body { $$ = astbuf2; }
|
||||||
;
|
;
|
||||||
|
|
||||||
struct_union:
|
struct_union:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue