Add batch 7 (XUANTIE-RV_openc906, osresearch_spispy, efabless_caravel, ZipCPU_sdspi, Nitcloud_Digital-IDE)
7ca5cf2 verified Download Nitcloud_Digital-IDE/node_modules/HDLparser/src/verilog/VerilogParser.g4 from SAIFIINDUSTRIES/verilog_data-1: direct link, hf CLI and curl.
- Browser
- Download file 37.5 kB
-
https://huggingface.co/datasets/SAIFIINDUSTRIES/verilog_data-1/resolve/main/Nitcloud_Digital-IDE/node_modules/HDLparser/src/verilog/VerilogParser.g4
- Command line
-
hf download hf://datasets/SAIFIINDUSTRIES/verilog_data-1/Nitcloud_Digital-IDE/node_modules/HDLparser/src/verilog/VerilogParser.g4
-
curl -L -o VerilogParser.g4 https://huggingface.co/datasets/SAIFIINDUSTRIES/verilog_data-1/resolve/main/Nitcloud_Digital-IDE/node_modules/HDLparser/src/verilog/VerilogParser.g4
37.5 kB
| /* | |
| MIT License | |
| Copyright (c) 2022 Mustafa Said Ağca | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: | |
| The above copyright notice and this permission notice shall be included in all | |
| copies or substantial portions of the Software. | |
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |
| SOFTWARE. | |
| */ | |
| parser grammar VerilogParser; | |
| options { | |
| tokenVocab = VerilogLexer; | |
| } | |
| parse | |
| : library_description* source_text | |
| ; | |
| library_description | |
| : library_declaration | |
| | include_directive | |
| | config_declaration | |
| ; | |
| library_declaration | |
| : 'library' library_identifier file_path_spec ( ',' file_path_spec )* ( '-incdir' file_path_spec ( ',' file_path_spec )* )? ';' | |
| ; | |
| include_directive | |
| : INCLUDE_DIRECTIVE file_path_spec ; | |
| file_path_spec | |
| : FILE_PATH_SPEC | |
| ; | |
| source_text | |
| : description* EOF | |
| ; | |
| description | |
| : module_declaration | |
| | udp_declaration | |
| | config_declaration | |
| ; | |
| module_declaration | |
| : attribute_instance* module_keyword module_identifier module_parameter_port_list? list_of_ports ';' module_item* 'endmodule' | |
| | attribute_instance* module_keyword module_identifier module_parameter_port_list? list_of_port_declarations? ';' non_port_module_item* 'endmodule' | |
| ; | |
| module_keyword | |
| : 'module' | |
| | 'macromodule' | |
| ; | |
| module_parameter_port_list | |
| : '#' '(' parameter_declaration ( ',' parameter_declaration )* ')' | |
| ; | |
| list_of_ports | |
| : '(' port ( ',' port )* ')' | |
| ; | |
| list_of_port_declarations | |
| : '(' port_declaration ( ',' port_declaration )* ')' | |
| | '(' ')' | |
| ; | |
| port | |
| : port_expression? | |
| | '.' port_identifier '(' port_expression? ')' | |
| ; | |
| port_expression | |
| : port_reference | |
| | '{' port_reference ( ',' port_reference )* '}' | |
| ; | |
| port_reference | |
| : port_identifier ( '[' constant_range_expression ']' )? | |
| ; | |
| port_declaration | |
| : attribute_instance* inout_declaration | |
| | attribute_instance* input_declaration | |
| | attribute_instance* output_declaration | |
| ; | |
| module_item | |
| : port_declaration ';' | |
| | non_port_module_item | |
| ; | |
| // 优先匹配 module_instantiation | |
| module_or_generate_item | |
| : attribute_instance* module_or_generate_item_declaration | |
| | attribute_instance* local_parameter_declaration ';' | |
| | attribute_instance* parameter_override | |
| | attribute_instance* continuous_assign | |
| | attribute_instance* gate_instantiation | |
| | attribute_instance* module_instantiation | |
| | attribute_instance* udp_instantiation | |
| | attribute_instance* initial_construct | |
| | attribute_instance* always_construct | |
| | attribute_instance* loop_generate_construct | |
| | attribute_instance* conditional_generate_construct | |
| ; | |
| module_or_generate_item_declaration | |
| : net_declaration | |
| | reg_declaration | |
| | integer_declaration | |
| | real_declaration | |
| | time_declaration | |
| | realtime_declaration | |
| | event_declaration | |
| | genvar_declaration | |
| | task_declaration | |
| | function_declaration | |
| ; | |
| non_port_module_item | |
| : module_or_generate_item | |
| | generate_region | |
| | specify_block | |
| | attribute_instance* parameter_declaration ';' | |
| | attribute_instance* specparam_declaration | |
| ; | |
| parameter_override | |
| : 'defparam' list_of_defparam_assignments ';' | |
| ; | |
| config_declaration | |
| : 'config' config_identifier ';' design_statement config_rule_statement* 'endconfig' | |
| ; | |
| design_statement | |
| : 'design' ( ( library_identifier '.' )? cell_identifier )* ';' | |
| ; | |
| config_rule_statement | |
| : default_clause liblist_clause ';' | |
| | inst_clause liblist_clause ';' | |
| | inst_clause use_clause ';' | |
| | cell_clause liblist_clause ';' | |
| | cell_clause use_clause ';' | |
| ; | |
| default_clause | |
| : 'default' | |
| ; | |
| inst_clause | |
| : 'instance' inst_name | |
| ; | |
| inst_name | |
| : topmodule_identifier ( '.' instance_identifier )* | |
| ; | |
| cell_clause | |
| : 'cell' ( library_identifier '.' )? cell_identifier | |
| ; | |
| liblist_clause | |
| : 'liblist' library_identifier* | |
| ; | |
| use_clause | |
| : 'use' ( library_identifier '.' )? cell_identifier ( ':' 'config' )? | |
| ; | |
| local_parameter_declaration | |
| : 'localparam' 'signed'? range_? list_of_param_assignments | |
| | 'localparam' parameter_type list_of_param_assignments | |
| ; | |
| parameter_declaration | |
| : 'parameter' 'signed'? range_? list_of_param_assignments | |
| | 'parameter' parameter_type list_of_param_assignments | |
| ; | |
| specparam_declaration | |
| : 'specparam' range_? list_of_specparam_assignments ';' | |
| ; | |
| parameter_type | |
| : 'integer' | |
| | 'real' | |
| | 'realtime' | |
| | 'time' | |
| ; | |
| inout_declaration | |
| : 'inout' net_type? 'signed'? range_? list_of_port_identifiers | |
| ; | |
| input_declaration | |
| : 'input' net_type? 'signed'? range_? list_of_port_identifiers | |
| ; | |
| output_declaration | |
| : 'output' net_type? 'signed'? range_? list_of_port_identifiers | |
| | 'output' 'reg' 'signed'? range_? list_of_variable_port_identifiers | |
| | 'output' output_variable_type list_of_variable_port_identifiers | |
| ; | |
| event_declaration | |
| : 'event' list_of_event_identifiers ';' | |
| ; | |
| integer_declaration | |
| : 'integer' list_of_variable_identifiers ';' | |
| ; | |
| net_declaration | |
| : net_type 'signed'? delay3? list_of_net_identifiers ';' | |
| | net_type drive_strength? 'signed'? delay3? list_of_net_decl_assignments ';' | |
| | net_type ( 'vectored' | 'scalared' )? 'signed'? range_ delay3? list_of_net_identifiers ';' | |
| | net_type drive_strength? ( 'vectored' | 'scalared' )? 'signed'? range_ delay3? list_of_net_decl_assignments ';' | |
| | 'trireg' charge_strength? 'signed'? delay3? list_of_net_identifiers ';' | |
| | 'trireg' drive_strength? 'signed'? delay3? list_of_net_decl_assignments ';' | |
| | 'trireg' charge_strength? ( 'vectored' | 'scalared' )? 'signed'? range_ delay3? list_of_net_identifiers ';' | |
| | 'trireg' drive_strength? ( 'vectored' | 'scalared' )? 'signed'? range_ delay3? list_of_net_decl_assignments ';' | |
| ; | |
| real_declaration | |
| : 'real' list_of_real_identifiers ';' | |
| ; | |
| realtime_declaration | |
| : 'realtime' list_of_real_identifiers ';' | |
| ; | |
| reg_declaration | |
| : 'reg' 'signed'? range_? list_of_variable_identifiers ';' | |
| ; | |
| time_declaration | |
| : 'time' list_of_variable_identifiers ';' | |
| ; | |
| net_type | |
| : 'supply0' | |
| | 'supply1' | |
| | 'tri' | |
| | 'triand' | |
| | 'trior' | |
| | 'tri0' | |
| | 'tri1' | |
| | 'uwire' | |
| | 'wire' | |
| | 'wand' | |
| | 'wor' | |
| ; | |
| output_variable_type | |
| : 'integer' | |
| | 'time' | |
| ; | |
| real_type | |
| : real_identifier dimension* | |
| | real_identifier '=' constant_expression | |
| ; | |
| variable_type | |
| : variable_identifier dimension* | |
| | variable_identifier '=' constant_expression | |
| ; | |
| drive_strength | |
| : '(' strength0 ',' strength1 ')' | |
| | '(' strength1 ',' strength0 ')' | |
| | '(' strength0 ',' 'highz1' ')' | |
| | '(' strength1 ',' 'highz0' ')' | |
| | '(' 'highz0' ',' strength1 ')' | |
| | '(' 'highz1' ',' strength0 ')' | |
| ; | |
| strength0 | |
| : 'supply0' | |
| | 'strong0' | |
| | 'pull0' | |
| | 'weak0' | |
| ; | |
| strength1 | |
| : 'supply1' | |
| | 'strong1' | |
| | 'pull1' | |
| | 'weak1' | |
| ; | |
| charge_strength | |
| : '(' 'small' ')' | |
| | '(' 'medium' ')' | |
| | '(' 'large' ')' | |
| ; | |
| delay3 | |
| : '#' delay_value | |
| | '#' '(' mintypmax_expression ( ',' mintypmax_expression ( ',' mintypmax_expression )? )? ')' | |
| ; | |
| delay2 | |
| : '#' delay_value | |
| | '#' '(' mintypmax_expression ( ',' mintypmax_expression )? ')' | |
| ; | |
| delay_value | |
| : unsigned_number | |
| | real_number | |
| | identifier | |
| ; | |
| list_of_defparam_assignments | |
| : defparam_assignment ( ',' defparam_assignment )* | |
| ; | |
| list_of_event_identifiers | |
| : event_identifier dimension* ( ',' event_identifier dimension* )* | |
| ; | |
| list_of_net_decl_assignments | |
| : net_decl_assignment ( ',' net_decl_assignment )* | |
| ; | |
| list_of_net_identifiers | |
| : net_identifier dimension* ( ',' net_identifier dimension* )* | |
| ; | |
| list_of_param_assignments | |
| : param_assignment ( ',' param_assignment )* | |
| ; | |
| list_of_port_identifiers | |
| : port_identifier ( ',' port_identifier )* | |
| ; | |
| list_of_real_identifiers | |
| : real_type ( ',' real_type )* | |
| ; | |
| list_of_specparam_assignments | |
| : specparam_assignment ( ',' specparam_assignment )* | |
| ; | |
| list_of_variable_identifiers | |
| : variable_type ( ',' variable_type )* | |
| ; | |
| list_of_variable_port_identifiers | |
| : port_identifier ( '=' constant_expression )? ( ',' port_identifier ( '=' constant_expression )? )* | |
| ; | |
| defparam_assignment | |
| : hierarchical_parameter_identifier '=' constant_mintypmax_expression | |
| ; | |
| net_decl_assignment | |
| : net_identifier '=' expression | |
| ; | |
| param_assignment | |
| : parameter_identifier '=' constant_mintypmax_expression | |
| ; | |
| specparam_assignment | |
| : specparam_identifier '=' constant_mintypmax_expression | |
| | pulse_control_specparam | |
| ; | |
| pulse_control_specparam | |
| : 'PATHPULSE$' '=' '(' reject_limit_value ( ',' error_limit_value )? ')' | |
| | 'PATHPULSE$' specify_input_terminal_descriptor '$' specify_output_terminal_descriptor '=' '(' reject_limit_value ( ',' error_limit_value )? ')' | |
| ; | |
| error_limit_value | |
| : limit_value | |
| ; | |
| reject_limit_value | |
| : limit_value | |
| ; | |
| limit_value | |
| : constant_mintypmax_expression | |
| ; | |
| dimension | |
| : '[' dimension_constant_expression ':' dimension_constant_expression ']' | |
| ; | |
| range_ | |
| : '[' msb_constant_expression ':' lsb_constant_expression ']' | |
| ; | |
| function_declaration | |
| : 'function' 'automatic'? function_range_or_type function_identifier ';' function_item_declaration function_item_declaration* function_statement 'endfunction' | |
| | 'function' 'automatic'? function_range_or_type function_identifier '(' function_port_list ')' ';' block_item_declaration* function_statement 'endfunction' | |
| ; | |
| function_item_declaration | |
| : block_item_declaration | |
| | attribute_instance* tf_input_declaration ';' | |
| ; | |
| function_port_list | |
| : attribute_instance* tf_input_declaration ( ',' attribute_instance* tf_input_declaration )* | |
| ; | |
| function_range_or_type | |
| : 'signed'? range_? | |
| | 'integer' | |
| | 'real' | |
| | 'realtime' | |
| | 'time' | |
| ; | |
| task_declaration | |
| : 'task' 'automatic'? task_identifier ';' task_item_declaration* statement_or_null 'endtask' | |
| | 'task' 'automatic'? task_identifier '(' task_port_list? ')' ';' block_item_declaration* statement_or_null 'endtask' | |
| ; | |
| task_item_declaration | |
| : block_item_declaration | |
| | attribute_instance* tf_input_declaration ';' | |
| | attribute_instance* tf_output_declaration ';' | |
| | attribute_instance* tf_inout_declaration ';' | |
| ; | |
| task_port_list | |
| : task_port_item ( ',' task_port_item )* | |
| ; | |
| task_port_item | |
| : attribute_instance* tf_input_declaration | |
| | attribute_instance* tf_output_declaration | |
| | attribute_instance* tf_inout_declaration | |
| ; | |
| tf_input_declaration | |
| : 'input' 'reg'? 'signed'? range_? list_of_port_identifiers | |
| | 'input' task_port_type list_of_port_identifiers | |
| ; | |
| tf_output_declaration | |
| : 'output' 'reg'? 'signed'? range_? list_of_port_identifiers | |
| | 'output' task_port_type list_of_port_identifiers | |
| ; | |
| tf_inout_declaration | |
| : 'inout' 'reg'? 'signed'? range_? list_of_port_identifiers | |
| | 'inout' task_port_type list_of_port_identifiers | |
| ; | |
| task_port_type | |
| : 'integer' | |
| | 'real' | |
| | 'realtime' | |
| | 'time' | |
| ; | |
| block_item_declaration | |
| : attribute_instance* 'reg' 'signed'? range_? list_of_block_variable_identifiers ';' | |
| | attribute_instance* 'integer' list_of_block_variable_identifiers ';' | |
| | attribute_instance* 'time' list_of_block_variable_identifiers ';' | |
| | attribute_instance* 'real' list_of_block_real_identifiers ';' | |
| | attribute_instance* 'realtime' list_of_block_real_identifiers ';' | |
| | attribute_instance* event_declaration | |
| | attribute_instance* local_parameter_declaration ';' | |
| | attribute_instance* parameter_declaration ';' | |
| ; | |
| list_of_block_variable_identifiers | |
| : block_variable_type ( ',' block_variable_type )* | |
| ; | |
| list_of_block_real_identifiers | |
| : block_real_type ( ',' block_real_type )* | |
| ; | |
| block_variable_type | |
| : variable_identifier dimension* | |
| ; | |
| block_real_type | |
| : real_identifier dimension* | |
| ; | |
| gate_instantiation | |
| : cmos_switchtype delay3? cmos_switch_instance ( ',' cmos_switch_instance )* ';' | |
| | enable_gatetype drive_strength? delay3? enable_gate_instance ( ',' enable_gate_instance )* ';' | |
| | mos_switchtype delay3? mos_switch_instance ( ',' mos_switch_instance )* ';' | |
| | n_input_gatetype drive_strength? delay2? n_input_gate_instance ( ',' n_input_gate_instance )* ';' | |
| | n_output_gatetype drive_strength? delay2? n_output_gate_instance ( ',' n_output_gate_instance )* ';' | |
| | pass_en_switchtype delay2? pass_enable_switch_instance ( ',' pass_enable_switch_instance )* ';' | |
| | pass_switchtype pass_switch_instance ( ',' pass_switch_instance )* ';' | |
| | 'pulldown' pulldown_strength? pull_gate_instance ( ',' pull_gate_instance )* ';' | |
| | 'pullup' pullup_strength? pull_gate_instance ( ',' pull_gate_instance )* ';' | |
| ; | |
| cmos_switch_instance | |
| : name_of_gate_instance? '(' output_terminal ',' input_terminal ',' ncontrol_terminal ',' pcontrol_terminal ')' | |
| ; | |
| enable_gate_instance | |
| : name_of_gate_instance? '(' output_terminal ',' input_terminal ',' enable_terminal ')' | |
| ; | |
| mos_switch_instance | |
| : name_of_gate_instance? '(' output_terminal ',' input_terminal ',' enable_terminal ')' | |
| ; | |
| n_input_gate_instance | |
| : name_of_gate_instance? '(' output_terminal ',' input_terminal ( ',' input_terminal )* ')' | |
| ; | |
| n_output_gate_instance | |
| : name_of_gate_instance? '(' output_terminal ( ',' output_terminal )* ',' input_terminal ')' | |
| ; | |
| pass_switch_instance | |
| : name_of_gate_instance? '(' inout_terminal ',' inout_terminal ')' | |
| ; | |
| pass_enable_switch_instance | |
| : name_of_gate_instance? '(' inout_terminal ',' inout_terminal ',' enable_terminal ')' | |
| ; | |
| pull_gate_instance | |
| : name_of_gate_instance? '(' output_terminal ')' | |
| ; | |
| name_of_gate_instance | |
| : gate_instance_identifier range_? | |
| ; | |
| pulldown_strength | |
| : '(' strength0 ',' strength1 ')' | |
| | '(' strength1 ',' strength0 ')' | |
| | '(' strength0 ')' | |
| ; | |
| pullup_strength | |
| : '(' strength0 ',' strength1 ')' | |
| | '(' strength1 ',' strength0 ')' | |
| | '(' strength1 ')' | |
| ; | |
| enable_terminal | |
| : expression | |
| ; | |
| inout_terminal | |
| : net_lvalue | |
| ; | |
| input_terminal | |
| : expression | |
| ; | |
| ncontrol_terminal | |
| : expression | |
| ; | |
| output_terminal | |
| : net_lvalue | |
| ; | |
| pcontrol_terminal | |
| : expression | |
| ; | |
| cmos_switchtype | |
| : 'cmos' | |
| | 'rcmos' | |
| ; | |
| enable_gatetype | |
| : 'bufif0' | |
| | 'bufif1' | |
| | 'notif0' | |
| | 'notif1' | |
| ; | |
| mos_switchtype | |
| : 'nmos' | |
| | 'pmos' | |
| | 'rnmos' | |
| | 'rpmos' | |
| ; | |
| n_input_gatetype | |
| : 'and' | |
| | 'nand' | |
| | 'or' | |
| | 'nor' | |
| | 'xor' | |
| | 'xnor' | |
| ; | |
| n_output_gatetype | |
| : 'buf' | |
| | 'not' | |
| ; | |
| pass_en_switchtype | |
| : 'tranif0' | |
| | 'tranif1' | |
| | 'rtranif1' | |
| | 'rtranif0' | |
| ; | |
| pass_switchtype | |
| : 'tran' | |
| | 'rtran' | |
| ; | |
| module_instantiation | |
| : module_identifier parameter_value_assignment? module_instance ( ',' module_instance )* ';' | |
| ; | |
| parameter_value_assignment | |
| : '#' '(' list_of_parameter_assignments ')' | |
| ; | |
| list_of_parameter_assignments | |
| : ordered_parameter_assignment ( ',' ordered_parameter_assignment )* | |
| | named_parameter_assignment ( ',' named_parameter_assignment )* | |
| ; | |
| ordered_parameter_assignment | |
| : expression | |
| ; | |
| named_parameter_assignment | |
| : '.' parameter_identifier '(' mintypmax_expression? ')' | |
| ; | |
| module_instance | |
| : name_of_module_instance '(' list_of_port_connections ')' | |
| ; | |
| name_of_module_instance | |
| : module_instance_identifier range_? | |
| ; | |
| list_of_port_connections | |
| : port_identifier ( ',' port_identifier )* | |
| | ordered_port_connection ( ',' ordered_port_connection )* | |
| | named_port_connection ( ',' named_port_connection )* | |
| ; | |
| ordered_port_connection | |
| : attribute_instance* expression? | |
| ; | |
| named_port_connection | |
| : attribute_instance* '.' port_identifier '(' expression? ')' | |
| ; | |
| generate_region | |
| : 'generate' module_or_generate_item* 'endgenerate' | |
| ; | |
| genvar_declaration | |
| : 'genvar' list_of_genvar_identifiers ';' | |
| ; | |
| list_of_genvar_identifiers | |
| : genvar_identifier ( ',' genvar_identifier )* | |
| ; | |
| loop_generate_construct | |
| : 'for' '(' genvar_initialization ';' genvar_expression ';' genvar_iteration ')' generate_block | |
| ; | |
| genvar_initialization | |
| : genvar_identifier '=' constant_expression | |
| ; | |
| genvar_expression | |
| : genvar_primary | |
| | unary_operator attribute_instance* genvar_primary | |
| | genvar_expression binary_operator attribute_instance* genvar_expression | |
| | genvar_expression '?' attribute_instance* genvar_expression ':' genvar_expression | |
| ; | |
| genvar_iteration | |
| : genvar_identifier '=' genvar_expression | |
| ; | |
| genvar_primary | |
| : constant_primary | |
| | genvar_identifier | |
| ; | |
| conditional_generate_construct | |
| : if_generate_construct | |
| | case_generate_construct | |
| ; | |
| if_generate_construct | |
| : 'if' '(' constant_expression ')' generate_block_or_null ( 'else' generate_block_or_null )? | |
| ; | |
| case_generate_construct | |
| : 'case' '(' constant_expression ')' case_generate_item+ 'endcase' | |
| ; | |
| case_generate_item | |
| : constant_expression ( ',' constant_expression )* ':' generate_block_or_null | |
| | 'default' ':'? generate_block_or_null | |
| ; | |
| generate_block | |
| : module_or_generate_item | |
| | 'begin' ( ':' generate_block_identifier )? module_or_generate_item* 'end' | |
| ; | |
| generate_block_or_null | |
| : generate_block | |
| | ';' | |
| ; | |
| udp_declaration | |
| : attribute_instance* 'primitive' udp_identifier '(' udp_port_list ')' ';' udp_port_declaration+ udp_body 'endprimitive' | |
| | attribute_instance* 'primitive' udp_identifier '(' udp_declaration_port_list ')' ';' udp_body 'endprimitive' | |
| ; | |
| udp_port_list | |
| : output_port_identifier ',' input_port_identifier ( ',' input_port_identifier )* | |
| ; | |
| udp_declaration_port_list | |
| : udp_output_declaration ',' udp_input_declaration ( ',' udp_input_declaration )* | |
| ; | |
| udp_port_declaration | |
| : udp_output_declaration ';' | |
| | udp_input_declaration ';' | |
| | udp_reg_declaration ';' | |
| ; | |
| udp_output_declaration | |
| : attribute_instance* 'output' port_identifier | |
| | attribute_instance* 'output' 'reg' port_identifier ( '=' constant_expression )? | |
| ; | |
| udp_input_declaration | |
| : attribute_instance* 'input' list_of_port_identifiers | |
| ; | |
| udp_reg_declaration | |
| : attribute_instance* 'reg' variable_identifier | |
| ; | |
| udp_body | |
| : combinational_body | |
| | sequential_body | |
| ; | |
| combinational_body | |
| : 'table' combinational_entry+ 'endtable' | |
| ; | |
| combinational_entry | |
| : level_input_list ':' output_symbol ';' | |
| ; | |
| sequential_body | |
| : udp_initial_statement? 'table' sequential_entry+ 'endtable' | |
| ; | |
| udp_initial_statement | |
| : 'initial' output_port_identifier '=' init_val ';' | |
| ; | |
| init_val | |
| : //INIT_VAL | |
| BINARY_NUMBER // '1\'' [bB][01xX] | |
| | DECIMAL_NUMBER // [01] | |
| ; | |
| sequential_entry | |
| : seq_input_list ':' current_state ':' next_state ';' | |
| ; | |
| seq_input_list | |
| : level_input_list | |
| | edge_input_list | |
| ; | |
| level_input_list | |
| : level_symbol+ | |
| ; | |
| edge_input_list | |
| : level_symbol* edge_indicator level_symbol* | |
| ; | |
| edge_indicator | |
| : '(' level_symbol level_symbol ')' | |
| | edge_symbol | |
| ; | |
| current_state | |
| : level_symbol | |
| ; | |
| next_state | |
| : output_symbol | |
| | '-' | |
| ; | |
| output_symbol | |
| : //OUTPUT_SYMBOL | |
| OUTPUT_OR_LEVEL_SYMBOL | |
| ; | |
| level_symbol | |
| : //LEVEL_SYMBOL | |
| OUTPUT_OR_LEVEL_SYMBOL | |
| | LEVEL_ONLY_SYMBOL | |
| ; | |
| edge_symbol | |
| : EDGE_SYMBOL | |
| ; | |
| udp_instantiation | |
| : udp_identifier drive_strength? delay2? udp_instance ( ',' udp_instance )* ';' | |
| ; | |
| udp_instance | |
| : name_of_udp_instance? '(' output_terminal ',' input_terminal ( ',' input_terminal )* ')' | |
| ; | |
| name_of_udp_instance | |
| : udp_instance_identifier range_? | |
| ; | |
| continuous_assign | |
| : 'assign' drive_strength? delay3? list_of_net_assignments ';' | |
| ; | |
| list_of_net_assignments | |
| : net_assignment ( ',' net_assignment )* | |
| ; | |
| net_assignment | |
| : net_lvalue '=' expression | |
| ; | |
| initial_construct | |
| : 'initial' statement | |
| ; | |
| always_construct | |
| : 'always' statement | |
| ; | |
| blocking_assignment | |
| : variable_lvalue '=' delay_or_event_control? expression | |
| ; | |
| nonblocking_assignment | |
| : variable_lvalue '<=' delay_or_event_control? expression | |
| ; | |
| procedural_continuous_assignments | |
| : 'assign' variable_assignment | |
| | 'deassign' variable_lvalue | |
| | 'force' variable_assignment | |
| | 'force' net_assignment | |
| | 'release' variable_lvalue | |
| | 'release' net_lvalue | |
| ; | |
| variable_assignment | |
| : variable_lvalue '=' expression | |
| ; | |
| par_block | |
| : 'fork' ( ':' block_identifier block_item_declaration* )? statement* 'join' | |
| ; | |
| seq_block | |
| : 'begin' ( ':' block_identifier block_item_declaration* )? statement* 'end' | |
| ; | |
| statement | |
| : attribute_instance* blocking_assignment ';' | |
| | attribute_instance* case_statement | |
| | attribute_instance* conditional_statement | |
| | attribute_instance* disable_statement | |
| | attribute_instance* event_trigger | |
| | attribute_instance* loop_statement | |
| | attribute_instance* nonblocking_assignment ';' | |
| | attribute_instance* par_block | |
| | attribute_instance* procedural_continuous_assignments ';' | |
| | attribute_instance* procedural_timing_control_statement | |
| | attribute_instance* seq_block | |
| | attribute_instance* system_task_enable | |
| | attribute_instance* task_enable | |
| | attribute_instance* wait_statement | |
| ; | |
| statement_or_null | |
| : statement | |
| | attribute_instance* ';' | |
| ; | |
| function_statement | |
| : statement | |
| ; | |
| delay_control | |
| : '#' delay_value | |
| | '#' '(' mintypmax_expression ')' | |
| ; | |
| delay_or_event_control | |
| : delay_control | |
| | event_control | |
| | 'repeat' '(' expression ')' event_control | |
| ; | |
| disable_statement | |
| : 'disable' hierarchical_task_identifier ';' | |
| | 'disable' hierarchical_block_identifier ';' | |
| ; | |
| event_control | |
| : '@' hierarchical_event_identifier | |
| | '@' '(' event_expression ')' | |
| | '@' '*' | |
| | '@' '(' '*' ')' | |
| ; | |
| event_trigger | |
| : '->' hierarchical_event_identifier ( '[' expression ']' )* ';' | |
| ; | |
| event_expression | |
| : expression | |
| | 'posedge' expression | |
| | 'negedge' expression | |
| | event_expression 'or' event_expression | |
| | event_expression ',' event_expression | |
| ; | |
| procedural_timing_control | |
| : delay_control | |
| | event_control | |
| ; | |
| procedural_timing_control_statement | |
| : procedural_timing_control statement_or_null | |
| ; | |
| wait_statement | |
| : 'wait' '(' expression ')' statement_or_null | |
| ; | |
| conditional_statement | |
| : 'if' '(' expression ')' statement_or_null ( 'else' 'if' '(' expression ')' statement_or_null )* ( 'else' statement_or_null )? | |
| ; | |
| case_statement | |
| : 'case' '(' expression ')' case_item+ 'endcase' | |
| | 'casez' '(' expression ')' case_item+ 'endcase' | |
| | 'casex' '(' expression ')' case_item+ 'endcase' | |
| ; | |
| case_item | |
| : expression ( ',' expression )* ':' statement_or_null | |
| | 'default' ':'? statement_or_null | |
| ; | |
| loop_statement | |
| : 'forever' statement | |
| | 'repeat' '(' expression ')' statement | |
| | 'while' '(' expression ')' statement | |
| | 'for' '(' variable_assignment ';' expression ';' variable_assignment ')' statement | |
| ; | |
| system_task_enable | |
| : system_task_identifier ( '(' expression? ( ',' expression? )* ')' )? ';' | |
| ; | |
| task_enable | |
| : hierarchical_task_identifier ( '(' expression ( ',' expression )* ')' )? ';' | |
| ; | |
| specify_block | |
| : 'specify' specify_item* 'endspecify' | |
| ; | |
| specify_item | |
| : specparam_declaration | |
| | pulsestyle_declaration | |
| | showcancelled_declaration | |
| | path_declaration | |
| | system_timing_check | |
| ; | |
| pulsestyle_declaration | |
| : 'pulsestyle_onevent' list_of_path_outputs ';' | |
| | 'pulsestyle_ondetect' list_of_path_outputs ';' | |
| ; | |
| showcancelled_declaration | |
| : 'showcancelled' list_of_path_outputs ';' | |
| | 'noshowcancelled' list_of_path_outputs ';' | |
| ; | |
| path_declaration | |
| : simple_path_declaration ';' | |
| | edge_sensitive_path_declaration ';' | |
| | state_dependent_path_declaration ';' | |
| ; | |
| simple_path_declaration | |
| : parallel_path_description '=' path_delay_value | |
| | full_path_description '=' path_delay_value | |
| ; | |
| parallel_path_description | |
| : '(' specify_input_terminal_descriptor polarity_operator? '=>' specify_output_terminal_descriptor ')' | |
| ; | |
| full_path_description | |
| : '(' list_of_path_inputs polarity_operator? '*>' list_of_path_outputs ')' | |
| ; | |
| list_of_path_inputs | |
| : specify_input_terminal_descriptor ( ',' specify_input_terminal_descriptor )* | |
| ; | |
| list_of_path_outputs | |
| : specify_output_terminal_descriptor ( ',' specify_output_terminal_descriptor )* | |
| ; | |
| specify_input_terminal_descriptor | |
| : input_identifier ( '[' constant_range_expression ']' )? | |
| ; | |
| specify_output_terminal_descriptor | |
| : output_identifier ( '[' constant_range_expression ']' )? | |
| ; | |
| input_identifier | |
| : input_port_identifier | |
| | inout_port_identifier | |
| ; | |
| output_identifier | |
| : output_port_identifier | |
| | inout_port_identifier | |
| ; | |
| path_delay_value | |
| : list_of_path_delay_expressions | |
| | '(' list_of_path_delay_expressions ')' | |
| ; | |
| list_of_path_delay_expressions | |
| : t_path_delay_expression | |
| | trise_path_delay_expression ',' tfall_path_delay_expression | |
| | trise_path_delay_expression ',' tfall_path_delay_expression ',' tz_path_delay_expression | |
| | t01_path_delay_expression ',' t10_path_delay_expression ',' t0z_path_delay_expression ',' tz1_path_delay_expression ',' t1z_path_delay_expression ',' tz0_path_delay_expression | |
| | t01_path_delay_expression ',' t10_path_delay_expression ',' t0z_path_delay_expression ',' tz1_path_delay_expression ',' t1z_path_delay_expression ',' tz0_path_delay_expression ',' t0x_path_delay_expression ',' tx1_path_delay_expression ',' t1x_path_delay_expression ',' tx0_path_delay_expression ',' txz_path_delay_expression ',' tzx_path_delay_expression | |
| ; | |
| t_path_delay_expression | |
| : path_delay_expression | |
| ; | |
| trise_path_delay_expression | |
| : path_delay_expression | |
| ; | |
| tfall_path_delay_expression | |
| : path_delay_expression | |
| ; | |
| tz_path_delay_expression | |
| : path_delay_expression | |
| ; | |
| t01_path_delay_expression | |
| : path_delay_expression | |
| ; | |
| t10_path_delay_expression | |
| : path_delay_expression | |
| ; | |
| t0z_path_delay_expression | |
| : path_delay_expression | |
| ; | |
| tz1_path_delay_expression | |
| : path_delay_expression | |
| ; | |
| t1z_path_delay_expression | |
| : path_delay_expression | |
| ; | |
| tz0_path_delay_expression | |
| : path_delay_expression | |
| ; | |
| t0x_path_delay_expression | |
| : path_delay_expression | |
| ; | |
| tx1_path_delay_expression | |
| : path_delay_expression | |
| ; | |
| t1x_path_delay_expression | |
| : path_delay_expression | |
| ; | |
| tx0_path_delay_expression | |
| : path_delay_expression | |
| ; | |
| txz_path_delay_expression | |
| : path_delay_expression | |
| ; | |
| tzx_path_delay_expression | |
| : path_delay_expression | |
| ; | |
| path_delay_expression | |
| : constant_mintypmax_expression | |
| ; | |
| edge_sensitive_path_declaration | |
| : parallel_edge_sensitive_path_description '=' path_delay_value | |
| | full_edge_sensitive_path_description '=' path_delay_value | |
| ; | |
| parallel_edge_sensitive_path_description | |
| : '(' edge_identifier? specify_input_terminal_descriptor '=>' '(' specify_output_terminal_descriptor polarity_operator? ':' data_source_expression ')' ')' | |
| ; | |
| full_edge_sensitive_path_description | |
| : '(' edge_identifier? list_of_path_inputs '*>' '(' list_of_path_outputs polarity_operator? ':' data_source_expression ')' ')' | |
| ; | |
| data_source_expression | |
| : expression | |
| ; | |
| edge_identifier | |
| : 'posedge' | |
| | 'negedge' | |
| ; | |
| state_dependent_path_declaration | |
| : 'if' '(' module_path_expression ')' simple_path_declaration | |
| | 'if' '(' module_path_expression ')' edge_sensitive_path_declaration | |
| | 'ifnone' simple_path_declaration | |
| ; | |
| polarity_operator | |
| : '+' | |
| | '-' | |
| ; | |
| system_timing_check | |
| : setup_timing_check | |
| | hold_timing_check | |
| | setuphold_timing_check | |
| | recovery_timing_check | |
| | removal_timing_check | |
| | recrem_timing_check | |
| | skew_timing_check | |
| | timeskew_timing_check | |
| | fullskew_timing_check | |
| | period_timing_check | |
| | width_timing_check | |
| | nochange_timing_check | |
| ; | |
| setup_timing_check | |
| : '$setup' '(' data_event ',' reference_event ',' timing_check_limit ( ',' notifier? )? ')' ';' | |
| ; | |
| hold_timing_check | |
| : '$hold' '(' reference_event ',' data_event ',' timing_check_limit ( ',' notifier? )? ')' ';' | |
| ; | |
| setuphold_timing_check | |
| : '$setuphold' '(' reference_event ',' data_event ',' timing_check_limit ',' timing_check_limit ( ',' notifier? ( ',' stamptime_condition? ( ',' checktime_condition? ( ',' delayed_reference? ( ',' delayed_data? )? )? )? )? )? ')' ';' | |
| ; | |
| recovery_timing_check | |
| : '$recovery' '(' reference_event ',' data_event ',' timing_check_limit ( ',' notifier? )? ')' ';' | |
| ; | |
| removal_timing_check | |
| : '$removal' '(' reference_event ',' data_event ',' timing_check_limit ( ',' notifier? )? ')' ';' | |
| ; | |
| recrem_timing_check | |
| : '$recrem' '(' reference_event ',' data_event ',' timing_check_limit ',' timing_check_limit ( ',' notifier? ( ',' stamptime_condition? ( ',' checktime_condition? ( ',' delayed_reference? ( ',' delayed_data? )? )? )? )? )? ')' ';' | |
| ; | |
| skew_timing_check | |
| : '$skew' '(' reference_event ',' data_event ',' timing_check_limit ( ',' notifier? )? ')' ';' | |
| ; | |
| timeskew_timing_check | |
| : '$timeskew' '(' reference_event ',' data_event ',' timing_check_limit ( ',' notifier? ( ',' event_based_flag? ( ',' remain_active_flag? )? )? )? ')' ';' | |
| ; | |
| fullskew_timing_check | |
| : '$fullskew' '(' reference_event ',' data_event ',' timing_check_limit ',' timing_check_limit ( ',' notifier? ( ',' event_based_flag? ( ',' remain_active_flag? )? )? )? ')' ';' | |
| ; | |
| period_timing_check | |
| : '$period' '(' controlled_reference_event ',' timing_check_limit ( ',' notifier? )? ')' ';' | |
| ; | |
| width_timing_check | |
| : '$width' '(' controlled_reference_event ',' timing_check_limit ( ',' threshold ( ',' notifier )? )? ')' ';' | |
| ; | |
| nochange_timing_check | |
| : '$nochange' '(' reference_event ',' data_event ',' start_edge_offset ',' end_edge_offset ( ',' notifier? )? ')' ';' | |
| ; | |
| checktime_condition | |
| : mintypmax_expression | |
| ; | |
| controlled_reference_event | |
| : controlled_timing_check_event | |
| ; | |
| data_event | |
| : timing_check_event | |
| ; | |
| delayed_data | |
| : terminal_identifier | |
| | terminal_identifier '[' constant_mintypmax_expression ']' | |
| ; | |
| delayed_reference | |
| : terminal_identifier | |
| | terminal_identifier '[' constant_mintypmax_expression ']' | |
| ; | |
| end_edge_offset | |
| : mintypmax_expression | |
| ; | |
| event_based_flag | |
| : constant_expression | |
| ; | |
| notifier | |
| : variable_identifier | |
| ; | |
| reference_event | |
| : timing_check_event | |
| ; | |
| remain_active_flag | |
| : constant_expression | |
| ; | |
| stamptime_condition | |
| : mintypmax_expression | |
| ; | |
| start_edge_offset | |
| : mintypmax_expression | |
| ; | |
| threshold | |
| : constant_expression | |
| ; | |
| timing_check_limit | |
| : expression | |
| ; | |
| timing_check_event | |
| : timing_check_event_control? specify_terminal_descriptor ( '&&&' timing_check_condition )? | |
| ; | |
| controlled_timing_check_event | |
| : timing_check_event_control specify_terminal_descriptor ( '&&&' timing_check_condition )? | |
| ; | |
| timing_check_event_control | |
| : 'posedge' | |
| | 'negedge' | |
| | edge_control_specifier | |
| ; | |
| specify_terminal_descriptor | |
| : specify_input_terminal_descriptor | |
| | specify_output_terminal_descriptor | |
| ; | |
| edge_control_specifier | |
| : 'edge' '[' edge_descriptor ( ',' edge_descriptor )* ']' | |
| ; | |
| edge_descriptor | |
| : EDGE_DESCRIPTOR | |
| ; | |
| timing_check_condition | |
| : scalar_timing_check_condition | |
| | '(' scalar_timing_check_condition ')' | |
| ; | |
| scalar_timing_check_condition | |
| : expression | |
| | '~' expression | |
| | expression '==' scalar_constant | |
| | expression '===' scalar_constant | |
| | expression '!=' scalar_constant | |
| | expression '!==' scalar_constant | |
| ; | |
| scalar_constant | |
| : //SCALAR_CONSTANT | |
| BINARY_NUMBER // '1'? '\'' [bB] [01] | |
| | DECIMAL_NUMBER // [01] | |
| ; | |
| concatenation | |
| : '{' expression ( ',' expression )* '}' | |
| ; | |
| constant_concatenation | |
| : '{' constant_expression ( ',' constant_expression )* '}' | |
| ; | |
| constant_multiple_concatenation | |
| : '{' constant_expression constant_concatenation '}' | |
| ; | |
| module_path_concatenation | |
| : '{' module_path_expression ( ',' module_path_expression )* '}' | |
| ; | |
| module_path_multiple_concatenation | |
| : '{' constant_expression module_path_concatenation '}' | |
| ; | |
| multiple_concatenation | |
| : '{' constant_expression concatenation '}' | |
| ; | |
| constant_function_call | |
| : function_identifier attribute_instance* '(' constant_expression ( ',' constant_expression )* ')' | |
| ; | |
| constant_system_function_call | |
| : system_function_identifier '(' constant_expression ( ',' constant_expression )* ')' | |
| ; | |
| function_call | |
| : hierarchical_function_identifier attribute_instance* '(' expression ( ',' expression )* ')' | |
| ; | |
| system_function_call | |
| : system_function_identifier ( '(' expression ( ',' expression )* ')' )? | |
| ; | |
| base_expression | |
| : expression | |
| ; | |
| /* | |
| conditional_expression | |
| : expression1 '?' attribute_instance* expression2 ':' expression3 | |
| ; | |
| */ | |
| constant_base_expression | |
| : constant_expression | |
| ; | |
| constant_expression | |
| : constant_primary | |
| | unary_operator attribute_instance* constant_primary | |
| | constant_expression binary_operator attribute_instance* constant_expression | |
| | constant_expression '?' attribute_instance* constant_expression ':' constant_expression | |
| ; | |
| constant_mintypmax_expression | |
| : constant_expression | |
| | constant_expression ':' constant_expression ':' constant_expression | |
| ; | |
| constant_range_expression | |
| : constant_expression | |
| | msb_constant_expression ':' lsb_constant_expression | |
| | constant_base_expression '+:' width_constant_expression | |
| | constant_base_expression '-:' width_constant_expression | |
| ; | |
| dimension_constant_expression | |
| : constant_expression | |
| ; | |
| expression | |
| : primary | |
| | unary_operator attribute_instance* primary | |
| | expression binary_operator attribute_instance* expression | |
| | expression '?' attribute_instance* expression ':' expression //conditional_expression | |
| ; | |
| lsb_constant_expression | |
| : constant_expression | |
| ; | |
| mintypmax_expression | |
| : expression | |
| | expression ':' expression ':' expression | |
| ; | |
| /* | |
| module_path_conditional_expression | |
| : module_path_expression '?' attribute_instance* module_path_expression ':' module_path_expression | |
| ; | |
| */ | |
| module_path_expression | |
| : module_path_primary | |
| | unary_module_path_operator attribute_instance* module_path_primary | |
| | module_path_expression binary_module_path_operator attribute_instance* module_path_expression | |
| | //module_path_conditional_expression | |
| module_path_expression '?' attribute_instance* module_path_expression ':' module_path_expression | |
| ; | |
| module_path_mintypmax_expression | |
| : module_path_expression | |
| | module_path_expression ':' module_path_expression ':' module_path_expression | |
| ; | |
| msb_constant_expression | |
| : constant_expression | |
| ; | |
| range_expression | |
| : expression | |
| | msb_constant_expression ':' lsb_constant_expression | |
| | base_expression '+:' width_constant_expression | |
| | base_expression '-:' width_constant_expression | |
| ; | |
| width_constant_expression | |
| : constant_expression | |
| ; | |
| constant_primary | |
| : number | |
| | parameter_identifier ( '[' constant_range_expression ']' )? | |
| | specparam_identifier ( '[' constant_range_expression ']' )? | |
| | constant_concatenation | |
| | constant_multiple_concatenation | |
| | constant_function_call | |
| | constant_system_function_call | |
| | '(' constant_mintypmax_expression ')' | |
| | string_ | |
| ; | |
| module_path_primary | |
| : number | |
| | identifier | |
| | module_path_concatenation | |
| | module_path_multiple_concatenation | |
| | function_call | |
| | system_function_call | |
| | '(' module_path_mintypmax_expression ')' | |
| ; | |
| primary | |
| : number | |
| | hierarchical_identifier ( ( '[' expression ']' )* '[' range_expression ']' )? | |
| | concatenation | |
| | multiple_concatenation | |
| | function_call | |
| | system_function_call | |
| | '(' mintypmax_expression ')' | |
| | string_ | |
| ; | |
| net_lvalue | |
| : hierarchical_net_identifier ( ( '[' constant_expression ']' )* '[' constant_range_expression ']' )? | |
| | '{' net_lvalue ( ',' net_lvalue )* '}' | |
| ; | |
| variable_lvalue | |
| : hierarchical_variable_identifier ( ( '[' expression ']' )* '[' range_expression ']' )? | |
| | '{' variable_lvalue ( ',' variable_lvalue )* '}' | |
| ; | |
| unary_operator | |
| : '+' | |
| | '-' | |
| | '!' | |
| | '~' | |
| | '&' | |
| | '~&' | |
| | '|' | |
| | '~|' | |
| | '^' | |
| | '~^' | |
| | '^~' | |
| ; | |
| binary_operator | |
| : '+' | |
| | '-' | |
| | '*' | |
| | '/' | |
| | '%' | |
| | '==' | |
| | '!=' | |
| | '===' | |
| | '!==' | |
| | '&&' | |
| | '||' | |
| | '**' | |
| | '<' | |
| | '<=' | |
| | '>' | |
| | '>=' | |
| | '&' | |
| | '|' | |
| | '^' | |
| | '^~' | |
| | '~^' | |
| | '>>' | |
| | '<<' | |
| | '>>>' | |
| | '<<<' | |
| ; | |
| unary_module_path_operator | |
| : '!' | |
| | '~' | |
| | '&' | |
| | '~&' | |
| | '|' | |
| | '~|' | |
| | '^' | |
| | '~^' | |
| | '^~' | |
| ; | |
| binary_module_path_operator | |
| : '==' | |
| | '!=' | |
| | '&&' | |
| | '||' | |
| | '&' | |
| | '|' | |
| | '^' | |
| | '^~' | |
| | '~^' | |
| ; | |
| number | |
| : decimal_number | |
| | octal_number | |
| | binary_number | |
| | hex_number | |
| | real_number | |
| ; | |
| real_number | |
| : REAL_NUMBER | |
| ; | |
| decimal_number | |
| : DECIMAL_NUMBER | |
| ; | |
| binary_number | |
| : BINARY_NUMBER | |
| ; | |
| octal_number | |
| : OCTAL_NUMBER | |
| ; | |
| hex_number | |
| : HEX_NUMBER | |
| ; | |
| unsigned_number | |
| : //UNSIGNED_NUMBER | |
| DECIMAL_NUMBER | |
| ; | |
| string_ | |
| : STRING | |
| ; | |
| attribute_instance | |
| : '(' '*' attr_spec ( ',' attr_spec )* '*' ')' | |
| ; | |
| attr_spec | |
| : attr_name ( '=' constant_expression )? | |
| ; | |
| attr_name | |
| : identifier | |
| ; | |
| block_identifier | |
| : identifier | |
| ; | |
| cell_identifier | |
| : identifier | |
| ; | |
| config_identifier | |
| : identifier | |
| ; | |
| escaped_identifier | |
| : ESCAPED_IDENTIFIER | |
| ; | |
| event_identifier | |
| : identifier | |
| ; | |
| function_identifier | |
| : identifier | |
| ; | |
| gate_instance_identifier | |
| : identifier | |
| ; | |
| generate_block_identifier | |
| : identifier | |
| ; | |
| genvar_identifier | |
| : identifier | |
| ; | |
| hierarchical_block_identifier | |
| : hierarchical_identifier | |
| ; | |
| hierarchical_event_identifier | |
| : hierarchical_identifier | |
| ; | |
| hierarchical_function_identifier | |
| : hierarchical_identifier | |
| ; | |
| hierarchical_identifier | |
| : ( identifier ( '[' constant_expression ']' )? '.' )* identifier | |
| ; | |
| hierarchical_net_identifier | |
| : hierarchical_identifier | |
| ; | |
| hierarchical_parameter_identifier | |
| : hierarchical_identifier | |
| ; | |
| hierarchical_variable_identifier | |
| : hierarchical_identifier | |
| ; | |
| hierarchical_task_identifier | |
| : hierarchical_identifier | |
| ; | |
| identifier | |
| : simple_identifier | |
| | escaped_identifier | |
| ; | |
| inout_port_identifier | |
| : identifier | |
| ; | |
| input_port_identifier | |
| : identifier | |
| ; | |
| instance_identifier | |
| : identifier | |
| ; | |
| library_identifier | |
| : identifier | |
| ; | |
| module_identifier | |
| : identifier | |
| ; | |
| module_instance_identifier | |
| : identifier | |
| ; | |
| net_identifier | |
| : identifier | |
| ; | |
| output_port_identifier | |
| : identifier | |
| ; | |
| parameter_identifier | |
| : identifier | |
| ; | |
| port_identifier | |
| : identifier | |
| ; | |
| real_identifier | |
| : identifier | |
| ; | |
| simple_identifier | |
| : SIMPLE_IDENTIFIER | |
| ; | |
| specparam_identifier | |
| : identifier | |
| ; | |
| system_function_identifier | |
| : SYSTEM_TF_IDENTIFIER | |
| ; | |
| system_task_identifier | |
| : SYSTEM_TF_IDENTIFIER | |
| ; | |
| task_identifier | |
| : identifier | |
| ; | |
| terminal_identifier | |
| : identifier | |
| ; | |
| text_macro_identifier | |
| : identifier | |
| ; | |
| topmodule_identifier | |
| : identifier | |
| ; | |
| udp_identifier | |
| : identifier | |
| ; | |
| udp_instance_identifier | |
| : identifier | |
| ; | |
| variable_identifier | |
| : identifier | |
| ; | |