SystemVerilog for Design: A Guide to Using SystemVerilog for Hardware Design and Modeling, Second Edition

A.2: Declarations

A.2 Declarations

A.2.1 Declaration types

A.2.1.1 Module parameter declarations

local_parameter_declaration ::=<b class="bold">           localparam</b> data_type_or_implicit list_of_param_assignments <b class="bold">;</b>parameter_declaration ::=<b class="bold">           parameter</b> data_type_or_implicit list_of_param_assignments          <b class="bold">parameter type</b> list_of_type_assignmentsspecparam_declaration ::=<b class="bold">          specparam</b> [ packed_dimension ] list_of_specparam_assignments <b class="bold">;</b>

A.2.1.2 Port declarations

inout_declaration ::=<b class="bold">           inout</b> net_port_type list_of_port_identifiersinput_declaration ::=<b class="bold">           input</b> net_port_type list_of_port_identifiers          <b class="bold">input</b> variable_port_type list_of_variable_identifiersoutput_declaration ::=<b class="bold">           output</b> net_port_type list_of_port_identifiers          <b class="bold">output</b> variable_port_type list_of_variable_port_identifiersinterface_port_declaration ::=          interface_identifier list_of_interface_identifiers          interface_identifier <b class="bold">.</b> modport_identifier list_of_interface_identifiersref_declaration ::= <b class="bold">ref</b> variable_port_type list_of_port_identifiers

A.2.1.3 Type declarations

data_declaration<sup[<a href="#ftn.endnote10"> name="endnote10">15</a>]</sup> ::=          [ <b class="bold">const</b> ] [ <b class="bold">var</b> ] [ lifetime ] data_type_or_implicit list_of_variable_decl_assignments <b class="bold">;</b>         type_declaration         package_import_declaration         virtual_interface_declarationpackage_import_declaration ::=<b class="bold">           import</b>

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: Depolarizers
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.