• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • 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
              • Defparser
              • Vl-endinfo-p
                • Vl-endinfo
                • Make-vl-endinfo
                • Change-vl-endinfo
                • Make-honsed-vl-endinfo
                • Honsed-vl-endinfo
                • Vl-endinfo->name
                • Vl-endinfo->loc
              • Vl-match-token
              • Vl-match-some-token
              • Vl-match-any-except
              • Vl-parse-error
              • Vl-match
              • Vl-type-of-matched-token
              • Vl-tokstream-backup-p
              • Vl-maybe-match-token
              • Vl-parse-warning
              • Vl-match-any
              • Vl-linestart-indent
              • Vl-current-loc
              • Vl-choose-parse-error
              • Vl-parse-endblock-name
              • Vl-tokenlist-fix
              • Vl-lookahead-is-some-token?
              • Vl-tokstream-fix
              • Vl-is-token?
              • Vl-is-some-token?
              • Vl-add-context-to-parser-warning
              • Vl-lookahead-is-token?
              • Vl-tokstream-save
              • Vl-tokstream->tokens
              • Vl-tokstream-restore
              • Vl-tokstream-add-warning
              • Vl-tokstream->pstate
              • Vl-tokstream->position
              • Expand-defparsers
              • Vl-tokstream-pop
              • *vl-default-token*
            • Parse-insts
            • Parse-functions
            • Parse-assignments
            • 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
  • Parse-utils

Vl-endinfo-p

Temporary structure created to parse named endings like endmodule : foo.

(vl-endinfo-p x) is a defaggregate of the following fields.

  • name — The name we matched after the colon, e.g., foo above.
        Invariant (maybe-stringp name).
  • loc — The location of this name, for mismatch reporting.
        Invariant (vl-location-p loc).

Source link: vl-endinfo-p

SystemVerilog allows many syntactic constructs such as modules, user-defined primitives, programs, packages, etc., to optionally be closed using a verbose syntax that repeats the name. For instance, one can write:

module foo (...);
  ...
endmodule : foo     // <-- named ending

The ending name must match or it's an error, see "Block Names", Section 9.3.4 of the SystemVerilog-2012 spec. Note that these named endings aren't allowed in Verilog-2005.

An vl-endinfo-p structure is just a temporary structure used by our parser when we encounter such an ending.

Subtopics

Vl-endinfo
Raw constructor for vl-endinfo-p structures.
Make-vl-endinfo
Constructor macro for vl-endinfo-p structures.
Change-vl-endinfo
A copying macro that lets you create new vl-endinfo-p structures, based on existing structures.
Make-honsed-vl-endinfo
Constructor macro for honsed vl-endinfo-p structures.
Honsed-vl-endinfo
Raw constructor for honsed vl-endinfo-p structures.
Vl-endinfo->name
Access the name field of a vl-endinfo-p structure.
Vl-endinfo->loc
Access the loc field of a vl-endinfo-p structure.