• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
        • Warnings
        • Primitives
        • Use-set
        • Syntax
        • Getting-started
        • Utilities
        • Loader
          • Preprocessor
          • Vl-loadconfig
          • Lexer
          • Vl-loadstate
          • Parser
            • Parse-expressions
            • Parse-udps
            • Vl-genelements
            • Parse-paramdecls
            • Parse-blockitems
            • Parse-utils
            • Parse-insts
            • Parse-datatype
              • Vl-parse-datatype
                • Vl-vardeclassign-p
                  • Vl-vardeclassign
                  • Make-vl-vardeclassign
                  • Change-vl-vardeclassign
                  • Make-honsed-vl-vardeclassign
                  • Honsed-vl-vardeclassign
                  • Vl-vardeclassign->id
                  • Vl-vardeclassign->expr
                  • Vl-vardeclassign->dims
              • Vl-parse-structmembers
              • Vl-parse-structmember
              • Vl-parse-datatype-or-void
            • Parse-functions
            • Parse-datatypes
            • Parse-strengths
            • Vl-parse-genvar-declaration
            • Vl-parse
            • Parse-ports
            • Seq
            • Parse-packages
          • Vl-load-merge-descriptions
          • Scope-of-defines
          • Vl-load-file
          • Vl-flush-out-descriptions
          • Vl-description
          • Vl-loadresult
          • Vl-read-file
          • Vl-find-basename/extension
          • Vl-find-file
          • Vl-read-files
          • Extended-characters
          • Vl-load
          • Vl-load-main
          • Vl-load-description
          • Vl-descriptions-left-to-load
          • Inject-warnings
          • Vl-load-descriptions
          • Vl-load-files
          • Vl-load-summary
          • Vl-collect-modules-from-descriptions
          • Vl-descriptionlist
        • Transforms
        • Lint
        • Mlib
        • Server
        • Kit
        • Printer
        • Esim-vl
        • Well-formedness
      • Sv
      • Fgl
      • Vwsim
      • Vl
      • X86isa
      • Svl
      • Rtl
    • Software-verification
    • Math
    • Testing-utilities
  • Vl-parse-datatype
  • Vl-build-vardecls

Vl-vardeclassign-p

Temporary structure used when parsing variable declarations.

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

  • id — Invariant (stringp id).
  • dims — BOZO not sufficiently general.
        Invariant (vl-packeddimensionlist-p dims).
  • expr — BOZO not sufficiently general.
        Invariant (vl-maybe-expr-p expr).

Source link: vl-vardeclassign-p

This captures something like a variable_type from Verilog-2005:

variable_type ::= identifier { range }
                | identifier '=' expression

Or variable_decl_assignment from SystemVerilog-2012, except that BOZO we don't yet support new sorts of stuff or certain kinds of dimensions.

variable_decl_assignment ::=
     identifier { variable_dimension } [ '=' expression ]
   | identifier unsized_dimension { variable_dimension } [ '=' dynamic_array_new ]
   | identifier [ '=' class_new ]

Subtopics

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