• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Fgl
      • Vwsim
      • Vl
        • Syntax
        • Loader
          • Preprocessor
          • Vl-loadconfig
          • Vl-loadstate
          • Lexer
          • Parser
            • Parse-expressions
            • Parse-udps
            • Parse-statements
            • Parse-property
            • Vl-genelements
            • Parse-paramdecls
            • Parse-blockitems
            • Parse-utils
            • Parse-insts
            • Parse-functions
            • Parse-assignments
              • Parse-lvalues-2005
              • Vl-parse-continuous-assign
              • Vl-parse-list-of-variable-assignments
              • Vl-parse-list-of-net-assignments
              • Vl-parse-variable-lvalue-2012-aux
              • Vl-parse-net-lvalue-2012-aux
              • Vl-parse-variable-lvalue-2012
              • Vl-parse-variable-assignment
              • Vl-parse-net-lvalue-2012
                • Vl-expr-net-lvalue-p
                  • Vl-exprlist-net-lvalues-p
                  • Vl-assignpat-net-lvalue-p
              • Vl-parse-net-assignment
              • Vl-build-assignments
              • Vl-parse-variable-lvalue
              • Vl-parse-net-lvalue
            • Parse-clocking
            • Parse-strengths
            • Vl-parse-genvar-declaration
            • Vl-parse
            • Parse-netdecls
            • Parse-asserts
            • Vl-maybe-parse-lifetime
            • Parse-dpi-import-export
            • Parse-ports
            • Parse-timeunits
            • Seq
            • Parse-packages
            • Parse-eventctrl
          • Vl-load-merge-descriptions
          • Vl-find-basename/extension
          • Vl-load-file
          • Vl-loadresult
          • Scope-of-defines
          • Vl-find-file
          • Vl-flush-out-descriptions
          • Vl-description
          • Vl-read-file
          • Vl-includeskips-report-gather
          • Vl-load-main
          • Extended-characters
          • Vl-load
          • Vl-load-description
          • Vl-descriptions-left-to-load
          • Inject-warnings
          • Vl-preprocess-debug
          • Vl-write-preprocessor-debug-file
          • Vl-read-file-report-gather
          • Vl-load-descriptions
          • Vl-load-files
          • Translate-off
          • Vl-load-read-file-hook
          • Vl-read-file-report
          • Vl-loadstate-pad
          • Vl-load-summary
          • Vl-collect-modules-from-descriptions
          • Vl-loadstate->warnings
          • Vl-iskips-report
          • Vl-descriptionlist
        • Warnings
        • Getting-started
        • Utilities
        • Printer
        • Kit
        • Mlib
        • Transforms
      • X86isa
      • Svl
      • Rtl
    • Software-verification
    • Math
    • Testing-utilities
  • Lvalues
  • Vl-parse-net-lvalue-2012

Vl-expr-net-lvalue-p

Recognizer an expression that is OK for a SystemVerilog-2012 net_lvalue.

Signature
(vl-expr-net-lvalue-p x) → bool
Arguments
x — Guard (vl-expr-p x).

Here's the grammar for net_lvalue:

net_lvalue ::= ps_or_hierarchical_net_identifier constant_select
             | '{' net_lvalue { ',' net_lvalue } '}'
             | [ assignment_pattern_expression_type ] assignment_pattern_net_lvalue

The first production essentially corresponds to our notion of an index expression and the second to concatenation. The third production is quite similar to assignment_pattern_expression, which can be a valid expression primary,

assignment_pattern_expression ::= [ assignment_pattern_expression_type ] assignment_pattern

Except that here we have an assignment_pattern_net_lvalue instead of an assignment_pattern. So let's compare:

assignment_pattern_net_lvalue ::= QUOTE '{' net_lvalue { ',' net_lvalue } '}'

assignment_pattern ::= QUOTE '{' expression { ',' expression } '}'
                     | QUOTE '{' structure_pattern_key ...
                     | QUOTE '{' array_pattern_key ...
                     | QUOTE '{' constant_expression '{' ...

So essentially the grammar is just trying to (1) rule out the fancier structure/array/replication assignment patterns while still allowing basic positional assignment patterns, and (2) ensure that all of the expressions within the assignment pattern here happen to be good net_lvalues. We'll recognize these expressions with vl-expr-net-lvalue-p.

Subtopics

Vl-exprlist-net-lvalues-p
Vl-assignpat-net-lvalue-p