From 466af49bfbf7b874eab97838f0c5c236406a84d5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 7 Aug 2024 20:20:30 +0000 Subject: [PATCH] style: pre-commit fixes --- bindings/python/CompBindings.cpp | 3 +- docs/grammar.md | 3782 +++++++++---------- docs/grammar_sdf.md | 264 +- include/slang/driver/SourceLoader.h | 2 +- include/slang/syntax/SyntaxTree.h | 19 +- scripts/grammar_gen.py | 12 +- source/driver/Driver.cpp | 4 +- source/driver/SourceLoader.cpp | 4 +- source/parsing/Lexer.cpp | 6 +- source/parsing/LexerFacts.cpp | 2 +- tests/unittests/parsing/SDFParsingTests.cpp | 7 +- 11 files changed, 2057 insertions(+), 2048 deletions(-) diff --git a/bindings/python/CompBindings.cpp b/bindings/python/CompBindings.cpp index 56a98e338..b5d09cad1 100644 --- a/bindings/python/CompBindings.cpp +++ b/bindings/python/CompBindings.cpp @@ -209,8 +209,7 @@ void registerCompilation(py::module_& m) { .def("addSearchExtension", &SourceLoader::addSearchExtension, "extension"_a) .def("addLibraryMaps", &SourceLoader::addLibraryMaps, "pattern"_a, "basePath"_a, "optionBag"_a) - .def("addSDFFiles", &SourceLoader::addSDFFiles, "pattern"_a, "basePath"_a, - "optionBag"_a) + .def("addSDFFiles", &SourceLoader::addSDFFiles, "pattern"_a, "basePath"_a, "optionBag"_a) .def("addSeparateUnit", &SourceLoader::addSeparateUnit, "filePatterns"_a, "includePaths"_a, "defines"_a, "libraryName"_a) .def("loadSources", &SourceLoader::loadSources) diff --git a/docs/grammar.md b/docs/grammar.md index 0f5572c13..06633a0e2 100644 --- a/docs/grammar.md +++ b/docs/grammar.md @@ -1,1977 +1,1977 @@ # SystemVerilog ## A.1 Source text ### A.1.1 Library source text -library\_text ::= \{ [library_description](#library_description) } -library\_description ::= -    [library_declaration](#library_declaration) -    \| [include_statement](#include_statement) -    \| [config_declaration](#config_declaration) -    \| `;` -library\_declaration ::= -    [library](#library) [library_identifier](#library_identifier) [file_path_spec](#file_path_spec) \{ `,` [file_path_spec](#file_path_spec) } -    \[ `-`[incdir](#incdir) [file_path_spec](#file_path_spec) \{ `,` [file_path_spec](#file_path_spec) } ] `;` -include\_statement ::= [include](#include) [file_path_spec](#file_path_spec) `;` +library\_text ::= \{ [library_description](#library_description) } +library\_description ::= +    [library_declaration](#library_declaration) +    \| [include_statement](#include_statement) +    \| [config_declaration](#config_declaration) +    \| `;` +library\_declaration ::= +    [library](#library) [library_identifier](#library_identifier) [file_path_spec](#file_path_spec) \{ `,` [file_path_spec](#file_path_spec) } +    \[ `-`[incdir](#incdir) [file_path_spec](#file_path_spec) \{ `,` [file_path_spec](#file_path_spec) } ] `;` +include\_statement ::= [include](#include) [file_path_spec](#file_path_spec) `;` ### A.1.2 SystemVerilog source text -source\_text ::= \[ [timeunits_declaration](#timeunits_declaration) ] \{ [description](#description) } -description ::= -    [module_declaration](#module_declaration) -    \| [udp_declaration](#udp_declaration) -    \| [interface_declaration](#interface_declaration) -    \| [program_declaration](#program_declaration) -    \| [package_declaration](#package_declaration) -    \| \{ [attribute_instance](#attribute_instance) } [package_item](#package_item) -    \| \{ [attribute_instance](#attribute_instance) } [bind_directive](#bind_directive) -    \| [config_declaration](#config_declaration) -module\_nonansi\_header ::= -    \{ [attribute_instance](#attribute_instance) } [module_keyword](#module_keyword) \[ [lifetime](#lifetime) ] [module_identifier](#module_identifier) -    \{ [package_import_declaration](#package_import_declaration) } \[ [parameter_port_list](#parameter_port_list) ] [list_of_ports](#list_of_ports) `;` -module\_ansi\_header ::= -    \{ [attribute_instance](#attribute_instance) } [module_keyword](#module_keyword) \[ [lifetime](#lifetime) ] [module_identifier](#module_identifier) -    \{ [package_import_declaration](#package_import_declaration) }[1](#1) \[ [parameter_port_list](#parameter_port_list) ] \[ [list_of_port_declarations](#list_of_port_declarations) ] `;` -module\_declaration ::= -    [module_nonansi_header](#module_nonansi_header) -    \[ [timeunits_declaration](#timeunits_declaration) ] \{ [module_item](#module_item) } -    [endmodule](#endmodule) \[ `:` [module_identifier](#module_identifier) ] -    \| [module_ansi_header](#module_ansi_header) -    \[ [timeunits_declaration](#timeunits_declaration) ] \{ [non_port_module_item](#non_port_module_item) } -    [endmodule](#endmodule) \[ `:` [module_identifier](#module_identifier) ] -    \| \{ [attribute_instance](#attribute_instance) } [module_keyword](#module_keyword) \[ [lifetime](#lifetime) ] [module_identifier](#module_identifier) `(` `.` `*` `)` `;` -    \[ [timeunits_declaration](#timeunits_declaration) ] \{ [module_item](#module_item) } -    [endmodule](#endmodule) \[ `:` [module_identifier](#module_identifier) ] -    \| [extern](#extern) [module_nonansi_header](#module_nonansi_header) -    \| [extern](#extern) [module_ansi_header](#module_ansi_header) -module\_keyword ::= [module](#module) \| [macromodule](#macromodule) -interface\_declaration ::= -    [interface_nonansi_header](#interface_nonansi_header) -    \[ [timeunits_declaration](#timeunits_declaration) ] \{ [interface_item](#interface_item) } -    [endinterface](#endinterface) \[ `:` [interface_identifier](#interface_identifier) ] -    \| [interface_ansi_header](#interface_ansi_header) -    \[ [timeunits_declaration](#timeunits_declaration) ] \{ [non_port_interface_item](#non_port_interface_item) } -    [endinterface](#endinterface) \[ `:` [interface_identifier](#interface_identifier) ] -    \| \{ [attribute_instance](#attribute_instance) } [interface](#interface) [interface_identifier](#interface_identifier) `(` `.` `*` `)` `;` -    \[ [timeunits_declaration](#timeunits_declaration) ] \{ [interface_item](#interface_item) } -    [endinterface](#endinterface) \[ `:` [interface_identifier](#interface_identifier) ] -    \| [extern](#extern) [interface_nonansi_header](#interface_nonansi_header) -    \| [extern](#extern) [interface_ansi_header](#interface_ansi_header) -interface\_nonansi\_header ::= -    \{ [attribute_instance](#attribute_instance) } [interface](#interface) \[ [lifetime](#lifetime) ] [interface_identifier](#interface_identifier) -    \{ [package_import_declaration](#package_import_declaration) } \[ [parameter_port_list](#parameter_port_list) ] [list_of_ports](#list_of_ports) `;` -interface\_ansi\_header ::= -    \{ [attribute_instance](#attribute_instance) } [interface](#interface) \[ [lifetime](#lifetime) ] [interface_identifier](#interface_identifier) -    \{ [package_import_declaration](#package_import_declaration) }[1](#1) \[ [parameter_port_list](#parameter_port_list) ] \[ [list_of_port_declarations](#list_of_port_declarations) ] `;` -program\_declaration ::= -    [program_nonansi_header](#program_nonansi_header) -    \[ [timeunits_declaration](#timeunits_declaration) ] \{ [program_item](#program_item) } -    [endprogram](#endprogram) \[ `:` [program_identifier](#program_identifier) ] -    \| [program_ansi_header](#program_ansi_header) -    \[ [timeunits_declaration](#timeunits_declaration) ] \{ [non_port_program_item](#non_port_program_item) } -    [endprogram](#endprogram) \[ `:` [program_identifier](#program_identifier) ] -    \| \{ [attribute_instance](#attribute_instance) } [program](#program) [program_identifier](#program_identifier) `(` `.` `*` `)` `;` -    \[ [timeunits_declaration](#timeunits_declaration) ] \{ [program_item](#program_item) } -    [endprogram](#endprogram) \[ `:` [program_identifier](#program_identifier) ] -    \| [extern](#extern) [program_nonansi_header](#program_nonansi_header) -    \| [extern](#extern) [program_ansi_header](#program_ansi_header) -program\_nonansi\_header ::= -    \{ [attribute_instance](#attribute_instance) } [program](#program) \[ [lifetime](#lifetime) ] [program_identifier](#program_identifier) -    \{ [package_import_declaration](#package_import_declaration) } \[ [parameter_port_list](#parameter_port_list) ] [list_of_ports](#list_of_ports) `;` -program\_ansi\_header ::= -    \{ [attribute_instance](#attribute_instance) } [program](#program) \[ [lifetime](#lifetime) ] [program_identifier](#program_identifier) -    \{ [package_import_declaration](#package_import_declaration) }[1](#1) \[ [parameter_port_list](#parameter_port_list) ] \[ [list_of_port_declarations](#list_of_port_declarations) ] `;` -checker\_declaration ::= -    [checker](#checker) [checker_identifier](#checker_identifier) \[ `(` \[ [checker_port_list](#checker_port_list) ] `)` ] `;` -    \{ \{ [attribute_instance](#attribute_instance) } [checker_or_generate_item](#checker_or_generate_item) } -    [endchecker](#endchecker) \[ `:` [checker_identifier](#checker_identifier) ] -class\_declaration ::= -    \[ [virtual](#virtual) ] [class](#class) \[ [final_specifier](#final_specifier) ] [class_identifier](#class_identifier) \[ [parameter_port_list](#parameter_port_list) ] -    \[ [extends](#extends) [class_type](#class_type) \[ `(` \[ [list_of_arguments](#list_of_arguments) \| [default](#default) ] `)` ] ] -    \[ [implements](#implements) [interface_class_type](#interface_class_type) \{ `,` [interface_class_type](#interface_class_type) } ] `;` -    \{ [class_item](#class_item) } -    [endclass](#endclass) \[ `:` [class_identifier](#class_identifier) ] -interface\_class\_declaration ::= -    [interface](#interface) [class](#class) [class_identifier](#class_identifier) \[ [parameter_port_list](#parameter_port_list) ] -    \[ [extends](#extends) [interface_class_type](#interface_class_type) \{ `,` [interface_class_type](#interface_class_type) } ] `;` -    \{ [interface_class_item](#interface_class_item) } -    [endclass](#endclass) \[ `:` [class_identifier](#class_identifier) ] -package\_declaration ::= -    \{ [attribute_instance](#attribute_instance) } [package](#package) \[ [lifetime](#lifetime) ] [package_identifier](#package_identifier) `;` -    \[ [timeunits_declaration](#timeunits_declaration) ] \{ \{ [attribute_instance](#attribute_instance) } [package_item](#package_item) } -    [endpackage](#endpackage) \[ `:` [package_identifier](#package_identifier) ] -timeunits\_declaration ::= -    [timeunit](#timeunit) [time_literal](#time_literal) \[ `/` [time_literal](#time_literal) ] `;` -    \| [timeprecision](#timeprecision) [time_literal](#time_literal) `;` -    \| [timeunit](#timeunit) [time_literal](#time_literal) `;` [timeprecision](#timeprecision) [time_literal](#time_literal) `;` -    \| [timeprecision](#timeprecision) [time_literal](#time_literal) `;` [timeunit](#timeunit) [time_literal](#time_literal) `;` +source\_text ::= \[ [timeunits_declaration](#timeunits_declaration) ] \{ [description](#description) } +description ::= +    [module_declaration](#module_declaration) +    \| [udp_declaration](#udp_declaration) +    \| [interface_declaration](#interface_declaration) +    \| [program_declaration](#program_declaration) +    \| [package_declaration](#package_declaration) +    \| \{ [attribute_instance](#attribute_instance) } [package_item](#package_item) +    \| \{ [attribute_instance](#attribute_instance) } [bind_directive](#bind_directive) +    \| [config_declaration](#config_declaration) +module\_nonansi\_header ::= +    \{ [attribute_instance](#attribute_instance) } [module_keyword](#module_keyword) \[ [lifetime](#lifetime) ] [module_identifier](#module_identifier) +    \{ [package_import_declaration](#package_import_declaration) } \[ [parameter_port_list](#parameter_port_list) ] [list_of_ports](#list_of_ports) `;` +module\_ansi\_header ::= +    \{ [attribute_instance](#attribute_instance) } [module_keyword](#module_keyword) \[ [lifetime](#lifetime) ] [module_identifier](#module_identifier) +    \{ [package_import_declaration](#package_import_declaration) }[1](#1) \[ [parameter_port_list](#parameter_port_list) ] \[ [list_of_port_declarations](#list_of_port_declarations) ] `;` +module\_declaration ::= +    [module_nonansi_header](#module_nonansi_header) +    \[ [timeunits_declaration](#timeunits_declaration) ] \{ [module_item](#module_item) } +    [endmodule](#endmodule) \[ `:` [module_identifier](#module_identifier) ] +    \| [module_ansi_header](#module_ansi_header) +    \[ [timeunits_declaration](#timeunits_declaration) ] \{ [non_port_module_item](#non_port_module_item) } +    [endmodule](#endmodule) \[ `:` [module_identifier](#module_identifier) ] +    \| \{ [attribute_instance](#attribute_instance) } [module_keyword](#module_keyword) \[ [lifetime](#lifetime) ] [module_identifier](#module_identifier) `(` `.` `*` `)` `;` +    \[ [timeunits_declaration](#timeunits_declaration) ] \{ [module_item](#module_item) } +    [endmodule](#endmodule) \[ `:` [module_identifier](#module_identifier) ] +    \| [extern](#extern) [module_nonansi_header](#module_nonansi_header) +    \| [extern](#extern) [module_ansi_header](#module_ansi_header) +module\_keyword ::= [module](#module) \| [macromodule](#macromodule) +interface\_declaration ::= +    [interface_nonansi_header](#interface_nonansi_header) +    \[ [timeunits_declaration](#timeunits_declaration) ] \{ [interface_item](#interface_item) } +    [endinterface](#endinterface) \[ `:` [interface_identifier](#interface_identifier) ] +    \| [interface_ansi_header](#interface_ansi_header) +    \[ [timeunits_declaration](#timeunits_declaration) ] \{ [non_port_interface_item](#non_port_interface_item) } +    [endinterface](#endinterface) \[ `:` [interface_identifier](#interface_identifier) ] +    \| \{ [attribute_instance](#attribute_instance) } [interface](#interface) [interface_identifier](#interface_identifier) `(` `.` `*` `)` `;` +    \[ [timeunits_declaration](#timeunits_declaration) ] \{ [interface_item](#interface_item) } +    [endinterface](#endinterface) \[ `:` [interface_identifier](#interface_identifier) ] +    \| [extern](#extern) [interface_nonansi_header](#interface_nonansi_header) +    \| [extern](#extern) [interface_ansi_header](#interface_ansi_header) +interface\_nonansi\_header ::= +    \{ [attribute_instance](#attribute_instance) } [interface](#interface) \[ [lifetime](#lifetime) ] [interface_identifier](#interface_identifier) +    \{ [package_import_declaration](#package_import_declaration) } \[ [parameter_port_list](#parameter_port_list) ] [list_of_ports](#list_of_ports) `;` +interface\_ansi\_header ::= +    \{ [attribute_instance](#attribute_instance) } [interface](#interface) \[ [lifetime](#lifetime) ] [interface_identifier](#interface_identifier) +    \{ [package_import_declaration](#package_import_declaration) }[1](#1) \[ [parameter_port_list](#parameter_port_list) ] \[ [list_of_port_declarations](#list_of_port_declarations) ] `;` +program\_declaration ::= +    [program_nonansi_header](#program_nonansi_header) +    \[ [timeunits_declaration](#timeunits_declaration) ] \{ [program_item](#program_item) } +    [endprogram](#endprogram) \[ `:` [program_identifier](#program_identifier) ] +    \| [program_ansi_header](#program_ansi_header) +    \[ [timeunits_declaration](#timeunits_declaration) ] \{ [non_port_program_item](#non_port_program_item) } +    [endprogram](#endprogram) \[ `:` [program_identifier](#program_identifier) ] +    \| \{ [attribute_instance](#attribute_instance) } [program](#program) [program_identifier](#program_identifier) `(` `.` `*` `)` `;` +    \[ [timeunits_declaration](#timeunits_declaration) ] \{ [program_item](#program_item) } +    [endprogram](#endprogram) \[ `:` [program_identifier](#program_identifier) ] +    \| [extern](#extern) [program_nonansi_header](#program_nonansi_header) +    \| [extern](#extern) [program_ansi_header](#program_ansi_header) +program\_nonansi\_header ::= +    \{ [attribute_instance](#attribute_instance) } [program](#program) \[ [lifetime](#lifetime) ] [program_identifier](#program_identifier) +    \{ [package_import_declaration](#package_import_declaration) } \[ [parameter_port_list](#parameter_port_list) ] [list_of_ports](#list_of_ports) `;` +program\_ansi\_header ::= +    \{ [attribute_instance](#attribute_instance) } [program](#program) \[ [lifetime](#lifetime) ] [program_identifier](#program_identifier) +    \{ [package_import_declaration](#package_import_declaration) }[1](#1) \[ [parameter_port_list](#parameter_port_list) ] \[ [list_of_port_declarations](#list_of_port_declarations) ] `;` +checker\_declaration ::= +    [checker](#checker) [checker_identifier](#checker_identifier) \[ `(` \[ [checker_port_list](#checker_port_list) ] `)` ] `;` +    \{ \{ [attribute_instance](#attribute_instance) } [checker_or_generate_item](#checker_or_generate_item) } +    [endchecker](#endchecker) \[ `:` [checker_identifier](#checker_identifier) ] +class\_declaration ::= +    \[ [virtual](#virtual) ] [class](#class) \[ [final_specifier](#final_specifier) ] [class_identifier](#class_identifier) \[ [parameter_port_list](#parameter_port_list) ] +    \[ [extends](#extends) [class_type](#class_type) \[ `(` \[ [list_of_arguments](#list_of_arguments) \| [default](#default) ] `)` ] ] +    \[ [implements](#implements) [interface_class_type](#interface_class_type) \{ `,` [interface_class_type](#interface_class_type) } ] `;` +    \{ [class_item](#class_item) } +    [endclass](#endclass) \[ `:` [class_identifier](#class_identifier) ] +interface\_class\_declaration ::= +    [interface](#interface) [class](#class) [class_identifier](#class_identifier) \[ [parameter_port_list](#parameter_port_list) ] +    \[ [extends](#extends) [interface_class_type](#interface_class_type) \{ `,` [interface_class_type](#interface_class_type) } ] `;` +    \{ [interface_class_item](#interface_class_item) } +    [endclass](#endclass) \[ `:` [class_identifier](#class_identifier) ] +package\_declaration ::= +    \{ [attribute_instance](#attribute_instance) } [package](#package) \[ [lifetime](#lifetime) ] [package_identifier](#package_identifier) `;` +    \[ [timeunits_declaration](#timeunits_declaration) ] \{ \{ [attribute_instance](#attribute_instance) } [package_item](#package_item) } +    [endpackage](#endpackage) \[ `:` [package_identifier](#package_identifier) ] +timeunits\_declaration ::= +    [timeunit](#timeunit) [time_literal](#time_literal) \[ `/` [time_literal](#time_literal) ] `;` +    \| [timeprecision](#timeprecision) [time_literal](#time_literal) `;` +    \| [timeunit](#timeunit) [time_literal](#time_literal) `;` [timeprecision](#timeprecision) [time_literal](#time_literal) `;` +    \| [timeprecision](#timeprecision) [time_literal](#time_literal) `;` [timeunit](#timeunit) [time_literal](#time_literal) `;` ### A.1.3 Module parameters and ports -parameter\_port\_list ::= -    `#` `(` [list_of_param_assignments](#list_of_param_assignments) \{ `,` [parameter_port_declaration](#parameter_port_declaration) } `)` -    \| `#` `(` [parameter_port_declaration](#parameter_port_declaration) \{ `,` [parameter_port_declaration](#parameter_port_declaration) } `)` -    \| `#(` `)` -parameter\_port\_declaration ::= -    [parameter_declaration](#parameter_declaration) -    \| [local_parameter_declaration](#local_parameter_declaration) -    \| [data_type](#data_type) [list_of_param_assignments](#list_of_param_assignments) -    \| [type_parameter_declaration](#type_parameter_declaration) -list\_of\_ports ::= `(` [port](#port) \{ `,` [port](#port) } `)` -list\_of\_port\_declarations2 ::= -    `(` \[ \{ [attribute_instance](#attribute_instance) } [ansi_port_declaration](#ansi_port_declaration) \{ `,` \{ [attribute_instance](#attribute_instance) } [ansi_port_declaration](#ansi_port_declaration) } ] `)` -port\_declaration ::= -    \{ [attribute_instance](#attribute_instance) } [inout_declaration](#inout_declaration) -    \| \{ [attribute_instance](#attribute_instance) } [input_declaration](#input_declaration) -    \| \{ [attribute_instance](#attribute_instance) } [output_declaration](#output_declaration) -    \| \{ [attribute_instance](#attribute_instance) } [ref_declaration](#ref_declaration) -    \| \{ [attribute_instance](#attribute_instance) } [interface_port_declaration](#interface_port_declaration) -port ::= -    \[ [port_expression](#port_expression) ] -    \| `.` [port_identifier](#port_identifier) `(` \[ [port_expression](#port_expression) ] `)` -port\_expression ::= -    [port_reference](#port_reference) -    \| \{ [port_reference](#port_reference) \{ `,` [port_reference](#port_reference) } } -port\_reference ::= [port_identifier](#port_identifier) [constant_select](#constant_select) -port\_direction ::= [input](#input) \| [output](#output) \| [inout](#inout) \| [ref](#ref) -net\_port\_header ::= \[ [port_direction](#port_direction) ] [net_port_type](#net_port_type) -variable\_port\_header ::= \[ [port_direction](#port_direction) ] [variable_port_type](#variable_port_type) -interface\_port\_header ::= -    [interface_identifier](#interface_identifier) \[ `.` [modport_identifier](#modport_identifier) ] -    \| [interface](#interface) \[ `.` [modport_identifier](#modport_identifier) ] -ansi\_port\_declaration ::= -    \[ [net_port_header](#net_port_header) \| [interface_port_header](#interface_port_header) ] [port_identifier](#port_identifier) \{ [unpacked_dimension](#unpacked_dimension) } -    \[ `=` [constant_expression](#constant_expression) ] -    \| \[ [variable_port_header](#variable_port_header) ] [port_identifier](#port_identifier) \{ [variable_dimension](#variable_dimension) } \[ `=` [constant_expression](#constant_expression) ] -    \| \[ [port_direction](#port_direction) ] `.` [port_identifier](#port_identifier) `(` \[ [expression](#expression) ] `)` +parameter\_port\_list ::= +    `#` `(` [list_of_param_assignments](#list_of_param_assignments) \{ `,` [parameter_port_declaration](#parameter_port_declaration) } `)` +    \| `#` `(` [parameter_port_declaration](#parameter_port_declaration) \{ `,` [parameter_port_declaration](#parameter_port_declaration) } `)` +    \| `#(` `)` +parameter\_port\_declaration ::= +    [parameter_declaration](#parameter_declaration) +    \| [local_parameter_declaration](#local_parameter_declaration) +    \| [data_type](#data_type) [list_of_param_assignments](#list_of_param_assignments) +    \| [type_parameter_declaration](#type_parameter_declaration) +list\_of\_ports ::= `(` [port](#port) \{ `,` [port](#port) } `)` +list\_of\_port\_declarations2 ::= +    `(` \[ \{ [attribute_instance](#attribute_instance) } [ansi_port_declaration](#ansi_port_declaration) \{ `,` \{ [attribute_instance](#attribute_instance) } [ansi_port_declaration](#ansi_port_declaration) } ] `)` +port\_declaration ::= +    \{ [attribute_instance](#attribute_instance) } [inout_declaration](#inout_declaration) +    \| \{ [attribute_instance](#attribute_instance) } [input_declaration](#input_declaration) +    \| \{ [attribute_instance](#attribute_instance) } [output_declaration](#output_declaration) +    \| \{ [attribute_instance](#attribute_instance) } [ref_declaration](#ref_declaration) +    \| \{ [attribute_instance](#attribute_instance) } [interface_port_declaration](#interface_port_declaration) +port ::= +    \[ [port_expression](#port_expression) ] +    \| `.` [port_identifier](#port_identifier) `(` \[ [port_expression](#port_expression) ] `)` +port\_expression ::= +    [port_reference](#port_reference) +    \| \{ [port_reference](#port_reference) \{ `,` [port_reference](#port_reference) } } +port\_reference ::= [port_identifier](#port_identifier) [constant_select](#constant_select) +port\_direction ::= [input](#input) \| [output](#output) \| [inout](#inout) \| [ref](#ref) +net\_port\_header ::= \[ [port_direction](#port_direction) ] [net_port_type](#net_port_type) +variable\_port\_header ::= \[ [port_direction](#port_direction) ] [variable_port_type](#variable_port_type) +interface\_port\_header ::= +    [interface_identifier](#interface_identifier) \[ `.` [modport_identifier](#modport_identifier) ] +    \| [interface](#interface) \[ `.` [modport_identifier](#modport_identifier) ] +ansi\_port\_declaration ::= +    \[ [net_port_header](#net_port_header) \| [interface_port_header](#interface_port_header) ] [port_identifier](#port_identifier) \{ [unpacked_dimension](#unpacked_dimension) } +    \[ `=` [constant_expression](#constant_expression) ] +    \| \[ [variable_port_header](#variable_port_header) ] [port_identifier](#port_identifier) \{ [variable_dimension](#variable_dimension) } \[ `=` [constant_expression](#constant_expression) ] +    \| \[ [port_direction](#port_direction) ] `.` [port_identifier](#port_identifier) `(` \[ [expression](#expression) ] `)` ### A.1.4 Module items -severity\_system\_task ::= -    `$`[fatal](#fatal) \[ `(` [finish_number](#finish_number) `[,` [list_of_arguments](#list_of_arguments) ] `)` ] `;` -    \| `$`[error](#error) \[ `(` \[ [list_of_arguments](#list_of_arguments) ] `)` ] `;` -    \| `$`[warning](#warning) \[ `(` \[ [list_of_arguments](#list_of_arguments) ] `)` ] `;` -    \| `$`[info](#info) \[ `(` \[ [list_of_arguments](#list_of_arguments) ] `)` ] `;` -finish\_number ::= [0](#0) \| [1](#1) \| [2](#2) -elaboration\_severity\_system\_task ::= [severity_system_task](#severity_system_task) -module\_common\_item ::= -    [module_or_generate_item_declaration](#module_or_generate_item_declaration) -    \| [interface_instantiation](#interface_instantiation) -    \| [program_instantiation](#program_instantiation) -    \| [assertion_item](#assertion_item) -    \| [bind_directive](#bind_directive) -    \| [continuous_assign](#continuous_assign) -    \| [net_alias](#net_alias) -    \| [initial_construct](#initial_construct) -    \| [final_construct](#final_construct) -    \| [always_construct](#always_construct) -    \| [loop_generate_construct](#loop_generate_construct) -    \| [conditional_generate_construct](#conditional_generate_construct) -    \| [elaboration_severity_system_task](#elaboration_severity_system_task) -module\_item ::= -    [port_declaration](#port_declaration) `;` -    \| [non_port_module_item](#non_port_module_item) -module\_or\_generate\_item ::= -    \{ [attribute_instance](#attribute_instance) } [parameter_override](#parameter_override) -    \| \{ [attribute_instance](#attribute_instance) } [gate_instantiation](#gate_instantiation) -    \| \{ [attribute_instance](#attribute_instance) } [udp_instantiation](#udp_instantiation) -    \| \{ [attribute_instance](#attribute_instance) } [module_instantiation](#module_instantiation) -    \| \{ [attribute_instance](#attribute_instance) } [module_common_item](#module_common_item) -module\_or\_generate\_item\_declaration ::= -    [package_or_generate_item_declaration](#package_or_generate_item_declaration) -    \| [genvar_declaration](#genvar_declaration) -    \| [clocking_declaration](#clocking_declaration) -    \| [default](#default) [clocking](#clocking) [clocking_identifier](#clocking_identifier) `;` -    \| [default](#default) [disable](#disable) [iff](#iff) [expression_or_dist](#expression_or_dist) `;` -non\_port\_module\_item ::= -    [generate_region](#generate_region) -    \| [module_or_generate_item](#module_or_generate_item) -    \| [specify_block](#specify_block) -    \| \{ [attribute_instance](#attribute_instance) } [specparam_declaration](#specparam_declaration) -    \| [program_declaration](#program_declaration) -    \| [module_declaration](#module_declaration) -    \| [interface_declaration](#interface_declaration) -    \| [timeunits_declaration3](#timeunits_declaration3) -parameter\_override ::= [defparam](#defparam) [list_of_defparam_assignments](#list_of_defparam_assignments) `;` -bind\_directive4 ::= -    [bind](#bind) [bind_target_scope](#bind_target_scope) \[ `:` [bind_target_instance_list](#bind_target_instance_list) ] [bind_instantiation](#bind_instantiation) `;` -    \| [bind](#bind) [bind_target_instance](#bind_target_instance) [bind_instantiation](#bind_instantiation) `;` -bind\_target\_scope ::= -    [module_identifier](#module_identifier) -    \| [interface_identifier](#interface_identifier) -bind\_target\_instance ::= [hierarchical_identifier](#hierarchical_identifier) [constant_bit_select](#constant_bit_select) -bind\_target\_instance\_list ::= [bind_target_instance](#bind_target_instance) \{ `,` [bind_target_instance](#bind_target_instance) } -bind\_instantiation ::= -    [program_instantiation](#program_instantiation) -    \| [module_instantiation](#module_instantiation) -    \| [interface_instantiation](#interface_instantiation) -    \| [checker_instantiation](#checker_instantiation) +severity\_system\_task ::= +    `$`[fatal](#fatal) \[ `(` [finish_number](#finish_number) `[,` [list_of_arguments](#list_of_arguments) ] `)` ] `;` +    \| `$`[error](#error) \[ `(` \[ [list_of_arguments](#list_of_arguments) ] `)` ] `;` +    \| `$`[warning](#warning) \[ `(` \[ [list_of_arguments](#list_of_arguments) ] `)` ] `;` +    \| `$`[info](#info) \[ `(` \[ [list_of_arguments](#list_of_arguments) ] `)` ] `;` +finish\_number ::= [0](#0) \| [1](#1) \| [2](#2) +elaboration\_severity\_system\_task ::= [severity_system_task](#severity_system_task) +module\_common\_item ::= +    [module_or_generate_item_declaration](#module_or_generate_item_declaration) +    \| [interface_instantiation](#interface_instantiation) +    \| [program_instantiation](#program_instantiation) +    \| [assertion_item](#assertion_item) +    \| [bind_directive](#bind_directive) +    \| [continuous_assign](#continuous_assign) +    \| [net_alias](#net_alias) +    \| [initial_construct](#initial_construct) +    \| [final_construct](#final_construct) +    \| [always_construct](#always_construct) +    \| [loop_generate_construct](#loop_generate_construct) +    \| [conditional_generate_construct](#conditional_generate_construct) +    \| [elaboration_severity_system_task](#elaboration_severity_system_task) +module\_item ::= +    [port_declaration](#port_declaration) `;` +    \| [non_port_module_item](#non_port_module_item) +module\_or\_generate\_item ::= +    \{ [attribute_instance](#attribute_instance) } [parameter_override](#parameter_override) +    \| \{ [attribute_instance](#attribute_instance) } [gate_instantiation](#gate_instantiation) +    \| \{ [attribute_instance](#attribute_instance) } [udp_instantiation](#udp_instantiation) +    \| \{ [attribute_instance](#attribute_instance) } [module_instantiation](#module_instantiation) +    \| \{ [attribute_instance](#attribute_instance) } [module_common_item](#module_common_item) +module\_or\_generate\_item\_declaration ::= +    [package_or_generate_item_declaration](#package_or_generate_item_declaration) +    \| [genvar_declaration](#genvar_declaration) +    \| [clocking_declaration](#clocking_declaration) +    \| [default](#default) [clocking](#clocking) [clocking_identifier](#clocking_identifier) `;` +    \| [default](#default) [disable](#disable) [iff](#iff) [expression_or_dist](#expression_or_dist) `;` +non\_port\_module\_item ::= +    [generate_region](#generate_region) +    \| [module_or_generate_item](#module_or_generate_item) +    \| [specify_block](#specify_block) +    \| \{ [attribute_instance](#attribute_instance) } [specparam_declaration](#specparam_declaration) +    \| [program_declaration](#program_declaration) +    \| [module_declaration](#module_declaration) +    \| [interface_declaration](#interface_declaration) +    \| [timeunits_declaration3](#timeunits_declaration3) +parameter\_override ::= [defparam](#defparam) [list_of_defparam_assignments](#list_of_defparam_assignments) `;` +bind\_directive4 ::= +    [bind](#bind) [bind_target_scope](#bind_target_scope) \[ `:` [bind_target_instance_list](#bind_target_instance_list) ] [bind_instantiation](#bind_instantiation) `;` +    \| [bind](#bind) [bind_target_instance](#bind_target_instance) [bind_instantiation](#bind_instantiation) `;` +bind\_target\_scope ::= +    [module_identifier](#module_identifier) +    \| [interface_identifier](#interface_identifier) +bind\_target\_instance ::= [hierarchical_identifier](#hierarchical_identifier) [constant_bit_select](#constant_bit_select) +bind\_target\_instance\_list ::= [bind_target_instance](#bind_target_instance) \{ `,` [bind_target_instance](#bind_target_instance) } +bind\_instantiation ::= +    [program_instantiation](#program_instantiation) +    \| [module_instantiation](#module_instantiation) +    \| [interface_instantiation](#interface_instantiation) +    \| [checker_instantiation](#checker_instantiation) ### A.1.5 Configuration source text -config\_declaration ::= -    [config](#config) [config_identifier](#config_identifier) `;` -    \{ [local_parameter_declaration](#local_parameter_declaration) `;` } -    [design_statement](#design_statement) -    \{ [config_rule_statement](#config_rule_statement) } -    [endconfig](#endconfig) \[ `:` [config_identifier](#config_identifier) ] -design\_statement ::= [design](#design) \{ \[ [library_identifier](#library_identifier) `.` ] [cell_identifier](#cell_identifier) } `;` -config\_rule\_statement ::= -    [default_clause](#default_clause) [liblist_clause](#liblist_clause) `;` -    \| [inst_clause](#inst_clause) [liblist_clause](#liblist_clause) `;` -    \| [inst_clause](#inst_clause) [use_clause](#use_clause) `;` -    \| [cell_clause](#cell_clause) [liblist_clause](#liblist_clause) `;` -    \| [cell_clause](#cell_clause) [use_clause](#use_clause) `;` -default\_clause ::= [default](#default) -inst\_clause ::= [instance](#instance) [inst_name](#inst_name) -inst\_name ::= [topmodule_identifier](#topmodule_identifier) \{ `.` [instance_identifier](#instance_identifier) } -cell\_clause ::= [cell](#cell) \[ [library_identifier](#library_identifier) `.` ] [cell_identifier](#cell_identifier) -liblist\_clause ::= [liblist](#liblist) \{ [library_identifier](#library_identifier) } -use\_clause ::= -    [use](#use) \[ [library_identifier](#library_identifier) `.` ] [cell_identifier](#cell_identifier) \[ `:` [config](#config) ] -    \| [use](#use) [named_parameter_assignment](#named_parameter_assignment) \{ `,` [named_parameter_assignment](#named_parameter_assignment) } \[ `:` [config](#config) ] -    \| [use](#use) \[ [library_identifier](#library_identifier) `.` ] [cell_identifier](#cell_identifier) [named_parameter_assignment](#named_parameter_assignment) -    \{ `,` [named_parameter_assignment](#named_parameter_assignment) } \[ `:` [config](#config) ] +config\_declaration ::= +    [config](#config) [config_identifier](#config_identifier) `;` +    \{ [local_parameter_declaration](#local_parameter_declaration) `;` } +    [design_statement](#design_statement) +    \{ [config_rule_statement](#config_rule_statement) } +    [endconfig](#endconfig) \[ `:` [config_identifier](#config_identifier) ] +design\_statement ::= [design](#design) \{ \[ [library_identifier](#library_identifier) `.` ] [cell_identifier](#cell_identifier) } `;` +config\_rule\_statement ::= +    [default_clause](#default_clause) [liblist_clause](#liblist_clause) `;` +    \| [inst_clause](#inst_clause) [liblist_clause](#liblist_clause) `;` +    \| [inst_clause](#inst_clause) [use_clause](#use_clause) `;` +    \| [cell_clause](#cell_clause) [liblist_clause](#liblist_clause) `;` +    \| [cell_clause](#cell_clause) [use_clause](#use_clause) `;` +default\_clause ::= [default](#default) +inst\_clause ::= [instance](#instance) [inst_name](#inst_name) +inst\_name ::= [topmodule_identifier](#topmodule_identifier) \{ `.` [instance_identifier](#instance_identifier) } +cell\_clause ::= [cell](#cell) \[ [library_identifier](#library_identifier) `.` ] [cell_identifier](#cell_identifier) +liblist\_clause ::= [liblist](#liblist) \{ [library_identifier](#library_identifier) } +use\_clause ::= +    [use](#use) \[ [library_identifier](#library_identifier) `.` ] [cell_identifier](#cell_identifier) \[ `:` [config](#config) ] +    \| [use](#use) [named_parameter_assignment](#named_parameter_assignment) \{ `,` [named_parameter_assignment](#named_parameter_assignment) } \[ `:` [config](#config) ] +    \| [use](#use) \[ [library_identifier](#library_identifier) `.` ] [cell_identifier](#cell_identifier) [named_parameter_assignment](#named_parameter_assignment) +    \{ `,` [named_parameter_assignment](#named_parameter_assignment) } \[ `:` [config](#config) ] ### A.1.6 Interface items -interface\_or\_generate\_item ::= -    \{ [attribute_instance](#attribute_instance) } [module_common_item](#module_common_item) -    \| \{ [attribute_instance](#attribute_instance) } [extern_tf_declaration](#extern_tf_declaration) -extern\_tf\_declaration ::= -    [extern](#extern) [method_prototype](#method_prototype) `;` -    \| [extern](#extern) [forkjoin](#forkjoin) [task_prototype](#task_prototype) `;` -interface\_item ::= -    [port_declaration](#port_declaration) `;` -    \| [non_port_interface_item](#non_port_interface_item) -non\_port\_interface\_item ::= -    [generate_region](#generate_region) -    \| [interface_or_generate_item](#interface_or_generate_item) -    \| [program_declaration](#program_declaration) -    \| [modport_declaration](#modport_declaration) -    \| [interface_declaration](#interface_declaration) -    \| [timeunits_declaration3](#timeunits_declaration3) +interface\_or\_generate\_item ::= +    \{ [attribute_instance](#attribute_instance) } [module_common_item](#module_common_item) +    \| \{ [attribute_instance](#attribute_instance) } [extern_tf_declaration](#extern_tf_declaration) +extern\_tf\_declaration ::= +    [extern](#extern) [method_prototype](#method_prototype) `;` +    \| [extern](#extern) [forkjoin](#forkjoin) [task_prototype](#task_prototype) `;` +interface\_item ::= +    [port_declaration](#port_declaration) `;` +    \| [non_port_interface_item](#non_port_interface_item) +non\_port\_interface\_item ::= +    [generate_region](#generate_region) +    \| [interface_or_generate_item](#interface_or_generate_item) +    \| [program_declaration](#program_declaration) +    \| [modport_declaration](#modport_declaration) +    \| [interface_declaration](#interface_declaration) +    \| [timeunits_declaration3](#timeunits_declaration3) ### A.1.7 Program items -program\_item ::= -    [port_declaration](#port_declaration) `;` -    \| [non_port_program_item](#non_port_program_item) -non\_port\_program\_item ::= -    \{ [attribute_instance](#attribute_instance) } [continuous_assign](#continuous_assign) -    \| \{ [attribute_instance](#attribute_instance) } [module_or_generate_item_declaration](#module_or_generate_item_declaration) -    \| \{ [attribute_instance](#attribute_instance) } [initial_construct](#initial_construct) -    \| \{ [attribute_instance](#attribute_instance) } [final_construct](#final_construct) -    \| \{ [attribute_instance](#attribute_instance) } [concurrent_assertion_item](#concurrent_assertion_item) -    \| [timeunits_declaration3](#timeunits_declaration3) -    \| [program_generate_item](#program_generate_item) -program\_generate\_item5 ::= -    [loop_generate_construct](#loop_generate_construct) -    \| [conditional_generate_construct](#conditional_generate_construct) -    \| [generate_region](#generate_region) -    \| [elaboration_severity_system_task](#elaboration_severity_system_task) +program\_item ::= +    [port_declaration](#port_declaration) `;` +    \| [non_port_program_item](#non_port_program_item) +non\_port\_program\_item ::= +    \{ [attribute_instance](#attribute_instance) } [continuous_assign](#continuous_assign) +    \| \{ [attribute_instance](#attribute_instance) } [module_or_generate_item_declaration](#module_or_generate_item_declaration) +    \| \{ [attribute_instance](#attribute_instance) } [initial_construct](#initial_construct) +    \| \{ [attribute_instance](#attribute_instance) } [final_construct](#final_construct) +    \| \{ [attribute_instance](#attribute_instance) } [concurrent_assertion_item](#concurrent_assertion_item) +    \| [timeunits_declaration3](#timeunits_declaration3) +    \| [program_generate_item](#program_generate_item) +program\_generate\_item5 ::= +    [loop_generate_construct](#loop_generate_construct) +    \| [conditional_generate_construct](#conditional_generate_construct) +    \| [generate_region](#generate_region) +    \| [elaboration_severity_system_task](#elaboration_severity_system_task) ### A.1.8 Checker items -checker\_port\_list ::= [checker_port_item](#checker_port_item) \{ `,` [checker_port_item](#checker_port_item) } -checker\_port\_item ::= -    \{ [attribute_instance](#attribute_instance) } \[ [checker_port_direction](#checker_port_direction) ] [property_formal_type](#property_formal_type) [formal_port_identifier](#formal_port_identifier) -    \{ [variable_dimension](#variable_dimension) } \[ `=` [property_actual_arg](#property_actual_arg) ] -checker\_port\_direction ::= [input](#input) \| [output](#output) -checker\_or\_generate\_item ::= -    [checker_or_generate_item_declaration](#checker_or_generate_item_declaration) -    \| [initial_construct](#initial_construct) -    \| [always_construct](#always_construct) -    \| [final_construct](#final_construct) -    \| [assertion_item](#assertion_item) -    \| [continuous_assign](#continuous_assign) -    \| [checker_generate_item](#checker_generate_item) -checker\_or\_generate\_item\_declaration ::= -    \[ [rand](#rand) ] [data_declaration](#data_declaration) -    \| [function_declaration](#function_declaration) -    \| [checker_declaration](#checker_declaration) -    \| [assertion_item_declaration](#assertion_item_declaration) -    \| [covergroup_declaration](#covergroup_declaration) -    \| [genvar_declaration](#genvar_declaration) -    \| [clocking_declaration](#clocking_declaration) -    \| [default](#default) [clocking](#clocking) [clocking_identifier](#clocking_identifier) `;` -    \| [default](#default) [disable](#disable) [iff](#iff) [expression_or_dist](#expression_or_dist) `;` -    \| `;` -checker\_generate\_item6 ::= -    [loop_generate_construct](#loop_generate_construct) -    \| [conditional_generate_construct](#conditional_generate_construct) -    \| [generate_region](#generate_region) -    \| [elaboration_severity_system_task](#elaboration_severity_system_task) +checker\_port\_list ::= [checker_port_item](#checker_port_item) \{ `,` [checker_port_item](#checker_port_item) } +checker\_port\_item ::= +    \{ [attribute_instance](#attribute_instance) } \[ [checker_port_direction](#checker_port_direction) ] [property_formal_type](#property_formal_type) [formal_port_identifier](#formal_port_identifier) +    \{ [variable_dimension](#variable_dimension) } \[ `=` [property_actual_arg](#property_actual_arg) ] +checker\_port\_direction ::= [input](#input) \| [output](#output) +checker\_or\_generate\_item ::= +    [checker_or_generate_item_declaration](#checker_or_generate_item_declaration) +    \| [initial_construct](#initial_construct) +    \| [always_construct](#always_construct) +    \| [final_construct](#final_construct) +    \| [assertion_item](#assertion_item) +    \| [continuous_assign](#continuous_assign) +    \| [checker_generate_item](#checker_generate_item) +checker\_or\_generate\_item\_declaration ::= +    \[ [rand](#rand) ] [data_declaration](#data_declaration) +    \| [function_declaration](#function_declaration) +    \| [checker_declaration](#checker_declaration) +    \| [assertion_item_declaration](#assertion_item_declaration) +    \| [covergroup_declaration](#covergroup_declaration) +    \| [genvar_declaration](#genvar_declaration) +    \| [clocking_declaration](#clocking_declaration) +    \| [default](#default) [clocking](#clocking) [clocking_identifier](#clocking_identifier) `;` +    \| [default](#default) [disable](#disable) [iff](#iff) [expression_or_dist](#expression_or_dist) `;` +    \| `;` +checker\_generate\_item6 ::= +    [loop_generate_construct](#loop_generate_construct) +    \| [conditional_generate_construct](#conditional_generate_construct) +    \| [generate_region](#generate_region) +    \| [elaboration_severity_system_task](#elaboration_severity_system_task) ### A.1.9 Class items -class\_item ::= -    \{ [attribute_instance](#attribute_instance) } [class_property](#class_property) -    \| \{ [attribute_instance](#attribute_instance) } [class_method](#class_method) -    \| \{ [attribute_instance](#attribute_instance) } [class_constraint](#class_constraint) -    \| \{ [attribute_instance](#attribute_instance) } [class_declaration](#class_declaration) -    \| \{ [attribute_instance](#attribute_instance) } [interface_class_declaration](#interface_class_declaration) -    \| \{ [attribute_instance](#attribute_instance) } [covergroup_declaration](#covergroup_declaration) -    \| [local_parameter_declaration](#local_parameter_declaration) `;` -    \| [parameter_declaration7](#parameter_declaration7) `;` -    \| `;` -class\_property ::= -    \{ [property_qualifier](#property_qualifier) } [data_declaration](#data_declaration) -    \| [const](#const) \{ [class_item_qualifier](#class_item_qualifier) } [data_type](#data_type) [const_identifier](#const_identifier) \[ `=` [constant_expression](#constant_expression) ] `;` -class\_method ::= -    \{ [method_qualifier](#method_qualifier) } [task_declaration](#task_declaration) -    \| \{ [method_qualifier](#method_qualifier) } [function_declaration](#function_declaration) -    \| [pure](#pure) [virtual](#virtual) \{ [class_item_qualifier](#class_item_qualifier) } [method_prototype8](#method_prototype8) `;` -    \| [extern](#extern) \{ [method_qualifier](#method_qualifier) } [method_prototype](#method_prototype) `;` -    \| \{ [method_qualifier](#method_qualifier) } [class_constructor_declaration](#class_constructor_declaration) -    \| [extern](#extern) \{ [method_qualifier](#method_qualifier) } [class_constructor_prototype](#class_constructor_prototype) -class\_constructor\_declaration ::= -    [function](#function) \[ [class_scope](#class_scope) ] [new](#new) \[ `(` \[ [class_constructor_arg_list](#class_constructor_arg_list) ] `)` ] `;` -    \{ [block_item_declaration](#block_item_declaration) } -    \[ [super](#super) `.` [new](#new) \[ `(` \[ [list_of_arguments](#list_of_arguments) \| [default](#default) ] `)` ] `;` ] -    \{ [function_statement_or_null](#function_statement_or_null) } -    [endfunction](#endfunction) \[ `:` [new](#new) ] -class\_constructor\_prototype ::= [function](#function) [new](#new) \[ `(` \[ [class_constructor_arg_list](#class_constructor_arg_list) ] `)` ] `;` -class\_constructor\_arg\_list ::= [class_constructor_arg](#class_constructor_arg) \{ `,` [class_constructor_arg](#class_constructor_arg) }[9](#9) -class\_constructor\_arg ::= [tf_port_item](#tf_port_item) \| [default](#default) -interface\_class\_item ::= -    [type_declaration](#type_declaration) -    \| \{ [attribute_instance](#attribute_instance) } [interface_class_method](#interface_class_method) -    \| [local_parameter_declaration](#local_parameter_declaration) `;` -    \| [parameter_declaration7](#parameter_declaration7) `;` -    \| `;` -interface\_class\_method ::= [pure](#pure) [virtual](#virtual) [method_prototype](#method_prototype) `;` -class\_constraint ::= -    [constraint_prototype](#constraint_prototype) -    \| [constraint_declaration](#constraint_declaration) -class\_item\_qualifier10 ::= [static](#static) \| [protected](#protected) \| [local](#local) -property\_qualifier10 ::= -    [random_qualifier](#random_qualifier) -    \| [class_item_qualifier](#class_item_qualifier) -random\_qualifier10 ::= [rand](#rand) \| [randc](#randc) -method\_qualifier10 ::= -    \[ [pure](#pure) ] [virtual](#virtual) -    \| [class_item_qualifier](#class_item_qualifier) -method\_prototype ::= -    [task_prototype](#task_prototype) -    \| [function_prototype](#function_prototype) +class\_item ::= +    \{ [attribute_instance](#attribute_instance) } [class_property](#class_property) +    \| \{ [attribute_instance](#attribute_instance) } [class_method](#class_method) +    \| \{ [attribute_instance](#attribute_instance) } [class_constraint](#class_constraint) +    \| \{ [attribute_instance](#attribute_instance) } [class_declaration](#class_declaration) +    \| \{ [attribute_instance](#attribute_instance) } [interface_class_declaration](#interface_class_declaration) +    \| \{ [attribute_instance](#attribute_instance) } [covergroup_declaration](#covergroup_declaration) +    \| [local_parameter_declaration](#local_parameter_declaration) `;` +    \| [parameter_declaration7](#parameter_declaration7) `;` +    \| `;` +class\_property ::= +    \{ [property_qualifier](#property_qualifier) } [data_declaration](#data_declaration) +    \| [const](#const) \{ [class_item_qualifier](#class_item_qualifier) } [data_type](#data_type) [const_identifier](#const_identifier) \[ `=` [constant_expression](#constant_expression) ] `;` +class\_method ::= +    \{ [method_qualifier](#method_qualifier) } [task_declaration](#task_declaration) +    \| \{ [method_qualifier](#method_qualifier) } [function_declaration](#function_declaration) +    \| [pure](#pure) [virtual](#virtual) \{ [class_item_qualifier](#class_item_qualifier) } [method_prototype8](#method_prototype8) `;` +    \| [extern](#extern) \{ [method_qualifier](#method_qualifier) } [method_prototype](#method_prototype) `;` +    \| \{ [method_qualifier](#method_qualifier) } [class_constructor_declaration](#class_constructor_declaration) +    \| [extern](#extern) \{ [method_qualifier](#method_qualifier) } [class_constructor_prototype](#class_constructor_prototype) +class\_constructor\_declaration ::= +    [function](#function) \[ [class_scope](#class_scope) ] [new](#new) \[ `(` \[ [class_constructor_arg_list](#class_constructor_arg_list) ] `)` ] `;` +    \{ [block_item_declaration](#block_item_declaration) } +    \[ [super](#super) `.` [new](#new) \[ `(` \[ [list_of_arguments](#list_of_arguments) \| [default](#default) ] `)` ] `;` ] +    \{ [function_statement_or_null](#function_statement_or_null) } +    [endfunction](#endfunction) \[ `:` [new](#new) ] +class\_constructor\_prototype ::= [function](#function) [new](#new) \[ `(` \[ [class_constructor_arg_list](#class_constructor_arg_list) ] `)` ] `;` +class\_constructor\_arg\_list ::= [class_constructor_arg](#class_constructor_arg) \{ `,` [class_constructor_arg](#class_constructor_arg) }[9](#9) +class\_constructor\_arg ::= [tf_port_item](#tf_port_item) \| [default](#default) +interface\_class\_item ::= +    [type_declaration](#type_declaration) +    \| \{ [attribute_instance](#attribute_instance) } [interface_class_method](#interface_class_method) +    \| [local_parameter_declaration](#local_parameter_declaration) `;` +    \| [parameter_declaration7](#parameter_declaration7) `;` +    \| `;` +interface\_class\_method ::= [pure](#pure) [virtual](#virtual) [method_prototype](#method_prototype) `;` +class\_constraint ::= +    [constraint_prototype](#constraint_prototype) +    \| [constraint_declaration](#constraint_declaration) +class\_item\_qualifier10 ::= [static](#static) \| [protected](#protected) \| [local](#local) +property\_qualifier10 ::= +    [random_qualifier](#random_qualifier) +    \| [class_item_qualifier](#class_item_qualifier) +random\_qualifier10 ::= [rand](#rand) \| [randc](#randc) +method\_qualifier10 ::= +    \[ [pure](#pure) ] [virtual](#virtual) +    \| [class_item_qualifier](#class_item_qualifier) +method\_prototype ::= +    [task_prototype](#task_prototype) +    \| [function_prototype](#function_prototype) ### A.1.10 Constraints -constraint\_declaration ::= -    \[ [static](#static) ] [constraint](#constraint) \[ [dynamic_override_specifiers](#dynamic_override_specifiers) ][11](#11) [constraint_identifier](#constraint_identifier) [constraint_block](#constraint_block) -constraint\_block ::= \{ \{ [constraint_block_item](#constraint_block_item) } } -constraint\_block\_item ::= -    [solve](#solve) [solve_before_list](#solve_before_list) [before](#before) [solve_before_list](#solve_before_list) `;` -    \| [constraint_expression](#constraint_expression) -solve\_before\_list ::= [constraint_primary](#constraint_primary) \{ `,` [constraint_primary](#constraint_primary) } -constraint\_primary ::= \[ [implicit_class_handle](#implicit_class_handle) `.` \| [class_scope](#class_scope) ] [hierarchical_identifier](#hierarchical_identifier) [select](#select) \[ `(` `)` ][12](#12) -constraint\_expression ::= -    \[ [soft](#soft) ] [expression_or_dist](#expression_or_dist) `;` -    \| [uniqueness_constraint](#uniqueness_constraint) `;` -    \| [expression](#expression) [â](#â)`€“>` [constraint_set](#constraint_set) -    \| [if](#if) `(` [expression](#expression) `)` [constraint_set](#constraint_set) \[ [else](#else) [constraint_set](#constraint_set) ] -    \| [foreach](#foreach) `(` [ps_or_hierarchical_array_identifier](#ps_or_hierarchical_array_identifier) \[ [loop_variables](#loop_variables) ] `)` [constraint_set](#constraint_set) -    \| [disable](#disable) [soft](#soft) [constraint_primary](#constraint_primary) `;` -uniqueness\_constraint ::= [unique](#unique) \{ [range_list13](#range_list13) } -constraint\_set ::= -    [constraint_expression](#constraint_expression) -    \| \{ \{ [constraint_expression](#constraint_expression) } } -expression\_or\_dist ::= [expression](#expression) \[ [dist](#dist) \{ [dist_list](#dist_list) } ] -dist\_list ::= [dist_item](#dist_item) \{ `,` [dist_item](#dist_item) } -dist\_item ::= -    [value_range](#value_range) \[ [dist_weight](#dist_weight) ] -    \| [default](#default) `:/` [expression](#expression) -dist\_weight ::= -    `:=` [expression](#expression) -    \| `:/` [expression](#expression) -constraint\_prototype ::= -    \[ [constraint_prototype_qualifier](#constraint_prototype_qualifier) ] \[ [static](#static) ] [constraint](#constraint) \[ [dynamic_override_specifiers](#dynamic_override_specifiers) ][8](#8)`,`[11](#11) -    [constraint_identifier](#constraint_identifier) `;` -constraint\_prototype\_qualifier ::= [extern](#extern) \| [pure](#pure) -extern\_constraint\_declaration ::= -    \[ [static](#static) ] [constraint](#constraint) \[ [dynamic_override_specifiers](#dynamic_override_specifiers) ][11](#11) [class_scope](#class_scope) [constraint_identifier](#constraint_identifier) -    [constraint_block](#constraint_block) +constraint\_declaration ::= +    \[ [static](#static) ] [constraint](#constraint) \[ [dynamic_override_specifiers](#dynamic_override_specifiers) ][11](#11) [constraint_identifier](#constraint_identifier) [constraint_block](#constraint_block) +constraint\_block ::= \{ \{ [constraint_block_item](#constraint_block_item) } } +constraint\_block\_item ::= +    [solve](#solve) [solve_before_list](#solve_before_list) [before](#before) [solve_before_list](#solve_before_list) `;` +    \| [constraint_expression](#constraint_expression) +solve\_before\_list ::= [constraint_primary](#constraint_primary) \{ `,` [constraint_primary](#constraint_primary) } +constraint\_primary ::= \[ [implicit_class_handle](#implicit_class_handle) `.` \| [class_scope](#class_scope) ] [hierarchical_identifier](#hierarchical_identifier) [select](#select) \[ `(` `)` ][12](#12) +constraint\_expression ::= +    \[ [soft](#soft) ] [expression_or_dist](#expression_or_dist) `;` +    \| [uniqueness_constraint](#uniqueness_constraint) `;` +    \| [expression](#expression) [â](#â)`€“>` [constraint_set](#constraint_set) +    \| [if](#if) `(` [expression](#expression) `)` [constraint_set](#constraint_set) \[ [else](#else) [constraint_set](#constraint_set) ] +    \| [foreach](#foreach) `(` [ps_or_hierarchical_array_identifier](#ps_or_hierarchical_array_identifier) \[ [loop_variables](#loop_variables) ] `)` [constraint_set](#constraint_set) +    \| [disable](#disable) [soft](#soft) [constraint_primary](#constraint_primary) `;` +uniqueness\_constraint ::= [unique](#unique) \{ [range_list13](#range_list13) } +constraint\_set ::= +    [constraint_expression](#constraint_expression) +    \| \{ \{ [constraint_expression](#constraint_expression) } } +expression\_or\_dist ::= [expression](#expression) \[ [dist](#dist) \{ [dist_list](#dist_list) } ] +dist\_list ::= [dist_item](#dist_item) \{ `,` [dist_item](#dist_item) } +dist\_item ::= +    [value_range](#value_range) \[ [dist_weight](#dist_weight) ] +    \| [default](#default) `:/` [expression](#expression) +dist\_weight ::= +    `:=` [expression](#expression) +    \| `:/` [expression](#expression) +constraint\_prototype ::= +    \[ [constraint_prototype_qualifier](#constraint_prototype_qualifier) ] \[ [static](#static) ] [constraint](#constraint) \[ [dynamic_override_specifiers](#dynamic_override_specifiers) ][8](#8)`,`[11](#11) +    [constraint_identifier](#constraint_identifier) `;` +constraint\_prototype\_qualifier ::= [extern](#extern) \| [pure](#pure) +extern\_constraint\_declaration ::= +    \[ [static](#static) ] [constraint](#constraint) \[ [dynamic_override_specifiers](#dynamic_override_specifiers) ][11](#11) [class_scope](#class_scope) [constraint_identifier](#constraint_identifier) +    [constraint_block](#constraint_block) ### A.1.11 Package items -package\_item ::= -    [package_or_generate_item_declaration](#package_or_generate_item_declaration) -    \| [anonymous_program](#anonymous_program) -    \| [package_export_declaration](#package_export_declaration) -    \| [timeunits_declaration3](#timeunits_declaration3) -package\_or\_generate\_item\_declaration ::= -    [net_declaration](#net_declaration) -    \| [data_declaration](#data_declaration) -    \| [task_declaration](#task_declaration) -    \| [function_declaration](#function_declaration) -    \| [checker_declaration](#checker_declaration) -    \| [dpi_import_export](#dpi_import_export) -    \| [extern_constraint_declaration](#extern_constraint_declaration) -    \| [class_declaration](#class_declaration) -    \| [interface_class_declaration](#interface_class_declaration) -    \| [class_constructor_declaration](#class_constructor_declaration) -    \| [local_parameter_declaration](#local_parameter_declaration) `;` -    \| [parameter_declaration](#parameter_declaration) `;` -    \| [covergroup_declaration](#covergroup_declaration) -    \| [assertion_item_declaration](#assertion_item_declaration) -    \| `;` -anonymous\_program ::= [program](#program) `;` \{ [anonymous_program_item](#anonymous_program_item) } [endprogram](#endprogram) -anonymous\_program\_item ::= -    [task_declaration](#task_declaration) -    \| [function_declaration](#function_declaration) -    \| [class_declaration](#class_declaration) -    \| [interface_class_declaration](#interface_class_declaration) -    \| [covergroup_declaration](#covergroup_declaration) -    \| [class_constructor_declaration](#class_constructor_declaration) -    \| `;` +package\_item ::= +    [package_or_generate_item_declaration](#package_or_generate_item_declaration) +    \| [anonymous_program](#anonymous_program) +    \| [package_export_declaration](#package_export_declaration) +    \| [timeunits_declaration3](#timeunits_declaration3) +package\_or\_generate\_item\_declaration ::= +    [net_declaration](#net_declaration) +    \| [data_declaration](#data_declaration) +    \| [task_declaration](#task_declaration) +    \| [function_declaration](#function_declaration) +    \| [checker_declaration](#checker_declaration) +    \| [dpi_import_export](#dpi_import_export) +    \| [extern_constraint_declaration](#extern_constraint_declaration) +    \| [class_declaration](#class_declaration) +    \| [interface_class_declaration](#interface_class_declaration) +    \| [class_constructor_declaration](#class_constructor_declaration) +    \| [local_parameter_declaration](#local_parameter_declaration) `;` +    \| [parameter_declaration](#parameter_declaration) `;` +    \| [covergroup_declaration](#covergroup_declaration) +    \| [assertion_item_declaration](#assertion_item_declaration) +    \| `;` +anonymous\_program ::= [program](#program) `;` \{ [anonymous_program_item](#anonymous_program_item) } [endprogram](#endprogram) +anonymous\_program\_item ::= +    [task_declaration](#task_declaration) +    \| [function_declaration](#function_declaration) +    \| [class_declaration](#class_declaration) +    \| [interface_class_declaration](#interface_class_declaration) +    \| [covergroup_declaration](#covergroup_declaration) +    \| [class_constructor_declaration](#class_constructor_declaration) +    \| `;` ## A.2 Declarations ### A.2.1 Declaration types #### A.2.1.1 Module parameter declarations -local\_parameter\_declaration ::= -    [localparam](#localparam) [data_type_or_implicit](#data_type_or_implicit) [list_of_param_assignments](#list_of_param_assignments) -    \| [localparam](#localparam) [type_parameter_declaration](#type_parameter_declaration) -parameter\_declaration ::= -    [parameter](#parameter) [data_type_or_implicit](#data_type_or_implicit) [list_of_param_assignments](#list_of_param_assignments) -    \| [parameter](#parameter) [type_parameter_declaration](#type_parameter_declaration) -type\_parameter\_declaration ::= [type](#type) \[ [forward_type](#forward_type) ] [list_of_type_assignments](#list_of_type_assignments) -specparam\_declaration ::= [specparam](#specparam) \[ [packed_dimension](#packed_dimension) ] [list_of_specparam_assignments](#list_of_specparam_assignments) `;` +local\_parameter\_declaration ::= +    [localparam](#localparam) [data_type_or_implicit](#data_type_or_implicit) [list_of_param_assignments](#list_of_param_assignments) +    \| [localparam](#localparam) [type_parameter_declaration](#type_parameter_declaration) +parameter\_declaration ::= +    [parameter](#parameter) [data_type_or_implicit](#data_type_or_implicit) [list_of_param_assignments](#list_of_param_assignments) +    \| [parameter](#parameter) [type_parameter_declaration](#type_parameter_declaration) +type\_parameter\_declaration ::= [type](#type) \[ [forward_type](#forward_type) ] [list_of_type_assignments](#list_of_type_assignments) +specparam\_declaration ::= [specparam](#specparam) \[ [packed_dimension](#packed_dimension) ] [list_of_specparam_assignments](#list_of_specparam_assignments) `;` #### A.2.1.2 Port declarations -inout\_declaration ::= -    [inout](#inout) [net_port_type](#net_port_type) [list_of_port_identifiers](#list_of_port_identifiers) -input\_declaration ::= -    [input](#input) [net_port_type](#net_port_type) [list_of_port_identifiers](#list_of_port_identifiers) -    \| [input](#input) [variable_port_type](#variable_port_type) [list_of_variable_identifiers](#list_of_variable_identifiers) -output\_declaration ::= -    [output](#output) [net_port_type](#net_port_type) [list_of_port_identifiers](#list_of_port_identifiers) -    \| [output](#output) [variable_port_type](#variable_port_type) [list_of_variable_port_identifiers](#list_of_variable_port_identifiers) -interface\_port\_declaration ::= -    [interface_identifier](#interface_identifier) [list_of_interface_identifiers](#list_of_interface_identifiers) -    \| [interface_identifier](#interface_identifier) `.` [modport_identifier](#modport_identifier) [list_of_interface_identifiers](#list_of_interface_identifiers) -ref\_declaration ::= -    [ref](#ref) [variable_port_type](#variable_port_type) [list_of_variable_identifiers](#list_of_variable_identifiers) +inout\_declaration ::= +    [inout](#inout) [net_port_type](#net_port_type) [list_of_port_identifiers](#list_of_port_identifiers) +input\_declaration ::= +    [input](#input) [net_port_type](#net_port_type) [list_of_port_identifiers](#list_of_port_identifiers) +    \| [input](#input) [variable_port_type](#variable_port_type) [list_of_variable_identifiers](#list_of_variable_identifiers) +output\_declaration ::= +    [output](#output) [net_port_type](#net_port_type) [list_of_port_identifiers](#list_of_port_identifiers) +    \| [output](#output) [variable_port_type](#variable_port_type) [list_of_variable_port_identifiers](#list_of_variable_port_identifiers) +interface\_port\_declaration ::= +    [interface_identifier](#interface_identifier) [list_of_interface_identifiers](#list_of_interface_identifiers) +    \| [interface_identifier](#interface_identifier) `.` [modport_identifier](#modport_identifier) [list_of_interface_identifiers](#list_of_interface_identifiers) +ref\_declaration ::= +    [ref](#ref) [variable_port_type](#variable_port_type) [list_of_variable_identifiers](#list_of_variable_identifiers) #### A.2.1.3 Type declarations -data\_declaration ::= -    \[ [const](#const) ] \[ [var](#var) ] \[ [lifetime](#lifetime) ] [data_type_or_implicit](#data_type_or_implicit) [list_of_variable_decl_assignments](#list_of_variable_decl_assignments) `;`[14](#14) -    \| [type_declaration](#type_declaration) -    \| [package_import_declaration15](#package_import_declaration15) -    \| [nettype_declaration](#nettype_declaration) -package\_import\_declaration ::= -    [import](#import) [package_import_item](#package_import_item) \{ `,` [package_import_item](#package_import_item) } `;` -package\_export\_declaration ::= -    [export](#export) `*::*` `;` -    \| [export](#export) [package_import_item](#package_import_item) \{ `,` [package_import_item](#package_import_item) } `;` -package\_import\_item ::= -    [package_identifier](#package_identifier) `::` [identifier](#identifier) -    \| [package_identifier](#package_identifier) `::` `*` -genvar\_declaration ::= [genvar](#genvar) [list_of_genvar_identifiers](#list_of_genvar_identifiers) `;` -net\_declaration16 ::= -    [net_type](#net_type) \[ [drive_strength](#drive_strength) \| [charge_strength](#charge_strength) ] \[ [vectored](#vectored) \| [scalared](#scalared) ] -    [data_type_or_implicit](#data_type_or_implicit) \[ [delay3](#delay3) ] [list_of_net_decl_assignments](#list_of_net_decl_assignments) `;` -    \| [nettype_identifier](#nettype_identifier) \[ [delay_control](#delay_control) ] [list_of_net_decl_assignments](#list_of_net_decl_assignments) `;` -    \| [interconnect](#interconnect) [implicit_data_type](#implicit_data_type) \[ `#` [delay_value](#delay_value) ] -    [net_identifier](#net_identifier) \{ [unpacked_dimension](#unpacked_dimension) } \[ `,` [net_identifier](#net_identifier) \{ [unpacked_dimension](#unpacked_dimension) } ] `;` -type\_declaration ::= -    [typedef](#typedef) [data_type_or_incomplete_class_scoped_type](#data_type_or_incomplete_class_scoped_type) [type_identifier](#type_identifier) \{ [variable_dimension](#variable_dimension) } `;` -    \| [typedef](#typedef) [interface_port_identifier](#interface_port_identifier) [constant_bit_select](#constant_bit_select) `.` [type_identifier](#type_identifier) [type_identifier](#type_identifier) `;` -    \| [typedef](#typedef) \[ [forward_type](#forward_type) ] [type_identifier](#type_identifier) `;` -forward\_type ::= [enum](#enum) \| [struct](#struct) \| [union](#union) \| [class](#class) \| [interface](#interface) [class](#class) -nettype\_declaration ::= -    [nettype](#nettype) [data_type](#data_type) [nettype_identifier](#nettype_identifier) \[ [with](#with) \[ [package_scope](#package_scope) \| [class_scope](#class_scope) ] [tf_identifier](#tf_identifier) ] `;` -    \| [nettype](#nettype) \[ [package_scope](#package_scope) \| [class_scope](#class_scope) ] [nettype_identifier](#nettype_identifier) [nettype_identifier](#nettype_identifier) `;` -lifetime ::= [static](#static) \| [automatic](#automatic) +data\_declaration ::= +    \[ [const](#const) ] \[ [var](#var) ] \[ [lifetime](#lifetime) ] [data_type_or_implicit](#data_type_or_implicit) [list_of_variable_decl_assignments](#list_of_variable_decl_assignments) `;`[14](#14) +    \| [type_declaration](#type_declaration) +    \| [package_import_declaration15](#package_import_declaration15) +    \| [nettype_declaration](#nettype_declaration) +package\_import\_declaration ::= +    [import](#import) [package_import_item](#package_import_item) \{ `,` [package_import_item](#package_import_item) } `;` +package\_export\_declaration ::= +    [export](#export) `*::*` `;` +    \| [export](#export) [package_import_item](#package_import_item) \{ `,` [package_import_item](#package_import_item) } `;` +package\_import\_item ::= +    [package_identifier](#package_identifier) `::` [identifier](#identifier) +    \| [package_identifier](#package_identifier) `::` `*` +genvar\_declaration ::= [genvar](#genvar) [list_of_genvar_identifiers](#list_of_genvar_identifiers) `;` +net\_declaration16 ::= +    [net_type](#net_type) \[ [drive_strength](#drive_strength) \| [charge_strength](#charge_strength) ] \[ [vectored](#vectored) \| [scalared](#scalared) ] +    [data_type_or_implicit](#data_type_or_implicit) \[ [delay3](#delay3) ] [list_of_net_decl_assignments](#list_of_net_decl_assignments) `;` +    \| [nettype_identifier](#nettype_identifier) \[ [delay_control](#delay_control) ] [list_of_net_decl_assignments](#list_of_net_decl_assignments) `;` +    \| [interconnect](#interconnect) [implicit_data_type](#implicit_data_type) \[ `#` [delay_value](#delay_value) ] +    [net_identifier](#net_identifier) \{ [unpacked_dimension](#unpacked_dimension) } \[ `,` [net_identifier](#net_identifier) \{ [unpacked_dimension](#unpacked_dimension) } ] `;` +type\_declaration ::= +    [typedef](#typedef) [data_type_or_incomplete_class_scoped_type](#data_type_or_incomplete_class_scoped_type) [type_identifier](#type_identifier) \{ [variable_dimension](#variable_dimension) } `;` +    \| [typedef](#typedef) [interface_port_identifier](#interface_port_identifier) [constant_bit_select](#constant_bit_select) `.` [type_identifier](#type_identifier) [type_identifier](#type_identifier) `;` +    \| [typedef](#typedef) \[ [forward_type](#forward_type) ] [type_identifier](#type_identifier) `;` +forward\_type ::= [enum](#enum) \| [struct](#struct) \| [union](#union) \| [class](#class) \| [interface](#interface) [class](#class) +nettype\_declaration ::= +    [nettype](#nettype) [data_type](#data_type) [nettype_identifier](#nettype_identifier) \[ [with](#with) \[ [package_scope](#package_scope) \| [class_scope](#class_scope) ] [tf_identifier](#tf_identifier) ] `;` +    \| [nettype](#nettype) \[ [package_scope](#package_scope) \| [class_scope](#class_scope) ] [nettype_identifier](#nettype_identifier) [nettype_identifier](#nettype_identifier) `;` +lifetime ::= [static](#static) \| [automatic](#automatic) ### A.2.2 Declaration data types #### A.2.2.1 Net and variable types -casting\_type ::= -    [simple_type](#simple_type) -    \| [constant_primary](#constant_primary) -    \| [signing](#signing) -    \| [string](#string) -    \| [const](#const) -data\_type ::= -    [integer_vector_type](#integer_vector_type) \[ [signing](#signing) ] \{ [packed_dimension](#packed_dimension) } -    \| [integer_atom_type](#integer_atom_type) \[ [signing](#signing) ] -    \| [non_integer_type](#non_integer_type) -    \| [struct_union](#struct_union) \[ [packed](#packed) \[ [signing](#signing) ] ] \{ [struct_union_member](#struct_union_member) \{ [struct_union_member](#struct_union_member) } } -    \{ [packed_dimension](#packed_dimension) }[17](#17) -    \| [enum](#enum) \[ [enum_base_type](#enum_base_type) ] \{ [enum_name_declaration](#enum_name_declaration) \{ `,` [enum_name_declaration](#enum_name_declaration) } } -    \{ [packed_dimension](#packed_dimension) } -    \| [string](#string) -    \| [chandle](#chandle) -    \| [virtual](#virtual) \[ [interface](#interface) ] [interface_identifier](#interface_identifier) \[ [parameter_value_assignment](#parameter_value_assignment) ] \[ `.` [modport_identifier](#modport_identifier) ] -    \| \[ [class_scope](#class_scope) \| [package_scope](#package_scope) ] [type_identifier](#type_identifier) \{ [packed_dimension](#packed_dimension) } -    \| [class_type](#class_type) -    \| [event](#event) -    \| [ps_covergroup_identifier](#ps_covergroup_identifier) -    \| [type_reference18](#type_reference18) -data\_type\_or\_implicit ::= -    [data_type](#data_type) -    \| [implicit_data_type](#implicit_data_type) -implicit\_data\_type ::= \[ [signing](#signing) ] \{ [packed_dimension](#packed_dimension) } -enum\_base\_type ::= -    [integer_atom_type](#integer_atom_type) \[ [signing](#signing) ] -    \| [integer_vector_type](#integer_vector_type) \[ [signing](#signing) ] \[ [packed_dimension](#packed_dimension) ] -    \| [type_identifier](#type_identifier) \[ [packed_dimension](#packed_dimension) ][19](#19) -enum\_name\_declaration ::= -    [enum_identifier](#enum_identifier) \[ \[ [integral_number](#integral_number) \[ `:` [integral_number](#integral_number) ] ] ] \[ `=` [constant_expression](#constant_expression) ] -class\_scope ::= [class_type](#class_type) `::` -class\_type ::= -    [ps_class_identifier](#ps_class_identifier) \[ [parameter_value_assignment](#parameter_value_assignment) ] -    \{ `::` [class_identifier](#class_identifier) \[ [parameter_value_assignment](#parameter_value_assignment) ] } -interface\_class\_type ::= [ps_class_identifier](#ps_class_identifier) \[ [parameter_value_assignment](#parameter_value_assignment) ] -integer\_type ::= -    [integer_vector_type](#integer_vector_type) -    \| [integer_atom_type](#integer_atom_type) -integer\_atom\_type ::= [byte](#byte) \| [shortint](#shortint) \| [int](#int) \| [longint](#longint) \| [integer](#integer) \| [time](#time) -integer\_vector\_type ::= [bit](#bit) \| [logic](#logic) \| [reg](#reg) -non\_integer\_type ::= [shortreal](#shortreal) \| [real](#real) \| [realtime](#realtime) -net\_type ::= -    [supply0](#supply0) \| [supply1](#supply1) \| [tri](#tri) \| [triand](#triand) \| [trior](#trior) \| [trireg](#trireg) \| [tri0](#tri0) \| [tri1](#tri1) \| [uwire](#uwire) \| [wire](#wire) \| [wand](#wand) \| [wor](#wor) -net\_port\_type ::= -    \[ [net_type](#net_type) ] [data_type_or_implicit](#data_type_or_implicit) -    \| [nettype_identifier](#nettype_identifier) -    \| [interconnect](#interconnect) [implicit_data_type](#implicit_data_type) -variable\_port\_type ::= [var_data_type](#var_data_type) -var\_data\_type ::= -    [data_type](#data_type) -    \| [var](#var) [data_type_or_implicit](#data_type_or_implicit) -signing ::= [signed](#signed) \| [unsigned](#unsigned) -simple\_type ::= -    [integer_type](#integer_type) -    \| [non_integer_type](#non_integer_type) -    \| [ps_type_identifier](#ps_type_identifier) -    \| [ps_parameter_identifier](#ps_parameter_identifier) -struct\_union ::= -    [struct](#struct) -    \| [union](#union) \[ [soft](#soft) \| [tagged](#tagged) ] -struct\_union\_member20 ::= -    \{ [attribute_instance](#attribute_instance) } \[ [random_qualifier](#random_qualifier) ] [data_type_or_void](#data_type_or_void) [list_of_variable_decl_assignments](#list_of_variable_decl_assignments) `;` -data\_type\_or\_void ::= -    [data_type](#data_type) -    \| [void](#void) -type\_reference ::= -    [type](#type) `(` [expression21](#expression21) `)` -    \| [type](#type) `(` [data_type_or_incomplete_class_scoped_type](#data_type_or_incomplete_class_scoped_type) `)` -data\_type\_or\_incomplete\_class\_scoped\_type ::= -    [data_type](#data_type) -    \| [incomplete_class_scoped_type](#incomplete_class_scoped_type) -    [incomplete_class_scoped_type](#incomplete_class_scoped_type) `::` `=` -    [type_identifier](#type_identifier) `::` [type_identifier_or_class_type](#type_identifier_or_class_type) -    \| [incomplete_class_scoped_type](#incomplete_class_scoped_type) `::` [type_identifier_or_class_type](#type_identifier_or_class_type) -type\_identifier\_or\_class\_type ::= -    [type_identifier](#type_identifier) -    \| [class_type](#class_type) +casting\_type ::= +    [simple_type](#simple_type) +    \| [constant_primary](#constant_primary) +    \| [signing](#signing) +    \| [string](#string) +    \| [const](#const) +data\_type ::= +    [integer_vector_type](#integer_vector_type) \[ [signing](#signing) ] \{ [packed_dimension](#packed_dimension) } +    \| [integer_atom_type](#integer_atom_type) \[ [signing](#signing) ] +    \| [non_integer_type](#non_integer_type) +    \| [struct_union](#struct_union) \[ [packed](#packed) \[ [signing](#signing) ] ] \{ [struct_union_member](#struct_union_member) \{ [struct_union_member](#struct_union_member) } } +    \{ [packed_dimension](#packed_dimension) }[17](#17) +    \| [enum](#enum) \[ [enum_base_type](#enum_base_type) ] \{ [enum_name_declaration](#enum_name_declaration) \{ `,` [enum_name_declaration](#enum_name_declaration) } } +    \{ [packed_dimension](#packed_dimension) } +    \| [string](#string) +    \| [chandle](#chandle) +    \| [virtual](#virtual) \[ [interface](#interface) ] [interface_identifier](#interface_identifier) \[ [parameter_value_assignment](#parameter_value_assignment) ] \[ `.` [modport_identifier](#modport_identifier) ] +    \| \[ [class_scope](#class_scope) \| [package_scope](#package_scope) ] [type_identifier](#type_identifier) \{ [packed_dimension](#packed_dimension) } +    \| [class_type](#class_type) +    \| [event](#event) +    \| [ps_covergroup_identifier](#ps_covergroup_identifier) +    \| [type_reference18](#type_reference18) +data\_type\_or\_implicit ::= +    [data_type](#data_type) +    \| [implicit_data_type](#implicit_data_type) +implicit\_data\_type ::= \[ [signing](#signing) ] \{ [packed_dimension](#packed_dimension) } +enum\_base\_type ::= +    [integer_atom_type](#integer_atom_type) \[ [signing](#signing) ] +    \| [integer_vector_type](#integer_vector_type) \[ [signing](#signing) ] \[ [packed_dimension](#packed_dimension) ] +    \| [type_identifier](#type_identifier) \[ [packed_dimension](#packed_dimension) ][19](#19) +enum\_name\_declaration ::= +    [enum_identifier](#enum_identifier) \[ \[ [integral_number](#integral_number) \[ `:` [integral_number](#integral_number) ] ] ] \[ `=` [constant_expression](#constant_expression) ] +class\_scope ::= [class_type](#class_type) `::` +class\_type ::= +    [ps_class_identifier](#ps_class_identifier) \[ [parameter_value_assignment](#parameter_value_assignment) ] +    \{ `::` [class_identifier](#class_identifier) \[ [parameter_value_assignment](#parameter_value_assignment) ] } +interface\_class\_type ::= [ps_class_identifier](#ps_class_identifier) \[ [parameter_value_assignment](#parameter_value_assignment) ] +integer\_type ::= +    [integer_vector_type](#integer_vector_type) +    \| [integer_atom_type](#integer_atom_type) +integer\_atom\_type ::= [byte](#byte) \| [shortint](#shortint) \| [int](#int) \| [longint](#longint) \| [integer](#integer) \| [time](#time) +integer\_vector\_type ::= [bit](#bit) \| [logic](#logic) \| [reg](#reg) +non\_integer\_type ::= [shortreal](#shortreal) \| [real](#real) \| [realtime](#realtime) +net\_type ::= +    [supply0](#supply0) \| [supply1](#supply1) \| [tri](#tri) \| [triand](#triand) \| [trior](#trior) \| [trireg](#trireg) \| [tri0](#tri0) \| [tri1](#tri1) \| [uwire](#uwire) \| [wire](#wire) \| [wand](#wand) \| [wor](#wor) +net\_port\_type ::= +    \[ [net_type](#net_type) ] [data_type_or_implicit](#data_type_or_implicit) +    \| [nettype_identifier](#nettype_identifier) +    \| [interconnect](#interconnect) [implicit_data_type](#implicit_data_type) +variable\_port\_type ::= [var_data_type](#var_data_type) +var\_data\_type ::= +    [data_type](#data_type) +    \| [var](#var) [data_type_or_implicit](#data_type_or_implicit) +signing ::= [signed](#signed) \| [unsigned](#unsigned) +simple\_type ::= +    [integer_type](#integer_type) +    \| [non_integer_type](#non_integer_type) +    \| [ps_type_identifier](#ps_type_identifier) +    \| [ps_parameter_identifier](#ps_parameter_identifier) +struct\_union ::= +    [struct](#struct) +    \| [union](#union) \[ [soft](#soft) \| [tagged](#tagged) ] +struct\_union\_member20 ::= +    \{ [attribute_instance](#attribute_instance) } \[ [random_qualifier](#random_qualifier) ] [data_type_or_void](#data_type_or_void) [list_of_variable_decl_assignments](#list_of_variable_decl_assignments) `;` +data\_type\_or\_void ::= +    [data_type](#data_type) +    \| [void](#void) +type\_reference ::= +    [type](#type) `(` [expression21](#expression21) `)` +    \| [type](#type) `(` [data_type_or_incomplete_class_scoped_type](#data_type_or_incomplete_class_scoped_type) `)` +data\_type\_or\_incomplete\_class\_scoped\_type ::= +    [data_type](#data_type) +    \| [incomplete_class_scoped_type](#incomplete_class_scoped_type) +    [incomplete_class_scoped_type](#incomplete_class_scoped_type) `::` `=` +    [type_identifier](#type_identifier) `::` [type_identifier_or_class_type](#type_identifier_or_class_type) +    \| [incomplete_class_scoped_type](#incomplete_class_scoped_type) `::` [type_identifier_or_class_type](#type_identifier_or_class_type) +type\_identifier\_or\_class\_type ::= +    [type_identifier](#type_identifier) +    \| [class_type](#class_type) #### A.2.2.2 Strengths -drive\_strength ::= -    `(` [strength0](#strength0) `,` [strength1](#strength1) `)` -    \| `(` [strength1](#strength1) `,` [strength0](#strength0) `)` -    \| `(` [strength0](#strength0) `,` [highz1](#highz1) `)` -    \| `(` [strength1](#strength1) `,` [highz0](#highz0) `)` -    \| `(` [highz0](#highz0) `,` [strength1](#strength1) `)` -    \| `(` [highz1](#highz1) `,` [strength0](#strength0) `)` -strength0 ::= [supply0](#supply0) \| [strong0](#strong0) \| [pull0](#pull0) \| [weak0](#weak0) -strength1 ::= [supply1](#supply1) \| [strong1](#strong1) \| [pull1](#pull1) \| [weak1](#weak1) -charge\_strength ::= `(` [small](#small) `)` \| `(` [medium](#medium) `)` \| `(` [large](#large) `)` +drive\_strength ::= +    `(` [strength0](#strength0) `,` [strength1](#strength1) `)` +    \| `(` [strength1](#strength1) `,` [strength0](#strength0) `)` +    \| `(` [strength0](#strength0) `,` [highz1](#highz1) `)` +    \| `(` [strength1](#strength1) `,` [highz0](#highz0) `)` +    \| `(` [highz0](#highz0) `,` [strength1](#strength1) `)` +    \| `(` [highz1](#highz1) `,` [strength0](#strength0) `)` +strength0 ::= [supply0](#supply0) \| [strong0](#strong0) \| [pull0](#pull0) \| [weak0](#weak0) +strength1 ::= [supply1](#supply1) \| [strong1](#strong1) \| [pull1](#pull1) \| [weak1](#weak1) +charge\_strength ::= `(` [small](#small) `)` \| `(` [medium](#medium) `)` \| `(` [large](#large) `)` #### A.2.2.3 Delays -delay2 ::= -    `#` [delay_value](#delay_value) -    \| `#` `(` [mintypmax_expression](#mintypmax_expression) \[ `,` [mintypmax_expression](#mintypmax_expression) ] `)` -delay3 ::= -    `#` [delay_value](#delay_value) -    \| `#` `(` [mintypmax_expression](#mintypmax_expression) \[ `,` [mintypmax_expression](#mintypmax_expression) \[ `,` [mintypmax_expression](#mintypmax_expression) ] ] `)` -delay\_value ::= -    [unsigned_number](#unsigned_number) -    \| [real_number](#real_number) -    \| [ps_identifier](#ps_identifier) -    \| [time_literal](#time_literal) -    \| [1step](#1step) +delay2 ::= +    `#` [delay_value](#delay_value) +    \| `#` `(` [mintypmax_expression](#mintypmax_expression) \[ `,` [mintypmax_expression](#mintypmax_expression) ] `)` +delay3 ::= +    `#` [delay_value](#delay_value) +    \| `#` `(` [mintypmax_expression](#mintypmax_expression) \[ `,` [mintypmax_expression](#mintypmax_expression) \[ `,` [mintypmax_expression](#mintypmax_expression) ] ] `)` +delay\_value ::= +    [unsigned_number](#unsigned_number) +    \| [real_number](#real_number) +    \| [ps_identifier](#ps_identifier) +    \| [time_literal](#time_literal) +    \| [1step](#1step) ### A.2.3 Declaration lists -list\_of\_defparam\_assignments ::= [defparam_assignment](#defparam_assignment) \{ `,` [defparam_assignment](#defparam_assignment) } -list\_of\_genvar\_identifiers ::= [genvar_identifier](#genvar_identifier) \{ `,` [genvar_identifier](#genvar_identifier) } -list\_of\_interface\_identifiers ::= -    [interface_identifier](#interface_identifier) \{ [unpacked_dimension](#unpacked_dimension) } \{ `,` [interface_identifier](#interface_identifier) \{ [unpacked_dimension](#unpacked_dimension) } } -list\_of\_net\_decl\_assignments ::= [net_decl_assignment](#net_decl_assignment) \{ `,` [net_decl_assignment](#net_decl_assignment) } -list\_of\_param\_assignments ::= [param_assignment](#param_assignment) \{ `,` [param_assignment](#param_assignment) } -list\_of\_port\_identifiers ::= -    [port_identifier](#port_identifier) \{ [unpacked_dimension](#unpacked_dimension) } \{ `,` [port_identifier](#port_identifier) \{ [unpacked_dimension](#unpacked_dimension) } } -list\_of\_udp\_port\_identifiers ::= [port_identifier](#port_identifier) \{ `,` [port_identifier](#port_identifier) } -list\_of\_specparam\_assignments ::= [specparam_assignment](#specparam_assignment) \{ `,` [specparam_assignment](#specparam_assignment) } -list\_of\_tf\_variable\_identifiers ::= -    [port_identifier](#port_identifier) \{ [variable_dimension](#variable_dimension) } \[ `=` [expression](#expression) ] -    \{ `,` [port_identifier](#port_identifier) \{ [variable_dimension](#variable_dimension) } \[ `=` [expression](#expression) ] } -list\_of\_type\_assignments ::= [type_assignment](#type_assignment) \{ `,` [type_assignment](#type_assignment) } -list\_of\_variable\_decl\_assignments ::= [variable_decl_assignment](#variable_decl_assignment) \{ `,` [variable_decl_assignment](#variable_decl_assignment) } -list\_of\_variable\_identifiers ::= -    [variable_identifier](#variable_identifier) \{ [variable_dimension](#variable_dimension) } \{ `,` [variable_identifier](#variable_identifier) \{ [variable_dimension](#variable_dimension) } } -list\_of\_variable\_port\_identifiers ::= -    [port_identifier](#port_identifier) \{ [variable_dimension](#variable_dimension) } \[ `=` [constant_expression](#constant_expression) ] -    \{ `,` [port_identifier](#port_identifier) \{ [variable_dimension](#variable_dimension) } \[ `=` [constant_expression](#constant_expression) ] } +list\_of\_defparam\_assignments ::= [defparam_assignment](#defparam_assignment) \{ `,` [defparam_assignment](#defparam_assignment) } +list\_of\_genvar\_identifiers ::= [genvar_identifier](#genvar_identifier) \{ `,` [genvar_identifier](#genvar_identifier) } +list\_of\_interface\_identifiers ::= +    [interface_identifier](#interface_identifier) \{ [unpacked_dimension](#unpacked_dimension) } \{ `,` [interface_identifier](#interface_identifier) \{ [unpacked_dimension](#unpacked_dimension) } } +list\_of\_net\_decl\_assignments ::= [net_decl_assignment](#net_decl_assignment) \{ `,` [net_decl_assignment](#net_decl_assignment) } +list\_of\_param\_assignments ::= [param_assignment](#param_assignment) \{ `,` [param_assignment](#param_assignment) } +list\_of\_port\_identifiers ::= +    [port_identifier](#port_identifier) \{ [unpacked_dimension](#unpacked_dimension) } \{ `,` [port_identifier](#port_identifier) \{ [unpacked_dimension](#unpacked_dimension) } } +list\_of\_udp\_port\_identifiers ::= [port_identifier](#port_identifier) \{ `,` [port_identifier](#port_identifier) } +list\_of\_specparam\_assignments ::= [specparam_assignment](#specparam_assignment) \{ `,` [specparam_assignment](#specparam_assignment) } +list\_of\_tf\_variable\_identifiers ::= +    [port_identifier](#port_identifier) \{ [variable_dimension](#variable_dimension) } \[ `=` [expression](#expression) ] +    \{ `,` [port_identifier](#port_identifier) \{ [variable_dimension](#variable_dimension) } \[ `=` [expression](#expression) ] } +list\_of\_type\_assignments ::= [type_assignment](#type_assignment) \{ `,` [type_assignment](#type_assignment) } +list\_of\_variable\_decl\_assignments ::= [variable_decl_assignment](#variable_decl_assignment) \{ `,` [variable_decl_assignment](#variable_decl_assignment) } +list\_of\_variable\_identifiers ::= +    [variable_identifier](#variable_identifier) \{ [variable_dimension](#variable_dimension) } \{ `,` [variable_identifier](#variable_identifier) \{ [variable_dimension](#variable_dimension) } } +list\_of\_variable\_port\_identifiers ::= +    [port_identifier](#port_identifier) \{ [variable_dimension](#variable_dimension) } \[ `=` [constant_expression](#constant_expression) ] +    \{ `,` [port_identifier](#port_identifier) \{ [variable_dimension](#variable_dimension) } \[ `=` [constant_expression](#constant_expression) ] } ### A.2.4 Declaration assignments -defparam\_assignment ::= [hierarchical_parameter_identifier](#hierarchical_parameter_identifier) `=` [constant_mintypmax_expression](#constant_mintypmax_expression) -net\_decl\_assignment ::= [net_identifier](#net_identifier) \{ [unpacked_dimension](#unpacked_dimension) } \[ `=` [expression](#expression) ] -param\_assignment ::= [parameter_identifier](#parameter_identifier) \{ [variable_dimension](#variable_dimension) } \[ `=` [constant_param_expression](#constant_param_expression) ][22](#22) -specparam\_assignment ::= -    [specparam_identifier](#specparam_identifier) `=` [constant_mintypmax_expression](#constant_mintypmax_expression) -    \| [pulse_control_specparam](#pulse_control_specparam) -pulse\_control\_specparam ::= -    [PATHPULSE](#PATHPULSE)`$` `=` `(` [reject_limit_value](#reject_limit_value) \[ `,` [error_limit_value](#error_limit_value) ] `)` -    \| [PATHPULSE](#PATHPULSE)`$`[specify_input_terminal_descriptor](#specify_input_terminal_descriptor)`$`[specify_output_terminal_descriptor](#specify_output_terminal_descriptor) -    `=` `(` [reject_limit_value](#reject_limit_value) \[ `,` [error_limit_value](#error_limit_value) ] `)` -error\_limit\_value ::= [limit_value](#limit_value) -reject\_limit\_value ::= [limit_value](#limit_value) -limit\_value ::= [constant_mintypmax_expression](#constant_mintypmax_expression) -type\_assignment ::= [type_identifier](#type_identifier) \[ `=` [data_type_or_incomplete_class_scoped_type](#data_type_or_incomplete_class_scoped_type) ][22](#22) -variable\_decl\_assignment ::= -    [variable_identifier](#variable_identifier) \{ [variable_dimension](#variable_dimension) } \[ `=` [expression](#expression) ] -    \| [dynamic_array_variable_identifier](#dynamic_array_variable_identifier) [unsized_dimension](#unsized_dimension) \{ [variable_dimension](#variable_dimension) } -    \[ `=` [dynamic_array_new](#dynamic_array_new) ] -    \| [class_variable_identifier](#class_variable_identifier) \[ `=` [class_new](#class_new) ] -class\_new23 ::= -    \[ [class_scope](#class_scope) ] [new](#new) \[ `(` [list_of_arguments](#list_of_arguments) `)` ] -    \| [new](#new) [expression](#expression) -dynamic\_array\_new ::= [new](#new) \[ [expression](#expression) ] \[ `(` [expression](#expression) `)` ] +defparam\_assignment ::= [hierarchical_parameter_identifier](#hierarchical_parameter_identifier) `=` [constant_mintypmax_expression](#constant_mintypmax_expression) +net\_decl\_assignment ::= [net_identifier](#net_identifier) \{ [unpacked_dimension](#unpacked_dimension) } \[ `=` [expression](#expression) ] +param\_assignment ::= [parameter_identifier](#parameter_identifier) \{ [variable_dimension](#variable_dimension) } \[ `=` [constant_param_expression](#constant_param_expression) ][22](#22) +specparam\_assignment ::= +    [specparam_identifier](#specparam_identifier) `=` [constant_mintypmax_expression](#constant_mintypmax_expression) +    \| [pulse_control_specparam](#pulse_control_specparam) +pulse\_control\_specparam ::= +    [PATHPULSE](#PATHPULSE)`$` `=` `(` [reject_limit_value](#reject_limit_value) \[ `,` [error_limit_value](#error_limit_value) ] `)` +    \| [PATHPULSE](#PATHPULSE)`$`[specify_input_terminal_descriptor](#specify_input_terminal_descriptor)`$`[specify_output_terminal_descriptor](#specify_output_terminal_descriptor) +    `=` `(` [reject_limit_value](#reject_limit_value) \[ `,` [error_limit_value](#error_limit_value) ] `)` +error\_limit\_value ::= [limit_value](#limit_value) +reject\_limit\_value ::= [limit_value](#limit_value) +limit\_value ::= [constant_mintypmax_expression](#constant_mintypmax_expression) +type\_assignment ::= [type_identifier](#type_identifier) \[ `=` [data_type_or_incomplete_class_scoped_type](#data_type_or_incomplete_class_scoped_type) ][22](#22) +variable\_decl\_assignment ::= +    [variable_identifier](#variable_identifier) \{ [variable_dimension](#variable_dimension) } \[ `=` [expression](#expression) ] +    \| [dynamic_array_variable_identifier](#dynamic_array_variable_identifier) [unsized_dimension](#unsized_dimension) \{ [variable_dimension](#variable_dimension) } +    \[ `=` [dynamic_array_new](#dynamic_array_new) ] +    \| [class_variable_identifier](#class_variable_identifier) \[ `=` [class_new](#class_new) ] +class\_new23 ::= +    \[ [class_scope](#class_scope) ] [new](#new) \[ `(` [list_of_arguments](#list_of_arguments) `)` ] +    \| [new](#new) [expression](#expression) +dynamic\_array\_new ::= [new](#new) \[ [expression](#expression) ] \[ `(` [expression](#expression) `)` ] ### A.2.5 Declaration ranges -unpacked\_dimension ::= -    \[ [constant_range](#constant_range) ] -    \| \[ [constant_expression](#constant_expression) ] -packed\_dimension24 ::= -    \[ [constant_range](#constant_range) ] -    \| [unsized_dimension](#unsized_dimension) -associative\_dimension ::= -    \[ [data_type](#data_type) ] -    \| \[ `*` ] -variable\_dimension ::= -    [unsized_dimension](#unsized_dimension) -    \| [unpacked_dimension](#unpacked_dimension) -    \| [associative_dimension](#associative_dimension) -    \| [queue_dimension](#queue_dimension) -queue\_dimension ::= \[ `$` \[ `:` [constant_expression](#constant_expression) ] ] -unsized\_dimension ::= \[ ] +unpacked\_dimension ::= +    \[ [constant_range](#constant_range) ] +    \| \[ [constant_expression](#constant_expression) ] +packed\_dimension24 ::= +    \[ [constant_range](#constant_range) ] +    \| [unsized_dimension](#unsized_dimension) +associative\_dimension ::= +    \[ [data_type](#data_type) ] +    \| \[ `*` ] +variable\_dimension ::= +    [unsized_dimension](#unsized_dimension) +    \| [unpacked_dimension](#unpacked_dimension) +    \| [associative_dimension](#associative_dimension) +    \| [queue_dimension](#queue_dimension) +queue\_dimension ::= \[ `$` \[ `:` [constant_expression](#constant_expression) ] ] +unsized\_dimension ::= \[ ] ### A.2.6 Function declarations -function\_data\_type\_or\_implicit ::= -    [data_type_or_void](#data_type_or_void) -    \| [implicit_data_type](#implicit_data_type) -function\_declaration ::= -    [function](#function) \[ [dynamic_override_specifiers](#dynamic_override_specifiers) ][25](#25) \[ [lifetime](#lifetime) ] [function_body_declaration](#function_body_declaration) -function\_body\_declaration ::= -    [function_data_type_or_implicit](#function_data_type_or_implicit) -    \[ [interface_identifier](#interface_identifier) `.` \| [class_scope](#class_scope) ] [function_identifier](#function_identifier) `;` -    \{ [tf_item_declaration](#tf_item_declaration) } -    \{ [function_statement_or_null](#function_statement_or_null) } -    [endfunction](#endfunction) \[ `:` [function_identifier](#function_identifier) ] -    \| [function_data_type_or_implicit](#function_data_type_or_implicit) -    \[ [interface_identifier](#interface_identifier) `.` \| [class_scope](#class_scope) ] [function_identifier](#function_identifier) `(` \[ [tf_port_list](#tf_port_list) ] `)` `;` -    \{ [block_item_declaration](#block_item_declaration) } -    \{ [function_statement_or_null](#function_statement_or_null) } -    [endfunction](#endfunction) \[ `:` [function_identifier](#function_identifier) ] -function\_prototype ::= -    [function](#function) \[ [dynamic_override_specifiers](#dynamic_override_specifiers) ][25](#25) [data_type_or_void](#data_type_or_void) [function_identifier](#function_identifier) -    \[ `(` \[ [tf_port_list](#tf_port_list) ] `)` ] -dpi\_import\_export ::= -    [import](#import) [dpi_spec_string](#dpi_spec_string) \[ [dpi_function_import_property](#dpi_function_import_property) ] \[ [c_identifier](#c_identifier) `=` ] [dpi_function_proto](#dpi_function_proto) `;` -    \| [import](#import) [dpi_spec_string](#dpi_spec_string) \[ [dpi_task_import_property](#dpi_task_import_property) ] \[ [c_identifier](#c_identifier) `=` ] [dpi_task_proto](#dpi_task_proto) `;` -    \| [export](#export) [dpi_spec_string](#dpi_spec_string) \[ [c_identifier](#c_identifier) `=` ] [function](#function) [function_identifier](#function_identifier) `;` -    \| [export](#export) [dpi_spec_string](#dpi_spec_string) \[ [c_identifier](#c_identifier) `=` ] [task](#task) [task_identifier](#task_identifier) `;` -dpi\_spec\_string ::= `"`[DPI](#DPI)`-`[C](#C)`"` \| `"`[DPI](#DPI)`"` -dpi\_function\_import\_property ::= [context](#context) \| [pure](#pure) -dpi\_task\_import\_property ::= [context](#context) -    [dpi_function_proto26](#dpi_function_proto26)`,` -27 ::= [function_prototype](#function_prototype) -dpi\_task\_proto27 ::= [task_prototype](#task_prototype) +function\_data\_type\_or\_implicit ::= +    [data_type_or_void](#data_type_or_void) +    \| [implicit_data_type](#implicit_data_type) +function\_declaration ::= +    [function](#function) \[ [dynamic_override_specifiers](#dynamic_override_specifiers) ][25](#25) \[ [lifetime](#lifetime) ] [function_body_declaration](#function_body_declaration) +function\_body\_declaration ::= +    [function_data_type_or_implicit](#function_data_type_or_implicit) +    \[ [interface_identifier](#interface_identifier) `.` \| [class_scope](#class_scope) ] [function_identifier](#function_identifier) `;` +    \{ [tf_item_declaration](#tf_item_declaration) } +    \{ [function_statement_or_null](#function_statement_or_null) } +    [endfunction](#endfunction) \[ `:` [function_identifier](#function_identifier) ] +    \| [function_data_type_or_implicit](#function_data_type_or_implicit) +    \[ [interface_identifier](#interface_identifier) `.` \| [class_scope](#class_scope) ] [function_identifier](#function_identifier) `(` \[ [tf_port_list](#tf_port_list) ] `)` `;` +    \{ [block_item_declaration](#block_item_declaration) } +    \{ [function_statement_or_null](#function_statement_or_null) } +    [endfunction](#endfunction) \[ `:` [function_identifier](#function_identifier) ] +function\_prototype ::= +    [function](#function) \[ [dynamic_override_specifiers](#dynamic_override_specifiers) ][25](#25) [data_type_or_void](#data_type_or_void) [function_identifier](#function_identifier) +    \[ `(` \[ [tf_port_list](#tf_port_list) ] `)` ] +dpi\_import\_export ::= +    [import](#import) [dpi_spec_string](#dpi_spec_string) \[ [dpi_function_import_property](#dpi_function_import_property) ] \[ [c_identifier](#c_identifier) `=` ] [dpi_function_proto](#dpi_function_proto) `;` +    \| [import](#import) [dpi_spec_string](#dpi_spec_string) \[ [dpi_task_import_property](#dpi_task_import_property) ] \[ [c_identifier](#c_identifier) `=` ] [dpi_task_proto](#dpi_task_proto) `;` +    \| [export](#export) [dpi_spec_string](#dpi_spec_string) \[ [c_identifier](#c_identifier) `=` ] [function](#function) [function_identifier](#function_identifier) `;` +    \| [export](#export) [dpi_spec_string](#dpi_spec_string) \[ [c_identifier](#c_identifier) `=` ] [task](#task) [task_identifier](#task_identifier) `;` +dpi\_spec\_string ::= `"`[DPI](#DPI)`-`[C](#C)`"` \| `"`[DPI](#DPI)`"` +dpi\_function\_import\_property ::= [context](#context) \| [pure](#pure) +dpi\_task\_import\_property ::= [context](#context) +    [dpi_function_proto26](#dpi_function_proto26)`,` +27 ::= [function_prototype](#function_prototype) +dpi\_task\_proto27 ::= [task_prototype](#task_prototype) ### A.2.7 Task declarations -task\_declaration ::= [task](#task) \[ [dynamic_override_specifiers](#dynamic_override_specifiers) ][25](#25) \[ [lifetime](#lifetime) ] [task_body_declaration](#task_body_declaration) -task\_body\_declaration ::= -    \[ [interface_identifier](#interface_identifier) `.` \| [class_scope](#class_scope) ] [task_identifier](#task_identifier) `;` -    \{ [tf_item_declaration](#tf_item_declaration) } -    \{ [statement_or_null](#statement_or_null) } -    [endtask](#endtask) \[ `:` [task_identifier](#task_identifier) ] -    \| \[ [interface_identifier](#interface_identifier) `.` \| [class_scope](#class_scope) ] [task_identifier](#task_identifier) `(` \[ [tf_port_list](#tf_port_list) ] `)` `;` -    \{ [block_item_declaration](#block_item_declaration) } -    \{ [statement_or_null](#statement_or_null) } -    [endtask](#endtask) \[ `:` [task_identifier](#task_identifier) ] -tf\_item\_declaration ::= -    [block_item_declaration](#block_item_declaration) -    \| [tf_port_declaration](#tf_port_declaration) -tf\_port\_list ::= [tf_port_item](#tf_port_item) \{ `,` [tf_port_item](#tf_port_item) } -tf\_port\_item28 ::= -    \{ [attribute_instance](#attribute_instance) } \[ [tf_port_direction](#tf_port_direction) ] \[ [var](#var) ] [data_type_or_implicit](#data_type_or_implicit) -    \[ [port_identifier](#port_identifier) \{ [variable_dimension](#variable_dimension) } \[ `=` [expression](#expression) ] ] -tf\_port\_direction ::= -    [port_direction](#port_direction) -    \| \[ [const](#const) ] [ref](#ref) \[ [static](#static) ] -tf\_port\_declaration ::= -    \{ [attribute_instance](#attribute_instance) } [tf_port_direction](#tf_port_direction) \[ [var](#var) ] [data_type_or_implicit](#data_type_or_implicit) [list_of_tf_variable_identifiers](#list_of_tf_variable_identifiers) `;` -task\_prototype ::= [task](#task) \[ [dynamic_override_specifiers](#dynamic_override_specifiers) ][25](#25) [task_identifier](#task_identifier) \[ `(` \[ [tf_port_list](#tf_port_list) ] `)` ] -dynamic\_override\_specifiers ::= \[ [initial_or_extends_specifier](#initial_or_extends_specifier) ] \[ [final_specifier](#final_specifier) ] -initial\_or\_extends\_specifier ::= -    `:` [initial](#initial) -    \| `:` [extends](#extends) -final\_specifier ::= `:` [final](#final) +task\_declaration ::= [task](#task) \[ [dynamic_override_specifiers](#dynamic_override_specifiers) ][25](#25) \[ [lifetime](#lifetime) ] [task_body_declaration](#task_body_declaration) +task\_body\_declaration ::= +    \[ [interface_identifier](#interface_identifier) `.` \| [class_scope](#class_scope) ] [task_identifier](#task_identifier) `;` +    \{ [tf_item_declaration](#tf_item_declaration) } +    \{ [statement_or_null](#statement_or_null) } +    [endtask](#endtask) \[ `:` [task_identifier](#task_identifier) ] +    \| \[ [interface_identifier](#interface_identifier) `.` \| [class_scope](#class_scope) ] [task_identifier](#task_identifier) `(` \[ [tf_port_list](#tf_port_list) ] `)` `;` +    \{ [block_item_declaration](#block_item_declaration) } +    \{ [statement_or_null](#statement_or_null) } +    [endtask](#endtask) \[ `:` [task_identifier](#task_identifier) ] +tf\_item\_declaration ::= +    [block_item_declaration](#block_item_declaration) +    \| [tf_port_declaration](#tf_port_declaration) +tf\_port\_list ::= [tf_port_item](#tf_port_item) \{ `,` [tf_port_item](#tf_port_item) } +tf\_port\_item28 ::= +    \{ [attribute_instance](#attribute_instance) } \[ [tf_port_direction](#tf_port_direction) ] \[ [var](#var) ] [data_type_or_implicit](#data_type_or_implicit) +    \[ [port_identifier](#port_identifier) \{ [variable_dimension](#variable_dimension) } \[ `=` [expression](#expression) ] ] +tf\_port\_direction ::= +    [port_direction](#port_direction) +    \| \[ [const](#const) ] [ref](#ref) \[ [static](#static) ] +tf\_port\_declaration ::= +    \{ [attribute_instance](#attribute_instance) } [tf_port_direction](#tf_port_direction) \[ [var](#var) ] [data_type_or_implicit](#data_type_or_implicit) [list_of_tf_variable_identifiers](#list_of_tf_variable_identifiers) `;` +task\_prototype ::= [task](#task) \[ [dynamic_override_specifiers](#dynamic_override_specifiers) ][25](#25) [task_identifier](#task_identifier) \[ `(` \[ [tf_port_list](#tf_port_list) ] `)` ] +dynamic\_override\_specifiers ::= \[ [initial_or_extends_specifier](#initial_or_extends_specifier) ] \[ [final_specifier](#final_specifier) ] +initial\_or\_extends\_specifier ::= +    `:` [initial](#initial) +    \| `:` [extends](#extends) +final\_specifier ::= `:` [final](#final) ### A.2.8 Block item declarations -block\_item\_declaration ::= -    \{ [attribute_instance](#attribute_instance) } [data_declaration](#data_declaration) -    \| \{ [attribute_instance](#attribute_instance) } [local_parameter_declaration](#local_parameter_declaration) `;` -    \| \{ [attribute_instance](#attribute_instance) } [parameter_declaration](#parameter_declaration) `;` -    \| \{ [attribute_instance](#attribute_instance) } [let_declaration](#let_declaration) +block\_item\_declaration ::= +    \{ [attribute_instance](#attribute_instance) } [data_declaration](#data_declaration) +    \| \{ [attribute_instance](#attribute_instance) } [local_parameter_declaration](#local_parameter_declaration) `;` +    \| \{ [attribute_instance](#attribute_instance) } [parameter_declaration](#parameter_declaration) `;` +    \| \{ [attribute_instance](#attribute_instance) } [let_declaration](#let_declaration) ### A.2.9 Interface declarations -modport\_declaration ::= [modport](#modport) [modport_item](#modport_item) \{ `,` [modport_item](#modport_item) } `;` -modport\_item ::= [modport_identifier](#modport_identifier) `(` [modport_ports_declaration](#modport_ports_declaration) \{ `,` [modport_ports_declaration](#modport_ports_declaration) } `)` -modport\_ports\_declaration ::= -    \{ [attribute_instance](#attribute_instance) } [modport_simple_ports_declaration](#modport_simple_ports_declaration) -    \| \{ [attribute_instance](#attribute_instance) } [modport_tf_ports_declaration](#modport_tf_ports_declaration) -    \| \{ [attribute_instance](#attribute_instance) } [modport_clocking_declaration](#modport_clocking_declaration) -modport\_clocking\_declaration ::= [clocking](#clocking) [clocking_identifier](#clocking_identifier) -modport\_simple\_ports\_declaration ::= [port_direction](#port_direction) [modport_simple_port](#modport_simple_port) \{ `,` [modport_simple_port](#modport_simple_port) } -modport\_simple\_port ::= -    [port_identifier](#port_identifier) -    \| `.` [port_identifier](#port_identifier) `(` \[ [expression](#expression) ] `)` -modport\_tf\_ports\_declaration ::= [import_export](#import_export) [modport_tf_port](#modport_tf_port) \{ `,` [modport_tf_port](#modport_tf_port) } -modport\_tf\_port ::= -    [method_prototype](#method_prototype) -    \| [tf_identifier](#tf_identifier) -import\_export ::= [import](#import) \| [export](#export) +modport\_declaration ::= [modport](#modport) [modport_item](#modport_item) \{ `,` [modport_item](#modport_item) } `;` +modport\_item ::= [modport_identifier](#modport_identifier) `(` [modport_ports_declaration](#modport_ports_declaration) \{ `,` [modport_ports_declaration](#modport_ports_declaration) } `)` +modport\_ports\_declaration ::= +    \{ [attribute_instance](#attribute_instance) } [modport_simple_ports_declaration](#modport_simple_ports_declaration) +    \| \{ [attribute_instance](#attribute_instance) } [modport_tf_ports_declaration](#modport_tf_ports_declaration) +    \| \{ [attribute_instance](#attribute_instance) } [modport_clocking_declaration](#modport_clocking_declaration) +modport\_clocking\_declaration ::= [clocking](#clocking) [clocking_identifier](#clocking_identifier) +modport\_simple\_ports\_declaration ::= [port_direction](#port_direction) [modport_simple_port](#modport_simple_port) \{ `,` [modport_simple_port](#modport_simple_port) } +modport\_simple\_port ::= +    [port_identifier](#port_identifier) +    \| `.` [port_identifier](#port_identifier) `(` \[ [expression](#expression) ] `)` +modport\_tf\_ports\_declaration ::= [import_export](#import_export) [modport_tf_port](#modport_tf_port) \{ `,` [modport_tf_port](#modport_tf_port) } +modport\_tf\_port ::= +    [method_prototype](#method_prototype) +    \| [tf_identifier](#tf_identifier) +import\_export ::= [import](#import) \| [export](#export) ### A.2.10 Assertion declarations -concurrent\_assertion\_item ::= -    \[ [block_identifier](#block_identifier) `:` ] [concurrent_assertion_statement](#concurrent_assertion_statement) -    \| [checker_instantiation](#checker_instantiation) -concurrent\_assertion\_statement ::= -    [assert_property_statement](#assert_property_statement) -    \| [assume_property_statement](#assume_property_statement) -    \| [cover_property_statement](#cover_property_statement) -    \| [cover_sequence_statement](#cover_sequence_statement) -    \| [restrict_property_statement](#restrict_property_statement) -assert\_property\_statement ::= -    [assert](#assert) [property](#property) `(` [property_spec](#property_spec) `)` [action_block](#action_block) -assume\_property\_statement ::= -    [assume](#assume) [property](#property) `(` [property_spec](#property_spec) `)` [action_block](#action_block) -cover\_property\_statement ::= -    [cover](#cover) [property](#property) `(` [property_spec](#property_spec) `)` [statement_or_null](#statement_or_null) -expect\_property\_statement ::= -    [expect](#expect) `(` [property_spec](#property_spec) `)` [action_block](#action_block) -cover\_sequence\_statement ::= -    [cover](#cover) [sequence](#sequence) `(` \[ [clocking_event](#clocking_event) ] \[ [disable](#disable) [iff](#iff) `(` [expression_or_dist](#expression_or_dist) `)` ] [sequence_expr](#sequence_expr) `)` -    [statement_or_null](#statement_or_null) -restrict\_property\_statement ::= -    [restrict](#restrict) [property](#property) `(` [property_spec](#property_spec) `)` `;` -property\_instance ::= [ps_or_hierarchical_property_identifier](#ps_or_hierarchical_property_identifier) \[ `(` \[ [property_list_of_arguments](#property_list_of_arguments) ] `)` ] -property\_list\_of\_arguments ::= -    \[ [property_actual_arg](#property_actual_arg) ] \{ `,` \[ [property_actual_arg](#property_actual_arg) ] } \{ `,` `.` [identifier](#identifier) `(` \[ [property_actual_arg](#property_actual_arg) ] `)` } -    \| `.` [identifier](#identifier) `(` \[ [property_actual_arg](#property_actual_arg) ] `)` \{ `,` `.` [identifier](#identifier) `(` \[ [property_actual_arg](#property_actual_arg) ] `)` } -property\_actual\_arg ::= -    [property_expr](#property_expr) -    \| [sequence_actual_arg](#sequence_actual_arg) -assertion\_item\_declaration ::= -    [property_declaration](#property_declaration) -    \| [sequence_declaration](#sequence_declaration) -    \| [let_declaration](#let_declaration) -property\_declaration ::= -    [property](#property) [property_identifier](#property_identifier) \[ `(` \[ [property_port_list](#property_port_list) ] `)` ] `;` -    \{ [assertion_variable_declaration](#assertion_variable_declaration) } -    [property_spec](#property_spec) \[ `;` ] -    [endproperty](#endproperty) \[ `:` [property_identifier](#property_identifier) ] -property\_port\_list ::= [property_port_item](#property_port_item) \{ `,` [property_port_item](#property_port_item) } -property\_port\_item ::= -    \{ [attribute_instance](#attribute_instance) } \[ [local](#local) \[ [property_lvar_port_direction](#property_lvar_port_direction) ] ] [property_formal_type](#property_formal_type) -    [formal_port_identifier](#formal_port_identifier) \{ [variable_dimension](#variable_dimension) } \[ `=` [property_actual_arg](#property_actual_arg) ] -property\_lvar\_port\_direction ::= [input](#input) -property\_formal\_type ::= -    [sequence_formal_type](#sequence_formal_type) -    \| [property](#property) -property\_spec ::= \[ [clocking_event](#clocking_event) ] \[ [disable](#disable) [iff](#iff) `(` [expression_or_dist](#expression_or_dist) `)` ] [property_expr](#property_expr) -property\_expr ::= -    [sequence_expr](#sequence_expr) -    \| [strong](#strong) `(` [sequence_expr](#sequence_expr) `)` -    \| [weak](#weak) `(` [sequence_expr](#sequence_expr) `)` -    \| `(` [property_expr](#property_expr) `)` -    \| [not](#not) [property_expr](#property_expr) -    \| [property_expr](#property_expr) [or](#or) [property_expr](#property_expr) -    \| [property_expr](#property_expr) [and](#and) [property_expr](#property_expr) -    \| [sequence_expr](#sequence_expr) `|->` [property_expr](#property_expr) -    \| [sequence_expr](#sequence_expr) `|=>` [property_expr](#property_expr) -    \| [if](#if) `(` [expression_or_dist](#expression_or_dist) `)` [property_expr](#property_expr) \[ [else](#else) [property_expr](#property_expr) ] -    \| [case](#case) `(` [expression_or_dist](#expression_or_dist) `)` [property_case_item](#property_case_item) \{ [property_case_item](#property_case_item) } [endcase](#endcase) -    \| [sequence_expr](#sequence_expr) `#-#` [property_expr](#property_expr) -    \| [sequence_expr](#sequence_expr) `#=#` [property_expr](#property_expr) -    \| [nexttime](#nexttime) [property_expr](#property_expr) -    \| [nexttime](#nexttime) \[ [constant_expression](#constant_expression) ] [property_expr](#property_expr) -    \| [s_nexttime](#s_nexttime) [property_expr](#property_expr) -    \| [s_nexttime](#s_nexttime) \[ [constant_expression](#constant_expression) ] [property_expr](#property_expr) -    \| [always](#always) [property_expr](#property_expr) -    \| [always](#always) \[ [cycle_delay_const_range_expression](#cycle_delay_const_range_expression) ] [property_expr](#property_expr) -    \| [s_always](#s_always) \[ [constant_range](#constant_range) ] [property_expr](#property_expr) -    \| [s_eventually](#s_eventually) [property_expr](#property_expr) -    \| [eventually](#eventually) \[ [constant_range](#constant_range) ] [property_expr](#property_expr) -    \| [s_eventually](#s_eventually) \[ [cycle_delay_const_range_expression](#cycle_delay_const_range_expression) ] [property_expr](#property_expr) -    \| [property_expr](#property_expr) [until](#until) [property_expr](#property_expr) -    \| [property_expr](#property_expr) [s_until](#s_until) [property_expr](#property_expr) -    \| [property_expr](#property_expr) [until_with](#until_with) [property_expr](#property_expr) -    \| [property_expr](#property_expr) [s_until_with](#s_until_with) [property_expr](#property_expr) -    \| [property_expr](#property_expr) [implies](#implies) [property_expr](#property_expr) -    \| [property_expr](#property_expr) [iff](#iff) [property_expr](#property_expr) -    \| [accept_on](#accept_on) `(` [expression_or_dist](#expression_or_dist) `)` [property_expr](#property_expr) -    \| [reject_on](#reject_on) `(` [expression_or_dist](#expression_or_dist) `)` [property_expr](#property_expr) -    \| [sync_accept_on](#sync_accept_on) `(` [expression_or_dist](#expression_or_dist) `)` [property_expr](#property_expr) -    \| [sync_reject_on](#sync_reject_on) `(` [expression_or_dist](#expression_or_dist) `)` [property_expr](#property_expr) -    \| [property_instance](#property_instance) -    \| [clocking_event](#clocking_event) [property_expr](#property_expr) -property\_case\_item ::= -    [expression_or_dist](#expression_or_dist) \{ `,` [expression_or_dist](#expression_or_dist) } `:` [property_expr](#property_expr) `;` -    \| [default](#default) \[ `:` ] [property_expr](#property_expr) `;` -sequence\_declaration ::= -    [sequence](#sequence) [sequence_identifier](#sequence_identifier) \[ `(` \[ [sequence_port_list](#sequence_port_list) ] `)` ] `;` -    \{ [assertion_variable_declaration](#assertion_variable_declaration) } -    [sequence_expr](#sequence_expr) \[ `;` ] -    [endsequence](#endsequence) \[ `:` [sequence_identifier](#sequence_identifier) ] -sequence\_port\_list ::= [sequence_port_item](#sequence_port_item) \{ `,` [sequence_port_item](#sequence_port_item) } -sequence\_port\_item ::= -    \{ [attribute_instance](#attribute_instance) } \[ [local](#local) \[ [sequence_lvar_port_direction](#sequence_lvar_port_direction) ] ] [sequence_formal_type](#sequence_formal_type) -    [formal_port_identifier](#formal_port_identifier) \{ [variable_dimension](#variable_dimension) } \[ `=` [sequence_actual_arg](#sequence_actual_arg) ] -sequence\_lvar\_port\_direction ::= [input](#input) \| [inout](#inout) \| [output](#output) -sequence\_formal\_type ::= -    [data_type_or_implicit](#data_type_or_implicit) -    \| [sequence](#sequence) -    \| [untyped](#untyped) -sequence\_expr ::= -    [cycle_delay_range](#cycle_delay_range) [sequence_expr](#sequence_expr) \{ [cycle_delay_range](#cycle_delay_range) [sequence_expr](#sequence_expr) } -    \| [sequence_expr](#sequence_expr) [cycle_delay_range](#cycle_delay_range) [sequence_expr](#sequence_expr) \{ [cycle_delay_range](#cycle_delay_range) [sequence_expr](#sequence_expr) } -    \| [expression_or_dist](#expression_or_dist) \[ [boolean_abbrev](#boolean_abbrev) ] -    \| [sequence_instance](#sequence_instance) \[ [sequence_abbrev](#sequence_abbrev) ] -    \| `(` [sequence_expr](#sequence_expr) \{ `,` [sequence_match_item](#sequence_match_item) } `)` \[ [sequence_abbrev](#sequence_abbrev) ] -    \| [sequence_expr](#sequence_expr) [and](#and) [sequence_expr](#sequence_expr) -    \| [sequence_expr](#sequence_expr) [intersect](#intersect) [sequence_expr](#sequence_expr) -    \| [sequence_expr](#sequence_expr) [or](#or) [sequence_expr](#sequence_expr) -    \| [first_match](#first_match) `(` [sequence_expr](#sequence_expr) \{ `,` [sequence_match_item](#sequence_match_item) } `)` -    \| [expression_or_dist](#expression_or_dist) [throughout](#throughout) [sequence_expr](#sequence_expr) -    \| [sequence_expr](#sequence_expr) [within](#within) [sequence_expr](#sequence_expr) -    \| [clocking_event](#clocking_event) [sequence_expr](#sequence_expr) -cycle\_delay\_range ::= -    `##` [constant_primary](#constant_primary) -    \| `##` \[ [cycle_delay_const_range_expression](#cycle_delay_const_range_expression) ] -    \| `##[*]` -    \| `##[+]` -sequence\_method\_call ::= [sequence_instance](#sequence_instance) `.` [method_identifier](#method_identifier) -sequence\_match\_item ::= -    [operator_assignment](#operator_assignment) -    \| [inc_or_dec_expression](#inc_or_dec_expression) -    \| [subroutine_call](#subroutine_call) -sequence\_instance ::= [ps_or_hierarchical_sequence_identifier](#ps_or_hierarchical_sequence_identifier) \[ `(` \[ [sequence_list_of_arguments](#sequence_list_of_arguments) ] `)` ] -sequence\_list\_of\_arguments ::= -    \[ [sequence_actual_arg](#sequence_actual_arg) ] \{ `,` \[ [sequence_actual_arg](#sequence_actual_arg) ] } \{ `,` `.` [identifier](#identifier) `(` \[ [sequence_actual_arg](#sequence_actual_arg) ] `)` } -    \| `.` [identifier](#identifier) `(` \[ [sequence_actual_arg](#sequence_actual_arg) ] `)` \{ `,` `.` [identifier](#identifier) `(` \[ [sequence_actual_arg](#sequence_actual_arg) ] `)` } -sequence\_actual\_arg ::= -    [event_expression](#event_expression) -    \| [sequence_expr](#sequence_expr) -    \| `$` -boolean\_abbrev ::= -    [consecutive_repetition](#consecutive_repetition) -    \| [nonconsecutive_repetition](#nonconsecutive_repetition) -    \| [goto_repetition](#goto_repetition) -sequence\_abbrev ::= [consecutive_repetition](#consecutive_repetition) -consecutive\_repetition ::= -    `[*` [const_or_range_expression](#const_or_range_expression) ] -    \| `[*]` -    \| `[+]` -nonconsecutive\_repetition ::= `[=` [const_or_range_expression](#const_or_range_expression) ] -goto\_repetition ::= `[->` [const_or_range_expression](#const_or_range_expression) ] -const\_or\_range\_expression ::= -    [constant_expression](#constant_expression) -    \| [cycle_delay_const_range_expression](#cycle_delay_const_range_expression) -cycle\_delay\_const\_range\_expression ::= -    [constant_expression](#constant_expression) `:` [constant_expression](#constant_expression) -    \| [constant_expression](#constant_expression) `:` `$` -assertion\_variable\_declaration ::= [var_data_type](#var_data_type) [list_of_variable_decl_assignments](#list_of_variable_decl_assignments) `;` +concurrent\_assertion\_item ::= +    \[ [block_identifier](#block_identifier) `:` ] [concurrent_assertion_statement](#concurrent_assertion_statement) +    \| [checker_instantiation](#checker_instantiation) +concurrent\_assertion\_statement ::= +    [assert_property_statement](#assert_property_statement) +    \| [assume_property_statement](#assume_property_statement) +    \| [cover_property_statement](#cover_property_statement) +    \| [cover_sequence_statement](#cover_sequence_statement) +    \| [restrict_property_statement](#restrict_property_statement) +assert\_property\_statement ::= +    [assert](#assert) [property](#property) `(` [property_spec](#property_spec) `)` [action_block](#action_block) +assume\_property\_statement ::= +    [assume](#assume) [property](#property) `(` [property_spec](#property_spec) `)` [action_block](#action_block) +cover\_property\_statement ::= +    [cover](#cover) [property](#property) `(` [property_spec](#property_spec) `)` [statement_or_null](#statement_or_null) +expect\_property\_statement ::= +    [expect](#expect) `(` [property_spec](#property_spec) `)` [action_block](#action_block) +cover\_sequence\_statement ::= +    [cover](#cover) [sequence](#sequence) `(` \[ [clocking_event](#clocking_event) ] \[ [disable](#disable) [iff](#iff) `(` [expression_or_dist](#expression_or_dist) `)` ] [sequence_expr](#sequence_expr) `)` +    [statement_or_null](#statement_or_null) +restrict\_property\_statement ::= +    [restrict](#restrict) [property](#property) `(` [property_spec](#property_spec) `)` `;` +property\_instance ::= [ps_or_hierarchical_property_identifier](#ps_or_hierarchical_property_identifier) \[ `(` \[ [property_list_of_arguments](#property_list_of_arguments) ] `)` ] +property\_list\_of\_arguments ::= +    \[ [property_actual_arg](#property_actual_arg) ] \{ `,` \[ [property_actual_arg](#property_actual_arg) ] } \{ `,` `.` [identifier](#identifier) `(` \[ [property_actual_arg](#property_actual_arg) ] `)` } +    \| `.` [identifier](#identifier) `(` \[ [property_actual_arg](#property_actual_arg) ] `)` \{ `,` `.` [identifier](#identifier) `(` \[ [property_actual_arg](#property_actual_arg) ] `)` } +property\_actual\_arg ::= +    [property_expr](#property_expr) +    \| [sequence_actual_arg](#sequence_actual_arg) +assertion\_item\_declaration ::= +    [property_declaration](#property_declaration) +    \| [sequence_declaration](#sequence_declaration) +    \| [let_declaration](#let_declaration) +property\_declaration ::= +    [property](#property) [property_identifier](#property_identifier) \[ `(` \[ [property_port_list](#property_port_list) ] `)` ] `;` +    \{ [assertion_variable_declaration](#assertion_variable_declaration) } +    [property_spec](#property_spec) \[ `;` ] +    [endproperty](#endproperty) \[ `:` [property_identifier](#property_identifier) ] +property\_port\_list ::= [property_port_item](#property_port_item) \{ `,` [property_port_item](#property_port_item) } +property\_port\_item ::= +    \{ [attribute_instance](#attribute_instance) } \[ [local](#local) \[ [property_lvar_port_direction](#property_lvar_port_direction) ] ] [property_formal_type](#property_formal_type) +    [formal_port_identifier](#formal_port_identifier) \{ [variable_dimension](#variable_dimension) } \[ `=` [property_actual_arg](#property_actual_arg) ] +property\_lvar\_port\_direction ::= [input](#input) +property\_formal\_type ::= +    [sequence_formal_type](#sequence_formal_type) +    \| [property](#property) +property\_spec ::= \[ [clocking_event](#clocking_event) ] \[ [disable](#disable) [iff](#iff) `(` [expression_or_dist](#expression_or_dist) `)` ] [property_expr](#property_expr) +property\_expr ::= +    [sequence_expr](#sequence_expr) +    \| [strong](#strong) `(` [sequence_expr](#sequence_expr) `)` +    \| [weak](#weak) `(` [sequence_expr](#sequence_expr) `)` +    \| `(` [property_expr](#property_expr) `)` +    \| [not](#not) [property_expr](#property_expr) +    \| [property_expr](#property_expr) [or](#or) [property_expr](#property_expr) +    \| [property_expr](#property_expr) [and](#and) [property_expr](#property_expr) +    \| [sequence_expr](#sequence_expr) `|->` [property_expr](#property_expr) +    \| [sequence_expr](#sequence_expr) `|=>` [property_expr](#property_expr) +    \| [if](#if) `(` [expression_or_dist](#expression_or_dist) `)` [property_expr](#property_expr) \[ [else](#else) [property_expr](#property_expr) ] +    \| [case](#case) `(` [expression_or_dist](#expression_or_dist) `)` [property_case_item](#property_case_item) \{ [property_case_item](#property_case_item) } [endcase](#endcase) +    \| [sequence_expr](#sequence_expr) `#-#` [property_expr](#property_expr) +    \| [sequence_expr](#sequence_expr) `#=#` [property_expr](#property_expr) +    \| [nexttime](#nexttime) [property_expr](#property_expr) +    \| [nexttime](#nexttime) \[ [constant_expression](#constant_expression) ] [property_expr](#property_expr) +    \| [s_nexttime](#s_nexttime) [property_expr](#property_expr) +    \| [s_nexttime](#s_nexttime) \[ [constant_expression](#constant_expression) ] [property_expr](#property_expr) +    \| [always](#always) [property_expr](#property_expr) +    \| [always](#always) \[ [cycle_delay_const_range_expression](#cycle_delay_const_range_expression) ] [property_expr](#property_expr) +    \| [s_always](#s_always) \[ [constant_range](#constant_range) ] [property_expr](#property_expr) +    \| [s_eventually](#s_eventually) [property_expr](#property_expr) +    \| [eventually](#eventually) \[ [constant_range](#constant_range) ] [property_expr](#property_expr) +    \| [s_eventually](#s_eventually) \[ [cycle_delay_const_range_expression](#cycle_delay_const_range_expression) ] [property_expr](#property_expr) +    \| [property_expr](#property_expr) [until](#until) [property_expr](#property_expr) +    \| [property_expr](#property_expr) [s_until](#s_until) [property_expr](#property_expr) +    \| [property_expr](#property_expr) [until_with](#until_with) [property_expr](#property_expr) +    \| [property_expr](#property_expr) [s_until_with](#s_until_with) [property_expr](#property_expr) +    \| [property_expr](#property_expr) [implies](#implies) [property_expr](#property_expr) +    \| [property_expr](#property_expr) [iff](#iff) [property_expr](#property_expr) +    \| [accept_on](#accept_on) `(` [expression_or_dist](#expression_or_dist) `)` [property_expr](#property_expr) +    \| [reject_on](#reject_on) `(` [expression_or_dist](#expression_or_dist) `)` [property_expr](#property_expr) +    \| [sync_accept_on](#sync_accept_on) `(` [expression_or_dist](#expression_or_dist) `)` [property_expr](#property_expr) +    \| [sync_reject_on](#sync_reject_on) `(` [expression_or_dist](#expression_or_dist) `)` [property_expr](#property_expr) +    \| [property_instance](#property_instance) +    \| [clocking_event](#clocking_event) [property_expr](#property_expr) +property\_case\_item ::= +    [expression_or_dist](#expression_or_dist) \{ `,` [expression_or_dist](#expression_or_dist) } `:` [property_expr](#property_expr) `;` +    \| [default](#default) \[ `:` ] [property_expr](#property_expr) `;` +sequence\_declaration ::= +    [sequence](#sequence) [sequence_identifier](#sequence_identifier) \[ `(` \[ [sequence_port_list](#sequence_port_list) ] `)` ] `;` +    \{ [assertion_variable_declaration](#assertion_variable_declaration) } +    [sequence_expr](#sequence_expr) \[ `;` ] +    [endsequence](#endsequence) \[ `:` [sequence_identifier](#sequence_identifier) ] +sequence\_port\_list ::= [sequence_port_item](#sequence_port_item) \{ `,` [sequence_port_item](#sequence_port_item) } +sequence\_port\_item ::= +    \{ [attribute_instance](#attribute_instance) } \[ [local](#local) \[ [sequence_lvar_port_direction](#sequence_lvar_port_direction) ] ] [sequence_formal_type](#sequence_formal_type) +    [formal_port_identifier](#formal_port_identifier) \{ [variable_dimension](#variable_dimension) } \[ `=` [sequence_actual_arg](#sequence_actual_arg) ] +sequence\_lvar\_port\_direction ::= [input](#input) \| [inout](#inout) \| [output](#output) +sequence\_formal\_type ::= +    [data_type_or_implicit](#data_type_or_implicit) +    \| [sequence](#sequence) +    \| [untyped](#untyped) +sequence\_expr ::= +    [cycle_delay_range](#cycle_delay_range) [sequence_expr](#sequence_expr) \{ [cycle_delay_range](#cycle_delay_range) [sequence_expr](#sequence_expr) } +    \| [sequence_expr](#sequence_expr) [cycle_delay_range](#cycle_delay_range) [sequence_expr](#sequence_expr) \{ [cycle_delay_range](#cycle_delay_range) [sequence_expr](#sequence_expr) } +    \| [expression_or_dist](#expression_or_dist) \[ [boolean_abbrev](#boolean_abbrev) ] +    \| [sequence_instance](#sequence_instance) \[ [sequence_abbrev](#sequence_abbrev) ] +    \| `(` [sequence_expr](#sequence_expr) \{ `,` [sequence_match_item](#sequence_match_item) } `)` \[ [sequence_abbrev](#sequence_abbrev) ] +    \| [sequence_expr](#sequence_expr) [and](#and) [sequence_expr](#sequence_expr) +    \| [sequence_expr](#sequence_expr) [intersect](#intersect) [sequence_expr](#sequence_expr) +    \| [sequence_expr](#sequence_expr) [or](#or) [sequence_expr](#sequence_expr) +    \| [first_match](#first_match) `(` [sequence_expr](#sequence_expr) \{ `,` [sequence_match_item](#sequence_match_item) } `)` +    \| [expression_or_dist](#expression_or_dist) [throughout](#throughout) [sequence_expr](#sequence_expr) +    \| [sequence_expr](#sequence_expr) [within](#within) [sequence_expr](#sequence_expr) +    \| [clocking_event](#clocking_event) [sequence_expr](#sequence_expr) +cycle\_delay\_range ::= +    `##` [constant_primary](#constant_primary) +    \| `##` \[ [cycle_delay_const_range_expression](#cycle_delay_const_range_expression) ] +    \| `##[*]` +    \| `##[+]` +sequence\_method\_call ::= [sequence_instance](#sequence_instance) `.` [method_identifier](#method_identifier) +sequence\_match\_item ::= +    [operator_assignment](#operator_assignment) +    \| [inc_or_dec_expression](#inc_or_dec_expression) +    \| [subroutine_call](#subroutine_call) +sequence\_instance ::= [ps_or_hierarchical_sequence_identifier](#ps_or_hierarchical_sequence_identifier) \[ `(` \[ [sequence_list_of_arguments](#sequence_list_of_arguments) ] `)` ] +sequence\_list\_of\_arguments ::= +    \[ [sequence_actual_arg](#sequence_actual_arg) ] \{ `,` \[ [sequence_actual_arg](#sequence_actual_arg) ] } \{ `,` `.` [identifier](#identifier) `(` \[ [sequence_actual_arg](#sequence_actual_arg) ] `)` } +    \| `.` [identifier](#identifier) `(` \[ [sequence_actual_arg](#sequence_actual_arg) ] `)` \{ `,` `.` [identifier](#identifier) `(` \[ [sequence_actual_arg](#sequence_actual_arg) ] `)` } +sequence\_actual\_arg ::= +    [event_expression](#event_expression) +    \| [sequence_expr](#sequence_expr) +    \| `$` +boolean\_abbrev ::= +    [consecutive_repetition](#consecutive_repetition) +    \| [nonconsecutive_repetition](#nonconsecutive_repetition) +    \| [goto_repetition](#goto_repetition) +sequence\_abbrev ::= [consecutive_repetition](#consecutive_repetition) +consecutive\_repetition ::= +    `[*` [const_or_range_expression](#const_or_range_expression) ] +    \| `[*]` +    \| `[+]` +nonconsecutive\_repetition ::= `[=` [const_or_range_expression](#const_or_range_expression) ] +goto\_repetition ::= `[->` [const_or_range_expression](#const_or_range_expression) ] +const\_or\_range\_expression ::= +    [constant_expression](#constant_expression) +    \| [cycle_delay_const_range_expression](#cycle_delay_const_range_expression) +cycle\_delay\_const\_range\_expression ::= +    [constant_expression](#constant_expression) `:` [constant_expression](#constant_expression) +    \| [constant_expression](#constant_expression) `:` `$` +assertion\_variable\_declaration ::= [var_data_type](#var_data_type) [list_of_variable_decl_assignments](#list_of_variable_decl_assignments) `;` ### A.2.11 Covergroup declarations -covergroup\_declaration ::= -    [covergroup](#covergroup) [covergroup_identifier](#covergroup_identifier) \[ `(` \[ [tf_port_list](#tf_port_list) ] `)` ] \[ [coverage_event](#coverage_event) ] `;` -    \{ [coverage_spec_or_option](#coverage_spec_or_option) } -    [endgroup](#endgroup) \[ `:` [covergroup_identifier](#covergroup_identifier) ] -    \| [covergroup](#covergroup) [extends](#extends) [covergroup_identifier](#covergroup_identifier) `;`[29](#29) -    \{ [coverage_spec_or_option](#coverage_spec_or_option) } -    [endgroup](#endgroup) \[ `:` [covergroup_identifier](#covergroup_identifier) ] -coverage\_spec\_or\_option ::= -    \{ [attribute_instance](#attribute_instance) } [coverage_spec](#coverage_spec) -    \| \{ [attribute_instance](#attribute_instance) } [coverage_option](#coverage_option) `;` -coverage\_option ::= -    [option](#option) `.` [member_identifier](#member_identifier) `=` [expression](#expression) -    \| [type_option](#type_option) `.` [member_identifier](#member_identifier) `=` [constant_expression](#constant_expression) -coverage\_spec ::= -    [cover_point](#cover_point) -    \| [cover_cross](#cover_cross) -coverage\_event ::= -    [clocking_event](#clocking_event) -    \| [with](#with) [function](#function) [sample](#sample) `(` \[ [tf_port_list](#tf_port_list) ] `)` -    \| `@@` `(` [block_event_expression](#block_event_expression) `)` -block\_event\_expression ::= -    [block_event_expression](#block_event_expression) [or](#or) [block_event_expression](#block_event_expression) -    \| [begin](#begin) [hierarchical_btf_identifier](#hierarchical_btf_identifier) -    \| [end](#end) [hierarchical_btf_identifier](#hierarchical_btf_identifier) -hierarchical\_btf\_identifier ::= -    [hierarchical_tf_identifier](#hierarchical_tf_identifier) -    \| [hierarchical_block_identifier](#hierarchical_block_identifier) -    \| \[ [hierarchical_identifier](#hierarchical_identifier) `.` \| [class_scope](#class_scope) ] [method_identifier](#method_identifier) -cover\_point ::= -    \[ \[ [data_type_or_implicit](#data_type_or_implicit) ] [cover_point_identifier](#cover_point_identifier) `:` ] [coverpoint](#coverpoint) [expression](#expression) \[ [iff](#iff) `(` [expression](#expression) `)` ] -    [bins_or_empty](#bins_or_empty) -bins\_or\_empty ::= -    \{ \{ [attribute_instance](#attribute_instance) } \{ [bins_or_options](#bins_or_options) `;` } } -    \| `;` -bins\_or\_options ::= -    [coverage_option](#coverage_option) -    \| \[ [wildcard](#wildcard) ] [bins_keyword](#bins_keyword) [bin_identifier](#bin_identifier) \[ \[ \[ [covergroup_expression](#covergroup_expression) ] ] ] `=` -    \{ [covergroup_range_list](#covergroup_range_list) } \[ [with](#with) `(` [with_covergroup_expression](#with_covergroup_expression) `)` ] \[ [iff](#iff) `(` [expression](#expression) `)` ] -    \| \[ [wildcard](#wildcard) ] [bins_keyword](#bins_keyword) [bin_identifier](#bin_identifier) \[ \[ \[ [covergroup_expression](#covergroup_expression) ] ] ] `=` -    [cover_point_identifier](#cover_point_identifier) [with](#with) `(` [with_covergroup_expression](#with_covergroup_expression) `)` \[ [iff](#iff) `(` [expression](#expression) `)` ] -    \| \[ [wildcard](#wildcard) ] [bins_keyword](#bins_keyword) [bin_identifier](#bin_identifier) \[ \[ \[ [covergroup_expression](#covergroup_expression) ] ] ] `=` -    [set_covergroup_expression](#set_covergroup_expression) \[ [iff](#iff) `(` [expression](#expression) `)` ] -    \| \[ [wildcard](#wildcard)] [bins_keyword](#bins_keyword) [bin_identifier](#bin_identifier) \[ \[ ] ] `=` [trans_list](#trans_list) \[ [iff](#iff) `(` [expression](#expression) `)` ] -    \| [bins_keyword](#bins_keyword) [bin_identifier](#bin_identifier) \[ \[ \[ [covergroup_expression](#covergroup_expression) ] ] ] `=` [default](#default) \[ [iff](#iff) `(` [expression](#expression) `)` ] -    \| [bins_keyword](#bins_keyword) [bin_identifier](#bin_identifier) `=` [default](#default) [sequence](#sequence) \[ [iff](#iff) `(` [expression](#expression) `)` ] -    [bins_keyword](#bins_keyword)`::=` [bins](#bins) \| [illegal_bins](#illegal_bins) \| [ignore_bins](#ignore_bins) -trans\_list ::= `(` [trans_set](#trans_set) `)` \{ `,` `(` [trans_set](#trans_set) `)` } -trans\_set ::= [trans_range_list](#trans_range_list) \{ `=>` [trans_range_list](#trans_range_list) } -trans\_range\_list ::= -    [trans_item](#trans_item) -    \| [trans_item](#trans_item) `[*` [repeat_range](#repeat_range) ] -    \| [trans_item](#trans_item) \[[â](#â)`€“>` [repeat_range](#repeat_range) ] -    \| [trans_item](#trans_item) `[=` [repeat_range](#repeat_range) ] -trans\_item ::= [covergroup_range_list](#covergroup_range_list) -repeat\_range ::= -    [covergroup_expression](#covergroup_expression) -    \| [covergroup_expression](#covergroup_expression) `:` [covergroup_expression](#covergroup_expression) -cover\_cross ::= \[ [cross_identifier](#cross_identifier) `:` ] [cross](#cross) [list_of_cross_items](#list_of_cross_items) \[ [iff](#iff) `(` [expression](#expression) `)` ] [cross_body](#cross_body) -list\_of\_cross\_items ::= [cross_item](#cross_item) `,` [cross_item](#cross_item) \{ `,` [cross_item](#cross_item) } -cross\_item ::= -    [cover_point_identifier](#cover_point_identifier) -    \| [variable_identifier](#variable_identifier) -cross\_body ::= -    \{ \{ [cross_body_item](#cross_body_item) } } -    \| `;` -cross\_body\_item ::= -    [function_declaration](#function_declaration) -    \| [bins_selection_or_option](#bins_selection_or_option) `;` -bins\_selection\_or\_option ::= -    \{ [attribute_instance](#attribute_instance) } [coverage_option](#coverage_option) -    \| \{ [attribute_instance](#attribute_instance) } [bins_selection](#bins_selection) -bins\_selection ::= [bins_keyword](#bins_keyword) [bin_identifier](#bin_identifier) `=` [select_expression](#select_expression) \[ [iff](#iff) `(` [expression](#expression) `)` ] -select\_expression30 ::= -    [select_condition](#select_condition) -    \| `!` [select_condition](#select_condition) -    \| [select_expression](#select_expression) `&&` [select_expression](#select_expression) -    \| [select_expression](#select_expression) `||` [select_expression](#select_expression) -    \| `(` [select_expression](#select_expression) `)` -    \| [select_expression](#select_expression) [with](#with) `(` [with_covergroup_expression](#with_covergroup_expression) `)` \[ [matches](#matches) [integer_covergroup_expression](#integer_covergroup_expression) ] -    \| [cross_identifier](#cross_identifier) -    \| [cross_set_expression](#cross_set_expression) \[ [matches](#matches) [integer_covergroup_expression](#integer_covergroup_expression) ] -select\_condition ::= [binsof](#binsof) `(` [bins_expression](#bins_expression) `)` \[ [intersect](#intersect) \{ [covergroup_range_list](#covergroup_range_list) } ] -bins\_expression ::= -    [variable_identifier](#variable_identifier) -    \| [cover_point_identifier](#cover_point_identifier) \[ `.` [bin_identifier](#bin_identifier) ] -covergroup\_range\_list ::= [covergroup_value_range](#covergroup_value_range) \{ `,` [covergroup_value_range](#covergroup_value_range) } -covergroup\_value\_range ::= -    [covergroup_expression](#covergroup_expression) -    \| \[ [covergroup_expression](#covergroup_expression) `:` [covergroup_expression](#covergroup_expression) ] -    \| \[ `$` `:` [covergroup_expression](#covergroup_expression) ] -    \| \[ [covergroup_expression](#covergroup_expression) `:` `$` ] -    \| \[ [covergroup_expression](#covergroup_expression) `+/-` [covergroup_expression](#covergroup_expression) ] -    \| \[ [covergroup_expression](#covergroup_expression) `+%-` [covergroup_expression](#covergroup_expression) ] -with\_covergroup\_expression ::= [covergroup_expression31](#covergroup_expression31) -set\_covergroup\_expression ::= [covergroup_expression32](#covergroup_expression32) -integer\_covergroup\_expression ::= [covergroup_expression](#covergroup_expression) \| `$` -cross\_set\_expression ::= [covergroup_expression](#covergroup_expression) -covergroup\_expression ::= [expression33](#expression33) +covergroup\_declaration ::= +    [covergroup](#covergroup) [covergroup_identifier](#covergroup_identifier) \[ `(` \[ [tf_port_list](#tf_port_list) ] `)` ] \[ [coverage_event](#coverage_event) ] `;` +    \{ [coverage_spec_or_option](#coverage_spec_or_option) } +    [endgroup](#endgroup) \[ `:` [covergroup_identifier](#covergroup_identifier) ] +    \| [covergroup](#covergroup) [extends](#extends) [covergroup_identifier](#covergroup_identifier) `;`[29](#29) +    \{ [coverage_spec_or_option](#coverage_spec_or_option) } +    [endgroup](#endgroup) \[ `:` [covergroup_identifier](#covergroup_identifier) ] +coverage\_spec\_or\_option ::= +    \{ [attribute_instance](#attribute_instance) } [coverage_spec](#coverage_spec) +    \| \{ [attribute_instance](#attribute_instance) } [coverage_option](#coverage_option) `;` +coverage\_option ::= +    [option](#option) `.` [member_identifier](#member_identifier) `=` [expression](#expression) +    \| [type_option](#type_option) `.` [member_identifier](#member_identifier) `=` [constant_expression](#constant_expression) +coverage\_spec ::= +    [cover_point](#cover_point) +    \| [cover_cross](#cover_cross) +coverage\_event ::= +    [clocking_event](#clocking_event) +    \| [with](#with) [function](#function) [sample](#sample) `(` \[ [tf_port_list](#tf_port_list) ] `)` +    \| `@@` `(` [block_event_expression](#block_event_expression) `)` +block\_event\_expression ::= +    [block_event_expression](#block_event_expression) [or](#or) [block_event_expression](#block_event_expression) +    \| [begin](#begin) [hierarchical_btf_identifier](#hierarchical_btf_identifier) +    \| [end](#end) [hierarchical_btf_identifier](#hierarchical_btf_identifier) +hierarchical\_btf\_identifier ::= +    [hierarchical_tf_identifier](#hierarchical_tf_identifier) +    \| [hierarchical_block_identifier](#hierarchical_block_identifier) +    \| \[ [hierarchical_identifier](#hierarchical_identifier) `.` \| [class_scope](#class_scope) ] [method_identifier](#method_identifier) +cover\_point ::= +    \[ \[ [data_type_or_implicit](#data_type_or_implicit) ] [cover_point_identifier](#cover_point_identifier) `:` ] [coverpoint](#coverpoint) [expression](#expression) \[ [iff](#iff) `(` [expression](#expression) `)` ] +    [bins_or_empty](#bins_or_empty) +bins\_or\_empty ::= +    \{ \{ [attribute_instance](#attribute_instance) } \{ [bins_or_options](#bins_or_options) `;` } } +    \| `;` +bins\_or\_options ::= +    [coverage_option](#coverage_option) +    \| \[ [wildcard](#wildcard) ] [bins_keyword](#bins_keyword) [bin_identifier](#bin_identifier) \[ \[ \[ [covergroup_expression](#covergroup_expression) ] ] ] `=` +    \{ [covergroup_range_list](#covergroup_range_list) } \[ [with](#with) `(` [with_covergroup_expression](#with_covergroup_expression) `)` ] \[ [iff](#iff) `(` [expression](#expression) `)` ] +    \| \[ [wildcard](#wildcard) ] [bins_keyword](#bins_keyword) [bin_identifier](#bin_identifier) \[ \[ \[ [covergroup_expression](#covergroup_expression) ] ] ] `=` +    [cover_point_identifier](#cover_point_identifier) [with](#with) `(` [with_covergroup_expression](#with_covergroup_expression) `)` \[ [iff](#iff) `(` [expression](#expression) `)` ] +    \| \[ [wildcard](#wildcard) ] [bins_keyword](#bins_keyword) [bin_identifier](#bin_identifier) \[ \[ \[ [covergroup_expression](#covergroup_expression) ] ] ] `=` +    [set_covergroup_expression](#set_covergroup_expression) \[ [iff](#iff) `(` [expression](#expression) `)` ] +    \| \[ [wildcard](#wildcard)] [bins_keyword](#bins_keyword) [bin_identifier](#bin_identifier) \[ \[ ] ] `=` [trans_list](#trans_list) \[ [iff](#iff) `(` [expression](#expression) `)` ] +    \| [bins_keyword](#bins_keyword) [bin_identifier](#bin_identifier) \[ \[ \[ [covergroup_expression](#covergroup_expression) ] ] ] `=` [default](#default) \[ [iff](#iff) `(` [expression](#expression) `)` ] +    \| [bins_keyword](#bins_keyword) [bin_identifier](#bin_identifier) `=` [default](#default) [sequence](#sequence) \[ [iff](#iff) `(` [expression](#expression) `)` ] +    [bins_keyword](#bins_keyword)`::=` [bins](#bins) \| [illegal_bins](#illegal_bins) \| [ignore_bins](#ignore_bins) +trans\_list ::= `(` [trans_set](#trans_set) `)` \{ `,` `(` [trans_set](#trans_set) `)` } +trans\_set ::= [trans_range_list](#trans_range_list) \{ `=>` [trans_range_list](#trans_range_list) } +trans\_range\_list ::= +    [trans_item](#trans_item) +    \| [trans_item](#trans_item) `[*` [repeat_range](#repeat_range) ] +    \| [trans_item](#trans_item) \[[â](#â)`€“>` [repeat_range](#repeat_range) ] +    \| [trans_item](#trans_item) `[=` [repeat_range](#repeat_range) ] +trans\_item ::= [covergroup_range_list](#covergroup_range_list) +repeat\_range ::= +    [covergroup_expression](#covergroup_expression) +    \| [covergroup_expression](#covergroup_expression) `:` [covergroup_expression](#covergroup_expression) +cover\_cross ::= \[ [cross_identifier](#cross_identifier) `:` ] [cross](#cross) [list_of_cross_items](#list_of_cross_items) \[ [iff](#iff) `(` [expression](#expression) `)` ] [cross_body](#cross_body) +list\_of\_cross\_items ::= [cross_item](#cross_item) `,` [cross_item](#cross_item) \{ `,` [cross_item](#cross_item) } +cross\_item ::= +    [cover_point_identifier](#cover_point_identifier) +    \| [variable_identifier](#variable_identifier) +cross\_body ::= +    \{ \{ [cross_body_item](#cross_body_item) } } +    \| `;` +cross\_body\_item ::= +    [function_declaration](#function_declaration) +    \| [bins_selection_or_option](#bins_selection_or_option) `;` +bins\_selection\_or\_option ::= +    \{ [attribute_instance](#attribute_instance) } [coverage_option](#coverage_option) +    \| \{ [attribute_instance](#attribute_instance) } [bins_selection](#bins_selection) +bins\_selection ::= [bins_keyword](#bins_keyword) [bin_identifier](#bin_identifier) `=` [select_expression](#select_expression) \[ [iff](#iff) `(` [expression](#expression) `)` ] +select\_expression30 ::= +    [select_condition](#select_condition) +    \| `!` [select_condition](#select_condition) +    \| [select_expression](#select_expression) `&&` [select_expression](#select_expression) +    \| [select_expression](#select_expression) `||` [select_expression](#select_expression) +    \| `(` [select_expression](#select_expression) `)` +    \| [select_expression](#select_expression) [with](#with) `(` [with_covergroup_expression](#with_covergroup_expression) `)` \[ [matches](#matches) [integer_covergroup_expression](#integer_covergroup_expression) ] +    \| [cross_identifier](#cross_identifier) +    \| [cross_set_expression](#cross_set_expression) \[ [matches](#matches) [integer_covergroup_expression](#integer_covergroup_expression) ] +select\_condition ::= [binsof](#binsof) `(` [bins_expression](#bins_expression) `)` \[ [intersect](#intersect) \{ [covergroup_range_list](#covergroup_range_list) } ] +bins\_expression ::= +    [variable_identifier](#variable_identifier) +    \| [cover_point_identifier](#cover_point_identifier) \[ `.` [bin_identifier](#bin_identifier) ] +covergroup\_range\_list ::= [covergroup_value_range](#covergroup_value_range) \{ `,` [covergroup_value_range](#covergroup_value_range) } +covergroup\_value\_range ::= +    [covergroup_expression](#covergroup_expression) +    \| \[ [covergroup_expression](#covergroup_expression) `:` [covergroup_expression](#covergroup_expression) ] +    \| \[ `$` `:` [covergroup_expression](#covergroup_expression) ] +    \| \[ [covergroup_expression](#covergroup_expression) `:` `$` ] +    \| \[ [covergroup_expression](#covergroup_expression) `+/-` [covergroup_expression](#covergroup_expression) ] +    \| \[ [covergroup_expression](#covergroup_expression) `+%-` [covergroup_expression](#covergroup_expression) ] +with\_covergroup\_expression ::= [covergroup_expression31](#covergroup_expression31) +set\_covergroup\_expression ::= [covergroup_expression32](#covergroup_expression32) +integer\_covergroup\_expression ::= [covergroup_expression](#covergroup_expression) \| `$` +cross\_set\_expression ::= [covergroup_expression](#covergroup_expression) +covergroup\_expression ::= [expression33](#expression33) ### A.2.12 Let declarations -let\_declaration ::= [let](#let) [let_identifier](#let_identifier) \[ `(` \[ [let_port_list](#let_port_list) ] `)` ] `=` [expression](#expression) `;` -let\_identifier ::= [identifier](#identifier) -let\_port\_list ::= [let_port_item](#let_port_item) \{ `,` [let_port_item](#let_port_item) } -let\_port\_item ::= -    \{ [attribute_instance](#attribute_instance) } [let_formal_type](#let_formal_type) [formal_port_identifier](#formal_port_identifier) \{ [variable_dimension](#variable_dimension) } \[ `=` [expression](#expression) ] -let\_formal\_type ::= -    [data_type_or_implicit](#data_type_or_implicit) -    \| [untyped](#untyped) -let\_expression ::= \[ [package_scope](#package_scope) ] [let_identifier](#let_identifier) \[ `(` \[ [let_list_of_arguments](#let_list_of_arguments) ] `)` ] -let\_list\_of\_arguments ::= -    \[ [let_actual_arg](#let_actual_arg) ] \{ `,` \[ [let_actual_arg](#let_actual_arg) ] } \{ `,` `.` [identifier](#identifier) `(` \[ [let_actual_arg](#let_actual_arg) ] `)` } -    \| `.` [identifier](#identifier) `(` \[ [let_actual_arg](#let_actual_arg) ] `)` \{ `,` `.` [identifier](#identifier) `(` \[ [let_actual_arg](#let_actual_arg) ] `)` } -let\_actual\_arg ::= [expression](#expression) +let\_declaration ::= [let](#let) [let_identifier](#let_identifier) \[ `(` \[ [let_port_list](#let_port_list) ] `)` ] `=` [expression](#expression) `;` +let\_identifier ::= [identifier](#identifier) +let\_port\_list ::= [let_port_item](#let_port_item) \{ `,` [let_port_item](#let_port_item) } +let\_port\_item ::= +    \{ [attribute_instance](#attribute_instance) } [let_formal_type](#let_formal_type) [formal_port_identifier](#formal_port_identifier) \{ [variable_dimension](#variable_dimension) } \[ `=` [expression](#expression) ] +let\_formal\_type ::= +    [data_type_or_implicit](#data_type_or_implicit) +    \| [untyped](#untyped) +let\_expression ::= \[ [package_scope](#package_scope) ] [let_identifier](#let_identifier) \[ `(` \[ [let_list_of_arguments](#let_list_of_arguments) ] `)` ] +let\_list\_of\_arguments ::= +    \[ [let_actual_arg](#let_actual_arg) ] \{ `,` \[ [let_actual_arg](#let_actual_arg) ] } \{ `,` `.` [identifier](#identifier) `(` \[ [let_actual_arg](#let_actual_arg) ] `)` } +    \| `.` [identifier](#identifier) `(` \[ [let_actual_arg](#let_actual_arg) ] `)` \{ `,` `.` [identifier](#identifier) `(` \[ [let_actual_arg](#let_actual_arg) ] `)` } +let\_actual\_arg ::= [expression](#expression) ## A.3 Primitive instances ### A.3.1 Primitive instantiation and instances -gate\_instantiation ::= -    [cmos_switchtype](#cmos_switchtype) \[ [delay3](#delay3) ] [cmos_switch_instance](#cmos_switch_instance) \{ `,` [cmos_switch_instance](#cmos_switch_instance) } `;` -    \| [mos_switchtype](#mos_switchtype) \[ [delay3](#delay3) ] [mos_switch_instance](#mos_switch_instance) \{ `,` [mos_switch_instance](#mos_switch_instance) } `;` -    \| [enable_gatetype](#enable_gatetype) \[ [drive_strength](#drive_strength) ] \[ [delay3](#delay3) ] [enable_gate_instance](#enable_gate_instance) \{ `,` [enable_gate_instance](#enable_gate_instance) } `;` -    \| [n_input_gatetype](#n_input_gatetype) \[ [drive_strength](#drive_strength) ] \[ [delay2](#delay2) ] [n_input_gate_instance](#n_input_gate_instance) \{ `,` [n_input_gate_instance](#n_input_gate_instance) } `;` -    \| [n_output_gatetype](#n_output_gatetype) \[ [drive_strength](#drive_strength) ] \[ [delay2](#delay2) ] [n_output_gate_instance](#n_output_gate_instance) \{ `,` [n_output_gate_instance](#n_output_gate_instance) } `;` -    \| [pass_en_switchtype](#pass_en_switchtype) \[ [delay2](#delay2) ] [pass_enable_switch_instance](#pass_enable_switch_instance) \{ `,` [pass_enable_switch_instance](#pass_enable_switch_instance) } `;` -    \| [pass_switchtype](#pass_switchtype) [pass_switch_instance](#pass_switch_instance) \{ `,` [pass_switch_instance](#pass_switch_instance) } `;` -    \| [pulldown](#pulldown) \[ [pulldown_strength](#pulldown_strength) ] [pull_gate_instance](#pull_gate_instance) \{ `,` [pull_gate_instance](#pull_gate_instance) } `;` -    \| [pullup](#pullup) \[ [pullup_strength](#pullup_strength) ] [pull_gate_instance](#pull_gate_instance) \{ `,` [pull_gate_instance](#pull_gate_instance) } `;` -cmos\_switch\_instance ::= \[ [name_of_instance](#name_of_instance) ] `(` [output_terminal](#output_terminal) `,` [input_terminal](#input_terminal) `,` -    [ncontrol_terminal](#ncontrol_terminal) `,` [pcontrol_terminal](#pcontrol_terminal) `)` -enable\_gate\_instance ::= \[ [name_of_instance](#name_of_instance) ] `(` [output_terminal](#output_terminal) `,` [input_terminal](#input_terminal) `,` [enable_terminal](#enable_terminal) `)` -mos\_switch\_instance ::= \[ [name_of_instance](#name_of_instance) ] `(` [output_terminal](#output_terminal) `,` [input_terminal](#input_terminal) `,` [enable_terminal](#enable_terminal) `)` -n\_input\_gate\_instance ::= \[ [name_of_instance](#name_of_instance) ] `(` [output_terminal](#output_terminal) `,` [input_terminal](#input_terminal) \{ `,` [input_terminal](#input_terminal) } `)` -n\_output\_gate\_instance ::= \[ [name_of_instance](#name_of_instance) ] `(` [output_terminal](#output_terminal) \{ `,` [output_terminal](#output_terminal) } `,` -    [input_terminal](#input_terminal) `)` -pass\_switch\_instance ::= \[ [name_of_instance](#name_of_instance) ] `(` [inout_terminal](#inout_terminal) `,` [inout_terminal](#inout_terminal) `)` -pass\_enable\_switch\_instance ::= \[ [name_of_instance](#name_of_instance) ] `(` [inout_terminal](#inout_terminal) `,` [inout_terminal](#inout_terminal) `,` -    [enable_terminal](#enable_terminal) `)` -pull\_gate\_instance ::= \[ [name_of_instance](#name_of_instance) ] `(` [output_terminal](#output_terminal) `)` +gate\_instantiation ::= +    [cmos_switchtype](#cmos_switchtype) \[ [delay3](#delay3) ] [cmos_switch_instance](#cmos_switch_instance) \{ `,` [cmos_switch_instance](#cmos_switch_instance) } `;` +    \| [mos_switchtype](#mos_switchtype) \[ [delay3](#delay3) ] [mos_switch_instance](#mos_switch_instance) \{ `,` [mos_switch_instance](#mos_switch_instance) } `;` +    \| [enable_gatetype](#enable_gatetype) \[ [drive_strength](#drive_strength) ] \[ [delay3](#delay3) ] [enable_gate_instance](#enable_gate_instance) \{ `,` [enable_gate_instance](#enable_gate_instance) } `;` +    \| [n_input_gatetype](#n_input_gatetype) \[ [drive_strength](#drive_strength) ] \[ [delay2](#delay2) ] [n_input_gate_instance](#n_input_gate_instance) \{ `,` [n_input_gate_instance](#n_input_gate_instance) } `;` +    \| [n_output_gatetype](#n_output_gatetype) \[ [drive_strength](#drive_strength) ] \[ [delay2](#delay2) ] [n_output_gate_instance](#n_output_gate_instance) \{ `,` [n_output_gate_instance](#n_output_gate_instance) } `;` +    \| [pass_en_switchtype](#pass_en_switchtype) \[ [delay2](#delay2) ] [pass_enable_switch_instance](#pass_enable_switch_instance) \{ `,` [pass_enable_switch_instance](#pass_enable_switch_instance) } `;` +    \| [pass_switchtype](#pass_switchtype) [pass_switch_instance](#pass_switch_instance) \{ `,` [pass_switch_instance](#pass_switch_instance) } `;` +    \| [pulldown](#pulldown) \[ [pulldown_strength](#pulldown_strength) ] [pull_gate_instance](#pull_gate_instance) \{ `,` [pull_gate_instance](#pull_gate_instance) } `;` +    \| [pullup](#pullup) \[ [pullup_strength](#pullup_strength) ] [pull_gate_instance](#pull_gate_instance) \{ `,` [pull_gate_instance](#pull_gate_instance) } `;` +cmos\_switch\_instance ::= \[ [name_of_instance](#name_of_instance) ] `(` [output_terminal](#output_terminal) `,` [input_terminal](#input_terminal) `,` +    [ncontrol_terminal](#ncontrol_terminal) `,` [pcontrol_terminal](#pcontrol_terminal) `)` +enable\_gate\_instance ::= \[ [name_of_instance](#name_of_instance) ] `(` [output_terminal](#output_terminal) `,` [input_terminal](#input_terminal) `,` [enable_terminal](#enable_terminal) `)` +mos\_switch\_instance ::= \[ [name_of_instance](#name_of_instance) ] `(` [output_terminal](#output_terminal) `,` [input_terminal](#input_terminal) `,` [enable_terminal](#enable_terminal) `)` +n\_input\_gate\_instance ::= \[ [name_of_instance](#name_of_instance) ] `(` [output_terminal](#output_terminal) `,` [input_terminal](#input_terminal) \{ `,` [input_terminal](#input_terminal) } `)` +n\_output\_gate\_instance ::= \[ [name_of_instance](#name_of_instance) ] `(` [output_terminal](#output_terminal) \{ `,` [output_terminal](#output_terminal) } `,` +    [input_terminal](#input_terminal) `)` +pass\_switch\_instance ::= \[ [name_of_instance](#name_of_instance) ] `(` [inout_terminal](#inout_terminal) `,` [inout_terminal](#inout_terminal) `)` +pass\_enable\_switch\_instance ::= \[ [name_of_instance](#name_of_instance) ] `(` [inout_terminal](#inout_terminal) `,` [inout_terminal](#inout_terminal) `,` +    [enable_terminal](#enable_terminal) `)` +pull\_gate\_instance ::= \[ [name_of_instance](#name_of_instance) ] `(` [output_terminal](#output_terminal) `)` ### A.3.2 Primitive strengths -pulldown\_strength ::= -    `(` [strength0](#strength0) `,` [strength1](#strength1) `)` -    \| `(` [strength1](#strength1) `,` [strength0](#strength0) `)` -    \| `(` [strength0](#strength0) `)` -pullup\_strength ::= -    `(` [strength0](#strength0) `,` [strength1](#strength1) `)` -    \| `(` [strength1](#strength1) `,` [strength0](#strength0) `)` -    \| `(` [strength1](#strength1) `)` +pulldown\_strength ::= +    `(` [strength0](#strength0) `,` [strength1](#strength1) `)` +    \| `(` [strength1](#strength1) `,` [strength0](#strength0) `)` +    \| `(` [strength0](#strength0) `)` +pullup\_strength ::= +    `(` [strength0](#strength0) `,` [strength1](#strength1) `)` +    \| `(` [strength1](#strength1) `,` [strength0](#strength0) `)` +    \| `(` [strength1](#strength1) `)` ### A.3.3 Primitive terminals -enable\_terminal ::= [expression](#expression) -inout\_terminal ::= [net_lvalue](#net_lvalue) -input\_terminal ::= [expression](#expression) -ncontrol\_terminal ::= [expression](#expression) -output\_terminal ::= [net_lvalue](#net_lvalue) -pcontrol\_terminal ::= [expression](#expression) +enable\_terminal ::= [expression](#expression) +inout\_terminal ::= [net_lvalue](#net_lvalue) +input\_terminal ::= [expression](#expression) +ncontrol\_terminal ::= [expression](#expression) +output\_terminal ::= [net_lvalue](#net_lvalue) +pcontrol\_terminal ::= [expression](#expression) ### A.3.4 Primitive gate and switch types -cmos\_switchtype ::= [cmos](#cmos) \| [rcmos](#rcmos) -enable\_gatetype ::= [bufif0](#bufif0) \| [bufif1](#bufif1) \| [notif0](#notif0) \| [notif1](#notif1) -mos\_switchtype ::= [nmos](#nmos) \| [pmos](#pmos) \| [rnmos](#rnmos) \| [rpmos](#rpmos) -n\_input\_gatetype ::= [and](#and) \| [nand](#nand) \| [or](#or) \| [nor](#nor) \| [xor](#xor) \| [xnor](#xnor) -n\_output\_gatetype ::= [buf](#buf) \| [not](#not) -pass\_en\_switchtype ::= [tranif0](#tranif0) \| [tranif1](#tranif1) \| [rtranif1](#rtranif1) \| [rtranif0](#rtranif0) -pass\_switchtype ::= [tran](#tran) \| [rtran](#rtran) +cmos\_switchtype ::= [cmos](#cmos) \| [rcmos](#rcmos) +enable\_gatetype ::= [bufif0](#bufif0) \| [bufif1](#bufif1) \| [notif0](#notif0) \| [notif1](#notif1) +mos\_switchtype ::= [nmos](#nmos) \| [pmos](#pmos) \| [rnmos](#rnmos) \| [rpmos](#rpmos) +n\_input\_gatetype ::= [and](#and) \| [nand](#nand) \| [or](#or) \| [nor](#nor) \| [xor](#xor) \| [xnor](#xnor) +n\_output\_gatetype ::= [buf](#buf) \| [not](#not) +pass\_en\_switchtype ::= [tranif0](#tranif0) \| [tranif1](#tranif1) \| [rtranif1](#rtranif1) \| [rtranif0](#rtranif0) +pass\_switchtype ::= [tran](#tran) \| [rtran](#rtran) ## A.4 Instantiations ### A.4.1 Instantiation #### A.4.1.1 Module instantiation -module\_instantiation ::= -    [module_identifier](#module_identifier) \[ [parameter_value_assignment](#parameter_value_assignment) ] [hierarchical_instance](#hierarchical_instance) \{ `,` [hierarchical_instance](#hierarchical_instance) } `;` -parameter\_value\_assignment ::= `#` `(` \[ [list_of_parameter_value_assignments](#list_of_parameter_value_assignments) ] `)` -list\_of\_parameter\_value\_assignments ::= -    [ordered_parameter_assignment](#ordered_parameter_assignment) \{ `,` [ordered_parameter_assignment](#ordered_parameter_assignment) } -    \| [named_parameter_assignment](#named_parameter_assignment) \{ `,` [named_parameter_assignment](#named_parameter_assignment) } -ordered\_parameter\_assignment ::= [param_expression](#param_expression) -named\_parameter\_assignment ::= `.` [parameter_identifier](#parameter_identifier) `(` \[ [param_expression](#param_expression) ] `)` -hierarchical\_instance ::= [name_of_instance](#name_of_instance) `(` \[ [list_of_port_connections](#list_of_port_connections) ] `)` -name\_of\_instance ::= [instance_identifier](#instance_identifier) \{ [unpacked_dimension](#unpacked_dimension) } -list\_of\_port\_connections34 ::= -    [ordered_port_connection](#ordered_port_connection) \{ `,` [ordered_port_connection](#ordered_port_connection) } -    \| [named_port_connection](#named_port_connection) \{ `,` [named_port_connection](#named_port_connection) } -ordered\_port\_connection ::= \{ [attribute_instance](#attribute_instance) } \[ [expression](#expression) ] -named\_port\_connection ::= -    \{ [attribute_instance](#attribute_instance) } `.` [port_identifier](#port_identifier) \[ `(` \[ [expression](#expression) ] `)` ] -    \| \{ [attribute_instance](#attribute_instance) } `.` `*` +module\_instantiation ::= +    [module_identifier](#module_identifier) \[ [parameter_value_assignment](#parameter_value_assignment) ] [hierarchical_instance](#hierarchical_instance) \{ `,` [hierarchical_instance](#hierarchical_instance) } `;` +parameter\_value\_assignment ::= `#` `(` \[ [list_of_parameter_value_assignments](#list_of_parameter_value_assignments) ] `)` +list\_of\_parameter\_value\_assignments ::= +    [ordered_parameter_assignment](#ordered_parameter_assignment) \{ `,` [ordered_parameter_assignment](#ordered_parameter_assignment) } +    \| [named_parameter_assignment](#named_parameter_assignment) \{ `,` [named_parameter_assignment](#named_parameter_assignment) } +ordered\_parameter\_assignment ::= [param_expression](#param_expression) +named\_parameter\_assignment ::= `.` [parameter_identifier](#parameter_identifier) `(` \[ [param_expression](#param_expression) ] `)` +hierarchical\_instance ::= [name_of_instance](#name_of_instance) `(` \[ [list_of_port_connections](#list_of_port_connections) ] `)` +name\_of\_instance ::= [instance_identifier](#instance_identifier) \{ [unpacked_dimension](#unpacked_dimension) } +list\_of\_port\_connections34 ::= +    [ordered_port_connection](#ordered_port_connection) \{ `,` [ordered_port_connection](#ordered_port_connection) } +    \| [named_port_connection](#named_port_connection) \{ `,` [named_port_connection](#named_port_connection) } +ordered\_port\_connection ::= \{ [attribute_instance](#attribute_instance) } \[ [expression](#expression) ] +named\_port\_connection ::= +    \{ [attribute_instance](#attribute_instance) } `.` [port_identifier](#port_identifier) \[ `(` \[ [expression](#expression) ] `)` ] +    \| \{ [attribute_instance](#attribute_instance) } `.` `*` #### A.4.1.2 Interface instantiation -interface\_instantiation ::= -    [interface_identifier](#interface_identifier) \[ [parameter_value_assignment](#parameter_value_assignment) ] [hierarchical_instance](#hierarchical_instance) \{ `,` [hierarchical_instance](#hierarchical_instance) } `;` +interface\_instantiation ::= +    [interface_identifier](#interface_identifier) \[ [parameter_value_assignment](#parameter_value_assignment) ] [hierarchical_instance](#hierarchical_instance) \{ `,` [hierarchical_instance](#hierarchical_instance) } `;` #### A.4.1.3 Program instantiation -program\_instantiation ::= -    [program_identifier](#program_identifier) \[ [parameter_value_assignment](#parameter_value_assignment) ] [hierarchical_instance](#hierarchical_instance) \{ `,` [hierarchical_instance](#hierarchical_instance) } `;` +program\_instantiation ::= +    [program_identifier](#program_identifier) \[ [parameter_value_assignment](#parameter_value_assignment) ] [hierarchical_instance](#hierarchical_instance) \{ `,` [hierarchical_instance](#hierarchical_instance) } `;` #### A.4.1.4 Checker instantiation -checker\_instantiation ::= -    [ps_checker_identifier](#ps_checker_identifier) [name_of_instance](#name_of_instance) `(` \[ [list_of_checker_port_connections](#list_of_checker_port_connections) ] `)` `;` -list\_of\_checker\_port\_connections34 ::= -    [ordered_checker_port_connection](#ordered_checker_port_connection) \{ `,` [ordered_checker_port_connection](#ordered_checker_port_connection) } -    \| [named_checker_port_connection](#named_checker_port_connection) \{ `,` [named_checker_port_connection](#named_checker_port_connection) } -ordered\_checker\_port\_connection ::= \{ [attribute_instance](#attribute_instance) } \[ [property_actual_arg](#property_actual_arg) ] -named\_checker\_port\_connection ::= -    \{ [attribute_instance](#attribute_instance) } `.` [formal_port_identifier](#formal_port_identifier) \[ `(` \[ [property_actual_arg](#property_actual_arg) ] `)` ] -    \| \{ [attribute_instance](#attribute_instance) } `.` `*` +checker\_instantiation ::= +    [ps_checker_identifier](#ps_checker_identifier) [name_of_instance](#name_of_instance) `(` \[ [list_of_checker_port_connections](#list_of_checker_port_connections) ] `)` `;` +list\_of\_checker\_port\_connections34 ::= +    [ordered_checker_port_connection](#ordered_checker_port_connection) \{ `,` [ordered_checker_port_connection](#ordered_checker_port_connection) } +    \| [named_checker_port_connection](#named_checker_port_connection) \{ `,` [named_checker_port_connection](#named_checker_port_connection) } +ordered\_checker\_port\_connection ::= \{ [attribute_instance](#attribute_instance) } \[ [property_actual_arg](#property_actual_arg) ] +named\_checker\_port\_connection ::= +    \{ [attribute_instance](#attribute_instance) } `.` [formal_port_identifier](#formal_port_identifier) \[ `(` \[ [property_actual_arg](#property_actual_arg) ] `)` ] +    \| \{ [attribute_instance](#attribute_instance) } `.` `*` ### A.4.2 Generated instantiation -generate\_region ::= [generate](#generate) \{ [generate_item](#generate_item) } [endgenerate](#endgenerate) -loop\_generate\_construct ::= -    [for](#for) `(` [genvar_initialization](#genvar_initialization) `;` [genvar_expression](#genvar_expression) `;` [genvar_iteration](#genvar_iteration) `)` [generate_block](#generate_block) -genvar\_initialization ::= \[ [genvar](#genvar) ] [genvar_identifier](#genvar_identifier) `=` [constant_expression](#constant_expression) -genvar\_iteration ::= -    [genvar_identifier](#genvar_identifier) [assignment_operator](#assignment_operator) [genvar_expression](#genvar_expression) -    \| [inc_or_dec_operator](#inc_or_dec_operator) [genvar_identifier](#genvar_identifier) -    \| [genvar_identifier](#genvar_identifier) [inc_or_dec_operator](#inc_or_dec_operator) -conditional\_generate\_construct ::= -    [if_generate_construct](#if_generate_construct) -    \| [case_generate_construct](#case_generate_construct) -if\_generate\_construct ::= [if](#if) `(` [constant_expression](#constant_expression) `)` [generate_block](#generate_block) \[ [else](#else) [generate_block](#generate_block) ] -case\_generate\_construct ::= -    [case](#case) `(` [constant_expression](#constant_expression) `)` [case_generate_item](#case_generate_item) \{ [case_generate_item](#case_generate_item) } [endcase](#endcase) -case\_generate\_item ::= -    [constant_expression](#constant_expression) \{ `,` [constant_expression](#constant_expression) } `:` [generate_block](#generate_block) -    \| [default](#default) \[ `:` ] [generate_block](#generate_block) -generate\_block ::= -    [generate_item](#generate_item) -    \| \[ [generate_block_identifier](#generate_block_identifier) `:` ] [begin](#begin) \[ `:` [generate_block_identifier](#generate_block_identifier) ] -    \{ [generate_item](#generate_item) } -    [end](#end) \[ `:` [generate_block_identifier](#generate_block_identifier) ] -generate\_item35 ::= -    [module_or_generate_item](#module_or_generate_item) -    \| [interface_or_generate_item](#interface_or_generate_item) -    \| [checker_or_generate_item](#checker_or_generate_item) +generate\_region ::= [generate](#generate) \{ [generate_item](#generate_item) } [endgenerate](#endgenerate) +loop\_generate\_construct ::= +    [for](#for) `(` [genvar_initialization](#genvar_initialization) `;` [genvar_expression](#genvar_expression) `;` [genvar_iteration](#genvar_iteration) `)` [generate_block](#generate_block) +genvar\_initialization ::= \[ [genvar](#genvar) ] [genvar_identifier](#genvar_identifier) `=` [constant_expression](#constant_expression) +genvar\_iteration ::= +    [genvar_identifier](#genvar_identifier) [assignment_operator](#assignment_operator) [genvar_expression](#genvar_expression) +    \| [inc_or_dec_operator](#inc_or_dec_operator) [genvar_identifier](#genvar_identifier) +    \| [genvar_identifier](#genvar_identifier) [inc_or_dec_operator](#inc_or_dec_operator) +conditional\_generate\_construct ::= +    [if_generate_construct](#if_generate_construct) +    \| [case_generate_construct](#case_generate_construct) +if\_generate\_construct ::= [if](#if) `(` [constant_expression](#constant_expression) `)` [generate_block](#generate_block) \[ [else](#else) [generate_block](#generate_block) ] +case\_generate\_construct ::= +    [case](#case) `(` [constant_expression](#constant_expression) `)` [case_generate_item](#case_generate_item) \{ [case_generate_item](#case_generate_item) } [endcase](#endcase) +case\_generate\_item ::= +    [constant_expression](#constant_expression) \{ `,` [constant_expression](#constant_expression) } `:` [generate_block](#generate_block) +    \| [default](#default) \[ `:` ] [generate_block](#generate_block) +generate\_block ::= +    [generate_item](#generate_item) +    \| \[ [generate_block_identifier](#generate_block_identifier) `:` ] [begin](#begin) \[ `:` [generate_block_identifier](#generate_block_identifier) ] +    \{ [generate_item](#generate_item) } +    [end](#end) \[ `:` [generate_block_identifier](#generate_block_identifier) ] +generate\_item35 ::= +    [module_or_generate_item](#module_or_generate_item) +    \| [interface_or_generate_item](#interface_or_generate_item) +    \| [checker_or_generate_item](#checker_or_generate_item) ## A.5 UDP declaration and instantiation ### A.5.1 UDP declaration -udp\_nonansi\_declaration ::= \{ [attribute_instance](#attribute_instance) } [primitive](#primitive) [udp_identifier](#udp_identifier) `(` [udp_port_list](#udp_port_list) `)` `;` -udp\_ansi\_declaration ::= \{ [attribute_instance](#attribute_instance) } [primitive](#primitive) [udp_identifier](#udp_identifier) `(` [udp_declaration_port_list](#udp_declaration_port_list) `)` `;` -udp\_declaration ::= -    [udp_nonansi_declaration](#udp_nonansi_declaration) [udp_port_declaration](#udp_port_declaration) \{ [udp_port_declaration](#udp_port_declaration) } -    [udp_body](#udp_body) -    [endprimitive](#endprimitive) \[ `:` [udp_identifier](#udp_identifier) ] -    \| [udp_ansi_declaration](#udp_ansi_declaration) -    [udp_body](#udp_body) -    [endprimitive](#endprimitive) \[ `:` [udp_identifier](#udp_identifier) ] -    \| [extern](#extern) [udp_nonansi_declaration](#udp_nonansi_declaration) -    \| [extern](#extern) [udp_ansi_declaration](#udp_ansi_declaration) -    \| \{ [attribute_instance](#attribute_instance) } [primitive](#primitive) [udp_identifier](#udp_identifier) `(` `.` `*` `)` `;` -    \{ [udp_port_declaration](#udp_port_declaration) } -    [udp_body](#udp_body) -    [endprimitive](#endprimitive) \[ `:` [udp_identifier](#udp_identifier) ] +udp\_nonansi\_declaration ::= \{ [attribute_instance](#attribute_instance) } [primitive](#primitive) [udp_identifier](#udp_identifier) `(` [udp_port_list](#udp_port_list) `)` `;` +udp\_ansi\_declaration ::= \{ [attribute_instance](#attribute_instance) } [primitive](#primitive) [udp_identifier](#udp_identifier) `(` [udp_declaration_port_list](#udp_declaration_port_list) `)` `;` +udp\_declaration ::= +    [udp_nonansi_declaration](#udp_nonansi_declaration) [udp_port_declaration](#udp_port_declaration) \{ [udp_port_declaration](#udp_port_declaration) } +    [udp_body](#udp_body) +    [endprimitive](#endprimitive) \[ `:` [udp_identifier](#udp_identifier) ] +    \| [udp_ansi_declaration](#udp_ansi_declaration) +    [udp_body](#udp_body) +    [endprimitive](#endprimitive) \[ `:` [udp_identifier](#udp_identifier) ] +    \| [extern](#extern) [udp_nonansi_declaration](#udp_nonansi_declaration) +    \| [extern](#extern) [udp_ansi_declaration](#udp_ansi_declaration) +    \| \{ [attribute_instance](#attribute_instance) } [primitive](#primitive) [udp_identifier](#udp_identifier) `(` `.` `*` `)` `;` +    \{ [udp_port_declaration](#udp_port_declaration) } +    [udp_body](#udp_body) +    [endprimitive](#endprimitive) \[ `:` [udp_identifier](#udp_identifier) ] ### A.5.2 UDP ports -udp\_port\_list ::= [output_port_identifier](#output_port_identifier) `,` [input_port_identifier](#input_port_identifier) \{ `,` [input_port_identifier](#input_port_identifier) } -udp\_declaration\_port\_list ::= [udp_output_declaration](#udp_output_declaration) `,` [udp_input_declaration](#udp_input_declaration) \{ `,` [udp_input_declaration](#udp_input_declaration) } -udp\_port\_declaration ::= -    [udp_output_declaration](#udp_output_declaration) `;` -    \| [udp_input_declaration](#udp_input_declaration) `;` -    \| [udp_reg_declaration](#udp_reg_declaration) `;` -udp\_output\_declaration ::= -    \{ [attribute_instance](#attribute_instance) } [output](#output) [port_identifier](#port_identifier) -    \| \{ [attribute_instance](#attribute_instance) } [output](#output) [reg](#reg) [port_identifier](#port_identifier) \[ `=` [constant_expression](#constant_expression) ] -udp\_input\_declaration ::= \{ [attribute_instance](#attribute_instance) } [input](#input) [list_of_udp_port_identifiers](#list_of_udp_port_identifiers) -udp\_reg\_declaration ::= \{ [attribute_instance](#attribute_instance) } [reg](#reg) [variable_identifier](#variable_identifier) +udp\_port\_list ::= [output_port_identifier](#output_port_identifier) `,` [input_port_identifier](#input_port_identifier) \{ `,` [input_port_identifier](#input_port_identifier) } +udp\_declaration\_port\_list ::= [udp_output_declaration](#udp_output_declaration) `,` [udp_input_declaration](#udp_input_declaration) \{ `,` [udp_input_declaration](#udp_input_declaration) } +udp\_port\_declaration ::= +    [udp_output_declaration](#udp_output_declaration) `;` +    \| [udp_input_declaration](#udp_input_declaration) `;` +    \| [udp_reg_declaration](#udp_reg_declaration) `;` +udp\_output\_declaration ::= +    \{ [attribute_instance](#attribute_instance) } [output](#output) [port_identifier](#port_identifier) +    \| \{ [attribute_instance](#attribute_instance) } [output](#output) [reg](#reg) [port_identifier](#port_identifier) \[ `=` [constant_expression](#constant_expression) ] +udp\_input\_declaration ::= \{ [attribute_instance](#attribute_instance) } [input](#input) [list_of_udp_port_identifiers](#list_of_udp_port_identifiers) +udp\_reg\_declaration ::= \{ [attribute_instance](#attribute_instance) } [reg](#reg) [variable_identifier](#variable_identifier) ### A.5.3 UDP body -udp\_body ::= -    [combinational_body](#combinational_body) -    \| [sequential_body](#sequential_body) -combinational\_body ::= [table](#table) [combinational_entry](#combinational_entry) \{ [combinational_entry](#combinational_entry) } [endtable](#endtable) -combinational\_entry ::= [level_input_list](#level_input_list) `:` [output_symbol](#output_symbol) `;` -sequential\_body ::= \[ [udp_initial_statement](#udp_initial_statement) ] [table](#table) [sequential_entry](#sequential_entry) \{ [sequential_entry](#sequential_entry) } [endtable](#endtable) -udp\_initial\_statement ::= [initial](#initial) [output_port_identifier](#output_port_identifier) `=` [init_val](#init_val) `;` -init\_val ::= [1](#1)`'`[b0](#b0) \| [1](#1)`'`[b1](#b1) \| [1](#1)`'`[bx](#bx) \| [1](#1)`'`[bX](#bX) \| [1](#1)`'`[B0](#B0) \| [1](#1)`'`[B1](#B1) \| [1](#1)`'`[Bx](#Bx) \| [1](#1)`'`[BX](#BX) \| [1](#1) \| [0](#0) -sequential\_entry ::= [seq_input_list](#seq_input_list) `:` [current_state](#current_state) `:` [next_state](#next_state) `;` -seq\_input\_list ::= -    [level_input_list](#level_input_list) -    \| [edge_input_list](#edge_input_list) -level\_input\_list ::= [level_symbol](#level_symbol) \{ [level_symbol](#level_symbol) } -edge\_input\_list ::= \{ [level_symbol](#level_symbol) } [edge_indicator](#edge_indicator) \{ [level_symbol](#level_symbol) } -edge\_indicator ::= `(` [level_symbol](#level_symbol) [level_symbol](#level_symbol) `)` \| [edge_symbol](#edge_symbol) -current\_state ::= [level_symbol](#level_symbol) -next\_state ::= -    [output_symbol](#output_symbol) -    \| `-` -output\_symbol ::= [0](#0) \| [1](#1) \| [x](#x) \| [X](#X) -level\_symbol ::= [0](#0) \| [1](#1) \| [x](#x) \| [X](#X) \| `?` \| [b](#b) \| [B](#B) -edge\_symbol ::= [r](#r) \| [R](#R) \| [f](#f) \| [F](#F) \| [p](#p) \| [P](#P) \| [n](#n) \| [N](#N) \| `*` +udp\_body ::= +    [combinational_body](#combinational_body) +    \| [sequential_body](#sequential_body) +combinational\_body ::= [table](#table) [combinational_entry](#combinational_entry) \{ [combinational_entry](#combinational_entry) } [endtable](#endtable) +combinational\_entry ::= [level_input_list](#level_input_list) `:` [output_symbol](#output_symbol) `;` +sequential\_body ::= \[ [udp_initial_statement](#udp_initial_statement) ] [table](#table) [sequential_entry](#sequential_entry) \{ [sequential_entry](#sequential_entry) } [endtable](#endtable) +udp\_initial\_statement ::= [initial](#initial) [output_port_identifier](#output_port_identifier) `=` [init_val](#init_val) `;` +init\_val ::= [1](#1)`'`[b0](#b0) \| [1](#1)`'`[b1](#b1) \| [1](#1)`'`[bx](#bx) \| [1](#1)`'`[bX](#bX) \| [1](#1)`'`[B0](#B0) \| [1](#1)`'`[B1](#B1) \| [1](#1)`'`[Bx](#Bx) \| [1](#1)`'`[BX](#BX) \| [1](#1) \| [0](#0) +sequential\_entry ::= [seq_input_list](#seq_input_list) `:` [current_state](#current_state) `:` [next_state](#next_state) `;` +seq\_input\_list ::= +    [level_input_list](#level_input_list) +    \| [edge_input_list](#edge_input_list) +level\_input\_list ::= [level_symbol](#level_symbol) \{ [level_symbol](#level_symbol) } +edge\_input\_list ::= \{ [level_symbol](#level_symbol) } [edge_indicator](#edge_indicator) \{ [level_symbol](#level_symbol) } +edge\_indicator ::= `(` [level_symbol](#level_symbol) [level_symbol](#level_symbol) `)` \| [edge_symbol](#edge_symbol) +current\_state ::= [level_symbol](#level_symbol) +next\_state ::= +    [output_symbol](#output_symbol) +    \| `-` +output\_symbol ::= [0](#0) \| [1](#1) \| [x](#x) \| [X](#X) +level\_symbol ::= [0](#0) \| [1](#1) \| [x](#x) \| [X](#X) \| `?` \| [b](#b) \| [B](#B) +edge\_symbol ::= [r](#r) \| [R](#R) \| [f](#f) \| [F](#F) \| [p](#p) \| [P](#P) \| [n](#n) \| [N](#N) \| `*` ### A.5.4 UDP instantiation -udp\_instantiation ::= [udp_identifier](#udp_identifier) \[ [drive_strength](#drive_strength) ] \[ [delay2](#delay2) ] [udp_instance](#udp_instance) \{ `,` [udp_instance](#udp_instance) } `;` -udp\_instance ::= \[ [name_of_instance](#name_of_instance) ] `(` [output_terminal](#output_terminal) `,` [input_terminal](#input_terminal) \{ `,` [input_terminal](#input_terminal) } `)` +udp\_instantiation ::= [udp_identifier](#udp_identifier) \[ [drive_strength](#drive_strength) ] \[ [delay2](#delay2) ] [udp_instance](#udp_instance) \{ `,` [udp_instance](#udp_instance) } `;` +udp\_instance ::= \[ [name_of_instance](#name_of_instance) ] `(` [output_terminal](#output_terminal) `,` [input_terminal](#input_terminal) \{ `,` [input_terminal](#input_terminal) } `)` ## A.6 Behavioral statements ### A.6.1 Continuous assignment and net alias statements -continuous\_assign ::= -    [assign](#assign) \[ [drive_strength](#drive_strength) ] \[ [delay3](#delay3) ] [list_of_net_assignments](#list_of_net_assignments) `;` -    \| [assign](#assign) \[ [delay_control](#delay_control) ] [list_of_variable_assignments](#list_of_variable_assignments) `;` -list\_of\_net\_assignments ::= [net_assignment](#net_assignment) \{ `,` [net_assignment](#net_assignment) } -list\_of\_variable\_assignments ::= [variable_assignment](#variable_assignment) \{ `,` [variable_assignment](#variable_assignment) } -net\_alias ::= [alias](#alias) [net_lvalue](#net_lvalue) `=` [net_lvalue](#net_lvalue) \{ `=` [net_lvalue](#net_lvalue) } `;` -net\_assignment ::= [net_lvalue](#net_lvalue) `=` [expression](#expression) +continuous\_assign ::= +    [assign](#assign) \[ [drive_strength](#drive_strength) ] \[ [delay3](#delay3) ] [list_of_net_assignments](#list_of_net_assignments) `;` +    \| [assign](#assign) \[ [delay_control](#delay_control) ] [list_of_variable_assignments](#list_of_variable_assignments) `;` +list\_of\_net\_assignments ::= [net_assignment](#net_assignment) \{ `,` [net_assignment](#net_assignment) } +list\_of\_variable\_assignments ::= [variable_assignment](#variable_assignment) \{ `,` [variable_assignment](#variable_assignment) } +net\_alias ::= [alias](#alias) [net_lvalue](#net_lvalue) `=` [net_lvalue](#net_lvalue) \{ `=` [net_lvalue](#net_lvalue) } `;` +net\_assignment ::= [net_lvalue](#net_lvalue) `=` [expression](#expression) ### A.6.2 Procedural blocks and assignments -initial\_construct ::= [initial](#initial) [statement_or_null](#statement_or_null) -always\_construct ::= [always_keyword](#always_keyword) [statement](#statement) -always\_keyword ::= [always](#always) \| [always_comb](#always_comb) \| [always_latch](#always_latch) \| [always_ff](#always_ff) -final\_construct ::= [final](#final) [function_statement](#function_statement) -blocking\_assignment ::= -    [variable_lvalue](#variable_lvalue) `=` [delay_or_event_control](#delay_or_event_control) [expression](#expression) -    \| [nonrange_variable_lvalue](#nonrange_variable_lvalue) `=` [dynamic_array_new](#dynamic_array_new) -    \| \[ [implicit_class_handle](#implicit_class_handle) `.` \| [class_scope](#class_scope) \| [package_scope](#package_scope) ] [hierarchical_variable_identifier](#hierarchical_variable_identifier) -    [select](#select) `=` [class_new](#class_new) -    \| [operator_assignment](#operator_assignment) -    \| [inc_or_dec_expression](#inc_or_dec_expression) -operator\_assignment ::= [variable_lvalue](#variable_lvalue) [assignment_operator](#assignment_operator) [expression](#expression) -assignment\_operator ::= `=` \| `+=` \| `-=` \| `*=` \| `/=` \| `%=` \| `&=` \| `|=` \| `^=` \| `<<=` \| `>>=` \| `<<<=` \| `>>>=` -nonblocking\_assignment ::= [variable_lvalue](#variable_lvalue) `<=` \[ [delay_or_event_control](#delay_or_event_control) ] [expression](#expression) -procedural\_continuous\_assignment ::= -    [assign](#assign) [variable_assignment](#variable_assignment) -    \| [deassign](#deassign) [variable_lvalue](#variable_lvalue) -    \| [force](#force) [variable_assignment](#variable_assignment) -    \| [force](#force) [net_assignment](#net_assignment) -    \| [release](#release) [variable_lvalue](#variable_lvalue) -    \| [release](#release) [net_lvalue](#net_lvalue) -variable\_assignment ::= [variable_lvalue](#variable_lvalue) `=` [expression](#expression) +initial\_construct ::= [initial](#initial) [statement_or_null](#statement_or_null) +always\_construct ::= [always_keyword](#always_keyword) [statement](#statement) +always\_keyword ::= [always](#always) \| [always_comb](#always_comb) \| [always_latch](#always_latch) \| [always_ff](#always_ff) +final\_construct ::= [final](#final) [function_statement](#function_statement) +blocking\_assignment ::= +    [variable_lvalue](#variable_lvalue) `=` [delay_or_event_control](#delay_or_event_control) [expression](#expression) +    \| [nonrange_variable_lvalue](#nonrange_variable_lvalue) `=` [dynamic_array_new](#dynamic_array_new) +    \| \[ [implicit_class_handle](#implicit_class_handle) `.` \| [class_scope](#class_scope) \| [package_scope](#package_scope) ] [hierarchical_variable_identifier](#hierarchical_variable_identifier) +    [select](#select) `=` [class_new](#class_new) +    \| [operator_assignment](#operator_assignment) +    \| [inc_or_dec_expression](#inc_or_dec_expression) +operator\_assignment ::= [variable_lvalue](#variable_lvalue) [assignment_operator](#assignment_operator) [expression](#expression) +assignment\_operator ::= `=` \| `+=` \| `-=` \| `*=` \| `/=` \| `%=` \| `&=` \| `|=` \| `^=` \| `<<=` \| `>>=` \| `<<<=` \| `>>>=` +nonblocking\_assignment ::= [variable_lvalue](#variable_lvalue) `<=` \[ [delay_or_event_control](#delay_or_event_control) ] [expression](#expression) +procedural\_continuous\_assignment ::= +    [assign](#assign) [variable_assignment](#variable_assignment) +    \| [deassign](#deassign) [variable_lvalue](#variable_lvalue) +    \| [force](#force) [variable_assignment](#variable_assignment) +    \| [force](#force) [net_assignment](#net_assignment) +    \| [release](#release) [variable_lvalue](#variable_lvalue) +    \| [release](#release) [net_lvalue](#net_lvalue) +variable\_assignment ::= [variable_lvalue](#variable_lvalue) `=` [expression](#expression) ### A.6.3 Parallel and sequential blocks -action\_block ::= -    [statement_or_null](#statement_or_null) -    \| \[ [statement](#statement) ] [else](#else) [statement_or_null](#statement_or_null) -seq\_block ::= -    [begin](#begin) \[ `:` [block_identifier](#block_identifier) ] \{ [block_item_declaration](#block_item_declaration) } \{ [statement_or_null](#statement_or_null) } -    [end](#end) \[ `:` [block_identifier](#block_identifier) ] -par\_block ::= -    [fork](#fork) \[ `:` [block_identifier](#block_identifier) ] \{ [block_item_declaration](#block_item_declaration) } \{ [statement_or_null](#statement_or_null) } -    [join_keyword](#join_keyword) \[ `:` [block_identifier](#block_identifier) ] -join\_keyword ::= [join](#join) \| [join_any](#join_any) \| [join_none](#join_none) +action\_block ::= +    [statement_or_null](#statement_or_null) +    \| \[ [statement](#statement) ] [else](#else) [statement_or_null](#statement_or_null) +seq\_block ::= +    [begin](#begin) \[ `:` [block_identifier](#block_identifier) ] \{ [block_item_declaration](#block_item_declaration) } \{ [statement_or_null](#statement_or_null) } +    [end](#end) \[ `:` [block_identifier](#block_identifier) ] +par\_block ::= +    [fork](#fork) \[ `:` [block_identifier](#block_identifier) ] \{ [block_item_declaration](#block_item_declaration) } \{ [statement_or_null](#statement_or_null) } +    [join_keyword](#join_keyword) \[ `:` [block_identifier](#block_identifier) ] +join\_keyword ::= [join](#join) \| [join_any](#join_any) \| [join_none](#join_none) ### A.6.4 Statements -statement\_or\_null ::= -    [statement](#statement) -    \| \{ [attribute_instance](#attribute_instance) } `;` -statement ::= \[ [block_identifier](#block_identifier) `:` ] \{ [attribute_instance](#attribute_instance) } [statement_item](#statement_item) -statement\_item ::= -    [blocking_assignment](#blocking_assignment) `;` -    \| [nonblocking_assignment](#nonblocking_assignment) `;` -    \| [procedural_continuous_assignment](#procedural_continuous_assignment) `;` -    \| [case_statement](#case_statement) -    \| [conditional_statement](#conditional_statement) -    \| [subroutine_call_statement](#subroutine_call_statement) -    \| [disable_statement](#disable_statement) -    \| [event_trigger](#event_trigger) -    \| [loop_statement](#loop_statement) -    \| [jump_statement](#jump_statement) -    \| [par_block](#par_block) -    \| [procedural_timing_control_statement](#procedural_timing_control_statement) -    \| [seq_block](#seq_block) -    \| [wait_statement](#wait_statement) -    \| [procedural_assertion_statement](#procedural_assertion_statement) -    \| [clocking_drive](#clocking_drive) `;` -    \| [randsequence_statement](#randsequence_statement) -    \| [randcase_statement](#randcase_statement) -    \| [expect_property_statement](#expect_property_statement) -function\_statement ::= [statement](#statement) -function\_statement\_or\_null ::= -    [function_statement](#function_statement) -    \| \{ [attribute_instance](#attribute_instance) } `;` +statement\_or\_null ::= +    [statement](#statement) +    \| \{ [attribute_instance](#attribute_instance) } `;` +statement ::= \[ [block_identifier](#block_identifier) `:` ] \{ [attribute_instance](#attribute_instance) } [statement_item](#statement_item) +statement\_item ::= +    [blocking_assignment](#blocking_assignment) `;` +    \| [nonblocking_assignment](#nonblocking_assignment) `;` +    \| [procedural_continuous_assignment](#procedural_continuous_assignment) `;` +    \| [case_statement](#case_statement) +    \| [conditional_statement](#conditional_statement) +    \| [subroutine_call_statement](#subroutine_call_statement) +    \| [disable_statement](#disable_statement) +    \| [event_trigger](#event_trigger) +    \| [loop_statement](#loop_statement) +    \| [jump_statement](#jump_statement) +    \| [par_block](#par_block) +    \| [procedural_timing_control_statement](#procedural_timing_control_statement) +    \| [seq_block](#seq_block) +    \| [wait_statement](#wait_statement) +    \| [procedural_assertion_statement](#procedural_assertion_statement) +    \| [clocking_drive](#clocking_drive) `;` +    \| [randsequence_statement](#randsequence_statement) +    \| [randcase_statement](#randcase_statement) +    \| [expect_property_statement](#expect_property_statement) +function\_statement ::= [statement](#statement) +function\_statement\_or\_null ::= +    [function_statement](#function_statement) +    \| \{ [attribute_instance](#attribute_instance) } `;` ### A.6.5 Timing control statements -procedural\_timing\_control\_statement ::= [procedural_timing_control](#procedural_timing_control) [statement_or_null](#statement_or_null) -delay\_or\_event\_control ::= -    [delay_control](#delay_control) -    \| [event_control](#event_control) -    \| [repeat](#repeat) `(` [expression](#expression) `)` [event_control](#event_control) -delay\_control ::= -    `#` [delay_value](#delay_value) -    \| `#` `(` [mintypmax_expression](#mintypmax_expression) `)` -event\_control ::= -    [clocking_event](#clocking_event) -    \| `@` `*` -    \| `@` `(` `*` `)` -clocking\_event ::= -    `@` [ps_identifier](#ps_identifier) -    \| `@` [hierarchical_identifier](#hierarchical_identifier) -    \| `@` `(` [event_expression](#event_expression) `)` -event\_expression36 ::= -    \[ [edge_identifier](#edge_identifier) ] [expression](#expression) \[ [iff](#iff) [expression](#expression) ] -    \| [sequence_instance](#sequence_instance) \[ [iff](#iff) [expression](#expression) ] -    \| [event_expression](#event_expression) [or](#or) [event_expression](#event_expression) -    \| [event_expression](#event_expression) `,` [event_expression](#event_expression) -    \| `(` [event_expression](#event_expression) `)` -procedural\_timing\_control ::= -    [delay_control](#delay_control) -    \| [event_control](#event_control) -    \| [cycle_delay](#cycle_delay) -jump\_statement ::= -    [return](#return) \[ [expression](#expression) ] `;` -    \| [break](#break) `;` -    \| [continue](#continue) `;` -wait\_statement ::= -    [wait](#wait) `(` [expression](#expression) `)` [statement_or_null](#statement_or_null) -    \| [wait](#wait) [fork](#fork) `;` -    \| [wait_order](#wait_order) `(` [hierarchical_identifier](#hierarchical_identifier) \{ `,` [hierarchical_identifier](#hierarchical_identifier) } `)` [action_block](#action_block) -event\_trigger ::= -    `->` [hierarchical_event_identifier](#hierarchical_event_identifier) [nonrange_select](#nonrange_select) `;` -    \| `->>` \[ [delay_or_event_control](#delay_or_event_control) ] [hierarchical_event_identifier](#hierarchical_event_identifier) [nonrange_select](#nonrange_select) `;` -disable\_statement ::= -    [disable](#disable) [hierarchical_task_identifier](#hierarchical_task_identifier) `;` -    \| [disable](#disable) [hierarchical_block_identifier](#hierarchical_block_identifier) `;` -    \| [disable](#disable) [fork](#fork) `;` +procedural\_timing\_control\_statement ::= [procedural_timing_control](#procedural_timing_control) [statement_or_null](#statement_or_null) +delay\_or\_event\_control ::= +    [delay_control](#delay_control) +    \| [event_control](#event_control) +    \| [repeat](#repeat) `(` [expression](#expression) `)` [event_control](#event_control) +delay\_control ::= +    `#` [delay_value](#delay_value) +    \| `#` `(` [mintypmax_expression](#mintypmax_expression) `)` +event\_control ::= +    [clocking_event](#clocking_event) +    \| `@` `*` +    \| `@` `(` `*` `)` +clocking\_event ::= +    `@` [ps_identifier](#ps_identifier) +    \| `@` [hierarchical_identifier](#hierarchical_identifier) +    \| `@` `(` [event_expression](#event_expression) `)` +event\_expression36 ::= +    \[ [edge_identifier](#edge_identifier) ] [expression](#expression) \[ [iff](#iff) [expression](#expression) ] +    \| [sequence_instance](#sequence_instance) \[ [iff](#iff) [expression](#expression) ] +    \| [event_expression](#event_expression) [or](#or) [event_expression](#event_expression) +    \| [event_expression](#event_expression) `,` [event_expression](#event_expression) +    \| `(` [event_expression](#event_expression) `)` +procedural\_timing\_control ::= +    [delay_control](#delay_control) +    \| [event_control](#event_control) +    \| [cycle_delay](#cycle_delay) +jump\_statement ::= +    [return](#return) \[ [expression](#expression) ] `;` +    \| [break](#break) `;` +    \| [continue](#continue) `;` +wait\_statement ::= +    [wait](#wait) `(` [expression](#expression) `)` [statement_or_null](#statement_or_null) +    \| [wait](#wait) [fork](#fork) `;` +    \| [wait_order](#wait_order) `(` [hierarchical_identifier](#hierarchical_identifier) \{ `,` [hierarchical_identifier](#hierarchical_identifier) } `)` [action_block](#action_block) +event\_trigger ::= +    `->` [hierarchical_event_identifier](#hierarchical_event_identifier) [nonrange_select](#nonrange_select) `;` +    \| `->>` \[ [delay_or_event_control](#delay_or_event_control) ] [hierarchical_event_identifier](#hierarchical_event_identifier) [nonrange_select](#nonrange_select) `;` +disable\_statement ::= +    [disable](#disable) [hierarchical_task_identifier](#hierarchical_task_identifier) `;` +    \| [disable](#disable) [hierarchical_block_identifier](#hierarchical_block_identifier) `;` +    \| [disable](#disable) [fork](#fork) `;` ### A.6.6 Conditional statements -conditional\_statement ::= -    \[ [unique_priority](#unique_priority) ] [if](#if) `(` [cond_predicate](#cond_predicate) `)` [statement_or_null](#statement_or_null) -    \{ [else](#else) [if](#if) `(` [cond_predicate](#cond_predicate) `)` [statement_or_null](#statement_or_null) } -    \[ [else](#else) [statement_or_null](#statement_or_null) ] -unique\_priority ::= [unique](#unique) \| [unique0](#unique0) \| [priority](#priority) -cond\_predicate ::= [expression_or_cond_pattern](#expression_or_cond_pattern) \{ `&&&` [expression_or_cond_pattern](#expression_or_cond_pattern) } -expression\_or\_cond\_pattern ::= -    [expression](#expression) -    \| [cond_pattern](#cond_pattern) -cond\_pattern ::= [expression](#expression) [matches](#matches) [pattern](#pattern) +conditional\_statement ::= +    \[ [unique_priority](#unique_priority) ] [if](#if) `(` [cond_predicate](#cond_predicate) `)` [statement_or_null](#statement_or_null) +    \{ [else](#else) [if](#if) `(` [cond_predicate](#cond_predicate) `)` [statement_or_null](#statement_or_null) } +    \[ [else](#else) [statement_or_null](#statement_or_null) ] +unique\_priority ::= [unique](#unique) \| [unique0](#unique0) \| [priority](#priority) +cond\_predicate ::= [expression_or_cond_pattern](#expression_or_cond_pattern) \{ `&&&` [expression_or_cond_pattern](#expression_or_cond_pattern) } +expression\_or\_cond\_pattern ::= +    [expression](#expression) +    \| [cond_pattern](#cond_pattern) +cond\_pattern ::= [expression](#expression) [matches](#matches) [pattern](#pattern) ### A.6.7 Case statements -case\_statement ::= -    \[ [unique_priority](#unique_priority) ] [case_keyword](#case_keyword) `(` [case_expression](#case_expression) `)` -    [case_item](#case_item) \{ [case_item](#case_item) } [endcase](#endcase) -    \| \[ [unique_priority](#unique_priority) ] [case_keyword](#case_keyword) `(` [case_expression](#case_expression) `)` [matches](#matches) -    [case_pattern_item](#case_pattern_item) \{ [case_pattern_item](#case_pattern_item) } [endcase](#endcase) -    \| \[ [unique_priority](#unique_priority) ] [case](#case) `(` [case_expression](#case_expression) `)` [inside](#inside) -    [case_inside_item](#case_inside_item) \{ [case_inside_item](#case_inside_item) } [endcase](#endcase) -case\_keyword ::= [case](#case) \| [casez](#casez) \| [casex](#casex) -case\_expression ::= [expression](#expression) -case\_item ::= -    [case_item_expression](#case_item_expression) \{ `,` [case_item_expression](#case_item_expression) } `:` [statement_or_null](#statement_or_null) -    \| [default](#default) \[ `:` ] [statement_or_null](#statement_or_null) -case\_pattern\_item ::= -    [pattern](#pattern) \[ `&&&` [expression](#expression) ] `:` [statement_or_null](#statement_or_null) -    \| [default](#default) \[ `:` ] [statement_or_null](#statement_or_null) -case\_inside\_item ::= -    [range_list](#range_list) `:` [statement_or_null](#statement_or_null) -    \| [default](#default) \[ `:` ] [statement_or_null](#statement_or_null) -case\_item\_expression ::= [expression](#expression) -randcase\_statement ::= [randcase](#randcase) [randcase_item](#randcase_item) \{ [randcase_item](#randcase_item) } [endcase](#endcase) -randcase\_item ::= [expression](#expression) `:` [statement_or_null](#statement_or_null) -range\_list ::= [value_range](#value_range) \{ `,` [value_range](#value_range) } -value\_range ::= -    [expression](#expression) -    \| \[ [expression](#expression) `:` [expression](#expression) ] -    \| \[ `$` `:` [expression](#expression) ] -    \| \[ [expression](#expression) `:` `$` ] -    \| \[ [expression](#expression) `+/-` [expression](#expression) ] -    \| \[ [expression](#expression) `+%-` [expression](#expression) ] +case\_statement ::= +    \[ [unique_priority](#unique_priority) ] [case_keyword](#case_keyword) `(` [case_expression](#case_expression) `)` +    [case_item](#case_item) \{ [case_item](#case_item) } [endcase](#endcase) +    \| \[ [unique_priority](#unique_priority) ] [case_keyword](#case_keyword) `(` [case_expression](#case_expression) `)` [matches](#matches) +    [case_pattern_item](#case_pattern_item) \{ [case_pattern_item](#case_pattern_item) } [endcase](#endcase) +    \| \[ [unique_priority](#unique_priority) ] [case](#case) `(` [case_expression](#case_expression) `)` [inside](#inside) +    [case_inside_item](#case_inside_item) \{ [case_inside_item](#case_inside_item) } [endcase](#endcase) +case\_keyword ::= [case](#case) \| [casez](#casez) \| [casex](#casex) +case\_expression ::= [expression](#expression) +case\_item ::= +    [case_item_expression](#case_item_expression) \{ `,` [case_item_expression](#case_item_expression) } `:` [statement_or_null](#statement_or_null) +    \| [default](#default) \[ `:` ] [statement_or_null](#statement_or_null) +case\_pattern\_item ::= +    [pattern](#pattern) \[ `&&&` [expression](#expression) ] `:` [statement_or_null](#statement_or_null) +    \| [default](#default) \[ `:` ] [statement_or_null](#statement_or_null) +case\_inside\_item ::= +    [range_list](#range_list) `:` [statement_or_null](#statement_or_null) +    \| [default](#default) \[ `:` ] [statement_or_null](#statement_or_null) +case\_item\_expression ::= [expression](#expression) +randcase\_statement ::= [randcase](#randcase) [randcase_item](#randcase_item) \{ [randcase_item](#randcase_item) } [endcase](#endcase) +randcase\_item ::= [expression](#expression) `:` [statement_or_null](#statement_or_null) +range\_list ::= [value_range](#value_range) \{ `,` [value_range](#value_range) } +value\_range ::= +    [expression](#expression) +    \| \[ [expression](#expression) `:` [expression](#expression) ] +    \| \[ `$` `:` [expression](#expression) ] +    \| \[ [expression](#expression) `:` `$` ] +    \| \[ [expression](#expression) `+/-` [expression](#expression) ] +    \| \[ [expression](#expression) `+%-` [expression](#expression) ] #### A.6.7.1 Patterns -pattern ::= -    `(` [pattern](#pattern) `)` -    \| `.` [variable_identifier](#variable_identifier) -    \| `.` `*` -    \| [constant_expression](#constant_expression) -    \| [tagged](#tagged) [member_identifier](#member_identifier) \[ [pattern](#pattern) ] -    \| `'` \{ [pattern](#pattern) \{ `,` [pattern](#pattern) } } -    \| `'` \{ [member_identifier](#member_identifier) `:` [pattern](#pattern) \{ `,` [member_identifier](#member_identifier) `:` [pattern](#pattern) } } -assignment\_pattern ::= -    `'` \{ [expression](#expression) \{ `,` [expression](#expression) } } -    \| `'` \{ [structure_pattern_key](#structure_pattern_key) `:` [expression](#expression) \{ `,` [structure_pattern_key](#structure_pattern_key) `:` [expression](#expression) } } -    \| `'` \{ [array_pattern_key](#array_pattern_key) `:` [expression](#expression) \{ `,` [array_pattern_key](#array_pattern_key) `:` [expression](#expression) } } -    \| `'` \{ [constant_expression](#constant_expression) \{ [expression](#expression) \{ `,` [expression](#expression) } } } -structure\_pattern\_key ::= [member_identifier](#member_identifier) \| [assignment_pattern_key](#assignment_pattern_key) -array\_pattern\_key ::= [constant_expression](#constant_expression) \| [assignment_pattern_key](#assignment_pattern_key) -assignment\_pattern\_key ::= [simple_type](#simple_type) \| [default](#default) -assignment\_pattern\_expression ::= \[ [assignment_pattern_expression_type](#assignment_pattern_expression_type) ] [assignment_pattern](#assignment_pattern) -assignment\_pattern\_expression\_type ::= -    [ps_type_identifier](#ps_type_identifier) -    \| [ps_parameter_identifier](#ps_parameter_identifier) -    \| [integer_atom_type](#integer_atom_type) -    \| [type_reference](#type_reference) -constant\_assignment\_pattern\_expression ::= [assignment_pattern_expression37](#assignment_pattern_expression37) -assignment\_pattern\_net\_lvalue ::= `'` \{ [net_lvalue](#net_lvalue) \{ `,` [net_lvalue](#net_lvalue) } } -assignment\_pattern\_variable\_lvalue ::= `'` \{ [variable_lvalue](#variable_lvalue) \{ `,` [variable_lvalue](#variable_lvalue) } } +pattern ::= +    `(` [pattern](#pattern) `)` +    \| `.` [variable_identifier](#variable_identifier) +    \| `.` `*` +    \| [constant_expression](#constant_expression) +    \| [tagged](#tagged) [member_identifier](#member_identifier) \[ [pattern](#pattern) ] +    \| `'` \{ [pattern](#pattern) \{ `,` [pattern](#pattern) } } +    \| `'` \{ [member_identifier](#member_identifier) `:` [pattern](#pattern) \{ `,` [member_identifier](#member_identifier) `:` [pattern](#pattern) } } +assignment\_pattern ::= +    `'` \{ [expression](#expression) \{ `,` [expression](#expression) } } +    \| `'` \{ [structure_pattern_key](#structure_pattern_key) `:` [expression](#expression) \{ `,` [structure_pattern_key](#structure_pattern_key) `:` [expression](#expression) } } +    \| `'` \{ [array_pattern_key](#array_pattern_key) `:` [expression](#expression) \{ `,` [array_pattern_key](#array_pattern_key) `:` [expression](#expression) } } +    \| `'` \{ [constant_expression](#constant_expression) \{ [expression](#expression) \{ `,` [expression](#expression) } } } +structure\_pattern\_key ::= [member_identifier](#member_identifier) \| [assignment_pattern_key](#assignment_pattern_key) +array\_pattern\_key ::= [constant_expression](#constant_expression) \| [assignment_pattern_key](#assignment_pattern_key) +assignment\_pattern\_key ::= [simple_type](#simple_type) \| [default](#default) +assignment\_pattern\_expression ::= \[ [assignment_pattern_expression_type](#assignment_pattern_expression_type) ] [assignment_pattern](#assignment_pattern) +assignment\_pattern\_expression\_type ::= +    [ps_type_identifier](#ps_type_identifier) +    \| [ps_parameter_identifier](#ps_parameter_identifier) +    \| [integer_atom_type](#integer_atom_type) +    \| [type_reference](#type_reference) +constant\_assignment\_pattern\_expression ::= [assignment_pattern_expression37](#assignment_pattern_expression37) +assignment\_pattern\_net\_lvalue ::= `'` \{ [net_lvalue](#net_lvalue) \{ `,` [net_lvalue](#net_lvalue) } } +assignment\_pattern\_variable\_lvalue ::= `'` \{ [variable_lvalue](#variable_lvalue) \{ `,` [variable_lvalue](#variable_lvalue) } } ### A.6.8 Looping statements -loop\_statement ::= -    [forever](#forever) [statement_or_null](#statement_or_null) -    \| [repeat](#repeat) `(` [expression](#expression) `)` [statement_or_null](#statement_or_null) -    \| [while](#while) `(` [expression](#expression) `)` [statement_or_null](#statement_or_null) -    \| [for](#for) `(` \[ [for_initialization](#for_initialization) ] `;` \[ [expression](#expression) ] `;` \[ [for_step](#for_step) ] `)` [statement_or_null](#statement_or_null) -    \| [do](#do) [statement_or_null](#statement_or_null) [while](#while) `(` [expression](#expression) `)` `;` -    \| [foreach](#foreach) `(` [ps_or_hierarchical_array_identifier](#ps_or_hierarchical_array_identifier) \[ [loop_variables](#loop_variables) ] `)` [statement](#statement) -for\_initialization ::= -    [list_of_variable_assignments](#list_of_variable_assignments) -    \| [for_variable_declaration](#for_variable_declaration) \{ `,` [for_variable_declaration](#for_variable_declaration) } -for\_variable\_declaration ::= -    \[ [var](#var) ] [data_type](#data_type) [variable_identifier](#variable_identifier) `=` [expression](#expression) \{ `,` [variable_identifier](#variable_identifier) `=` [expression](#expression) }[18](#18) -for\_step ::= [for_step_assignment](#for_step_assignment) \{ `,` [for_step_assignment](#for_step_assignment) } -for\_step\_assignment ::= -    [operator_assignment](#operator_assignment) -    \| [inc_or_dec_expression](#inc_or_dec_expression) -    \| [function_subroutine_call](#function_subroutine_call) -loop\_variables ::= \[ [index_variable_identifier](#index_variable_identifier) ] \{ `,` \[ [index_variable_identifier](#index_variable_identifier) ] } +loop\_statement ::= +    [forever](#forever) [statement_or_null](#statement_or_null) +    \| [repeat](#repeat) `(` [expression](#expression) `)` [statement_or_null](#statement_or_null) +    \| [while](#while) `(` [expression](#expression) `)` [statement_or_null](#statement_or_null) +    \| [for](#for) `(` \[ [for_initialization](#for_initialization) ] `;` \[ [expression](#expression) ] `;` \[ [for_step](#for_step) ] `)` [statement_or_null](#statement_or_null) +    \| [do](#do) [statement_or_null](#statement_or_null) [while](#while) `(` [expression](#expression) `)` `;` +    \| [foreach](#foreach) `(` [ps_or_hierarchical_array_identifier](#ps_or_hierarchical_array_identifier) \[ [loop_variables](#loop_variables) ] `)` [statement](#statement) +for\_initialization ::= +    [list_of_variable_assignments](#list_of_variable_assignments) +    \| [for_variable_declaration](#for_variable_declaration) \{ `,` [for_variable_declaration](#for_variable_declaration) } +for\_variable\_declaration ::= +    \[ [var](#var) ] [data_type](#data_type) [variable_identifier](#variable_identifier) `=` [expression](#expression) \{ `,` [variable_identifier](#variable_identifier) `=` [expression](#expression) }[18](#18) +for\_step ::= [for_step_assignment](#for_step_assignment) \{ `,` [for_step_assignment](#for_step_assignment) } +for\_step\_assignment ::= +    [operator_assignment](#operator_assignment) +    \| [inc_or_dec_expression](#inc_or_dec_expression) +    \| [function_subroutine_call](#function_subroutine_call) +loop\_variables ::= \[ [index_variable_identifier](#index_variable_identifier) ] \{ `,` \[ [index_variable_identifier](#index_variable_identifier) ] } ### A.6.9 Subroutine call statements -subroutine\_call\_statement ::= -    [subroutine_call](#subroutine_call) `;` -    \| [void](#void) `'` `(` [function_subroutine_call](#function_subroutine_call) `)` `;` +subroutine\_call\_statement ::= +    [subroutine_call](#subroutine_call) `;` +    \| [void](#void) `'` `(` [function_subroutine_call](#function_subroutine_call) `)` `;` ### A.6.10 Assertion statements -assertion\_item ::= -    [concurrent_assertion_item](#concurrent_assertion_item) -    \| [deferred_immediate_assertion_item](#deferred_immediate_assertion_item) -deferred\_immediate\_assertion\_item ::= \[ [block_identifier](#block_identifier) `:` ] [deferred_immediate_assertion_statement](#deferred_immediate_assertion_statement) -procedural\_assertion\_statement ::= -    [concurrent_assertion_statement](#concurrent_assertion_statement) -    \| [immediate_assertion_statement](#immediate_assertion_statement) -    \| [checker_instantiation](#checker_instantiation) -immediate\_assertion\_statement ::= -    [simple_immediate_assertion_statement](#simple_immediate_assertion_statement) -    \| [deferred_immediate_assertion_statement](#deferred_immediate_assertion_statement) -simple\_immediate\_assertion\_statement ::= -    [simple_immediate_assert_statement](#simple_immediate_assert_statement) -    \| [simple_immediate_assume_statement](#simple_immediate_assume_statement) -    \| [simple_immediate_cover_statement](#simple_immediate_cover_statement) -deferred\_immediate\_assertion\_statement ::= -    [deferred_immediate_assert_statement](#deferred_immediate_assert_statement) -    \| [deferred_immediate_assume_statement](#deferred_immediate_assume_statement) -    \| [deferred_immediate_cover_statement](#deferred_immediate_cover_statement) -simple\_immediate\_assert\_statement ::= -    [assert](#assert) `(` [expression](#expression) `)` [action_block](#action_block) -simple\_immediate\_assume\_statement ::= -    [assume](#assume) `(` [expression](#expression) `)` [action_block](#action_block) -simple\_immediate\_cover\_statement ::= -    [cover](#cover) `(` [expression](#expression) `)` [statement_or_null](#statement_or_null) -deferred\_immediate\_assert\_statement ::= -    [assert](#assert) `#`[0](#0) `(` [expression](#expression) `)` [action_block](#action_block) -    \| [assert](#assert) [final](#final) `(` [expression](#expression) `)` [action_block](#action_block) -deferred\_immediate\_assume\_statement ::= -    [assume](#assume) `#`[0](#0) `(` [expression](#expression) `)` [action_block](#action_block) -    \| [assume](#assume) [final](#final) `(` [expression](#expression) `)` [action_block](#action_block) -deferred\_immediate\_cover\_statement ::= -    [cover](#cover) `#`[0](#0) `(` [expression](#expression) `)` [statement_or_null](#statement_or_null) -    \| [cover](#cover) [final](#final) `(` [expression](#expression) `)` [statement_or_null](#statement_or_null) +assertion\_item ::= +    [concurrent_assertion_item](#concurrent_assertion_item) +    \| [deferred_immediate_assertion_item](#deferred_immediate_assertion_item) +deferred\_immediate\_assertion\_item ::= \[ [block_identifier](#block_identifier) `:` ] [deferred_immediate_assertion_statement](#deferred_immediate_assertion_statement) +procedural\_assertion\_statement ::= +    [concurrent_assertion_statement](#concurrent_assertion_statement) +    \| [immediate_assertion_statement](#immediate_assertion_statement) +    \| [checker_instantiation](#checker_instantiation) +immediate\_assertion\_statement ::= +    [simple_immediate_assertion_statement](#simple_immediate_assertion_statement) +    \| [deferred_immediate_assertion_statement](#deferred_immediate_assertion_statement) +simple\_immediate\_assertion\_statement ::= +    [simple_immediate_assert_statement](#simple_immediate_assert_statement) +    \| [simple_immediate_assume_statement](#simple_immediate_assume_statement) +    \| [simple_immediate_cover_statement](#simple_immediate_cover_statement) +deferred\_immediate\_assertion\_statement ::= +    [deferred_immediate_assert_statement](#deferred_immediate_assert_statement) +    \| [deferred_immediate_assume_statement](#deferred_immediate_assume_statement) +    \| [deferred_immediate_cover_statement](#deferred_immediate_cover_statement) +simple\_immediate\_assert\_statement ::= +    [assert](#assert) `(` [expression](#expression) `)` [action_block](#action_block) +simple\_immediate\_assume\_statement ::= +    [assume](#assume) `(` [expression](#expression) `)` [action_block](#action_block) +simple\_immediate\_cover\_statement ::= +    [cover](#cover) `(` [expression](#expression) `)` [statement_or_null](#statement_or_null) +deferred\_immediate\_assert\_statement ::= +    [assert](#assert) `#`[0](#0) `(` [expression](#expression) `)` [action_block](#action_block) +    \| [assert](#assert) [final](#final) `(` [expression](#expression) `)` [action_block](#action_block) +deferred\_immediate\_assume\_statement ::= +    [assume](#assume) `#`[0](#0) `(` [expression](#expression) `)` [action_block](#action_block) +    \| [assume](#assume) [final](#final) `(` [expression](#expression) `)` [action_block](#action_block) +deferred\_immediate\_cover\_statement ::= +    [cover](#cover) `#`[0](#0) `(` [expression](#expression) `)` [statement_or_null](#statement_or_null) +    \| [cover](#cover) [final](#final) `(` [expression](#expression) `)` [statement_or_null](#statement_or_null) ### A.6.11 Clocking block -clocking\_declaration ::= -    \[ [default](#default) ] [clocking](#clocking) \[ [clocking_identifier](#clocking_identifier) ] [clocking_event](#clocking_event) `;` -    \{ [clocking_item](#clocking_item) } -    [endclocking](#endclocking) \[ `:` [clocking_identifier](#clocking_identifier) ] -    \| [global](#global) [clocking](#clocking) \[ [clocking_identifier](#clocking_identifier) ] [clocking_event](#clocking_event) `;` -    [endclocking](#endclocking) \[ `:` [clocking_identifier](#clocking_identifier) ] -clocking\_item ::= -    [default](#default) [default_skew](#default_skew) `;` -    \| [clocking_direction](#clocking_direction) [list_of_clocking_decl_assign](#list_of_clocking_decl_assign) `;` -    \| \{ [attribute_instance](#attribute_instance) } [assertion_item_declaration](#assertion_item_declaration) -default\_skew ::= -    [input](#input) [clocking_skew](#clocking_skew) -    \| [output](#output) [clocking_skew](#clocking_skew) -    \| [input](#input) [clocking_skew](#clocking_skew) [output](#output) [clocking_skew](#clocking_skew) -clocking\_direction ::= -    [input](#input) \[ [clocking_skew](#clocking_skew) ] -    \| [output](#output) \[ [clocking_skew](#clocking_skew) ] -    \| [input](#input) \[ [clocking_skew](#clocking_skew) ] [output](#output) \[ [clocking_skew](#clocking_skew) ] -    \| [inout](#inout) -list\_of\_clocking\_decl\_assign ::= [clocking_decl_assign](#clocking_decl_assign) \{ `,` [clocking_decl_assign](#clocking_decl_assign) } -clocking\_decl\_assign ::= [signal_identifier](#signal_identifier) \[ `=` [expression](#expression) ] -clocking\_skew ::= -    [edge_identifier](#edge_identifier) \[ [delay_control](#delay_control) ] -    \| [delay_control](#delay_control) -clocking\_drive ::= [clockvar_expression](#clockvar_expression) `<=` \[ [cycle_delay](#cycle_delay) ] [expression](#expression) -cycle\_delay ::= -    `##` [integral_number](#integral_number) -    \| `##` [identifier](#identifier) -    \| `##` `(` [expression](#expression) `)` -clockvar ::= [hierarchical_identifier](#hierarchical_identifier) -clockvar\_expression ::= [clockvar](#clockvar) [select](#select) +clocking\_declaration ::= +    \[ [default](#default) ] [clocking](#clocking) \[ [clocking_identifier](#clocking_identifier) ] [clocking_event](#clocking_event) `;` +    \{ [clocking_item](#clocking_item) } +    [endclocking](#endclocking) \[ `:` [clocking_identifier](#clocking_identifier) ] +    \| [global](#global) [clocking](#clocking) \[ [clocking_identifier](#clocking_identifier) ] [clocking_event](#clocking_event) `;` +    [endclocking](#endclocking) \[ `:` [clocking_identifier](#clocking_identifier) ] +clocking\_item ::= +    [default](#default) [default_skew](#default_skew) `;` +    \| [clocking_direction](#clocking_direction) [list_of_clocking_decl_assign](#list_of_clocking_decl_assign) `;` +    \| \{ [attribute_instance](#attribute_instance) } [assertion_item_declaration](#assertion_item_declaration) +default\_skew ::= +    [input](#input) [clocking_skew](#clocking_skew) +    \| [output](#output) [clocking_skew](#clocking_skew) +    \| [input](#input) [clocking_skew](#clocking_skew) [output](#output) [clocking_skew](#clocking_skew) +clocking\_direction ::= +    [input](#input) \[ [clocking_skew](#clocking_skew) ] +    \| [output](#output) \[ [clocking_skew](#clocking_skew) ] +    \| [input](#input) \[ [clocking_skew](#clocking_skew) ] [output](#output) \[ [clocking_skew](#clocking_skew) ] +    \| [inout](#inout) +list\_of\_clocking\_decl\_assign ::= [clocking_decl_assign](#clocking_decl_assign) \{ `,` [clocking_decl_assign](#clocking_decl_assign) } +clocking\_decl\_assign ::= [signal_identifier](#signal_identifier) \[ `=` [expression](#expression) ] +clocking\_skew ::= +    [edge_identifier](#edge_identifier) \[ [delay_control](#delay_control) ] +    \| [delay_control](#delay_control) +clocking\_drive ::= [clockvar_expression](#clockvar_expression) `<=` \[ [cycle_delay](#cycle_delay) ] [expression](#expression) +cycle\_delay ::= +    `##` [integral_number](#integral_number) +    \| `##` [identifier](#identifier) +    \| `##` `(` [expression](#expression) `)` +clockvar ::= [hierarchical_identifier](#hierarchical_identifier) +clockvar\_expression ::= [clockvar](#clockvar) [select](#select) ### A.6.12 Randsequence -randsequence\_statement ::= -    [randsequence](#randsequence) `(` \[ [rs_production_identifier](#rs_production_identifier) ] `)` -    [rs_production](#rs_production) \{ [rs_production](#rs_production) } -    [endsequence](#endsequence) -rs\_production ::= \[ [data_type_or_void](#data_type_or_void) ] [rs_production_identifier](#rs_production_identifier) \[ `(` [tf_port_list](#tf_port_list) `)` ] `:` [rs_rule](#rs_rule) \{ \| [rs_rule](#rs_rule) } `;` -rs\_rule ::= [rs_production_list](#rs_production_list) \[ `:=` [rs_weight_specification](#rs_weight_specification) \[ [rs_code_block](#rs_code_block) ] ] -rs\_production\_list ::= -    [rs_prod](#rs_prod) \{ [rs_prod](#rs_prod) } -    \| [rand](#rand) [join](#join) \[ `(` [expression](#expression) `)` ] [rs_production_item](#rs_production_item) [rs_production_item](#rs_production_item) \{ [rs_production_item](#rs_production_item) } -rs\_weight\_specification ::= -    [integral_number](#integral_number) -    \| [ps_identifier](#ps_identifier) -    \| `(` [expression](#expression) `)` -rs\_code\_block ::= \{ \{ [data_declaration](#data_declaration) } \{ [statement_or_null](#statement_or_null) } } -rs\_prod ::= -    [rs_production_item](#rs_production_item) -    \| [rs_code_block](#rs_code_block) -    \| [rs_if_else](#rs_if_else) -    \| [rs_repeat](#rs_repeat) -    \| [rs_case](#rs_case) -rs\_production\_item ::= [rs_production_identifier](#rs_production_identifier) \[ `(` [list_of_arguments](#list_of_arguments) `)` ] -rs\_if\_else ::= [if](#if) `(` [expression](#expression) `)` [rs_production_item](#rs_production_item) \[ [else](#else) [rs_production_item](#rs_production_item) ] -rs\_repeat ::= [repeat](#repeat) `(` [expression](#expression) `)` [rs_production_item](#rs_production_item) -rs\_case ::= [case](#case) `(` [case_expression](#case_expression) `)` [rs_case_item](#rs_case_item) \{ [rs_case_item](#rs_case_item) } [endcase](#endcase) -rs\_case\_item ::= -    [case_item_expression](#case_item_expression) \{ `,` [case_item_expression](#case_item_expression) } `:` [rs_production_item](#rs_production_item) `;` -    \| [default](#default) \[ `:` ] [rs_production_item](#rs_production_item) `;` +randsequence\_statement ::= +    [randsequence](#randsequence) `(` \[ [rs_production_identifier](#rs_production_identifier) ] `)` +    [rs_production](#rs_production) \{ [rs_production](#rs_production) } +    [endsequence](#endsequence) +rs\_production ::= \[ [data_type_or_void](#data_type_or_void) ] [rs_production_identifier](#rs_production_identifier) \[ `(` [tf_port_list](#tf_port_list) `)` ] `:` [rs_rule](#rs_rule) \{ \| [rs_rule](#rs_rule) } `;` +rs\_rule ::= [rs_production_list](#rs_production_list) \[ `:=` [rs_weight_specification](#rs_weight_specification) \[ [rs_code_block](#rs_code_block) ] ] +rs\_production\_list ::= +    [rs_prod](#rs_prod) \{ [rs_prod](#rs_prod) } +    \| [rand](#rand) [join](#join) \[ `(` [expression](#expression) `)` ] [rs_production_item](#rs_production_item) [rs_production_item](#rs_production_item) \{ [rs_production_item](#rs_production_item) } +rs\_weight\_specification ::= +    [integral_number](#integral_number) +    \| [ps_identifier](#ps_identifier) +    \| `(` [expression](#expression) `)` +rs\_code\_block ::= \{ \{ [data_declaration](#data_declaration) } \{ [statement_or_null](#statement_or_null) } } +rs\_prod ::= +    [rs_production_item](#rs_production_item) +    \| [rs_code_block](#rs_code_block) +    \| [rs_if_else](#rs_if_else) +    \| [rs_repeat](#rs_repeat) +    \| [rs_case](#rs_case) +rs\_production\_item ::= [rs_production_identifier](#rs_production_identifier) \[ `(` [list_of_arguments](#list_of_arguments) `)` ] +rs\_if\_else ::= [if](#if) `(` [expression](#expression) `)` [rs_production_item](#rs_production_item) \[ [else](#else) [rs_production_item](#rs_production_item) ] +rs\_repeat ::= [repeat](#repeat) `(` [expression](#expression) `)` [rs_production_item](#rs_production_item) +rs\_case ::= [case](#case) `(` [case_expression](#case_expression) `)` [rs_case_item](#rs_case_item) \{ [rs_case_item](#rs_case_item) } [endcase](#endcase) +rs\_case\_item ::= +    [case_item_expression](#case_item_expression) \{ `,` [case_item_expression](#case_item_expression) } `:` [rs_production_item](#rs_production_item) `;` +    \| [default](#default) \[ `:` ] [rs_production_item](#rs_production_item) `;` ## A.7 Specify section ### A.7.1 Specify block declaration -specify\_block ::= [specify](#specify) \{ [specify_item](#specify_item) } [endspecify](#endspecify) -specify\_item ::= -    [specparam_declaration](#specparam_declaration) -    \| [pulsestyle_declaration](#pulsestyle_declaration) -    \| [showcancelled_declaration](#showcancelled_declaration) -    \| [path_declaration](#path_declaration) -    \| [system_timing_check](#system_timing_check) -pulsestyle\_declaration ::= -    [pulsestyle_onevent](#pulsestyle_onevent) [list_of_path_outputs](#list_of_path_outputs) `;` -    \| [pulsestyle_ondetect](#pulsestyle_ondetect) [list_of_path_outputs](#list_of_path_outputs) `;` -showcancelled\_declaration ::= -    [showcancelled](#showcancelled) [list_of_path_outputs](#list_of_path_outputs) `;` -    \| [noshowcancelled](#noshowcancelled) [list_of_path_outputs](#list_of_path_outputs) `;` +specify\_block ::= [specify](#specify) \{ [specify_item](#specify_item) } [endspecify](#endspecify) +specify\_item ::= +    [specparam_declaration](#specparam_declaration) +    \| [pulsestyle_declaration](#pulsestyle_declaration) +    \| [showcancelled_declaration](#showcancelled_declaration) +    \| [path_declaration](#path_declaration) +    \| [system_timing_check](#system_timing_check) +pulsestyle\_declaration ::= +    [pulsestyle_onevent](#pulsestyle_onevent) [list_of_path_outputs](#list_of_path_outputs) `;` +    \| [pulsestyle_ondetect](#pulsestyle_ondetect) [list_of_path_outputs](#list_of_path_outputs) `;` +showcancelled\_declaration ::= +    [showcancelled](#showcancelled) [list_of_path_outputs](#list_of_path_outputs) `;` +    \| [noshowcancelled](#noshowcancelled) [list_of_path_outputs](#list_of_path_outputs) `;` ### A.7.2 Specify path declarations -path\_declaration ::= -    [simple_path_declaration](#simple_path_declaration) `;` -    \| [edge_sensitive_path_declaration](#edge_sensitive_path_declaration) `;` -    \| [state_dependent_path_declaration](#state_dependent_path_declaration) `;` -simple\_path\_declaration ::= -    [parallel_path_description](#parallel_path_description) `=` [path_delay_value](#path_delay_value) -    \| [full_path_description](#full_path_description) `=` [path_delay_value](#path_delay_value) -parallel\_path\_description ::= -    `(` [specify_input_terminal_descriptor](#specify_input_terminal_descriptor) \[ [polarity_operator](#polarity_operator) ] `=>` [specify_output_terminal_descriptor](#specify_output_terminal_descriptor) `)` -full\_path\_description ::= `(` [list_of_path_inputs](#list_of_path_inputs) \[ [polarity_operator](#polarity_operator) ] `*>` [list_of_path_outputs](#list_of_path_outputs) `)` -edge\_sensitive\_path\_declaration ::= -    [parallel_edge_sensitive_path_description](#parallel_edge_sensitive_path_description) `=` [path_delay_value](#path_delay_value) -    \| [full_edge_sensitive_path_description](#full_edge_sensitive_path_description) `=` [path_delay_value](#path_delay_value) -parallel\_edge\_sensitive\_path\_description ::= -    `(` \[ [edge_identifier](#edge_identifier) ] [specify_input_terminal_descriptor](#specify_input_terminal_descriptor) \[ [polarity_operator](#polarity_operator) ] `=>` -    `(` [specify_output_terminal_descriptor](#specify_output_terminal_descriptor) \[ [polarity_operator](#polarity_operator) ] `:` [data_source_expression](#data_source_expression) `)` `)` -    \| `(` \[ [edge_identifier](#edge_identifier) ] [specify_input_terminal_descriptor](#specify_input_terminal_descriptor) \[ [polarity_operator](#polarity_operator) ] `=>` -    [specify_output_terminal_descriptor](#specify_output_terminal_descriptor) `)` -full\_edge\_sensitive\_path\_description ::= -    `(` \[ [edge_identifier](#edge_identifier) ] [list_of_path_inputs](#list_of_path_inputs) \[ [polarity_operator](#polarity_operator) ] `*>` -    `(` [list_of_path_outputs](#list_of_path_outputs) \[ [polarity_operator](#polarity_operator) ] `:` [data_source_expression](#data_source_expression) `)` `)` -    \| `(` \[ [edge_identifier](#edge_identifier) ] [list_of_path_inputs](#list_of_path_inputs) \[ [polarity_operator](#polarity_operator) ] `*>` -    [list_of_path_outputs](#list_of_path_outputs) `)` -state\_dependent\_path\_declaration ::= -    [if](#if) `(` [module_path_expression](#module_path_expression) `)` [simple_path_declaration](#simple_path_declaration) -    \| [if](#if) `(` [module_path_expression](#module_path_expression) `)` [edge_sensitive_path_declaration](#edge_sensitive_path_declaration) -    \| [ifnone](#ifnone) [simple_path_declaration](#simple_path_declaration) -data\_source\_expression ::= [expression](#expression) -edge\_identifier ::= [posedge](#posedge) \| [negedge](#negedge) \| [edge](#edge) -polarity\_operator ::= `+` \| `-` +path\_declaration ::= +    [simple_path_declaration](#simple_path_declaration) `;` +    \| [edge_sensitive_path_declaration](#edge_sensitive_path_declaration) `;` +    \| [state_dependent_path_declaration](#state_dependent_path_declaration) `;` +simple\_path\_declaration ::= +    [parallel_path_description](#parallel_path_description) `=` [path_delay_value](#path_delay_value) +    \| [full_path_description](#full_path_description) `=` [path_delay_value](#path_delay_value) +parallel\_path\_description ::= +    `(` [specify_input_terminal_descriptor](#specify_input_terminal_descriptor) \[ [polarity_operator](#polarity_operator) ] `=>` [specify_output_terminal_descriptor](#specify_output_terminal_descriptor) `)` +full\_path\_description ::= `(` [list_of_path_inputs](#list_of_path_inputs) \[ [polarity_operator](#polarity_operator) ] `*>` [list_of_path_outputs](#list_of_path_outputs) `)` +edge\_sensitive\_path\_declaration ::= +    [parallel_edge_sensitive_path_description](#parallel_edge_sensitive_path_description) `=` [path_delay_value](#path_delay_value) +    \| [full_edge_sensitive_path_description](#full_edge_sensitive_path_description) `=` [path_delay_value](#path_delay_value) +parallel\_edge\_sensitive\_path\_description ::= +    `(` \[ [edge_identifier](#edge_identifier) ] [specify_input_terminal_descriptor](#specify_input_terminal_descriptor) \[ [polarity_operator](#polarity_operator) ] `=>` +    `(` [specify_output_terminal_descriptor](#specify_output_terminal_descriptor) \[ [polarity_operator](#polarity_operator) ] `:` [data_source_expression](#data_source_expression) `)` `)` +    \| `(` \[ [edge_identifier](#edge_identifier) ] [specify_input_terminal_descriptor](#specify_input_terminal_descriptor) \[ [polarity_operator](#polarity_operator) ] `=>` +    [specify_output_terminal_descriptor](#specify_output_terminal_descriptor) `)` +full\_edge\_sensitive\_path\_description ::= +    `(` \[ [edge_identifier](#edge_identifier) ] [list_of_path_inputs](#list_of_path_inputs) \[ [polarity_operator](#polarity_operator) ] `*>` +    `(` [list_of_path_outputs](#list_of_path_outputs) \[ [polarity_operator](#polarity_operator) ] `:` [data_source_expression](#data_source_expression) `)` `)` +    \| `(` \[ [edge_identifier](#edge_identifier) ] [list_of_path_inputs](#list_of_path_inputs) \[ [polarity_operator](#polarity_operator) ] `*>` +    [list_of_path_outputs](#list_of_path_outputs) `)` +state\_dependent\_path\_declaration ::= +    [if](#if) `(` [module_path_expression](#module_path_expression) `)` [simple_path_declaration](#simple_path_declaration) +    \| [if](#if) `(` [module_path_expression](#module_path_expression) `)` [edge_sensitive_path_declaration](#edge_sensitive_path_declaration) +    \| [ifnone](#ifnone) [simple_path_declaration](#simple_path_declaration) +data\_source\_expression ::= [expression](#expression) +edge\_identifier ::= [posedge](#posedge) \| [negedge](#negedge) \| [edge](#edge) +polarity\_operator ::= `+` \| `-` ### A.7.3 Specify block terminals -list\_of\_path\_inputs ::= [specify_input_terminal_descriptor](#specify_input_terminal_descriptor) \{ `,` [specify_input_terminal_descriptor](#specify_input_terminal_descriptor) } -list\_of\_path\_outputs ::= [specify_output_terminal_descriptor](#specify_output_terminal_descriptor) \{ `,` [specify_output_terminal_descriptor](#specify_output_terminal_descriptor) } -specify\_input\_terminal\_descriptor ::= [input_identifier](#input_identifier) \[ \[ [constant_range_expression](#constant_range_expression) ] ] -specify\_output\_terminal\_descriptor ::= [output_identifier](#output_identifier) \[ \[ [constant_range_expression](#constant_range_expression) ] ] -input\_identifier ::= -    [input_port_identifier](#input_port_identifier) -    \| [inout_port_identifier](#inout_port_identifier) -    \| [interface_identifier](#interface_identifier) `.` [port_identifier](#port_identifier) -output\_identifier ::= -    [output_port_identifier](#output_port_identifier) -    \| [inout_port_identifier](#inout_port_identifier) -    \| [interface_identifier](#interface_identifier) `.` [port_identifier](#port_identifier) +list\_of\_path\_inputs ::= [specify_input_terminal_descriptor](#specify_input_terminal_descriptor) \{ `,` [specify_input_terminal_descriptor](#specify_input_terminal_descriptor) } +list\_of\_path\_outputs ::= [specify_output_terminal_descriptor](#specify_output_terminal_descriptor) \{ `,` [specify_output_terminal_descriptor](#specify_output_terminal_descriptor) } +specify\_input\_terminal\_descriptor ::= [input_identifier](#input_identifier) \[ \[ [constant_range_expression](#constant_range_expression) ] ] +specify\_output\_terminal\_descriptor ::= [output_identifier](#output_identifier) \[ \[ [constant_range_expression](#constant_range_expression) ] ] +input\_identifier ::= +    [input_port_identifier](#input_port_identifier) +    \| [inout_port_identifier](#inout_port_identifier) +    \| [interface_identifier](#interface_identifier) `.` [port_identifier](#port_identifier) +output\_identifier ::= +    [output_port_identifier](#output_port_identifier) +    \| [inout_port_identifier](#inout_port_identifier) +    \| [interface_identifier](#interface_identifier) `.` [port_identifier](#port_identifier) ### A.7.4 Specify path delays -path\_delay\_value ::= -    [list_of_path_delay_expressions](#list_of_path_delay_expressions) -    \| `(` [list_of_path_delay_expressions](#list_of_path_delay_expressions) `)` -list\_of\_path\_delay\_expressions ::= -    [t_path_delay_expression](#t_path_delay_expression) -    \| [trise_path_delay_expression](#trise_path_delay_expression) `,` [tfall_path_delay_expression](#tfall_path_delay_expression) -    \| [trise_path_delay_expression](#trise_path_delay_expression) `,` [tfall_path_delay_expression](#tfall_path_delay_expression) `,` [tz_path_delay_expression](#tz_path_delay_expression) -    \| [t01_path_delay_expression](#t01_path_delay_expression) `,` [t10_path_delay_expression](#t10_path_delay_expression) `,` [t0z_path_delay_expression](#t0z_path_delay_expression) `,` -    [tz1_path_delay_expression](#tz1_path_delay_expression) `,` [t1z_path_delay_expression](#t1z_path_delay_expression) `,` [tz0_path_delay_expression](#tz0_path_delay_expression) -    \| [t01_path_delay_expression](#t01_path_delay_expression) `,` [t10_path_delay_expression](#t10_path_delay_expression) `,` [t0z_path_delay_expression](#t0z_path_delay_expression) `,` -    [tz1_path_delay_expression](#tz1_path_delay_expression) `,` [t1z_path_delay_expression](#t1z_path_delay_expression) `,` [tz0_path_delay_expression](#tz0_path_delay_expression) `,` -    [t0x_path_delay_expression](#t0x_path_delay_expression) `,` [tx1_path_delay_expression](#tx1_path_delay_expression) `,` [t1x_path_delay_expression](#t1x_path_delay_expression) `,` -    [tx0_path_delay_expression](#tx0_path_delay_expression) `,` [txz_path_delay_expression](#txz_path_delay_expression) `,` [tzx_path_delay_expression](#tzx_path_delay_expression) -t\_path\_delay\_expression ::= [path_delay_expression](#path_delay_expression) -trise\_path\_delay\_expression ::= [path_delay_expression](#path_delay_expression) -tfall\_path\_delay\_expression ::= [path_delay_expression](#path_delay_expression) -tz\_path\_delay\_expression ::= [path_delay_expression](#path_delay_expression) -t01\_path\_delay\_expression ::= [path_delay_expression](#path_delay_expression) -t10\_path\_delay\_expression ::= [path_delay_expression](#path_delay_expression) -t0z\_path\_delay\_expression ::= [path_delay_expression](#path_delay_expression) -tz1\_path\_delay\_expression ::= [path_delay_expression](#path_delay_expression) -t1z\_path\_delay\_expression ::= [path_delay_expression](#path_delay_expression) -tz0\_path\_delay\_expression ::= [path_delay_expression](#path_delay_expression) -t0x\_path\_delay\_expression ::= [path_delay_expression](#path_delay_expression) -tx1\_path\_delay\_expression ::= [path_delay_expression](#path_delay_expression) -t1x\_path\_delay\_expression ::= [path_delay_expression](#path_delay_expression) -tx0\_path\_delay\_expression ::= [path_delay_expression](#path_delay_expression) -txz\_path\_delay\_expression ::= [path_delay_expression](#path_delay_expression) -tzx\_path\_delay\_expression ::= [path_delay_expression](#path_delay_expression) -path\_delay\_expression ::= [constant_mintypmax_expression](#constant_mintypmax_expression) +path\_delay\_value ::= +    [list_of_path_delay_expressions](#list_of_path_delay_expressions) +    \| `(` [list_of_path_delay_expressions](#list_of_path_delay_expressions) `)` +list\_of\_path\_delay\_expressions ::= +    [t_path_delay_expression](#t_path_delay_expression) +    \| [trise_path_delay_expression](#trise_path_delay_expression) `,` [tfall_path_delay_expression](#tfall_path_delay_expression) +    \| [trise_path_delay_expression](#trise_path_delay_expression) `,` [tfall_path_delay_expression](#tfall_path_delay_expression) `,` [tz_path_delay_expression](#tz_path_delay_expression) +    \| [t01_path_delay_expression](#t01_path_delay_expression) `,` [t10_path_delay_expression](#t10_path_delay_expression) `,` [t0z_path_delay_expression](#t0z_path_delay_expression) `,` +    [tz1_path_delay_expression](#tz1_path_delay_expression) `,` [t1z_path_delay_expression](#t1z_path_delay_expression) `,` [tz0_path_delay_expression](#tz0_path_delay_expression) +    \| [t01_path_delay_expression](#t01_path_delay_expression) `,` [t10_path_delay_expression](#t10_path_delay_expression) `,` [t0z_path_delay_expression](#t0z_path_delay_expression) `,` +    [tz1_path_delay_expression](#tz1_path_delay_expression) `,` [t1z_path_delay_expression](#t1z_path_delay_expression) `,` [tz0_path_delay_expression](#tz0_path_delay_expression) `,` +    [t0x_path_delay_expression](#t0x_path_delay_expression) `,` [tx1_path_delay_expression](#tx1_path_delay_expression) `,` [t1x_path_delay_expression](#t1x_path_delay_expression) `,` +    [tx0_path_delay_expression](#tx0_path_delay_expression) `,` [txz_path_delay_expression](#txz_path_delay_expression) `,` [tzx_path_delay_expression](#tzx_path_delay_expression) +t\_path\_delay\_expression ::= [path_delay_expression](#path_delay_expression) +trise\_path\_delay\_expression ::= [path_delay_expression](#path_delay_expression) +tfall\_path\_delay\_expression ::= [path_delay_expression](#path_delay_expression) +tz\_path\_delay\_expression ::= [path_delay_expression](#path_delay_expression) +t01\_path\_delay\_expression ::= [path_delay_expression](#path_delay_expression) +t10\_path\_delay\_expression ::= [path_delay_expression](#path_delay_expression) +t0z\_path\_delay\_expression ::= [path_delay_expression](#path_delay_expression) +tz1\_path\_delay\_expression ::= [path_delay_expression](#path_delay_expression) +t1z\_path\_delay\_expression ::= [path_delay_expression](#path_delay_expression) +tz0\_path\_delay\_expression ::= [path_delay_expression](#path_delay_expression) +t0x\_path\_delay\_expression ::= [path_delay_expression](#path_delay_expression) +tx1\_path\_delay\_expression ::= [path_delay_expression](#path_delay_expression) +t1x\_path\_delay\_expression ::= [path_delay_expression](#path_delay_expression) +tx0\_path\_delay\_expression ::= [path_delay_expression](#path_delay_expression) +txz\_path\_delay\_expression ::= [path_delay_expression](#path_delay_expression) +tzx\_path\_delay\_expression ::= [path_delay_expression](#path_delay_expression) +path\_delay\_expression ::= [constant_mintypmax_expression](#constant_mintypmax_expression) ### A.7.5 System timing checks #### A.7.5.1 System timing check commands -system\_timing\_check ::= -    `$`[setup_timing_check](#setup_timing_check) -    \| `$`[hold_timing_check](#hold_timing_check) -    \| `$`[setuphold_timing_check](#setuphold_timing_check) -    \| `$`[recovery_timing_check](#recovery_timing_check) -    \| `$`[removal_timing_check](#removal_timing_check) -    \| `$`[recrem_timing_check](#recrem_timing_check) -    \| `$`[skew_timing_check](#skew_timing_check) -    \| `$`[timeskew_timing_check](#timeskew_timing_check) -    \| `$`[fullskew_timing_check](#fullskew_timing_check) -    \| `$`[period_timing_check](#period_timing_check) -    \| `$`[width_timing_check](#width_timing_check) -    \| `$`[nochange_timing_check](#nochange_timing_check) -    `$` -setup\_timing\_check ::= -    `$`[setup](#setup) `(` [data_event](#data_event) `,` [reference_event](#reference_event) `,` [timing_check_limit](#timing_check_limit) \[ `,` \[ [notifier](#notifier) ] ] `)` `;` -    `$` -hold\_timing\_check ::= -    `$`[hold](#hold) `(` [reference_event](#reference_event) `,` [data_event](#data_event) `,` [timing_check_limit](#timing_check_limit) \[ `,` \[ [notifier](#notifier) ] ] `)` `;` -    `$` -setuphold\_timing\_check ::= -    `$`[setuphold](#setuphold) `(` [reference_event](#reference_event) `,` [data_event](#data_event) `,` [timing_check_limit](#timing_check_limit) `,` [timing_check_limit](#timing_check_limit) -    \[ `,` \[ [notifier](#notifier) ] \[ `,` \[ [timestamp_condition](#timestamp_condition) ] \[ `,` \[ [timecheck_condition](#timecheck_condition) ] -    \[ `,` \[ [delayed_reference](#delayed_reference) ] \[ `,` \[ [delayed_data](#delayed_data) ] ] ] ] ] ] `)` `;` -    `$` -recovery\_timing\_check ::= -    `$`[recovery](#recovery) `(` [reference_event](#reference_event) `,` [data_event](#data_event) `,` [timing_check_limit](#timing_check_limit) \[ `,` \[ [notifier](#notifier) ] ] `)` `;` -    `$` -removal\_timing\_check ::= -    `$`[removal](#removal) `(` [reference_event](#reference_event) `,` [data_event](#data_event) `,` [timing_check_limit](#timing_check_limit) \[ `,` \[ [notifier](#notifier) ] ] `)` `;` -    `$` -recrem\_timing\_check ::= -    `$`[recrem](#recrem) `(` [reference_event](#reference_event) `,` [data_event](#data_event) `,` [timing_check_limit](#timing_check_limit) `,` [timing_check_limit](#timing_check_limit) -    \[ `,` \[ [notifier](#notifier) ] \[ `,` \[ [timestamp_condition](#timestamp_condition) ] \[ `,` \[ [timecheck_condition](#timecheck_condition) ] -    \[ `,` \[ [delayed_reference](#delayed_reference) ] \[ `,` \[ [delayed_data](#delayed_data) ] ] ] ] ] ] `)` `;` -    `$` -skew\_timing\_check ::= -    `$`[skew](#skew) `(` [reference_event](#reference_event) `,` [data_event](#data_event) `,` [timing_check_limit](#timing_check_limit) \[ `,` \[ [notifier](#notifier) ] ] `)` `;` -    `$` -timeskew\_timing\_check ::= -    `$`[timeskew](#timeskew) `(` [reference_event](#reference_event) `,` [data_event](#data_event) `,` [timing_check_limit](#timing_check_limit) -    \[ `,` \[ [notifier](#notifier) ] \[ `,` \[ [event_based_flag](#event_based_flag) ] \[ `,` \[ [remain_active_flag](#remain_active_flag) ] ] ] ] `)` `;` -    `$` -fullskew\_timing\_check ::= -    `$`[fullskew](#fullskew) `(` [reference_event](#reference_event) `,` [data_event](#data_event) `,` [timing_check_limit](#timing_check_limit) `,` [timing_check_limit](#timing_check_limit) -    \[ `,` \[ [notifier](#notifier) ] \[ `,` \[ [event_based_flag](#event_based_flag) ] \[ `,` \[ [remain_active_flag](#remain_active_flag) ] ] ] ] `)` `;` -    `$` -period\_timing\_check ::= -    `$`[period](#period) `(` [controlled_reference_event](#controlled_reference_event) `,` [timing_check_limit](#timing_check_limit) \[ `,` \[ [notifier](#notifier) ] ] `)` `;` -    `$` -width\_timing\_check ::= -    `$`[width](#width) `(` [controlled_reference_event](#controlled_reference_event) `,` [timing_check_limit](#timing_check_limit) `,` [threshold](#threshold) \[ `,` \[ [notifier](#notifier) ] ] `)` `;` -    `$` -nochange\_timing\_check ::= -    `$`[nochange](#nochange) `(` [reference_event](#reference_event) `,` [data_event](#data_event) `,` [start_edge_offset](#start_edge_offset) `,` [end_edge_offset](#end_edge_offset) \[ `,` \[ [notifier](#notifier) ] ] `);` +system\_timing\_check ::= +    `$`[setup_timing_check](#setup_timing_check) +    \| `$`[hold_timing_check](#hold_timing_check) +    \| `$`[setuphold_timing_check](#setuphold_timing_check) +    \| `$`[recovery_timing_check](#recovery_timing_check) +    \| `$`[removal_timing_check](#removal_timing_check) +    \| `$`[recrem_timing_check](#recrem_timing_check) +    \| `$`[skew_timing_check](#skew_timing_check) +    \| `$`[timeskew_timing_check](#timeskew_timing_check) +    \| `$`[fullskew_timing_check](#fullskew_timing_check) +    \| `$`[period_timing_check](#period_timing_check) +    \| `$`[width_timing_check](#width_timing_check) +    \| `$`[nochange_timing_check](#nochange_timing_check) +    `$` +setup\_timing\_check ::= +    `$`[setup](#setup) `(` [data_event](#data_event) `,` [reference_event](#reference_event) `,` [timing_check_limit](#timing_check_limit) \[ `,` \[ [notifier](#notifier) ] ] `)` `;` +    `$` +hold\_timing\_check ::= +    `$`[hold](#hold) `(` [reference_event](#reference_event) `,` [data_event](#data_event) `,` [timing_check_limit](#timing_check_limit) \[ `,` \[ [notifier](#notifier) ] ] `)` `;` +    `$` +setuphold\_timing\_check ::= +    `$`[setuphold](#setuphold) `(` [reference_event](#reference_event) `,` [data_event](#data_event) `,` [timing_check_limit](#timing_check_limit) `,` [timing_check_limit](#timing_check_limit) +    \[ `,` \[ [notifier](#notifier) ] \[ `,` \[ [timestamp_condition](#timestamp_condition) ] \[ `,` \[ [timecheck_condition](#timecheck_condition) ] +    \[ `,` \[ [delayed_reference](#delayed_reference) ] \[ `,` \[ [delayed_data](#delayed_data) ] ] ] ] ] ] `)` `;` +    `$` +recovery\_timing\_check ::= +    `$`[recovery](#recovery) `(` [reference_event](#reference_event) `,` [data_event](#data_event) `,` [timing_check_limit](#timing_check_limit) \[ `,` \[ [notifier](#notifier) ] ] `)` `;` +    `$` +removal\_timing\_check ::= +    `$`[removal](#removal) `(` [reference_event](#reference_event) `,` [data_event](#data_event) `,` [timing_check_limit](#timing_check_limit) \[ `,` \[ [notifier](#notifier) ] ] `)` `;` +    `$` +recrem\_timing\_check ::= +    `$`[recrem](#recrem) `(` [reference_event](#reference_event) `,` [data_event](#data_event) `,` [timing_check_limit](#timing_check_limit) `,` [timing_check_limit](#timing_check_limit) +    \[ `,` \[ [notifier](#notifier) ] \[ `,` \[ [timestamp_condition](#timestamp_condition) ] \[ `,` \[ [timecheck_condition](#timecheck_condition) ] +    \[ `,` \[ [delayed_reference](#delayed_reference) ] \[ `,` \[ [delayed_data](#delayed_data) ] ] ] ] ] ] `)` `;` +    `$` +skew\_timing\_check ::= +    `$`[skew](#skew) `(` [reference_event](#reference_event) `,` [data_event](#data_event) `,` [timing_check_limit](#timing_check_limit) \[ `,` \[ [notifier](#notifier) ] ] `)` `;` +    `$` +timeskew\_timing\_check ::= +    `$`[timeskew](#timeskew) `(` [reference_event](#reference_event) `,` [data_event](#data_event) `,` [timing_check_limit](#timing_check_limit) +    \[ `,` \[ [notifier](#notifier) ] \[ `,` \[ [event_based_flag](#event_based_flag) ] \[ `,` \[ [remain_active_flag](#remain_active_flag) ] ] ] ] `)` `;` +    `$` +fullskew\_timing\_check ::= +    `$`[fullskew](#fullskew) `(` [reference_event](#reference_event) `,` [data_event](#data_event) `,` [timing_check_limit](#timing_check_limit) `,` [timing_check_limit](#timing_check_limit) +    \[ `,` \[ [notifier](#notifier) ] \[ `,` \[ [event_based_flag](#event_based_flag) ] \[ `,` \[ [remain_active_flag](#remain_active_flag) ] ] ] ] `)` `;` +    `$` +period\_timing\_check ::= +    `$`[period](#period) `(` [controlled_reference_event](#controlled_reference_event) `,` [timing_check_limit](#timing_check_limit) \[ `,` \[ [notifier](#notifier) ] ] `)` `;` +    `$` +width\_timing\_check ::= +    `$`[width](#width) `(` [controlled_reference_event](#controlled_reference_event) `,` [timing_check_limit](#timing_check_limit) `,` [threshold](#threshold) \[ `,` \[ [notifier](#notifier) ] ] `)` `;` +    `$` +nochange\_timing\_check ::= +    `$`[nochange](#nochange) `(` [reference_event](#reference_event) `,` [data_event](#data_event) `,` [start_edge_offset](#start_edge_offset) `,` [end_edge_offset](#end_edge_offset) \[ `,` \[ [notifier](#notifier) ] ] `);` #### A.7.5.2 System timing check command arguments -controlled\_reference\_event ::= [controlled_timing_check_event](#controlled_timing_check_event) -data\_event ::= [timing_check_event](#timing_check_event) -delayed\_data ::= -    [terminal_identifier](#terminal_identifier) -    \| [terminal_identifier](#terminal_identifier) \[ [constant_mintypmax_expression](#constant_mintypmax_expression) ] -delayed\_reference ::= -    [terminal_identifier](#terminal_identifier) -    \| [terminal_identifier](#terminal_identifier) \[ [constant_mintypmax_expression](#constant_mintypmax_expression) ] -end\_edge\_offset ::= [mintypmax_expression](#mintypmax_expression) -event\_based\_flag ::= [constant_expression](#constant_expression) -notifier ::= [variable_identifier](#variable_identifier) -reference\_event ::= [timing_check_event](#timing_check_event) -remain\_active\_flag ::= [constant_mintypmax_expression](#constant_mintypmax_expression) -timecheck\_condition ::= [mintypmax_expression](#mintypmax_expression) -timestamp\_condition ::= [mintypmax_expression](#mintypmax_expression) -start\_edge\_offset ::= [mintypmax_expression](#mintypmax_expression) -threshold ::= [constant_expression](#constant_expression) -timing\_check\_limit ::= [expression](#expression) +controlled\_reference\_event ::= [controlled_timing_check_event](#controlled_timing_check_event) +data\_event ::= [timing_check_event](#timing_check_event) +delayed\_data ::= +    [terminal_identifier](#terminal_identifier) +    \| [terminal_identifier](#terminal_identifier) \[ [constant_mintypmax_expression](#constant_mintypmax_expression) ] +delayed\_reference ::= +    [terminal_identifier](#terminal_identifier) +    \| [terminal_identifier](#terminal_identifier) \[ [constant_mintypmax_expression](#constant_mintypmax_expression) ] +end\_edge\_offset ::= [mintypmax_expression](#mintypmax_expression) +event\_based\_flag ::= [constant_expression](#constant_expression) +notifier ::= [variable_identifier](#variable_identifier) +reference\_event ::= [timing_check_event](#timing_check_event) +remain\_active\_flag ::= [constant_mintypmax_expression](#constant_mintypmax_expression) +timecheck\_condition ::= [mintypmax_expression](#mintypmax_expression) +timestamp\_condition ::= [mintypmax_expression](#mintypmax_expression) +start\_edge\_offset ::= [mintypmax_expression](#mintypmax_expression) +threshold ::= [constant_expression](#constant_expression) +timing\_check\_limit ::= [expression](#expression) #### A.7.5.3 System timing check event definitions -timing\_check\_event ::= -    \[ [timing_check_event_control](#timing_check_event_control) ] [specify_terminal_descriptor](#specify_terminal_descriptor) \[ `&&&` [timing_check_condition](#timing_check_condition) ] -controlled\_timing\_check\_event ::= -    [timing_check_event_control](#timing_check_event_control) [specify_terminal_descriptor](#specify_terminal_descriptor) \[ `&&&` [timing_check_condition](#timing_check_condition) ] -timing\_check\_event\_control ::= -    [posedge](#posedge) -    \| [negedge](#negedge) -    \| [edge](#edge) -    \| [edge_control_specifier](#edge_control_specifier) -specify\_terminal\_descriptor ::= -    [specify_input_terminal_descriptor](#specify_input_terminal_descriptor) -    \| [specify_output_terminal_descriptor](#specify_output_terminal_descriptor) -edge\_control\_specifier ::= [edge](#edge) \[ [edge_descriptor](#edge_descriptor) \{ `,` [edge_descriptor](#edge_descriptor) } ] -edge\_descriptor38 ::= [01](#01) \| [10](#10) \| [z_or_x](#z_or_x) [zero_or_one](#zero_or_one) \| [zero_or_one](#zero_or_one) [z_or_x](#z_or_x) -zero\_or\_one ::= [0](#0) \| [1](#1) -z\_or\_x ::= [x](#x) \| [X](#X) \| [z](#z) \| [Z](#Z) -timing\_check\_condition ::= -    [scalar_timing_check_condition](#scalar_timing_check_condition) -    \| `(` [scalar_timing_check_condition](#scalar_timing_check_condition) `)` -scalar\_timing\_check\_condition ::= -    [expression](#expression) -    \| `~` [expression](#expression) -    \| [expression](#expression) `==` [scalar_constant](#scalar_constant) -    \| [expression](#expression) `===` [scalar_constant](#scalar_constant) -    \| [expression](#expression) `!=` [scalar_constant](#scalar_constant) -    \| [expression](#expression) `!==` [scalar_constant](#scalar_constant) -scalar\_constant ::= [1](#1)`'`[b0](#b0) \| [1](#1)`'`[b1](#b1) \| [1](#1)`'`[B0](#B0) \| [1](#1)`'`[B1](#B1) \| `'`[b0](#b0) \| `'`[b1](#b1) \| `'`[B0](#B0) \| `'`[B1](#B1) \| [1](#1) \| [0](#0) +timing\_check\_event ::= +    \[ [timing_check_event_control](#timing_check_event_control) ] [specify_terminal_descriptor](#specify_terminal_descriptor) \[ `&&&` [timing_check_condition](#timing_check_condition) ] +controlled\_timing\_check\_event ::= +    [timing_check_event_control](#timing_check_event_control) [specify_terminal_descriptor](#specify_terminal_descriptor) \[ `&&&` [timing_check_condition](#timing_check_condition) ] +timing\_check\_event\_control ::= +    [posedge](#posedge) +    \| [negedge](#negedge) +    \| [edge](#edge) +    \| [edge_control_specifier](#edge_control_specifier) +specify\_terminal\_descriptor ::= +    [specify_input_terminal_descriptor](#specify_input_terminal_descriptor) +    \| [specify_output_terminal_descriptor](#specify_output_terminal_descriptor) +edge\_control\_specifier ::= [edge](#edge) \[ [edge_descriptor](#edge_descriptor) \{ `,` [edge_descriptor](#edge_descriptor) } ] +edge\_descriptor38 ::= [01](#01) \| [10](#10) \| [z_or_x](#z_or_x) [zero_or_one](#zero_or_one) \| [zero_or_one](#zero_or_one) [z_or_x](#z_or_x) +zero\_or\_one ::= [0](#0) \| [1](#1) +z\_or\_x ::= [x](#x) \| [X](#X) \| [z](#z) \| [Z](#Z) +timing\_check\_condition ::= +    [scalar_timing_check_condition](#scalar_timing_check_condition) +    \| `(` [scalar_timing_check_condition](#scalar_timing_check_condition) `)` +scalar\_timing\_check\_condition ::= +    [expression](#expression) +    \| `~` [expression](#expression) +    \| [expression](#expression) `==` [scalar_constant](#scalar_constant) +    \| [expression](#expression) `===` [scalar_constant](#scalar_constant) +    \| [expression](#expression) `!=` [scalar_constant](#scalar_constant) +    \| [expression](#expression) `!==` [scalar_constant](#scalar_constant) +scalar\_constant ::= [1](#1)`'`[b0](#b0) \| [1](#1)`'`[b1](#b1) \| [1](#1)`'`[B0](#B0) \| [1](#1)`'`[B1](#B1) \| `'`[b0](#b0) \| `'`[b1](#b1) \| `'`[B0](#B0) \| `'`[B1](#B1) \| [1](#1) \| [0](#0) ## A.8 Expressions ### A.8.1 Concatenations -concatenation ::= -    \{ [expression](#expression) \{ `,` [expression](#expression) } } -constant\_concatenation ::= -    \{ [constant_expression](#constant_expression) \{ `,` [constant_expression](#constant_expression) } } -constant\_multiple\_concatenation ::= \{ [constant_expression](#constant_expression) [constant_concatenation](#constant_concatenation) } -module\_path\_concatenation ::= \{ [module_path_expression](#module_path_expression) \{ `,` [module_path_expression](#module_path_expression) } } -module\_path\_multiple\_concatenation ::= \{ [constant_expression](#constant_expression) [module_path_concatenation](#module_path_concatenation) } -multiple\_concatenation ::= \{ [expression](#expression) [concatenation](#concatenation) }[39](#39) -streaming\_concatenation ::= \{ [stream_operator](#stream_operator) \[ [slice_size](#slice_size) ] [stream_concatenation](#stream_concatenation) } -stream\_operator ::= `>>` \| `<<` -slice\_size ::= [simple_type](#simple_type) \| [constant_expression](#constant_expression) -stream\_concatenation ::= \{ [stream_expression](#stream_expression) \{ `,` [stream_expression](#stream_expression) } } -stream\_expression ::= [expression](#expression) \[ [with](#with) \[ [array_range_expression](#array_range_expression) ] ] -array\_range\_expression ::= -    [expression](#expression) -    \| [expression](#expression) `:` [expression](#expression) -    \| [expression](#expression) `+:` [expression](#expression) -    \| [expression](#expression) `-:` [expression](#expression) -empty\_unpacked\_array\_concatenation40 ::= \{ } +concatenation ::= +    \{ [expression](#expression) \{ `,` [expression](#expression) } } +constant\_concatenation ::= +    \{ [constant_expression](#constant_expression) \{ `,` [constant_expression](#constant_expression) } } +constant\_multiple\_concatenation ::= \{ [constant_expression](#constant_expression) [constant_concatenation](#constant_concatenation) } +module\_path\_concatenation ::= \{ [module_path_expression](#module_path_expression) \{ `,` [module_path_expression](#module_path_expression) } } +module\_path\_multiple\_concatenation ::= \{ [constant_expression](#constant_expression) [module_path_concatenation](#module_path_concatenation) } +multiple\_concatenation ::= \{ [expression](#expression) [concatenation](#concatenation) }[39](#39) +streaming\_concatenation ::= \{ [stream_operator](#stream_operator) \[ [slice_size](#slice_size) ] [stream_concatenation](#stream_concatenation) } +stream\_operator ::= `>>` \| `<<` +slice\_size ::= [simple_type](#simple_type) \| [constant_expression](#constant_expression) +stream\_concatenation ::= \{ [stream_expression](#stream_expression) \{ `,` [stream_expression](#stream_expression) } } +stream\_expression ::= [expression](#expression) \[ [with](#with) \[ [array_range_expression](#array_range_expression) ] ] +array\_range\_expression ::= +    [expression](#expression) +    \| [expression](#expression) `:` [expression](#expression) +    \| [expression](#expression) `+:` [expression](#expression) +    \| [expression](#expression) `-:` [expression](#expression) +empty\_unpacked\_array\_concatenation40 ::= \{ } ### A.8.2 Subroutine calls -constant\_function\_call ::= [function_subroutine_call41](#function_subroutine_call41) -tf\_call42 ::= [ps_or_hierarchical_tf_identifier](#ps_or_hierarchical_tf_identifier) \{ [attribute_instance](#attribute_instance) } \[ `(` [list_of_arguments](#list_of_arguments) `)` ] -system\_tf\_call ::= -    [system_tf_identifier](#system_tf_identifier) \[ `(` [list_of_arguments](#list_of_arguments) `)` ] -    \| [system_tf_identifier](#system_tf_identifier) `(` [data_type](#data_type) \[ `,` [expression](#expression) ] `)` -    \| [system_tf_identifier](#system_tf_identifier) `(` [expression](#expression) \{ `,` \[ [expression](#expression) ] } \[ `,` \[ [clocking_event](#clocking_event) ] ] `)` -subroutine\_call ::= -    [tf_call](#tf_call) -    \| [system_tf_call](#system_tf_call) -    \| [method_call](#method_call) -    \| \[ [std](#std) `::` ] [randomize_call](#randomize_call) -function\_subroutine\_call ::= [subroutine_call](#subroutine_call) -list\_of\_arguments ::= -    \[ [expression](#expression) ] \{ `,` \[ [expression](#expression) ] } \{ `,` `.` [identifier](#identifier) `(` \[ [expression](#expression) ] `)` } -    \| `.` [identifier](#identifier) `(` \[ [expression](#expression) ] `)` \{ `,` `.` [identifier](#identifier) `(` \[ [expression](#expression) ] `)` } -method\_call ::= [method_call_root](#method_call_root) `.` [method_call_body](#method_call_body) -method\_call\_body ::= -    [method_identifier](#method_identifier) \{ [attribute_instance](#attribute_instance) } \[ `(` [list_of_arguments](#list_of_arguments) `)` ] -    \| [built_in_method_call](#built_in_method_call) -built\_in\_method\_call ::= [array_manipulation_call](#array_manipulation_call) \| [randomize_call](#randomize_call) -array\_manipulation\_call ::= -    [array_method_name](#array_method_name) \{ [attribute_instance](#attribute_instance) } -    \[ `(` [list_of_arguments](#list_of_arguments) `)` ] -    \[ [with](#with) `(` [expression](#expression) `)` ] -randomize\_call ::= -    [randomize](#randomize) \{ [attribute_instance](#attribute_instance) } -    \[ `(` \[ [variable_identifier_list](#variable_identifier_list) \| [null](#null) ] `)` ] -    \[ [with](#with) \[ `(` \[ [identifier_list](#identifier_list) ] `)` ] [constraint_block](#constraint_block) ][43](#43) -variable\_identifier\_list ::= [variable_identifier](#variable_identifier) \{ `,` [variable_identifier](#variable_identifier) } -identifier\_list ::= [identifier](#identifier) \{ `,` [identifier](#identifier) } -method\_call\_root ::= [primary](#primary) \| [implicit_class_handle](#implicit_class_handle) -array\_method\_name ::= [method_identifier](#method_identifier) \| [unique](#unique) \| [and](#and) \| [or](#or) \| [xor](#xor) +constant\_function\_call ::= [function_subroutine_call41](#function_subroutine_call41) +tf\_call42 ::= [ps_or_hierarchical_tf_identifier](#ps_or_hierarchical_tf_identifier) \{ [attribute_instance](#attribute_instance) } \[ `(` [list_of_arguments](#list_of_arguments) `)` ] +system\_tf\_call ::= +    [system_tf_identifier](#system_tf_identifier) \[ `(` [list_of_arguments](#list_of_arguments) `)` ] +    \| [system_tf_identifier](#system_tf_identifier) `(` [data_type](#data_type) \[ `,` [expression](#expression) ] `)` +    \| [system_tf_identifier](#system_tf_identifier) `(` [expression](#expression) \{ `,` \[ [expression](#expression) ] } \[ `,` \[ [clocking_event](#clocking_event) ] ] `)` +subroutine\_call ::= +    [tf_call](#tf_call) +    \| [system_tf_call](#system_tf_call) +    \| [method_call](#method_call) +    \| \[ [std](#std) `::` ] [randomize_call](#randomize_call) +function\_subroutine\_call ::= [subroutine_call](#subroutine_call) +list\_of\_arguments ::= +    \[ [expression](#expression) ] \{ `,` \[ [expression](#expression) ] } \{ `,` `.` [identifier](#identifier) `(` \[ [expression](#expression) ] `)` } +    \| `.` [identifier](#identifier) `(` \[ [expression](#expression) ] `)` \{ `,` `.` [identifier](#identifier) `(` \[ [expression](#expression) ] `)` } +method\_call ::= [method_call_root](#method_call_root) `.` [method_call_body](#method_call_body) +method\_call\_body ::= +    [method_identifier](#method_identifier) \{ [attribute_instance](#attribute_instance) } \[ `(` [list_of_arguments](#list_of_arguments) `)` ] +    \| [built_in_method_call](#built_in_method_call) +built\_in\_method\_call ::= [array_manipulation_call](#array_manipulation_call) \| [randomize_call](#randomize_call) +array\_manipulation\_call ::= +    [array_method_name](#array_method_name) \{ [attribute_instance](#attribute_instance) } +    \[ `(` [list_of_arguments](#list_of_arguments) `)` ] +    \[ [with](#with) `(` [expression](#expression) `)` ] +randomize\_call ::= +    [randomize](#randomize) \{ [attribute_instance](#attribute_instance) } +    \[ `(` \[ [variable_identifier_list](#variable_identifier_list) \| [null](#null) ] `)` ] +    \[ [with](#with) \[ `(` \[ [identifier_list](#identifier_list) ] `)` ] [constraint_block](#constraint_block) ][43](#43) +variable\_identifier\_list ::= [variable_identifier](#variable_identifier) \{ `,` [variable_identifier](#variable_identifier) } +identifier\_list ::= [identifier](#identifier) \{ `,` [identifier](#identifier) } +method\_call\_root ::= [primary](#primary) \| [implicit_class_handle](#implicit_class_handle) +array\_method\_name ::= [method_identifier](#method_identifier) \| [unique](#unique) \| [and](#and) \| [or](#or) \| [xor](#xor) ### A.8.3 Expressions -inc\_or\_dec\_expression ::= -    [inc_or_dec_operator](#inc_or_dec_operator) \{ [attribute_instance](#attribute_instance) } [variable_lvalue](#variable_lvalue) -    \| [variable_lvalue](#variable_lvalue) \{ [attribute_instance](#attribute_instance) } [inc_or_dec_operator](#inc_or_dec_operator) -conditional\_expression ::= [cond_predicate](#cond_predicate) `?` \{ [attribute_instance](#attribute_instance) } [expression](#expression) `:` [expression](#expression) -constant\_expression ::= -    [constant_primary](#constant_primary) -    \| [unary_operator](#unary_operator) \{ [attribute_instance](#attribute_instance) } [constant_primary](#constant_primary) -    \| [constant_expression](#constant_expression) [binary_operator](#binary_operator) \{ [attribute_instance](#attribute_instance) } [constant_expression](#constant_expression) -    \| [constant_expression](#constant_expression) `?` \{ [attribute_instance](#attribute_instance) } [constant_expression](#constant_expression) `:` [constant_expression](#constant_expression) -constant\_mintypmax\_expression ::= -    [constant_expression](#constant_expression) -    \| [constant_expression](#constant_expression) `:` [constant_expression](#constant_expression) `:` [constant_expression](#constant_expression) -constant\_param\_expression ::= [constant_mintypmax_expression](#constant_mintypmax_expression) \| [data_type](#data_type) \| `$` -param\_expression ::= [mintypmax_expression](#mintypmax_expression) \| [data_type](#data_type) \| `$` -constant\_range\_expression ::= [constant_expression](#constant_expression) \| [constant_part_select_range](#constant_part_select_range) -constant\_part\_select\_range ::= [constant_range](#constant_range) \| [constant_indexed_range](#constant_indexed_range) -constant\_range ::= [constant_expression](#constant_expression) `:` [constant_expression](#constant_expression) -constant\_indexed\_range ::= -    [constant_expression](#constant_expression) `+:` [constant_expression](#constant_expression) -    \| [constant_expression](#constant_expression) `-:` [constant_expression](#constant_expression) -expression ::= -    [primary](#primary) -    \| [unary_operator](#unary_operator) \{ [attribute_instance](#attribute_instance) } [primary](#primary) -    \| [inc_or_dec_expression](#inc_or_dec_expression) -    \| `(` [operator_assignment](#operator_assignment) `)` -    \| [expression](#expression) [binary_operator](#binary_operator) \{ [attribute_instance](#attribute_instance) } [expression](#expression) -    \| [conditional_expression](#conditional_expression) -    \| [inside_expression](#inside_expression) -    \| [tagged_union_expression](#tagged_union_expression) -tagged\_union\_expression ::= -    [tagged](#tagged) [member_identifier](#member_identifier) \[ [primary](#primary) ] -inside\_expression ::= [expression](#expression) [inside](#inside) \{ [range_list](#range_list) } -mintypmax\_expression ::= -    [expression](#expression) -    \| [expression](#expression) `:` [expression](#expression) `:` [expression](#expression) -module\_path\_conditional\_expression ::= [module_path_expression](#module_path_expression) `?` \{ [attribute_instance](#attribute_instance) } -    [module_path_expression](#module_path_expression) `:` [module_path_expression](#module_path_expression) -module\_path\_expression ::= -    [module_path_primary](#module_path_primary) -    \| [unary_module_path_operator](#unary_module_path_operator) \{ [attribute_instance](#attribute_instance) } [module_path_primary](#module_path_primary) -    \| [module_path_expression](#module_path_expression) [binary_module_path_operator](#binary_module_path_operator) \{ [attribute_instance](#attribute_instance) } -    [module_path_expression](#module_path_expression) -    \| [module_path_conditional_expression](#module_path_conditional_expression) -module\_path\_mintypmax\_expression ::= -    [module_path_expression](#module_path_expression) -    \| [module_path_expression](#module_path_expression) `:` [module_path_expression](#module_path_expression) `:` [module_path_expression](#module_path_expression) -part\_select\_range ::= [constant_range](#constant_range) \| [indexed_range](#indexed_range) -indexed\_range ::= -    [expression](#expression) `+:` [constant_expression](#constant_expression) -    \| [expression](#expression) `-:` [constant_expression](#constant_expression) -genvar\_expression ::= [constant_expression](#constant_expression) +inc\_or\_dec\_expression ::= +    [inc_or_dec_operator](#inc_or_dec_operator) \{ [attribute_instance](#attribute_instance) } [variable_lvalue](#variable_lvalue) +    \| [variable_lvalue](#variable_lvalue) \{ [attribute_instance](#attribute_instance) } [inc_or_dec_operator](#inc_or_dec_operator) +conditional\_expression ::= [cond_predicate](#cond_predicate) `?` \{ [attribute_instance](#attribute_instance) } [expression](#expression) `:` [expression](#expression) +constant\_expression ::= +    [constant_primary](#constant_primary) +    \| [unary_operator](#unary_operator) \{ [attribute_instance](#attribute_instance) } [constant_primary](#constant_primary) +    \| [constant_expression](#constant_expression) [binary_operator](#binary_operator) \{ [attribute_instance](#attribute_instance) } [constant_expression](#constant_expression) +    \| [constant_expression](#constant_expression) `?` \{ [attribute_instance](#attribute_instance) } [constant_expression](#constant_expression) `:` [constant_expression](#constant_expression) +constant\_mintypmax\_expression ::= +    [constant_expression](#constant_expression) +    \| [constant_expression](#constant_expression) `:` [constant_expression](#constant_expression) `:` [constant_expression](#constant_expression) +constant\_param\_expression ::= [constant_mintypmax_expression](#constant_mintypmax_expression) \| [data_type](#data_type) \| `$` +param\_expression ::= [mintypmax_expression](#mintypmax_expression) \| [data_type](#data_type) \| `$` +constant\_range\_expression ::= [constant_expression](#constant_expression) \| [constant_part_select_range](#constant_part_select_range) +constant\_part\_select\_range ::= [constant_range](#constant_range) \| [constant_indexed_range](#constant_indexed_range) +constant\_range ::= [constant_expression](#constant_expression) `:` [constant_expression](#constant_expression) +constant\_indexed\_range ::= +    [constant_expression](#constant_expression) `+:` [constant_expression](#constant_expression) +    \| [constant_expression](#constant_expression) `-:` [constant_expression](#constant_expression) +expression ::= +    [primary](#primary) +    \| [unary_operator](#unary_operator) \{ [attribute_instance](#attribute_instance) } [primary](#primary) +    \| [inc_or_dec_expression](#inc_or_dec_expression) +    \| `(` [operator_assignment](#operator_assignment) `)` +    \| [expression](#expression) [binary_operator](#binary_operator) \{ [attribute_instance](#attribute_instance) } [expression](#expression) +    \| [conditional_expression](#conditional_expression) +    \| [inside_expression](#inside_expression) +    \| [tagged_union_expression](#tagged_union_expression) +tagged\_union\_expression ::= +    [tagged](#tagged) [member_identifier](#member_identifier) \[ [primary](#primary) ] +inside\_expression ::= [expression](#expression) [inside](#inside) \{ [range_list](#range_list) } +mintypmax\_expression ::= +    [expression](#expression) +    \| [expression](#expression) `:` [expression](#expression) `:` [expression](#expression) +module\_path\_conditional\_expression ::= [module_path_expression](#module_path_expression) `?` \{ [attribute_instance](#attribute_instance) } +    [module_path_expression](#module_path_expression) `:` [module_path_expression](#module_path_expression) +module\_path\_expression ::= +    [module_path_primary](#module_path_primary) +    \| [unary_module_path_operator](#unary_module_path_operator) \{ [attribute_instance](#attribute_instance) } [module_path_primary](#module_path_primary) +    \| [module_path_expression](#module_path_expression) [binary_module_path_operator](#binary_module_path_operator) \{ [attribute_instance](#attribute_instance) } +    [module_path_expression](#module_path_expression) +    \| [module_path_conditional_expression](#module_path_conditional_expression) +module\_path\_mintypmax\_expression ::= +    [module_path_expression](#module_path_expression) +    \| [module_path_expression](#module_path_expression) `:` [module_path_expression](#module_path_expression) `:` [module_path_expression](#module_path_expression) +part\_select\_range ::= [constant_range](#constant_range) \| [indexed_range](#indexed_range) +indexed\_range ::= +    [expression](#expression) `+:` [constant_expression](#constant_expression) +    \| [expression](#expression) `-:` [constant_expression](#constant_expression) +genvar\_expression ::= [constant_expression](#constant_expression) ### A.8.4 Primaries -constant\_primary ::= -    [primary_literal](#primary_literal) -    \| [ps_parameter_identifier](#ps_parameter_identifier) [constant_select](#constant_select) -    \| [specparam_identifier](#specparam_identifier) \[ \[ [constant_range_expression](#constant_range_expression) ] ] -    \| [genvar_identifier44](#genvar_identifier44) -    \| [formal_port_identifier](#formal_port_identifier) [constant_select](#constant_select) -    \| \[ [package_scope](#package_scope) \| [class_scope](#class_scope) ] [enum_identifier](#enum_identifier) -    \| [empty_unpacked_array_concatenation](#empty_unpacked_array_concatenation) -    \| [constant_concatenation](#constant_concatenation) \[ \[ [constant_range_expression](#constant_range_expression) ] ] -    \| [constant_multiple_concatenation](#constant_multiple_concatenation) \[ \[ [constant_range_expression](#constant_range_expression) ] ] -    \| [constant_function_call](#constant_function_call) \[ \[ [constant_range_expression](#constant_range_expression) ] ] -    \| [constant_let_expression](#constant_let_expression) -    \| `(` [constant_mintypmax_expression](#constant_mintypmax_expression) `)` -    \| [constant_cast](#constant_cast) -    \| [constant_assignment_pattern_expression](#constant_assignment_pattern_expression) -    \| [type_reference45](#type_reference45) -    \| [null](#null) -module\_path\_primary ::= -    [number](#number) -    \| [identifier](#identifier) -    \| [module_path_concatenation](#module_path_concatenation) -    \| [module_path_multiple_concatenation](#module_path_multiple_concatenation) -    \| [function_subroutine_call](#function_subroutine_call) -    \| `(` [module_path_mintypmax_expression](#module_path_mintypmax_expression) `)` -primary ::= -    [primary_literal](#primary_literal) -    \| \[ [class_qualifier](#class_qualifier) \| [package_scope](#package_scope) ] [hierarchical_identifier](#hierarchical_identifier) [select](#select) -    \| [empty_unpacked_array_concatenation](#empty_unpacked_array_concatenation) -    \| [concatenation](#concatenation) \[ \[ [range_expression](#range_expression) ] ] -    \| [multiple_concatenation](#multiple_concatenation) \[ \[ [range_expression](#range_expression) ] ] -    \| [function_subroutine_call](#function_subroutine_call) \[ \[ [range_expression](#range_expression) ] ] -    \| [let_expression](#let_expression) -    \| `(` [mintypmax_expression](#mintypmax_expression) `)` -    \| [cast](#cast) -    \| [assignment_pattern_expression](#assignment_pattern_expression) -    \| [streaming_concatenation](#streaming_concatenation) -    \| [sequence_method_call](#sequence_method_call) -    \| [this46](#this46) -    \| `$`[47](#47) -    \| [null](#null) -    [class_qualifier](#class_qualifier) `:=` \[ [local](#local) `::`[48](#48) ] \[ [implicit_class_handle](#implicit_class_handle) `.` \| [class_scope](#class_scope) ] -range\_expression ::= [expression](#expression) \| [part_select_range](#part_select_range) -primary\_literal ::= [number](#number) \| [time_literal](#time_literal) \| [unbased_unsized_literal](#unbased_unsized_literal) \| [string_literal](#string_literal) -time\_literal49 ::= -    [unsigned_number](#unsigned_number) [time_unit](#time_unit) -    \| [fixed_point_number](#fixed_point_number) [time_unit](#time_unit) -time\_unit ::= [s](#s) \| [ms](#ms) \| [us](#us) \| [ns](#ns) \| [ps](#ps) \| [fs](#fs) -implicit\_class\_handle46 ::= [this](#this) \| [super](#super) \| [this](#this) `.` [super](#super) -bit\_select ::= \{ \[ [expression](#expression) ] } -select ::= -    \[ \{ `.` [member_identifier](#member_identifier) [bit_select](#bit_select) } `.` [member_identifier](#member_identifier) ] [bit_select](#bit_select) \[ \[ [part_select_range](#part_select_range) ] ] -nonrange\_select ::= -    \[ \{ `.` [member_identifier](#member_identifier) [bit_select](#bit_select) } `.` [member_identifier](#member_identifier) ] [bit_select](#bit_select) -constant\_bit\_select ::= \{ \[ [constant_expression](#constant_expression) ] } -constant\_select ::= -    \[ \{ `.` [member_identifier](#member_identifier) [constant_bit_select](#constant_bit_select) } `.` [member_identifier](#member_identifier) ] [constant_bit_select](#constant_bit_select) -    \[ \[ [constant_part_select_range](#constant_part_select_range) ] ] -cast ::= [casting_type](#casting_type) `'` `(` [expression](#expression) `)` -constant\_cast ::= [casting_type](#casting_type) `'` `(` [constant_expression](#constant_expression) `)` -constant\_let\_expression ::= [let_expression50](#let_expression50) +constant\_primary ::= +    [primary_literal](#primary_literal) +    \| [ps_parameter_identifier](#ps_parameter_identifier) [constant_select](#constant_select) +    \| [specparam_identifier](#specparam_identifier) \[ \[ [constant_range_expression](#constant_range_expression) ] ] +    \| [genvar_identifier44](#genvar_identifier44) +    \| [formal_port_identifier](#formal_port_identifier) [constant_select](#constant_select) +    \| \[ [package_scope](#package_scope) \| [class_scope](#class_scope) ] [enum_identifier](#enum_identifier) +    \| [empty_unpacked_array_concatenation](#empty_unpacked_array_concatenation) +    \| [constant_concatenation](#constant_concatenation) \[ \[ [constant_range_expression](#constant_range_expression) ] ] +    \| [constant_multiple_concatenation](#constant_multiple_concatenation) \[ \[ [constant_range_expression](#constant_range_expression) ] ] +    \| [constant_function_call](#constant_function_call) \[ \[ [constant_range_expression](#constant_range_expression) ] ] +    \| [constant_let_expression](#constant_let_expression) +    \| `(` [constant_mintypmax_expression](#constant_mintypmax_expression) `)` +    \| [constant_cast](#constant_cast) +    \| [constant_assignment_pattern_expression](#constant_assignment_pattern_expression) +    \| [type_reference45](#type_reference45) +    \| [null](#null) +module\_path\_primary ::= +    [number](#number) +    \| [identifier](#identifier) +    \| [module_path_concatenation](#module_path_concatenation) +    \| [module_path_multiple_concatenation](#module_path_multiple_concatenation) +    \| [function_subroutine_call](#function_subroutine_call) +    \| `(` [module_path_mintypmax_expression](#module_path_mintypmax_expression) `)` +primary ::= +    [primary_literal](#primary_literal) +    \| \[ [class_qualifier](#class_qualifier) \| [package_scope](#package_scope) ] [hierarchical_identifier](#hierarchical_identifier) [select](#select) +    \| [empty_unpacked_array_concatenation](#empty_unpacked_array_concatenation) +    \| [concatenation](#concatenation) \[ \[ [range_expression](#range_expression) ] ] +    \| [multiple_concatenation](#multiple_concatenation) \[ \[ [range_expression](#range_expression) ] ] +    \| [function_subroutine_call](#function_subroutine_call) \[ \[ [range_expression](#range_expression) ] ] +    \| [let_expression](#let_expression) +    \| `(` [mintypmax_expression](#mintypmax_expression) `)` +    \| [cast](#cast) +    \| [assignment_pattern_expression](#assignment_pattern_expression) +    \| [streaming_concatenation](#streaming_concatenation) +    \| [sequence_method_call](#sequence_method_call) +    \| [this46](#this46) +    \| `$`[47](#47) +    \| [null](#null) +    [class_qualifier](#class_qualifier) `:=` \[ [local](#local) `::`[48](#48) ] \[ [implicit_class_handle](#implicit_class_handle) `.` \| [class_scope](#class_scope) ] +range\_expression ::= [expression](#expression) \| [part_select_range](#part_select_range) +primary\_literal ::= [number](#number) \| [time_literal](#time_literal) \| [unbased_unsized_literal](#unbased_unsized_literal) \| [string_literal](#string_literal) +time\_literal49 ::= +    [unsigned_number](#unsigned_number) [time_unit](#time_unit) +    \| [fixed_point_number](#fixed_point_number) [time_unit](#time_unit) +time\_unit ::= [s](#s) \| [ms](#ms) \| [us](#us) \| [ns](#ns) \| [ps](#ps) \| [fs](#fs) +implicit\_class\_handle46 ::= [this](#this) \| [super](#super) \| [this](#this) `.` [super](#super) +bit\_select ::= \{ \[ [expression](#expression) ] } +select ::= +    \[ \{ `.` [member_identifier](#member_identifier) [bit_select](#bit_select) } `.` [member_identifier](#member_identifier) ] [bit_select](#bit_select) \[ \[ [part_select_range](#part_select_range) ] ] +nonrange\_select ::= +    \[ \{ `.` [member_identifier](#member_identifier) [bit_select](#bit_select) } `.` [member_identifier](#member_identifier) ] [bit_select](#bit_select) +constant\_bit\_select ::= \{ \[ [constant_expression](#constant_expression) ] } +constant\_select ::= +    \[ \{ `.` [member_identifier](#member_identifier) [constant_bit_select](#constant_bit_select) } `.` [member_identifier](#member_identifier) ] [constant_bit_select](#constant_bit_select) +    \[ \[ [constant_part_select_range](#constant_part_select_range) ] ] +cast ::= [casting_type](#casting_type) `'` `(` [expression](#expression) `)` +constant\_cast ::= [casting_type](#casting_type) `'` `(` [constant_expression](#constant_expression) `)` +constant\_let\_expression ::= [let_expression50](#let_expression50) ### A.8.5 Expression left-side values -net\_lvalue ::= -    [ps_or_hierarchical_net_identifier](#ps_or_hierarchical_net_identifier) [constant_select](#constant_select) -    \| \{ [net_lvalue](#net_lvalue) \{ `,` [net_lvalue](#net_lvalue) } } -    \| \[ [assignment_pattern_expression_type](#assignment_pattern_expression_type) ] [assignment_pattern_net_lvalue](#assignment_pattern_net_lvalue) -variable\_lvalue ::= -    \[ [implicit_class_handle](#implicit_class_handle) `.` \| [package_scope](#package_scope) ] [hierarchical_variable_identifier](#hierarchical_variable_identifier) [select51](#select51) -    \| \{ [variable_lvalue](#variable_lvalue) \{ `,` [variable_lvalue](#variable_lvalue) } } -    \| \[ [assignment_pattern_expression_type](#assignment_pattern_expression_type) ] [assignment_pattern_variable_lvalue](#assignment_pattern_variable_lvalue) -    \| [streaming_concatenation52](#streaming_concatenation52) -nonrange\_variable\_lvalue ::= -    \[ [implicit_class_handle](#implicit_class_handle) `.` \| [package_scope](#package_scope) ] [hierarchical_variable_identifier](#hierarchical_variable_identifier) [nonrange_select](#nonrange_select) +net\_lvalue ::= +    [ps_or_hierarchical_net_identifier](#ps_or_hierarchical_net_identifier) [constant_select](#constant_select) +    \| \{ [net_lvalue](#net_lvalue) \{ `,` [net_lvalue](#net_lvalue) } } +    \| \[ [assignment_pattern_expression_type](#assignment_pattern_expression_type) ] [assignment_pattern_net_lvalue](#assignment_pattern_net_lvalue) +variable\_lvalue ::= +    \[ [implicit_class_handle](#implicit_class_handle) `.` \| [package_scope](#package_scope) ] [hierarchical_variable_identifier](#hierarchical_variable_identifier) [select51](#select51) +    \| \{ [variable_lvalue](#variable_lvalue) \{ `,` [variable_lvalue](#variable_lvalue) } } +    \| \[ [assignment_pattern_expression_type](#assignment_pattern_expression_type) ] [assignment_pattern_variable_lvalue](#assignment_pattern_variable_lvalue) +    \| [streaming_concatenation52](#streaming_concatenation52) +nonrange\_variable\_lvalue ::= +    \[ [implicit_class_handle](#implicit_class_handle) `.` \| [package_scope](#package_scope) ] [hierarchical_variable_identifier](#hierarchical_variable_identifier) [nonrange_select](#nonrange_select) ### A.8.6 Operators -unary\_operator ::= `+` \| `-` \| `!` \| `~` \| `&` \| `~&` \| \| \| `~|` \| `^` \| `~^` \| `^~` -binary\_operator ::= -    `+` \| `-` \| `*` \| `/` \| `%` \| `==` \| `!=` \| `===` \| `!==` \| `==?` \| `!=?` \| `&&` \| `||` \| `**` -    \| `<` \| `<=` \| `>` \| `>=` \| `&` \| \| \| `^` \| `^~` \| `~^` \| `>>` \| `<<` \| `>>>` \| `<<<` `|->` \| `<->` -inc\_or\_dec\_operator ::= `++` \| `--` -unary\_module\_path\_operator ::= `!` \| `~` \| `&` \| `~&` \| \| \| `~|` \| `^` \| `~^` \| `^~` -binary\_module\_path\_operator ::= `==` \| `!=` \| `&&` \| `||` \| `&` \| \| \| `^` \| `^~` \| `~^` +unary\_operator ::= `+` \| `-` \| `!` \| `~` \| `&` \| `~&` \| \| \| `~|` \| `^` \| `~^` \| `^~` +binary\_operator ::= +    `+` \| `-` \| `*` \| `/` \| `%` \| `==` \| `!=` \| `===` \| `!==` \| `==?` \| `!=?` \| `&&` \| `||` \| `**` +    \| `<` \| `<=` \| `>` \| `>=` \| `&` \| \| \| `^` \| `^~` \| `~^` \| `>>` \| `<<` \| `>>>` \| `<<<` `|->` \| `<->` +inc\_or\_dec\_operator ::= `++` \| `--` +unary\_module\_path\_operator ::= `!` \| `~` \| `&` \| `~&` \| \| \| `~|` \| `^` \| `~^` \| `^~` +binary\_module\_path\_operator ::= `==` \| `!=` \| `&&` \| `||` \| `&` \| \| \| `^` \| `^~` \| `~^` ### A.8.7 Numbers -number ::= -    [integral_number](#integral_number) -    \| [real_number](#real_number) -integral\_number ::= -    [decimal_number](#decimal_number) -    \| [octal_number](#octal_number) -    \| [binary_number](#binary_number) -    \| [hex_number](#hex_number) -decimal\_number ::= -    [unsigned_number](#unsigned_number) -    \| \[ [size](#size) ] [decimal_base](#decimal_base) [unsigned_number](#unsigned_number) -    \| \[ [size](#size) ] [decimal_base](#decimal_base) [x_digit](#x_digit) \{ [_](#_) } -    \| \[ [size](#size) ] [decimal_base](#decimal_base) [z_digit](#z_digit) \{ [_](#_) } -binary\_number ::= \[ [size](#size) ] [binary_base](#binary_base) [binary_value](#binary_value) -octal\_number ::= \[ [size](#size) ] [octal_base](#octal_base) [octal_value](#octal_value) -hex\_number ::= \[ [size](#size) ] [hex_base](#hex_base) [hex_value](#hex_value) -sign ::= `+` \| `-` -size ::= [unsigned_number](#unsigned_number) -real\_number38 ::= -    [fixed_point_number](#fixed_point_number) -    \| [unsigned_number](#unsigned_number) \[ `.` [unsigned_number](#unsigned_number) ] [exp](#exp) \[ [sign](#sign) ] [unsigned_number](#unsigned_number) -fixed\_point\_number38 ::= [unsigned_number](#unsigned_number) `.` [unsigned_number](#unsigned_number) -exp ::= [e](#e) \| [E](#E) -unsigned\_number38 ::= [decimal_digit](#decimal_digit) \{ [_](#_) \| [decimal_digit](#decimal_digit) } -binary\_value38 ::= [binary_digit](#binary_digit) \{ [_](#_) \| [binary_digit](#binary_digit) } -octal\_value38 ::= [octal_digit](#octal_digit) \{ [_](#_) \| [octal_digit](#octal_digit) } -hex\_value38 ::= [hex_digit](#hex_digit) \{ [_](#_) \| [hex_digit](#hex_digit) } -decimal\_base38 ::= `'[`[s](#s)\|[S](#S)][d](#d) \| `'[`[s](#s)\|[S](#S)][D](#D) -binary\_base38 ::= `'[`[s](#s)\|[S](#S)][b](#b) \| `'[`[s](#s)\|[S](#S)][B](#B) -octal\_base38 ::= `'[`[s](#s)\|[S](#S)][o](#o) \| `'[`[s](#s)\|[S](#S)][O](#O) -hex\_base38 ::= `'[`[s](#s)\|[S](#S)][h](#h) \| `'[`[s](#s)\|[S](#S)][H](#H) -decimal\_digit ::= [0](#0) \| [1](#1) \| [2](#2) \| [3](#3) \| [4](#4) \| [5](#5) \| [6](#6) \| [7](#7) \| [8](#8) \| [9](#9) -binary\_digit ::= [x_digit](#x_digit) \| [z_digit](#z_digit) \| [0](#0) \| [1](#1) -octal\_digit ::= [x_digit](#x_digit) \| [z_digit](#z_digit) \| [0](#0) \| [1](#1) \| [2](#2) \| [3](#3) \| [4](#4) \| [5](#5) \| [6](#6) \| [7](#7) -hex\_digit ::= [x_digit](#x_digit) \| [z_digit](#z_digit) \| [0](#0) \| [1](#1) \| [2](#2) \| [3](#3) \| [4](#4) \| [5](#5) \| [6](#6) \| [7](#7) \| [8](#8) \| [9](#9) \| [a](#a) \| [b](#b) \| [c](#c) \| [d](#d) \| [e](#e) \| [f](#f) \| [A](#A) \| [B](#B) \| [C](#C) \| [D](#D) \| [E](#E) \| [F](#F) -x\_digit ::= [x](#x) \| [X](#X) -z\_digit ::= [z](#z) \| [Z](#Z) \| `?` -unbased\_unsized\_literal ::= `'`[0](#0) \| `'`[1](#1) \| `'`[z_or_x](#z_or_x) [53](#53) +number ::= +    [integral_number](#integral_number) +    \| [real_number](#real_number) +integral\_number ::= +    [decimal_number](#decimal_number) +    \| [octal_number](#octal_number) +    \| [binary_number](#binary_number) +    \| [hex_number](#hex_number) +decimal\_number ::= +    [unsigned_number](#unsigned_number) +    \| \[ [size](#size) ] [decimal_base](#decimal_base) [unsigned_number](#unsigned_number) +    \| \[ [size](#size) ] [decimal_base](#decimal_base) [x_digit](#x_digit) \{ [_](#_) } +    \| \[ [size](#size) ] [decimal_base](#decimal_base) [z_digit](#z_digit) \{ [_](#_) } +binary\_number ::= \[ [size](#size) ] [binary_base](#binary_base) [binary_value](#binary_value) +octal\_number ::= \[ [size](#size) ] [octal_base](#octal_base) [octal_value](#octal_value) +hex\_number ::= \[ [size](#size) ] [hex_base](#hex_base) [hex_value](#hex_value) +sign ::= `+` \| `-` +size ::= [unsigned_number](#unsigned_number) +real\_number38 ::= +    [fixed_point_number](#fixed_point_number) +    \| [unsigned_number](#unsigned_number) \[ `.` [unsigned_number](#unsigned_number) ] [exp](#exp) \[ [sign](#sign) ] [unsigned_number](#unsigned_number) +fixed\_point\_number38 ::= [unsigned_number](#unsigned_number) `.` [unsigned_number](#unsigned_number) +exp ::= [e](#e) \| [E](#E) +unsigned\_number38 ::= [decimal_digit](#decimal_digit) \{ [_](#_) \| [decimal_digit](#decimal_digit) } +binary\_value38 ::= [binary_digit](#binary_digit) \{ [_](#_) \| [binary_digit](#binary_digit) } +octal\_value38 ::= [octal_digit](#octal_digit) \{ [_](#_) \| [octal_digit](#octal_digit) } +hex\_value38 ::= [hex_digit](#hex_digit) \{ [_](#_) \| [hex_digit](#hex_digit) } +decimal\_base38 ::= `'[`[s](#s)\|[S](#S)][d](#d) \| `'[`[s](#s)\|[S](#S)][D](#D) +binary\_base38 ::= `'[`[s](#s)\|[S](#S)][b](#b) \| `'[`[s](#s)\|[S](#S)][B](#B) +octal\_base38 ::= `'[`[s](#s)\|[S](#S)][o](#o) \| `'[`[s](#s)\|[S](#S)][O](#O) +hex\_base38 ::= `'[`[s](#s)\|[S](#S)][h](#h) \| `'[`[s](#s)\|[S](#S)][H](#H) +decimal\_digit ::= [0](#0) \| [1](#1) \| [2](#2) \| [3](#3) \| [4](#4) \| [5](#5) \| [6](#6) \| [7](#7) \| [8](#8) \| [9](#9) +binary\_digit ::= [x_digit](#x_digit) \| [z_digit](#z_digit) \| [0](#0) \| [1](#1) +octal\_digit ::= [x_digit](#x_digit) \| [z_digit](#z_digit) \| [0](#0) \| [1](#1) \| [2](#2) \| [3](#3) \| [4](#4) \| [5](#5) \| [6](#6) \| [7](#7) +hex\_digit ::= [x_digit](#x_digit) \| [z_digit](#z_digit) \| [0](#0) \| [1](#1) \| [2](#2) \| [3](#3) \| [4](#4) \| [5](#5) \| [6](#6) \| [7](#7) \| [8](#8) \| [9](#9) \| [a](#a) \| [b](#b) \| [c](#c) \| [d](#d) \| [e](#e) \| [f](#f) \| [A](#A) \| [B](#B) \| [C](#C) \| [D](#D) \| [E](#E) \| [F](#F) +x\_digit ::= [x](#x) \| [X](#X) +z\_digit ::= [z](#z) \| [Z](#Z) \| `?` +unbased\_unsized\_literal ::= `'`[0](#0) \| `'`[1](#1) \| `'`[z_or_x](#z_or_x) [53](#53) ### A.8.8 Strings -string\_literal ::= -    [quoted_string](#quoted_string) -    \| [triple_quoted_string](#triple_quoted_string) -quoted\_string ::= `"` \{ [quoted_string_item](#quoted_string_item) \| [string_escape_seq](#string_escape_seq) } `"` -triple\_quoted\_string ::= `"""` \{ [triple_quoted_string_item](#triple_quoted_string_item) \| [string_escape_seq](#string_escape_seq) } `"""` -quoted\_string\_item ::= [any_ASCII_character](#any_ASCII_character) [except](#except) `\` [or](#or) [newline](#newline) [or](#or) `"` -triple\_quoted\_string\_item ::= [any_ASCII_character](#any_ASCII_character) [except](#except) `\` -string\_escape\_seq ::= -    `\`[any_ASCII_character](#any_ASCII_character) -    \| `\`[one_to_three_digit_octal_number](#one_to_three_digit_octal_number) -    \| `\`[x](#x) [one_to_two_digit_hex_number](#one_to_two_digit_hex_number) +string\_literal ::= +    [quoted_string](#quoted_string) +    \| [triple_quoted_string](#triple_quoted_string) +quoted\_string ::= `"` \{ [quoted_string_item](#quoted_string_item) \| [string_escape_seq](#string_escape_seq) } `"` +triple\_quoted\_string ::= `"""` \{ [triple_quoted_string_item](#triple_quoted_string_item) \| [string_escape_seq](#string_escape_seq) } `"""` +quoted\_string\_item ::= [any_ASCII_character](#any_ASCII_character) [except](#except) `\` [or](#or) [newline](#newline) [or](#or) `"` +triple\_quoted\_string\_item ::= [any_ASCII_character](#any_ASCII_character) [except](#except) `\` +string\_escape\_seq ::= +    `\`[any_ASCII_character](#any_ASCII_character) +    \| `\`[one_to_three_digit_octal_number](#one_to_three_digit_octal_number) +    \| `\`[x](#x) [one_to_two_digit_hex_number](#one_to_two_digit_hex_number) ## A.9 General ### A.9.1 Attributes -attribute\_instance ::= `(*` [attr_spec](#attr_spec) \{ `,` [attr_spec](#attr_spec) } `*)` -attr\_spec ::= [attr_name](#attr_name) \[ `=` [constant_expression](#constant_expression) ] -attr\_name ::= [identifier](#identifier) +attribute\_instance ::= `(*` [attr_spec](#attr_spec) \{ `,` [attr_spec](#attr_spec) } `*)` +attr\_spec ::= [attr_name](#attr_name) \[ `=` [constant_expression](#constant_expression) ] +attr\_name ::= [identifier](#identifier) ### A.9.2 Comments -comment ::= -    [one_line_comment](#one_line_comment) -    \| [block_comment](#block_comment) -one\_line\_comment ::= `//` [comment_text](#comment_text) `\`[n](#n) -block\_comment ::= `/*` [comment_text](#comment_text) `*/` -comment\_text ::= \{ [Any_ASCII_character](#Any_ASCII_character) } +comment ::= +    [one_line_comment](#one_line_comment) +    \| [block_comment](#block_comment) +one\_line\_comment ::= `//` [comment_text](#comment_text) `\`[n](#n) +block\_comment ::= `/*` [comment_text](#comment_text) `*/` +comment\_text ::= \{ [Any_ASCII_character](#Any_ASCII_character) } ### A.9.3 Identifiers -array\_identifier ::= [identifier](#identifier) -block\_identifier ::= [identifier](#identifier) -bin\_identifier ::= [identifier](#identifier) -c\_identifier54 ::= \[ [a](#a)`-`[zA](#zA)`-`[Z_](#Z_) ] \{ \[ [a](#a)`-`[zA](#zA)`-`[Z0](#Z0)`-`[9_](#9_) ] } -cell\_identifier ::= [identifier](#identifier) -checker\_identifier ::= [identifier](#identifier) -class\_identifier ::= [identifier](#identifier) -class\_variable\_identifier ::= [variable_identifier](#variable_identifier) -clocking\_identifier ::= [identifier](#identifier) -config\_identifier ::= [identifier](#identifier) -const\_identifier ::= [identifier](#identifier) -constraint\_identifier ::= [identifier](#identifier) -covergroup\_identifier ::= [identifier](#identifier) -covergroup\_variable\_identifier ::= [variable_identifier](#variable_identifier) -cover\_point\_identifier ::= [identifier](#identifier) -cross\_identifier ::= [identifier](#identifier) -dynamic\_array\_variable\_identifier ::= [variable_identifier](#variable_identifier) -enum\_identifier ::= [identifier](#identifier) -escaped\_identifier ::= `\` \{ [any_printable_ASCII_character_except_white_space](#any_printable_ASCII_character_except_white_space) } [white_space](#white_space) -formal\_identifier ::= [identifier](#identifier) -formal\_port\_identifier ::= [identifier](#identifier) -function\_identifier ::= [identifier](#identifier) -generate\_block\_identifier ::= [identifier](#identifier) -genvar\_identifier ::= [identifier](#identifier) -hierarchical\_array\_identifier ::= [hierarchical_identifier](#hierarchical_identifier) -hierarchical\_block\_identifier ::= [hierarchical_identifier](#hierarchical_identifier) -hierarchical\_event\_identifier ::= [hierarchical_identifier](#hierarchical_identifier) -hierarchical\_identifier ::= \[ `$`[root](#root) `.` ] \{ [identifier](#identifier) [constant_bit_select](#constant_bit_select) `.` } [identifier](#identifier) -hierarchical\_net\_identifier ::= [hierarchical_identifier](#hierarchical_identifier) -hierarchical\_parameter\_identifier ::= [hierarchical_identifier](#hierarchical_identifier) -hierarchical\_property\_identifier ::= [hierarchical_identifier](#hierarchical_identifier) -hierarchical\_sequence\_identifier ::= [hierarchical_identifier](#hierarchical_identifier) -hierarchical\_task\_identifier ::= [hierarchical_identifier](#hierarchical_identifier) -hierarchical\_tf\_identifier ::= [hierarchical_identifier](#hierarchical_identifier) -hierarchical\_variable\_identifier ::= [hierarchical_identifier](#hierarchical_identifier) -identifier ::= [simple_identifier](#simple_identifier) \| [escaped_identifier](#escaped_identifier) -index\_variable\_identifier ::= [identifier](#identifier) -interface\_identifier ::= [identifier](#identifier) -interface\_port\_identifier ::= [identifier](#identifier) -inout\_port\_identifier ::= [identifier](#identifier) -input\_port\_identifier ::= [identifier](#identifier) -instance\_identifier ::= [identifier](#identifier) -library\_identifier ::= [identifier](#identifier) -member\_identifier ::= [identifier](#identifier) -method\_identifier ::= [identifier](#identifier) -modport\_identifier ::= [identifier](#identifier) -module\_identifier ::= [identifier](#identifier) -net\_identifier ::= [identifier](#identifier) -nettype\_identifier ::= [identifier](#identifier) -output\_port\_identifier ::= [identifier](#identifier) -package\_identifier ::= [identifier](#identifier) -package\_scope ::= -    [package_identifier](#package_identifier) `::` -    \| `$`[unit](#unit) `::` -parameter\_identifier ::= [identifier](#identifier) -port\_identifier ::= [identifier](#identifier) -program\_identifier ::= [identifier](#identifier) -property\_identifier ::= [identifier](#identifier) -ps\_class\_identifier ::= \[ [package_scope](#package_scope) ] [class_identifier](#class_identifier) -ps\_covergroup\_identifier ::= \[ [package_scope](#package_scope) ] [covergroup_identifier](#covergroup_identifier) -ps\_checker\_identifier ::= \[ [package_scope](#package_scope) ] [checker_identifier](#checker_identifier) -ps\_identifier ::= \[ [package_scope](#package_scope) ] [identifier](#identifier) -ps\_or\_hierarchical\_array\_identifier ::= -    \[ [implicit_class_handle](#implicit_class_handle) `.` \| [class_scope](#class_scope) \| [package_scope](#package_scope) ] [hierarchical_array_identifier](#hierarchical_array_identifier) -ps\_or\_hierarchical\_net\_identifier ::= -    \[ [package_scope](#package_scope) ] [net_identifier](#net_identifier) -    \| [hierarchical_net_identifier](#hierarchical_net_identifier) -ps\_or\_hierarchical\_property\_identifier ::= -    \[ [package_scope](#package_scope) ] [property_identifier](#property_identifier) -    \| [hierarchical_property_identifier](#hierarchical_property_identifier) -ps\_or\_hierarchical\_sequence\_identifier ::= -    \[ [package_scope](#package_scope) ] [sequence_identifier](#sequence_identifier) -    \| [hierarchical_sequence_identifier](#hierarchical_sequence_identifier) -ps\_or\_hierarchical\_tf\_identifier ::= -    \[ [package_scope](#package_scope) ] [tf_identifier](#tf_identifier) -    \| [hierarchical_tf_identifier](#hierarchical_tf_identifier) -ps\_parameter\_identifier ::= -    \[ [package_scope](#package_scope) \| [class_scope](#class_scope) ] [parameter_identifier](#parameter_identifier) -    \| \{ [generate_block_identifier](#generate_block_identifier) \[ \[ [constant_expression](#constant_expression) ] ] `.` } [parameter_identifier](#parameter_identifier) -ps\_type\_identifier ::= \[ [local](#local) `::`[48](#48) \| [package_scope](#package_scope) \| [class_scope](#class_scope) ] [type_identifier](#type_identifier) -rs\_production\_identifier ::= [identifier](#identifier) -sequence\_identifier ::= [identifier](#identifier) -signal\_identifier ::= [identifier](#identifier) -simple\_identifier54 ::= \[ [a](#a)`-`[zA](#zA)`-`[Z_](#Z_) ] \{ \[ [a](#a)`-`[zA](#zA)`-`[Z0](#Z0)`-`[9_](#9_)`$` ] } -specparam\_identifier ::= [identifier](#identifier) -system\_tf\_identifier55 ::= `$[` [a](#a)`-`[zA](#zA)`-`[Z0](#Z0)`-`[9_](#9_)`$` `]{` \[ [a](#a)`-`[zA](#zA)`-`[Z0](#Z0)`-`[9_](#9_)`$` ] } -task\_identifier ::= [identifier](#identifier) -tf\_identifier ::= [identifier](#identifier) -terminal\_identifier ::= [identifier](#identifier) -topmodule\_identifier ::= [identifier](#identifier) -type\_identifier ::= [identifier](#identifier) -udp\_identifier ::= [identifier](#identifier) -variable\_identifier ::= [identifier](#identifier) +array\_identifier ::= [identifier](#identifier) +block\_identifier ::= [identifier](#identifier) +bin\_identifier ::= [identifier](#identifier) +c\_identifier54 ::= \[ [a](#a)`-`[zA](#zA)`-`[Z_](#Z_) ] \{ \[ [a](#a)`-`[zA](#zA)`-`[Z0](#Z0)`-`[9_](#9_) ] } +cell\_identifier ::= [identifier](#identifier) +checker\_identifier ::= [identifier](#identifier) +class\_identifier ::= [identifier](#identifier) +class\_variable\_identifier ::= [variable_identifier](#variable_identifier) +clocking\_identifier ::= [identifier](#identifier) +config\_identifier ::= [identifier](#identifier) +const\_identifier ::= [identifier](#identifier) +constraint\_identifier ::= [identifier](#identifier) +covergroup\_identifier ::= [identifier](#identifier) +covergroup\_variable\_identifier ::= [variable_identifier](#variable_identifier) +cover\_point\_identifier ::= [identifier](#identifier) +cross\_identifier ::= [identifier](#identifier) +dynamic\_array\_variable\_identifier ::= [variable_identifier](#variable_identifier) +enum\_identifier ::= [identifier](#identifier) +escaped\_identifier ::= `\` \{ [any_printable_ASCII_character_except_white_space](#any_printable_ASCII_character_except_white_space) } [white_space](#white_space) +formal\_identifier ::= [identifier](#identifier) +formal\_port\_identifier ::= [identifier](#identifier) +function\_identifier ::= [identifier](#identifier) +generate\_block\_identifier ::= [identifier](#identifier) +genvar\_identifier ::= [identifier](#identifier) +hierarchical\_array\_identifier ::= [hierarchical_identifier](#hierarchical_identifier) +hierarchical\_block\_identifier ::= [hierarchical_identifier](#hierarchical_identifier) +hierarchical\_event\_identifier ::= [hierarchical_identifier](#hierarchical_identifier) +hierarchical\_identifier ::= \[ `$`[root](#root) `.` ] \{ [identifier](#identifier) [constant_bit_select](#constant_bit_select) `.` } [identifier](#identifier) +hierarchical\_net\_identifier ::= [hierarchical_identifier](#hierarchical_identifier) +hierarchical\_parameter\_identifier ::= [hierarchical_identifier](#hierarchical_identifier) +hierarchical\_property\_identifier ::= [hierarchical_identifier](#hierarchical_identifier) +hierarchical\_sequence\_identifier ::= [hierarchical_identifier](#hierarchical_identifier) +hierarchical\_task\_identifier ::= [hierarchical_identifier](#hierarchical_identifier) +hierarchical\_tf\_identifier ::= [hierarchical_identifier](#hierarchical_identifier) +hierarchical\_variable\_identifier ::= [hierarchical_identifier](#hierarchical_identifier) +identifier ::= [simple_identifier](#simple_identifier) \| [escaped_identifier](#escaped_identifier) +index\_variable\_identifier ::= [identifier](#identifier) +interface\_identifier ::= [identifier](#identifier) +interface\_port\_identifier ::= [identifier](#identifier) +inout\_port\_identifier ::= [identifier](#identifier) +input\_port\_identifier ::= [identifier](#identifier) +instance\_identifier ::= [identifier](#identifier) +library\_identifier ::= [identifier](#identifier) +member\_identifier ::= [identifier](#identifier) +method\_identifier ::= [identifier](#identifier) +modport\_identifier ::= [identifier](#identifier) +module\_identifier ::= [identifier](#identifier) +net\_identifier ::= [identifier](#identifier) +nettype\_identifier ::= [identifier](#identifier) +output\_port\_identifier ::= [identifier](#identifier) +package\_identifier ::= [identifier](#identifier) +package\_scope ::= +    [package_identifier](#package_identifier) `::` +    \| `$`[unit](#unit) `::` +parameter\_identifier ::= [identifier](#identifier) +port\_identifier ::= [identifier](#identifier) +program\_identifier ::= [identifier](#identifier) +property\_identifier ::= [identifier](#identifier) +ps\_class\_identifier ::= \[ [package_scope](#package_scope) ] [class_identifier](#class_identifier) +ps\_covergroup\_identifier ::= \[ [package_scope](#package_scope) ] [covergroup_identifier](#covergroup_identifier) +ps\_checker\_identifier ::= \[ [package_scope](#package_scope) ] [checker_identifier](#checker_identifier) +ps\_identifier ::= \[ [package_scope](#package_scope) ] [identifier](#identifier) +ps\_or\_hierarchical\_array\_identifier ::= +    \[ [implicit_class_handle](#implicit_class_handle) `.` \| [class_scope](#class_scope) \| [package_scope](#package_scope) ] [hierarchical_array_identifier](#hierarchical_array_identifier) +ps\_or\_hierarchical\_net\_identifier ::= +    \[ [package_scope](#package_scope) ] [net_identifier](#net_identifier) +    \| [hierarchical_net_identifier](#hierarchical_net_identifier) +ps\_or\_hierarchical\_property\_identifier ::= +    \[ [package_scope](#package_scope) ] [property_identifier](#property_identifier) +    \| [hierarchical_property_identifier](#hierarchical_property_identifier) +ps\_or\_hierarchical\_sequence\_identifier ::= +    \[ [package_scope](#package_scope) ] [sequence_identifier](#sequence_identifier) +    \| [hierarchical_sequence_identifier](#hierarchical_sequence_identifier) +ps\_or\_hierarchical\_tf\_identifier ::= +    \[ [package_scope](#package_scope) ] [tf_identifier](#tf_identifier) +    \| [hierarchical_tf_identifier](#hierarchical_tf_identifier) +ps\_parameter\_identifier ::= +    \[ [package_scope](#package_scope) \| [class_scope](#class_scope) ] [parameter_identifier](#parameter_identifier) +    \| \{ [generate_block_identifier](#generate_block_identifier) \[ \[ [constant_expression](#constant_expression) ] ] `.` } [parameter_identifier](#parameter_identifier) +ps\_type\_identifier ::= \[ [local](#local) `::`[48](#48) \| [package_scope](#package_scope) \| [class_scope](#class_scope) ] [type_identifier](#type_identifier) +rs\_production\_identifier ::= [identifier](#identifier) +sequence\_identifier ::= [identifier](#identifier) +signal\_identifier ::= [identifier](#identifier) +simple\_identifier54 ::= \[ [a](#a)`-`[zA](#zA)`-`[Z_](#Z_) ] \{ \[ [a](#a)`-`[zA](#zA)`-`[Z0](#Z0)`-`[9_](#9_)`$` ] } +specparam\_identifier ::= [identifier](#identifier) +system\_tf\_identifier55 ::= `$[` [a](#a)`-`[zA](#zA)`-`[Z0](#Z0)`-`[9_](#9_)`$` `]{` \[ [a](#a)`-`[zA](#zA)`-`[Z0](#Z0)`-`[9_](#9_)`$` ] } +task\_identifier ::= [identifier](#identifier) +tf\_identifier ::= [identifier](#identifier) +terminal\_identifier ::= [identifier](#identifier) +topmodule\_identifier ::= [identifier](#identifier) +type\_identifier ::= [identifier](#identifier) +udp\_identifier ::= [identifier](#identifier) +variable\_identifier ::= [identifier](#identifier) ### A.9.4 White space -white\_space ::= [space](#space) \| [tab](#tab) \| [newline](#newline) \| [formfeed](#formfeed) \| [eof56](#eof56) +white\_space ::= [space](#space) \| [tab](#tab) \| [newline](#newline) \| [formfeed](#formfeed) \| [eof56](#eof56) diff --git a/docs/grammar_sdf.md b/docs/grammar_sdf.md index 640c1c1e3..b6fa82b0e 100644 --- a/docs/grammar_sdf.md +++ b/docs/grammar_sdf.md @@ -1,144 +1,144 @@ # Standard Delay Format (SDF) ## A.1 Formal syntax definition -    [The](#The) [formal](#formal) [syntax](#syntax) [of](#of) [SDF](#SDF) [is](#is) [described](#described) [using](#using) [Backus](#Backus)`-`[Naur](#Naur) `(`[BNF](#BNF)`).` -    [Lexical](#Lexical) [elements](#elements) [are](#are) [shown](#shown) [italicized](#italicized)`.` [All](#All) [leaf](#leaf) [characters](#characters) [are](#are) [shown](#shown) [in](#in) [bold](#bold)`.` [Keywords](#Keywords) [are](#are) [shown](#shown) [in](#in) [uppercase](#uppercase) [bold](#bold) `(`[for](#for) [example](#example)`,` [IOPATH](#IOPATH)`)` [for](#for) [easy](#easy) [identification](#identification)`,` [but](#but) [are](#are) [case](#case) [insensitive](#insensitive)`.` +    [The](#The) [formal](#formal) [syntax](#syntax) [of](#of) [SDF](#SDF) [is](#is) [described](#described) [using](#using) [Backus](#Backus)`-`[Naur](#Naur) `(`[BNF](#BNF)`).` +    [Lexical](#Lexical) [elements](#elements) [are](#are) [shown](#shown) [italicized](#italicized)`.` [All](#All) [leaf](#leaf) [characters](#characters) [are](#are) [shown](#shown) [in](#in) [bold](#bold)`.` [Keywords](#Keywords) [are](#are) [shown](#shown) [in](#in) [uppercase](#uppercase) [bold](#bold) `(`[for](#for) [example](#example)`,` [IOPATH](#IOPATH)`)` [for](#for) [easy](#easy) [identification](#identification)`,` [but](#but) [are](#are) [case](#case) [insensitive](#insensitive)`.` ### A.1.1 SDF delay file and header -delay\_file ::= `(` [DELAYFILE](#DELAYFILE) [sdf_header](#sdf_header) [cell](#cell) \{ [cell](#cell) } `)` -sdf\_header ::= -    [sdf_version](#sdf_version) \[ [design_name](#design_name) ] \[ [date](#date) ] \[ [vendor](#vendor) ] \[ [program_name](#program_name) ] \[ [program_version](#program_version) ] \[[hierarchy_divider](#hierarchy_divider) ] \[ [voltage](#voltage) ] \[ [process](#process) ] \[[temperature](#temperature) ] \[ [time_scale](#time_scale) ] -sdf\_version ::= `(` [SDFVERSION](#SDFVERSION) [qstring](#qstring) `)` -design\_name ::= `(` [DESIGN](#DESIGN) [qstring](#qstring) `)` -date ::= `(` [DATE](#DATE) [qstring](#qstring) `)` -vendor ::= `(` [VENDOR](#VENDOR) [qstring](#qstring) `)` -program\_name ::= `(` [PROGRAM](#PROGRAM) [qstring](#qstring) `)` -program\_version ::= `(` [VERSION](#VERSION) [qstring](#qstring) `)` -hierarchy\_divider ::= `(` [DIVIDER](#DIVIDER) [hchar](#hchar) `)` -voltage ::= `(` [VOLTAGE](#VOLTAGE) [rtriple](#rtriple) `)` \| `(` [VOLTAGE](#VOLTAGE) [signed_real_number](#signed_real_number) `)` -process ::= `(` [PROCESS](#PROCESS) [qstring](#qstring) `)` -temperature ::= `(` [TEMPERATURE](#TEMPERATURE) [rtriple](#rtriple) `)` \| `(` [TEMPERATURE](#TEMPERATURE) [signed_real_number](#signed_real_number) `)` -time\_scale ::= `(` [TIMESCALE](#TIMESCALE) [timescale_number](#timescale_number) [timescale_unit](#timescale_unit) `)` -timescale\_number ::= [1](#1) \| [10](#10) \| [100](#100) \| [1](#1)`.`[0](#0) \| [10](#10)`.`[0](#0) \| [100](#100)`.`[0](#0) -timescale\_unit ::= [s](#s) \| [ms](#ms) \| [us](#us) \| [ns](#ns) \| [ps](#ps) \| [fs](#fs) +delay\_file ::= `(` [DELAYFILE](#DELAYFILE) [sdf_header](#sdf_header) [cell](#cell) \{ [cell](#cell) } `)` +sdf\_header ::= +    [sdf_version](#sdf_version) \[ [design_name](#design_name) ] \[ [date](#date) ] \[ [vendor](#vendor) ] \[ [program_name](#program_name) ] \[ [program_version](#program_version) ] \[[hierarchy_divider](#hierarchy_divider) ] \[ [voltage](#voltage) ] \[ [process](#process) ] \[[temperature](#temperature) ] \[ [time_scale](#time_scale) ] +sdf\_version ::= `(` [SDFVERSION](#SDFVERSION) [qstring](#qstring) `)` +design\_name ::= `(` [DESIGN](#DESIGN) [qstring](#qstring) `)` +date ::= `(` [DATE](#DATE) [qstring](#qstring) `)` +vendor ::= `(` [VENDOR](#VENDOR) [qstring](#qstring) `)` +program\_name ::= `(` [PROGRAM](#PROGRAM) [qstring](#qstring) `)` +program\_version ::= `(` [VERSION](#VERSION) [qstring](#qstring) `)` +hierarchy\_divider ::= `(` [DIVIDER](#DIVIDER) [hchar](#hchar) `)` +voltage ::= `(` [VOLTAGE](#VOLTAGE) [rtriple](#rtriple) `)` \| `(` [VOLTAGE](#VOLTAGE) [signed_real_number](#signed_real_number) `)` +process ::= `(` [PROCESS](#PROCESS) [qstring](#qstring) `)` +temperature ::= `(` [TEMPERATURE](#TEMPERATURE) [rtriple](#rtriple) `)` \| `(` [TEMPERATURE](#TEMPERATURE) [signed_real_number](#signed_real_number) `)` +time\_scale ::= `(` [TIMESCALE](#TIMESCALE) [timescale_number](#timescale_number) [timescale_unit](#timescale_unit) `)` +timescale\_number ::= [1](#1) \| [10](#10) \| [100](#100) \| [1](#1)`.`[0](#0) \| [10](#10)`.`[0](#0) \| [100](#100)`.`[0](#0) +timescale\_unit ::= [s](#s) \| [ms](#ms) \| [us](#us) \| [ns](#ns) \| [ps](#ps) \| [fs](#fs) ### A.1.2 Cells -cell ::= `(` [CELL](#CELL) [celltype](#celltype) [cell_instance](#cell_instance) \{ [timing_spec](#timing_spec) } `)` -celltype ::= `(` [CELLTYPE](#CELLTYPE) [qstring](#qstring) `)` -cell\_instance ::= `(` [INSTANCE](#INSTANCE) \[ [hierarchical_identifier](#hierarchical_identifier) ] `)` \| `(` [INSTANCE](#INSTANCE) `*` `)` +cell ::= `(` [CELL](#CELL) [celltype](#celltype) [cell_instance](#cell_instance) \{ [timing_spec](#timing_spec) } `)` +celltype ::= `(` [CELLTYPE](#CELLTYPE) [qstring](#qstring) `)` +cell\_instance ::= `(` [INSTANCE](#INSTANCE) \[ [hierarchical_identifier](#hierarchical_identifier) ] `)` \| `(` [INSTANCE](#INSTANCE) `*` `)` ### A.1.3 Timing specifications -timing\_spec ::= [del_spec](#del_spec) \| [tc_spec](#tc_spec) \| [lbl_spec](#lbl_spec) \| [te_spec](#te_spec) -del\_spec ::= `(` [DELAY](#DELAY) [deltype](#deltype) \{ [deltype](#deltype) } `)` -tc\_spec ::= `(` [TIMINGCHECK](#TIMINGCHECK) [tchk_def](#tchk_def) \{ [tchk_def](#tchk_def) } `)` -te\_spec ::= `(` [TIMINGENV](#TIMINGENV) [te_def](#te_def) \{ [te_def](#te_def) } `)` -lbl\_spec ::= `(` [LABEL](#LABEL) [lbl_type](#lbl_type) \{ [lbl_type](#lbl_type) } `)` -deltype ::= \| [absolute_deltype](#absolute_deltype) \| [increment_deltype](#increment_deltype) \| [pathpulse_deltype](#pathpulse_deltype) \| [pathpulsepercent_deltype](#pathpulsepercent_deltype) -pathpulse\_deltype ::= `(` [PATHPULSE](#PATHPULSE) \[ [input_output_path](#input_output_path) ] [value](#value) \[ [value](#value) ] `)` -pathpulsepercent\_deltype ::= `(` [PATHPULSEPERCENT](#PATHPULSEPERCENT) \[ [input_output_path](#input_output_path) ] [value](#value) \[ [value](#value) ] `)` -absolute\_deltype ::= `(` [ABSOLUTE](#ABSOLUTE) [del_def](#del_def) \{ [del_def](#del_def) } `)` -increment\_deltype ::= `(` [INCREMENT](#INCREMENT) [del_def](#del_def) \{ [del_def](#del_def) } `)` -input\_output\_path ::= [port_instance](#port_instance) [port_instance](#port_instance) -del\_def ::= [iopath_def](#iopath_def) \| [cond_def](#cond_def) \| [condelse_def](#condelse_def) \| [port_del](#port_del) \| [interconnect_def](#interconnect_def) \| [netdelay_def](#netdelay_def) \| [device_def](#device_def) -iopath\_def ::= `(` [IOPATH](#IOPATH) [port_spec](#port_spec) [port_instance](#port_instance) \{ [retain_def](#retain_def) } [delval_list](#delval_list) `)` -retain\_def ::= `(` [RETAIN](#RETAIN) [retval_list](#retval_list) `)` -cond\_def ::= `(` [COND](#COND) \[ [qstring](#qstring) ] [conditional_port_expr](#conditional_port_expr) [iopath_def](#iopath_def) `)` -condelse\_def ::= `(` [CONDELSE](#CONDELSE) [iopath_def](#iopath_def) `)` -port\_def ::= `(` [PORT](#PORT) [port_instance](#port_instance) [delval_list](#delval_list) `)` -interconnect\_def ::= `(` [INTERCONNECT](#INTERCONNECT) [port_instance](#port_instance) [port_instance](#port_instance) [delval_list](#delval_list) `)` -netdelay\_def ::= `(` [NETDELAY](#NETDELAY) [net_spec](#net_spec) [delval_list](#delval_list) `)` -device\_def ::= `(` [DEVICE](#DEVICE) \[ [port_instance](#port_instance) ] [delval_list](#delval_list) `)` -tchk\_def ::= [setup_timing_check](#setup_timing_check) \| [hold_timing_check](#hold_timing_check) \| [setuphold_timing_check](#setuphold_timing_check) \| [recovery_timing_check](#recovery_timing_check) \| [removal_timing_check](#removal_timing_check) \| [recrem_timing_check](#recrem_timing_check) \| [skew_timing_check](#skew_timing_check) \| [bidirectskew_timing_check](#bidirectskew_timing_check) \| [width_timing_check](#width_timing_check) \| [period_timing_check](#period_timing_check) \| [nochange_timing_check](#nochange_timing_check) -setup\_timing\_check ::= `(` [SETUP](#SETUP) [port_tchk](#port_tchk) [port_tchk](#port_tchk) [value](#value) `)` -hold\_timing\_check ::= `(` [HOLD](#HOLD) [port_tchk](#port_tchk) [port_tchk](#port_tchk) [value](#value) `)` -setuphold\_timing\_check ::= `(` [SETUPHOLD](#SETUPHOLD) [port_tchk](#port_tchk) [port_tchk](#port_tchk) [rvalue](#rvalue) [rvalue](#rvalue) `)` \| `(` [SETUPHOLD](#SETUPHOLD) [port_spec](#port_spec) [port_spec](#port_spec) [rvalue](#rvalue) [rvalue](#rvalue) \[ [scond](#scond) ] \[ [ccond](#ccond) ] `)` -recovery\_timing\_check ::= `(` [RECOVERY](#RECOVERY) [port_tchk](#port_tchk) [port_tchk](#port_tchk) [value](#value) `)` -removal\_timing\_check ::= `(` [REMOVAL](#REMOVAL) [port_tchk](#port_tchk) [port_tchk](#port_tchk) [value](#value) `)` -recrem\_timing\_check ::= `(` [RECREM](#RECREM) [port_tchk](#port_tchk) [port_tchk](#port_tchk) [rvalue](#rvalue) [rvalue](#rvalue) `)` \| `(` [RECREM](#RECREM) [port_spec](#port_spec) [port_spec](#port_spec) [rvalue](#rvalue) [rvalue](#rvalue) \[ [scond](#scond) ] \[ [ccond](#ccond) ] `)` -skew\_timing\_check ::= `(` [SKEW](#SKEW) [port_tchk](#port_tchk) [port_tchk](#port_tchk) [rvalue](#rvalue) `)` -bidirectskew\_timing\_check ::= `(` [BIDIRECTSKEW](#BIDIRECTSKEW) [port_tchk](#port_tchk) [port_tchk](#port_tchk) [value](#value) [value](#value) `)` -width\_timing\_check ::= `(` [WIDTH](#WIDTH) [port_tchk](#port_tchk) [value](#value) `)` -period\_timing\_check ::= `(` [PERIOD](#PERIOD) [port_tchk](#port_tchk) [value](#value) `)` -nochange\_timing\_check ::= `(` [NOCHANGE](#NOCHANGE) [port_tchk](#port_tchk) [port_tchk](#port_tchk) [rvalue](#rvalue) [rvalue](#rvalue) `)` -port\_tchk ::= [port_spec](#port_spec) \| `(` [COND](#COND) \[ [qstring](#qstring) ] [timing_check_condition](#timing_check_condition) [port_spec](#port_spec) `)` -scond ::= `(` [SCOND](#SCOND) \[ [qstring](#qstring) ] [timing_check_condition](#timing_check_condition) `)` -ccond ::= `(` [CCOND](#CCOND) \[ [qstring](#qstring) ] [timing_check_condition](#timing_check_condition) `)` -te\_def ::= [cns_def](#cns_def) \| [tenv_def](#tenv_def) -cns\_def ::= [path_constraint](#path_constraint) \| [period_constraint](#period_constraint) \| [sum_constraint](#sum_constraint) \| [diff_constraint](#diff_constraint) \| [skew_constraint](#skew_constraint) -path\_constraint ::= `(` [PATHCONSTRAINT](#PATHCONSTRAINT) \[ [name](#name) ] [port_instance](#port_instance) [port_instance](#port_instance) \{ [port_instance](#port_instance) } [rvalue](#rvalue) [rvalue](#rvalue) `)` -period\_constraint ::=`(` [PERIODCONSTRAINT](#PERIODCONSTRAINT) [port_instance](#port_instance) [value](#value) \[ [exception](#exception) ] `)` -sum\_constraint ::= `(` [SUM](#SUM) [constraint_path](#constraint_path) [constraint_path](#constraint_path) \{ [constraint_path](#constraint_path) } [rvalue](#rvalue) \[ [rvalue](#rvalue) ] `)` -diff\_constraint ::= `(` [DIFF](#DIFF) [constraint_path](#constraint_path) [constraint_path](#constraint_path) [value](#value) \[ [value](#value) ] `)` -skew\_constraint ::= `(` [SKEWCONSTRAINT](#SKEWCONSTRAINT) [port_spec](#port_spec) [value](#value) `)` -exception ::= `(` [EXCEPTION](#EXCEPTION) [cell_instance](#cell_instance) \{ [cell_instance](#cell_instance) } `)` -name ::= `(` [NAME](#NAME) \[ [qstring](#qstring) ] `)` -constraint\_path ::= `(` [port_instance](#port_instance) [port_instance](#port_instance) `)` -tenv\_def ::= [arrival_env](#arrival_env) \| [departure_env](#departure_env) \| [slack_env](#slack_env) \| [waveform_env](#waveform_env) -arrival\_env ::= `(` [ARRIVAL](#ARRIVAL) \[ [port_edge](#port_edge) ] [port_instance](#port_instance) [rvalue](#rvalue) [rvalue](#rvalue) [rvalue](#rvalue) [rvalue](#rvalue) `)` -departure\_env ::= `(` [DEPARTURE](#DEPARTURE) \[ [port_edge](#port_edge) ] [port_instance](#port_instance) [rvalue](#rvalue) [rvalue](#rvalue) [rvalue](#rvalue) [rvalue](#rvalue) `)` -slack\_env ::= `(` [SLACK](#SLACK) [port_instance](#port_instance) [rvalue](#rvalue) [rvalue](#rvalue) [rvalue](#rvalue) [rvalue](#rvalue) \[ [real_number](#real_number) ] `)` -waveform\_env ::= `(` [WAVEFORM](#WAVEFORM) [port_instance](#port_instance) [real_number](#real_number) [edge_list](#edge_list) `)` -edge\_list ::= [pos_pair](#pos_pair) \{ [pos_pair](#pos_pair) } \| [neg_pair](#neg_pair) \{ [neg_pair](#neg_pair) } -pos\_pair ::= `(` [posedge](#posedge) [signed_real_number](#signed_real_number) \[ [signed_real_number](#signed_real_number) ] `)` `(` [negedge](#negedge) [signed_real_number](#signed_real_number) \[ [signed_real_number](#signed_real_number) ] `)` -neg\_pair ::= `(` [negedge](#negedge) [signed_real_number](#signed_real_number) \[ [signed_real_number](#signed_real_number) ] `)` `(` [posedge](#posedge) [signed_real_number](#signed_real_number) \[ [signed_real_number](#signed_real_number) ] `)` -lbl\_type ::= `(` [INCREMENT](#INCREMENT) [lbl_def](#lbl_def) \{ [lbl_def](#lbl_def) } `)` \| `(` [ABSOLUTE](#ABSOLUTE) [lbl_def](#lbl_def) \{ [lbl_def](#lbl_def) } `)` -lbl\_def ::= `(` [identifier](#identifier) [delval_list](#delval_list) `)` -port\_spec ::= [port_instance](#port_instance) \| [port_edge](#port_edge) -port\_edge ::= `(` [edge_identifier](#edge_identifier) [port_instance](#port_instance) `)` -edge\_identifier ::= [posedge](#posedge) \| [negedge](#negedge) \| [01](#01) \| [10](#10) \| [0z](#0z) \| [z1](#z1) \| [1z](#1z) \| [z0](#z0) -port\_instance ::= [port](#port) \| [hierarchical_identifier](#hierarchical_identifier) [hchar](#hchar) [port](#port) -port ::= [scalar_port](#scalar_port) \| [bus_port](#bus_port) -scalar\_port ::= [hierarchical_identifier](#hierarchical_identifier) \| [hierarchical_identifier](#hierarchical_identifier) \[ [integer](#integer) ] -bus\_port ::= [hierarchical_identifier](#hierarchical_identifier) \[ [integer](#integer) `:` [integer](#integer) ] -net\_spec ::= [port_instance](#port_instance) \| [net_instance](#net_instance) -net\_instance ::= [net](#net) \| [hierarchical_identifier](#hierarchical_identifier) [hier_divider_char](#hier_divider_char) [net](#net) -net ::= [scalar_net](#scalar_net) \| [bus_net](#bus_net) -scalar\_net ::= [hierarchical_identifier](#hierarchical_identifier) \| [hierarchical_identifier](#hierarchical_identifier) \[ [integer](#integer) ] -bus\_net ::= [hierarchical_identifier](#hierarchical_identifier) \[ [integer](#integer) `:` [integer](#integer) ] +timing\_spec ::= [del_spec](#del_spec) \| [tc_spec](#tc_spec) \| [lbl_spec](#lbl_spec) \| [te_spec](#te_spec) +del\_spec ::= `(` [DELAY](#DELAY) [deltype](#deltype) \{ [deltype](#deltype) } `)` +tc\_spec ::= `(` [TIMINGCHECK](#TIMINGCHECK) [tchk_def](#tchk_def) \{ [tchk_def](#tchk_def) } `)` +te\_spec ::= `(` [TIMINGENV](#TIMINGENV) [te_def](#te_def) \{ [te_def](#te_def) } `)` +lbl\_spec ::= `(` [LABEL](#LABEL) [lbl_type](#lbl_type) \{ [lbl_type](#lbl_type) } `)` +deltype ::= \| [absolute_deltype](#absolute_deltype) \| [increment_deltype](#increment_deltype) \| [pathpulse_deltype](#pathpulse_deltype) \| [pathpulsepercent_deltype](#pathpulsepercent_deltype) +pathpulse\_deltype ::= `(` [PATHPULSE](#PATHPULSE) \[ [input_output_path](#input_output_path) ] [value](#value) \[ [value](#value) ] `)` +pathpulsepercent\_deltype ::= `(` [PATHPULSEPERCENT](#PATHPULSEPERCENT) \[ [input_output_path](#input_output_path) ] [value](#value) \[ [value](#value) ] `)` +absolute\_deltype ::= `(` [ABSOLUTE](#ABSOLUTE) [del_def](#del_def) \{ [del_def](#del_def) } `)` +increment\_deltype ::= `(` [INCREMENT](#INCREMENT) [del_def](#del_def) \{ [del_def](#del_def) } `)` +input\_output\_path ::= [port_instance](#port_instance) [port_instance](#port_instance) +del\_def ::= [iopath_def](#iopath_def) \| [cond_def](#cond_def) \| [condelse_def](#condelse_def) \| [port_del](#port_del) \| [interconnect_def](#interconnect_def) \| [netdelay_def](#netdelay_def) \| [device_def](#device_def) +iopath\_def ::= `(` [IOPATH](#IOPATH) [port_spec](#port_spec) [port_instance](#port_instance) \{ [retain_def](#retain_def) } [delval_list](#delval_list) `)` +retain\_def ::= `(` [RETAIN](#RETAIN) [retval_list](#retval_list) `)` +cond\_def ::= `(` [COND](#COND) \[ [qstring](#qstring) ] [conditional_port_expr](#conditional_port_expr) [iopath_def](#iopath_def) `)` +condelse\_def ::= `(` [CONDELSE](#CONDELSE) [iopath_def](#iopath_def) `)` +port\_def ::= `(` [PORT](#PORT) [port_instance](#port_instance) [delval_list](#delval_list) `)` +interconnect\_def ::= `(` [INTERCONNECT](#INTERCONNECT) [port_instance](#port_instance) [port_instance](#port_instance) [delval_list](#delval_list) `)` +netdelay\_def ::= `(` [NETDELAY](#NETDELAY) [net_spec](#net_spec) [delval_list](#delval_list) `)` +device\_def ::= `(` [DEVICE](#DEVICE) \[ [port_instance](#port_instance) ] [delval_list](#delval_list) `)` +tchk\_def ::= [setup_timing_check](#setup_timing_check) \| [hold_timing_check](#hold_timing_check) \| [setuphold_timing_check](#setuphold_timing_check) \| [recovery_timing_check](#recovery_timing_check) \| [removal_timing_check](#removal_timing_check) \| [recrem_timing_check](#recrem_timing_check) \| [skew_timing_check](#skew_timing_check) \| [bidirectskew_timing_check](#bidirectskew_timing_check) \| [width_timing_check](#width_timing_check) \| [period_timing_check](#period_timing_check) \| [nochange_timing_check](#nochange_timing_check) +setup\_timing\_check ::= `(` [SETUP](#SETUP) [port_tchk](#port_tchk) [port_tchk](#port_tchk) [value](#value) `)` +hold\_timing\_check ::= `(` [HOLD](#HOLD) [port_tchk](#port_tchk) [port_tchk](#port_tchk) [value](#value) `)` +setuphold\_timing\_check ::= `(` [SETUPHOLD](#SETUPHOLD) [port_tchk](#port_tchk) [port_tchk](#port_tchk) [rvalue](#rvalue) [rvalue](#rvalue) `)` \| `(` [SETUPHOLD](#SETUPHOLD) [port_spec](#port_spec) [port_spec](#port_spec) [rvalue](#rvalue) [rvalue](#rvalue) \[ [scond](#scond) ] \[ [ccond](#ccond) ] `)` +recovery\_timing\_check ::= `(` [RECOVERY](#RECOVERY) [port_tchk](#port_tchk) [port_tchk](#port_tchk) [value](#value) `)` +removal\_timing\_check ::= `(` [REMOVAL](#REMOVAL) [port_tchk](#port_tchk) [port_tchk](#port_tchk) [value](#value) `)` +recrem\_timing\_check ::= `(` [RECREM](#RECREM) [port_tchk](#port_tchk) [port_tchk](#port_tchk) [rvalue](#rvalue) [rvalue](#rvalue) `)` \| `(` [RECREM](#RECREM) [port_spec](#port_spec) [port_spec](#port_spec) [rvalue](#rvalue) [rvalue](#rvalue) \[ [scond](#scond) ] \[ [ccond](#ccond) ] `)` +skew\_timing\_check ::= `(` [SKEW](#SKEW) [port_tchk](#port_tchk) [port_tchk](#port_tchk) [rvalue](#rvalue) `)` +bidirectskew\_timing\_check ::= `(` [BIDIRECTSKEW](#BIDIRECTSKEW) [port_tchk](#port_tchk) [port_tchk](#port_tchk) [value](#value) [value](#value) `)` +width\_timing\_check ::= `(` [WIDTH](#WIDTH) [port_tchk](#port_tchk) [value](#value) `)` +period\_timing\_check ::= `(` [PERIOD](#PERIOD) [port_tchk](#port_tchk) [value](#value) `)` +nochange\_timing\_check ::= `(` [NOCHANGE](#NOCHANGE) [port_tchk](#port_tchk) [port_tchk](#port_tchk) [rvalue](#rvalue) [rvalue](#rvalue) `)` +port\_tchk ::= [port_spec](#port_spec) \| `(` [COND](#COND) \[ [qstring](#qstring) ] [timing_check_condition](#timing_check_condition) [port_spec](#port_spec) `)` +scond ::= `(` [SCOND](#SCOND) \[ [qstring](#qstring) ] [timing_check_condition](#timing_check_condition) `)` +ccond ::= `(` [CCOND](#CCOND) \[ [qstring](#qstring) ] [timing_check_condition](#timing_check_condition) `)` +te\_def ::= [cns_def](#cns_def) \| [tenv_def](#tenv_def) +cns\_def ::= [path_constraint](#path_constraint) \| [period_constraint](#period_constraint) \| [sum_constraint](#sum_constraint) \| [diff_constraint](#diff_constraint) \| [skew_constraint](#skew_constraint) +path\_constraint ::= `(` [PATHCONSTRAINT](#PATHCONSTRAINT) \[ [name](#name) ] [port_instance](#port_instance) [port_instance](#port_instance) \{ [port_instance](#port_instance) } [rvalue](#rvalue) [rvalue](#rvalue) `)` +period\_constraint ::=`(` [PERIODCONSTRAINT](#PERIODCONSTRAINT) [port_instance](#port_instance) [value](#value) \[ [exception](#exception) ] `)` +sum\_constraint ::= `(` [SUM](#SUM) [constraint_path](#constraint_path) [constraint_path](#constraint_path) \{ [constraint_path](#constraint_path) } [rvalue](#rvalue) \[ [rvalue](#rvalue) ] `)` +diff\_constraint ::= `(` [DIFF](#DIFF) [constraint_path](#constraint_path) [constraint_path](#constraint_path) [value](#value) \[ [value](#value) ] `)` +skew\_constraint ::= `(` [SKEWCONSTRAINT](#SKEWCONSTRAINT) [port_spec](#port_spec) [value](#value) `)` +exception ::= `(` [EXCEPTION](#EXCEPTION) [cell_instance](#cell_instance) \{ [cell_instance](#cell_instance) } `)` +name ::= `(` [NAME](#NAME) \[ [qstring](#qstring) ] `)` +constraint\_path ::= `(` [port_instance](#port_instance) [port_instance](#port_instance) `)` +tenv\_def ::= [arrival_env](#arrival_env) \| [departure_env](#departure_env) \| [slack_env](#slack_env) \| [waveform_env](#waveform_env) +arrival\_env ::= `(` [ARRIVAL](#ARRIVAL) \[ [port_edge](#port_edge) ] [port_instance](#port_instance) [rvalue](#rvalue) [rvalue](#rvalue) [rvalue](#rvalue) [rvalue](#rvalue) `)` +departure\_env ::= `(` [DEPARTURE](#DEPARTURE) \[ [port_edge](#port_edge) ] [port_instance](#port_instance) [rvalue](#rvalue) [rvalue](#rvalue) [rvalue](#rvalue) [rvalue](#rvalue) `)` +slack\_env ::= `(` [SLACK](#SLACK) [port_instance](#port_instance) [rvalue](#rvalue) [rvalue](#rvalue) [rvalue](#rvalue) [rvalue](#rvalue) \[ [real_number](#real_number) ] `)` +waveform\_env ::= `(` [WAVEFORM](#WAVEFORM) [port_instance](#port_instance) [real_number](#real_number) [edge_list](#edge_list) `)` +edge\_list ::= [pos_pair](#pos_pair) \{ [pos_pair](#pos_pair) } \| [neg_pair](#neg_pair) \{ [neg_pair](#neg_pair) } +pos\_pair ::= `(` [posedge](#posedge) [signed_real_number](#signed_real_number) \[ [signed_real_number](#signed_real_number) ] `)` `(` [negedge](#negedge) [signed_real_number](#signed_real_number) \[ [signed_real_number](#signed_real_number) ] `)` +neg\_pair ::= `(` [negedge](#negedge) [signed_real_number](#signed_real_number) \[ [signed_real_number](#signed_real_number) ] `)` `(` [posedge](#posedge) [signed_real_number](#signed_real_number) \[ [signed_real_number](#signed_real_number) ] `)` +lbl\_type ::= `(` [INCREMENT](#INCREMENT) [lbl_def](#lbl_def) \{ [lbl_def](#lbl_def) } `)` \| `(` [ABSOLUTE](#ABSOLUTE) [lbl_def](#lbl_def) \{ [lbl_def](#lbl_def) } `)` +lbl\_def ::= `(` [identifier](#identifier) [delval_list](#delval_list) `)` +port\_spec ::= [port_instance](#port_instance) \| [port_edge](#port_edge) +port\_edge ::= `(` [edge_identifier](#edge_identifier) [port_instance](#port_instance) `)` +edge\_identifier ::= [posedge](#posedge) \| [negedge](#negedge) \| [01](#01) \| [10](#10) \| [0z](#0z) \| [z1](#z1) \| [1z](#1z) \| [z0](#z0) +port\_instance ::= [port](#port) \| [hierarchical_identifier](#hierarchical_identifier) [hchar](#hchar) [port](#port) +port ::= [scalar_port](#scalar_port) \| [bus_port](#bus_port) +scalar\_port ::= [hierarchical_identifier](#hierarchical_identifier) \| [hierarchical_identifier](#hierarchical_identifier) \[ [integer](#integer) ] +bus\_port ::= [hierarchical_identifier](#hierarchical_identifier) \[ [integer](#integer) `:` [integer](#integer) ] +net\_spec ::= [port_instance](#port_instance) \| [net_instance](#net_instance) +net\_instance ::= [net](#net) \| [hierarchical_identifier](#hierarchical_identifier) [hier_divider_char](#hier_divider_char) [net](#net) +net ::= [scalar_net](#scalar_net) \| [bus_net](#bus_net) +scalar\_net ::= [hierarchical_identifier](#hierarchical_identifier) \| [hierarchical_identifier](#hierarchical_identifier) \[ [integer](#integer) ] +bus\_net ::= [hierarchical_identifier](#hierarchical_identifier) \[ [integer](#integer) `:` [integer](#integer) ] ### A.1.4 Data values -value ::= `(` \[ [real_number](#real_number) ] `)` \| `(` \[[triple](#triple)] `)` -triple ::= [real_number](#real_number) `:` \[ [real_number](#real_number) ] `:` \[ [real_number](#real_number) ] \| \[ [real_number](#real_number) ] `:` [real_number](#real_number) `:` \[ [real_number](#real_number) ] \| \[ [real_number](#real_number) ] `:` \[ [real_number](#real_number) ] `:` [real_number](#real_number) -rvalue ::= `(` \[ [signed_real_number](#signed_real_number) ] `)` \| `(` \[ [rtriple](#rtriple) ] `)` -rtriple ::= [signed_real_number](#signed_real_number) `:` \[ [signed_real_number](#signed_real_number) ] `:` \[ [signed_real_number](#signed_real_number) ] \| \[ [signed_real_number](#signed_real_number) ] `:` [signed_real_number](#signed_real_number) `:` \[ [signed_real_number](#signed_real_number) ] \| \[ [signed_real_number](#signed_real_number) ] `:` \[ [signed_real_number](#signed_real_number) ] `:` [signed_real_number](#signed_real_number) -delval ::= [rvalue](#rvalue) \| `(` [rvalue](#rvalue) [rvalue](#rvalue) `)` \| `(` [rvalue](#rvalue) [rvalue](#rvalue) [rvalue](#rvalue) `)` -delval\_list ::= [delval](#delval) \| [delval](#delval) [delval](#delval) \| [delval](#delval) [delval](#delval) [delval](#delval) \| [delval](#delval) [delval](#delval) [delval](#delval) [delval](#delval) \[ [delval](#delval) ] \[ [delval](#delval) ] \| [delval](#delval) [delval](#delval) [delval](#delval) [delval](#delval) [delval](#delval) [delval](#delval) [delval](#delval) \[ [delval](#delval) ] \[ [delval](#delval) ] \[ [delval](#delval) ] \[ [delval](#delval) ] \[ [delval](#delval) ] -retval\_list ::= [delval](#delval) \| [delval](#delval) [delval](#delval) \| [delval](#delval) [delval](#delval) [delval](#delval) +value ::= `(` \[ [real_number](#real_number) ] `)` \| `(` \[[triple](#triple)] `)` +triple ::= [real_number](#real_number) `:` \[ [real_number](#real_number) ] `:` \[ [real_number](#real_number) ] \| \[ [real_number](#real_number) ] `:` [real_number](#real_number) `:` \[ [real_number](#real_number) ] \| \[ [real_number](#real_number) ] `:` \[ [real_number](#real_number) ] `:` [real_number](#real_number) +rvalue ::= `(` \[ [signed_real_number](#signed_real_number) ] `)` \| `(` \[ [rtriple](#rtriple) ] `)` +rtriple ::= [signed_real_number](#signed_real_number) `:` \[ [signed_real_number](#signed_real_number) ] `:` \[ [signed_real_number](#signed_real_number) ] \| \[ [signed_real_number](#signed_real_number) ] `:` [signed_real_number](#signed_real_number) `:` \[ [signed_real_number](#signed_real_number) ] \| \[ [signed_real_number](#signed_real_number) ] `:` \[ [signed_real_number](#signed_real_number) ] `:` [signed_real_number](#signed_real_number) +delval ::= [rvalue](#rvalue) \| `(` [rvalue](#rvalue) [rvalue](#rvalue) `)` \| `(` [rvalue](#rvalue) [rvalue](#rvalue) [rvalue](#rvalue) `)` +delval\_list ::= [delval](#delval) \| [delval](#delval) [delval](#delval) \| [delval](#delval) [delval](#delval) [delval](#delval) \| [delval](#delval) [delval](#delval) [delval](#delval) [delval](#delval) \[ [delval](#delval) ] \[ [delval](#delval) ] \| [delval](#delval) [delval](#delval) [delval](#delval) [delval](#delval) [delval](#delval) [delval](#delval) [delval](#delval) \[ [delval](#delval) ] \[ [delval](#delval) ] \[ [delval](#delval) ] \[ [delval](#delval) ] \[ [delval](#delval) ] +retval\_list ::= [delval](#delval) \| [delval](#delval) [delval](#delval) \| [delval](#delval) [delval](#delval) [delval](#delval) ### A.1.5 Conditions for path delays -conditional\_port\_expr ::= [simple_expression](#simple_expression) \| `(` [conditional_port_expr](#conditional_port_expr) `)` \| [unary_operator](#unary_operator) `(` [conditional_port_expr](#conditional_port_expr) `)` \| [conditional_port_expr](#conditional_port_expr) [binary_operator](#binary_operator) [conditional_port_expr](#conditional_port_expr) -simple\_expression ::= `(` [simple_expression](#simple_expression) `)` \| [unary_operator](#unary_operator) `(` [simple_expression](#simple_expression) `)` \| [port](#port) \| [unary_operator](#unary_operator) [port](#port) \| [scalar_constant](#scalar_constant) \| [unary_operator](#unary_operator) [scalar_constant](#scalar_constant) \| [simple_expression](#simple_expression) `?` [simple_expression](#simple_expression) `:` [simple_expression](#simple_expression) \| \{ [simple_expression](#simple_expression) \[ [concat_expression](#concat_expression) ] } \| \{ [simple_expression](#simple_expression) \{ [simple_expression](#simple_expression) \[ [concat_expression](#concat_expression) ] } } -concat\_expression ::= `,` [simple_expression](#simple_expression) +conditional\_port\_expr ::= [simple_expression](#simple_expression) \| `(` [conditional_port_expr](#conditional_port_expr) `)` \| [unary_operator](#unary_operator) `(` [conditional_port_expr](#conditional_port_expr) `)` \| [conditional_port_expr](#conditional_port_expr) [binary_operator](#binary_operator) [conditional_port_expr](#conditional_port_expr) +simple\_expression ::= `(` [simple_expression](#simple_expression) `)` \| [unary_operator](#unary_operator) `(` [simple_expression](#simple_expression) `)` \| [port](#port) \| [unary_operator](#unary_operator) [port](#port) \| [scalar_constant](#scalar_constant) \| [unary_operator](#unary_operator) [scalar_constant](#scalar_constant) \| [simple_expression](#simple_expression) `?` [simple_expression](#simple_expression) `:` [simple_expression](#simple_expression) \| \{ [simple_expression](#simple_expression) \[ [concat_expression](#concat_expression) ] } \| \{ [simple_expression](#simple_expression) \{ [simple_expression](#simple_expression) \[ [concat_expression](#concat_expression) ] } } +concat\_expression ::= `,` [simple_expression](#simple_expression) ### A.1.6 Conditions for timing checks -timing\_check\_condition ::= [scalar_node](#scalar_node) \| [inversion_operator](#inversion_operator) [scalar_node](#scalar_node) \| [scalar_node](#scalar_node) [equality_operator](#equality_operator) [scalar_constant](#scalar_constant) -scalar\_node ::= [scalar_port](#scalar_port) \| [scalar_net](#scalar_net) -scalar\_net ::= [hierarchical_identifier](#hierarchical_identifier) +timing\_check\_condition ::= [scalar_node](#scalar_node) \| [inversion_operator](#inversion_operator) [scalar_node](#scalar_node) \| [scalar_node](#scalar_node) [equality_operator](#equality_operator) [scalar_constant](#scalar_constant) +scalar\_node ::= [scalar_port](#scalar_port) \| [scalar_net](#scalar_net) +scalar\_net ::= [hierarchical_identifier](#hierarchical_identifier) ### A.1.7 Fundamental lexical elements -    [White](#White) [space](#space) [is](#is) [normally](#normally) [permitted](#permitted) [between](#between) [lexical](#lexical) [tokens](#tokens)`,` [but](#but) [not](#not) [within](#within) [the](#the) [definitions](#definitions) [in](#in) [A](#A)`.`[1](#1)`.`[7](#7)`.` -identifier ::= [character](#character) \{ [character](#character) } -hierarchical\_identifier ::=[identifier](#identifier) \{ [hchar](#hchar) [identifier](#identifier) } -qstring ::= `"` \{ [any_character](#any_character) } `"` -integer ::= [decimal_digit](#decimal_digit) \{ [decimal_digit](#decimal_digit) } -real\_number ::= [integer](#integer) \| [integer](#integer) \[ `.` [integer](#integer) ] \| [integer](#integer) \[ `.` [integer](#integer) ] [e](#e) \[ [sign](#sign) ] [integer](#integer) -signed\_real\_number ::= \[ [sign](#sign) ] [real_number](#real_number) -sign ::= `+` \| `-` -hchar ::= `.` \| `/` -character ::= [alphanumeric](#alphanumeric) \| [escaped_character](#escaped_character) -escaped\_character ::= `\` [character](#character) \| `\` [special_character](#special_character) \| `\"` -any\_character ::= [character](#character) \| [special_character](#special_character) \| `\"` -decimal\_digit ::= [0](#0) \| [1](#1) \| [2](#2) \| [3](#3) \| [4](#4) \| [5](#5) \| [6](#6) \| [7](#7) \| [8](#8) \| [9](#9) -alphanumeric ::= [a](#a) \| [b](#b) \| [c](#c) \| [d](#d) \| [e](#e) \| [f](#f) \| [g](#g) \| [h](#h) \| [i](#i) \| [j](#j) \| [k](#k) \| [l](#l) \| [m](#m) \| [n](#n) \| [o](#o) \| [p](#p) \| [q](#q) \| [r](#r) \| [s](#s) \| [t](#t) \| [u](#u) \| [v](#v) \| [w](#w) \| [x](#x) \| [y](#y) \| [z](#z) \| [A](#A) \| [B](#B) \| [C](#C) \| [D](#D) \| [E](#E) \| [F](#F) \| [G](#G) \| [H](#H) \| [I](#I) \| [J](#J) \| [K](#K) \| [L](#L) \| [M](#M) \| [N](#N) \| [O](#O) \| [P](#P) \| [Q](#Q) \| [R](#R) \| [S](#S) \| [T](#T) \| [U](#U) \| [V](#V) \| [W](#W) \| [X](#X) \| [Y](#Y) \| [Z](#Z) \| [_](#_) \| `$` \| [decimal_digit](#decimal_digit) -special\_character ::= `!` \| `#` \| `%` \| `&` \| `«` \| `(` \| `)` \| `*` \| `+` \| `,` \| `-` \| `.` \| `/` \| `:` \| `;` \| `<` \| `=` \| `>` \| `?` \| `@` \| \[ \| `\` \| ] \| `^` \| `‘` \| \{ \| \| \| } \| `~` +    [White](#White) [space](#space) [is](#is) [normally](#normally) [permitted](#permitted) [between](#between) [lexical](#lexical) [tokens](#tokens)`,` [but](#but) [not](#not) [within](#within) [the](#the) [definitions](#definitions) [in](#in) [A](#A)`.`[1](#1)`.`[7](#7)`.` +identifier ::= [character](#character) \{ [character](#character) } +hierarchical\_identifier ::=[identifier](#identifier) \{ [hchar](#hchar) [identifier](#identifier) } +qstring ::= `"` \{ [any_character](#any_character) } `"` +integer ::= [decimal_digit](#decimal_digit) \{ [decimal_digit](#decimal_digit) } +real\_number ::= [integer](#integer) \| [integer](#integer) \[ `.` [integer](#integer) ] \| [integer](#integer) \[ `.` [integer](#integer) ] [e](#e) \[ [sign](#sign) ] [integer](#integer) +signed\_real\_number ::= \[ [sign](#sign) ] [real_number](#real_number) +sign ::= `+` \| `-` +hchar ::= `.` \| `/` +character ::= [alphanumeric](#alphanumeric) \| [escaped_character](#escaped_character) +escaped\_character ::= `\` [character](#character) \| `\` [special_character](#special_character) \| `\"` +any\_character ::= [character](#character) \| [special_character](#special_character) \| `\"` +decimal\_digit ::= [0](#0) \| [1](#1) \| [2](#2) \| [3](#3) \| [4](#4) \| [5](#5) \| [6](#6) \| [7](#7) \| [8](#8) \| [9](#9) +alphanumeric ::= [a](#a) \| [b](#b) \| [c](#c) \| [d](#d) \| [e](#e) \| [f](#f) \| [g](#g) \| [h](#h) \| [i](#i) \| [j](#j) \| [k](#k) \| [l](#l) \| [m](#m) \| [n](#n) \| [o](#o) \| [p](#p) \| [q](#q) \| [r](#r) \| [s](#s) \| [t](#t) \| [u](#u) \| [v](#v) \| [w](#w) \| [x](#x) \| [y](#y) \| [z](#z) \| [A](#A) \| [B](#B) \| [C](#C) \| [D](#D) \| [E](#E) \| [F](#F) \| [G](#G) \| [H](#H) \| [I](#I) \| [J](#J) \| [K](#K) \| [L](#L) \| [M](#M) \| [N](#N) \| [O](#O) \| [P](#P) \| [Q](#Q) \| [R](#R) \| [S](#S) \| [T](#T) \| [U](#U) \| [V](#V) \| [W](#W) \| [X](#X) \| [Y](#Y) \| [Z](#Z) \| [_](#_) \| `$` \| [decimal_digit](#decimal_digit) +special\_character ::= `!` \| `#` \| `%` \| `&` \| `«` \| `(` \| `)` \| `*` \| `+` \| `,` \| `-` \| `.` \| `/` \| `:` \| `;` \| `<` \| `=` \| `>` \| `?` \| `@` \| \[ \| `\` \| ] \| `^` \| `‘` \| \{ \| \| \| } \| `~` ### A.1.8 Constants for expressions -scalar\_constant ::= [0](#0) \| [b0](#b0) \| [B0](#B0) \| [1](#1) [b0](#b0) \| [1](#1) [B0](#B0) \| [1](#1) \| [b1](#b1) \| [B1](#B1) \| [1](#1) [b1](#b1) \| [1](#1) [B1](#B1) +scalar\_constant ::= [0](#0) \| [b0](#b0) \| [B0](#B0) \| [1](#1) [b0](#b0) \| [1](#1) [B0](#B0) \| [1](#1) \| [b1](#b1) \| [B1](#B1) \| [1](#1) [b1](#b1) \| [1](#1) [B1](#B1) ### A.1.9 Operators for expressions -unary\_operator ::= `+` \| `-` \| `!` \| `~` \| `&` \| `~&` \| \| \| `~|` \| `^` \| `^~` \| `~^` -inversion\_operator ::= `!` \| `~` -binary\_operator ::= `+` \| `-` \| `*` \| `/` \| `%` \| `==` \| `!=` \| `===` \| `!==` \| `&&` \| `||` \| `<` \| `<=` \| `>` \| `>=` \| `&` \| \| \| `^` \| `^~` \| `~^` \| `>>` \| `<<` -equality\_operator ::= `==` \| `!=` \| `===` \| `!==` +unary\_operator ::= `+` \| `-` \| `!` \| `~` \| `&` \| `~&` \| \| \| `~|` \| `^` \| `^~` \| `~^` +inversion\_operator ::= `!` \| `~` +binary\_operator ::= `+` \| `-` \| `*` \| `/` \| `%` \| `==` \| `!=` \| `===` \| `!==` \| `&&` \| `||` \| `<` \| `<=` \| `>` \| `>=` \| `&` \| \| \| `^` \| `^~` \| `~^` \| `>>` \| `<<` +equality\_operator ::= `==` \| `!=` \| `===` \| `!==` ### A.1.10 Precedence rules of SDF operators -    `!` `~` [highest](#highest) [precedence](#precedence) -    `*` `/` `%` -    `+` `-` -    `<<` `>>` -    `<` `<=` `>` `>=` -    `==` `!=` `===` `!==` -    `&` -    `^` `^~` -    \| -    `&&` -    `||` [lowest](#lowest) [precedence](#precedence) +    `!` `~` [highest](#highest) [precedence](#precedence) +    `*` `/` `%` +    `+` `-` +    `<<` `>>` +    `<` `<=` `>` `>=` +    `==` `!=` `===` `!==` +    `&` +    `^` `^~` +    \| +    `&&` +    `||` [lowest](#lowest) [precedence](#precedence) diff --git a/include/slang/driver/SourceLoader.h b/include/slang/driver/SourceLoader.h index 5091567fe..99b4601fc 100644 --- a/include/slang/driver/SourceLoader.h +++ b/include/slang/driver/SourceLoader.h @@ -217,7 +217,7 @@ class SLANG_EXPORT SourceLoader { const Bag& optionBag, bool expandEnvVars, flat_hash_set& seenMaps); void addSDFFilesInternal(std::string_view pattern, const std::filesystem::path& basePath, - const Bag& optionBag); + const Bag& optionBag); void createLibrary(const syntax::LibraryDeclarationSyntax& syntax, const std::filesystem::path& basePath); LoadResult loadAndParse(const FileEntry& fileEntry, const Bag& optionBag, diff --git a/include/slang/syntax/SyntaxTree.h b/include/slang/syntax/SyntaxTree.h index e93174f55..6e483c184 100644 --- a/include/slang/syntax/SyntaxTree.h +++ b/include/slang/syntax/SyntaxTree.h @@ -186,8 +186,8 @@ class SLANG_EXPORT SyntaxTree { /// @a options is an optional bag of lexer, preprocessor, and parser options. /// @return the created and parsed syntax tree. static std::shared_ptr fromSDFFile(std::string_view path, - SourceManager& sourceManager, - const Bag& options = {}); + SourceManager& sourceManager, + const Bag& options = {}); /// Creates a syntax tree from a standard delay format (SDF) located in memory. /// @a text is the actual source code text. @@ -197,19 +197,20 @@ class SLANG_EXPORT SyntaxTree { /// @a options is an optional bag of lexer, preprocessor, and parser options. /// @return the created and parsed syntax tree. static std::shared_ptr fromSDFText(std::string_view text, - SourceManager& sourceManager, - std::string_view name = "source"sv, - std::string_view path = "", - const Bag& options = {}); + SourceManager& sourceManager, + std::string_view name = "source"sv, + std::string_view path = "", + const Bag& options = {}); - /// Creates a syntax tree from a standard delay format (SDF) already loaded into a source buffer. + /// Creates a syntax tree from a standard delay format (SDF) already loaded into a source + /// buffer. /// @a buffer is the loaded source buffer. /// @a sourceManager is the manager that owns the buffer. /// @a options is an optional bag of lexer, preprocessor, and parser options. /// @return the created and parsed syntax tree. static std::shared_ptr fromSDFBuffer(const SourceBuffer& buffer, - SourceManager& sourceManager, - const Bag& options = {}); + SourceManager& sourceManager, + const Bag& options = {}); /// Gets any diagnostics generated while parsing. Diagnostics& diagnostics() { return diagnosticsBuffer; } diff --git a/scripts/grammar_gen.py b/scripts/grammar_gen.py index 94efbc457..f2c15b72f 100644 --- a/scripts/grammar_gen.py +++ b/scripts/grammar_gen.py @@ -10,12 +10,19 @@ ourdir = os.path.dirname(os.path.realpath(__file__)) -infs = [open(os.path.join(ourdir, "grammar.txt")), open(os.path.join(ourdir, "grammar_sdf.txt"))] -outfs = [open(os.path.join(ourdir, "../docs/grammar.md"), "w"), open(os.path.join(ourdir, "../docs/grammar_sdf.md"), "w")] +infs = [ + open(os.path.join(ourdir, "grammar.txt")), + open(os.path.join(ourdir, "grammar_sdf.txt")), +] +outfs = [ + open(os.path.join(ourdir, "../docs/grammar.md"), "w"), + open(os.path.join(ourdir, "../docs/grammar_sdf.md"), "w"), +] outfs[0].write("# SystemVerilog\n") outfs[1].write("# Standard Delay Format (SDF)\n") + def entry(line): match = re.match(r"(\w+) ::=", line) if match: @@ -48,6 +55,7 @@ def replacer(m): if saved_match: entry(saved_match) + for i, inf in enumerate(infs): outf = outfs[i] for line in inf: diff --git a/source/driver/Driver.cpp b/source/driver/Driver.cpp index f515694ea..2ef5bd14c 100644 --- a/source/driver/Driver.cpp +++ b/source/driver/Driver.cpp @@ -288,8 +288,8 @@ void Driver::addStandardArgs() { sourceLoader.addSDFFiles(value, {}, optionBag); return ""; }, - "One or more standard delay format files to parse", - "[,...]", CommandLineFlags::CommaList); + "One or more standard delay format files to parse", "[,...]", + CommandLineFlags::CommaList); cmdLine.add( "-y,--libdir", diff --git a/source/driver/SourceLoader.cpp b/source/driver/SourceLoader.cpp index 2605e1187..7d9d4f515 100644 --- a/source/driver/SourceLoader.cpp +++ b/source/driver/SourceLoader.cpp @@ -75,7 +75,7 @@ void SourceLoader::addLibraryMaps(std::string_view pattern, const fs::path& base } void SourceLoader::addSDFFiles(std::string_view pattern, const fs::path& basePath, - const Bag& optionBag) { + const Bag& optionBag) { addSDFFilesInternal(pattern, basePath, optionBag); } @@ -158,7 +158,7 @@ void SourceLoader::addLibraryMapsInternal(std::string_view pattern, const fs::pa } void SourceLoader::addSDFFilesInternal(std::string_view pattern, const fs::path& basePath, - const Bag& optionBag) { + const Bag& optionBag) { SmallVector files; std::error_code ec; svGlob(basePath, pattern, GlobMode::Files, files, /* expandEnvVars=*/false, ec); diff --git a/source/parsing/Lexer.cpp b/source/parsing/Lexer.cpp index d229110f7..424aa4dfe 100644 --- a/source/parsing/Lexer.cpp +++ b/source/parsing/Lexer.cpp @@ -451,7 +451,8 @@ Token Lexer::lexToken(KeywordVersion keywordVersion) { // Parse SDF '0z'/'1z' lexemes if (isSDFFile() and peek() == 'z' and (c == '0' or c == '1')) { advance(); - return (c == '0') ? create(TokenKind::SDFEdgeIdent0Z): create(TokenKind::SDFEdgeIdent1Z); + return (c == '0') ? create(TokenKind::SDFEdgeIdent0Z) + : create(TokenKind::SDFEdgeIdent1Z); } // back up so that lexNumericLiteral can look at this digit again @@ -591,7 +592,8 @@ Token Lexer::lexToken(KeywordVersion keywordVersion) { scanIdentifier(); // might be a keyword - auto table = (!isSDFFile()) ? LF::getKeywordTable(keywordVersion) : LF::getKeywordTable(KeywordVersion::v1497_2001); + auto table = (!isSDFFile()) ? LF::getKeywordTable(keywordVersion) + : LF::getKeywordTable(KeywordVersion::v1497_2001); SLANG_ASSERT(table); if (auto it = table->find(lexeme()); it != table->end()) diff --git a/source/parsing/LexerFacts.cpp b/source/parsing/LexerFacts.cpp index a8ba6eddb..468594d68 100644 --- a/source/parsing/LexerFacts.cpp +++ b/source/parsing/LexerFacts.cpp @@ -1175,7 +1175,7 @@ std::string_view LexerFacts::getTokenKindText(TokenKind kind) { case TokenKind::SDFVoltageKeyword: return "VOLTAGE"; case TokenKind::SDFWaveformKeyword: return "WAVEFORM"; case TokenKind::SDFWidthKeyword: return "WIDTH"; - + // SDF special tokens case TokenKind::SDFEdgeIdent0Z: return "0Z"; case TokenKind::SDFEdgeIdent1Z: return "1Z"; diff --git a/tests/unittests/parsing/SDFParsingTests.cpp b/tests/unittests/parsing/SDFParsingTests.cpp index 549ed7c10..d98215c4c 100644 --- a/tests/unittests/parsing/SDFParsingTests.cpp +++ b/tests/unittests/parsing/SDFParsingTests.cpp @@ -138,7 +138,7 @@ TEST_CASE("SDF file correct (unformatted and with comments") { )*/ )"; - auto &unit = parseSDFUnit(text); + auto& unit = parseSDFUnit(text); CHECK_DIAGNOSTICS_EMPTY; REQUIRE(unit.kind == SyntaxKind::SDFUnit); REQUIRE(unit.members.size() == 1); @@ -1774,14 +1774,13 @@ TEST_CASE("correct SDF simple file") { ) )"; - auto &unit = parseSDFUnit(text); + auto& unit = parseSDFUnit(text); CHECK_DIAGNOSTICS_EMPTY; REQUIRE(unit.kind == SyntaxKind::SDFUnit); REQUIRE(unit.members.size() == 1); REQUIRE(unit.members[0]->kind == SyntaxKind::SDFDelayFile); } - TEST_CASE("SDF file incorrect (invalid order of SDF file attributes/invalid number of SDFDelayFile " "members/no specified cells)") { auto& text = R"( @@ -1833,7 +1832,7 @@ TEST_CASE("SDF file incorrect (invalid timing check values)") { (IOPATH CLK Q (0.341:0.341:0.341) (0.379:0.379:0.379)) (IOPATH RESET_B.d Q () (0.000:0.000:0.000)) ) - ) + ) (TIMINGCHECK (REMOVAL (posedge RESET_B) (posedge CLK) (0.348:0.348:0.348)) (RECOVERY (posedge RESET_B) (posedge CLK) (-0.255:-0.255:-0.255))