mirror of
https://github.com/verilator/verilator.git
synced 2025-01-01 04:07:34 +00:00
Parse elaboration-time nettype declarations (as UNSUPPORTED)
This commit is contained in:
parent
888af29a72
commit
9f9770e722
@ -2560,16 +2560,28 @@ data_declarationVarFrontClass: // IEEE: part of data_declaration (for class_pro
|
||||
;
|
||||
|
||||
nettype_declaration<nodep>: // IEEE: nettype_declaration/net_type_declaration
|
||||
yNETTYPE data_type idAny/*nettype_identifier*/ ';'
|
||||
// // Union of data_typeAny and nettype_identifier matching
|
||||
yNETTYPE data_typeNoRef
|
||||
/*cont*/ idAny/*nettype_identifier*/ ';'
|
||||
{ $$ = nullptr; BBUNSUP($<fl>1, "Unsupported: nettype"); }
|
||||
// // package_scope part of data_type
|
||||
| yNETTYPE data_type idAny yWITH__ETC packageClassScopeE id/*tf_identifier*/ ';'
|
||||
{ $$ = nullptr; BBUNSUP($<fl>1, "Unsupported: nettype"); }
|
||||
| yNETTYPE packageClassScopeE id/*nettype_identifier*/ idAny/*nettype_identifier*/ ';'
|
||||
{ $$ = nullptr; BBUNSUP($<fl>1, "Unsupported: nettype"); }
|
||||
| yNETTYPE packageClassScopeE id/*nettype_identifier*/ idAny/*nettype_identifier*/
|
||||
| yNETTYPE data_typeNoRef
|
||||
/*cont*/ idAny/*nettype_identifier*/
|
||||
/*cont*/ yWITH__ETC packageClassScopeE id/*tf_identifier*/ ';'
|
||||
{ $$ = nullptr; BBUNSUP($<fl>1, "Unsupported: nettype with"); }
|
||||
| yNETTYPE packageClassScopeE idAny packed_dimensionListE
|
||||
/*cont*/ idAny/*nettype_identifier*/ ';'
|
||||
{ $$ = nullptr; BBUNSUP($<fl>1, "Unsupported: nettype"); }
|
||||
| yNETTYPE packageClassScopeE idAny packed_dimensionListE
|
||||
/*cont*/ idAny/*nettype_identifier*/
|
||||
/*cont*/ yWITH__ETC packageClassScopeE id/*tf_identifier*/ ';'
|
||||
{ $$ = nullptr; BBUNSUP($<fl>1, "Unsupported: nettype with"); }
|
||||
| yNETTYPE packageClassScopeE idAny parameter_value_assignmentClass packed_dimensionListE
|
||||
/*cont*/ idAny/*nettype_identifier*/ ';'
|
||||
{ $$ = nullptr; BBUNSUP($<fl>1, "Unsupported: nettype"); }
|
||||
| yNETTYPE packageClassScopeE idAny parameter_value_assignmentClass packed_dimensionListE
|
||||
/*cont*/ idAny/*nettype_identifier*/
|
||||
/*cont*/ yWITH__ETC packageClassScopeE id/*tf_identifier*/ ';'
|
||||
{ $$ = nullptr; BBUNSUP($<fl>1, "Unsupported: nettype with"); }
|
||||
;
|
||||
|
||||
implicit_typeE<nodeDTypep>: // IEEE: part of *data_type_or_implicit
|
||||
|
@ -1,14 +1,14 @@
|
||||
%Error-UNSUPPORTED: t/t_nettype.v:25:4: Unsupported: nettype
|
||||
%Error-UNSUPPORTED: t/t_nettype.v:25:4: Unsupported: nettype with
|
||||
25 | nettype real real1_n with Pkg::resolver;
|
||||
| ^~~~~~~
|
||||
... For error description see https://verilator.org/warn/UNSUPPORTED?v=latest
|
||||
%Error-UNSUPPORTED: t/t_nettype.v:29:4: Unsupported: nettype
|
||||
%Error-UNSUPPORTED: t/t_nettype.v:29:4: Unsupported: nettype with
|
||||
29 | nettype real real2_n with local_resolver;
|
||||
| ^~~~~~~
|
||||
%Error-UNSUPPORTED: t/t_nettype.v:34:4: Unsupported: nettype
|
||||
34 | nettype real2_n real3_n;
|
||||
| ^~~~~~~
|
||||
%Error-UNSUPPORTED: t/t_nettype.v:38:4: Unsupported: nettype
|
||||
%Error-UNSUPPORTED: t/t_nettype.v:38:4: Unsupported: nettype with
|
||||
38 | nettype Pkg::real_t real4_n with Pkg::resolver;
|
||||
| ^~~~~~~
|
||||
%Error: Exiting due to
|
||||
|
Loading…
Reference in New Issue
Block a user