• 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
              • Vl-ranges->dimensions
              • Vl-2005-parse-block-item-declaration-noatts
              • Vl-2012-parse-block-item-declaration-noatts
              • Vl-parse-main-data-declaration
              • Vl-parse-type-declaration
              • Vl-parse-fwd-typedef
              • Vl-parse-0+-block-item-declarations
              • Vl-parse-list-of-event-identifiers
              • Vl-parse-list-of-variable-identifiers
              • Vl-parse-realtime-declaration
              • Vl-parse-block-item-declaration-noatts
              • Vl-parse-time-declaration
              • Vl-parse-reg-declaration
              • Vl-parse-real-declaration
              • Vl-parse-integer-declaration
              • Vl-build-vardecls
                • Vl-vardeclassign-p
                  • Vl-vardeclassign
                  • Make-vl-vardeclassign
                  • Change-vl-vardeclassign
                  • Make-honsed-vl-vardeclassign
                  • Honsed-vl-vardeclassign
                  • Vl-vardeclassign->rhs
                  • Vl-vardeclassign->id
                  • Vl-vardeclassign->dims
              • Vl-parse-event-declaration
              • Vl-parse-block-item-declaration
              • Vl-parse-1+-let-ports
              • Vl-parse-variable-type
              • Vl-parse-let-declaration
              • Vl-parse-0+-let-ports
            • Parse-utils
            • 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
  • 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 — Invariant (vl-dimensionlist-p dims).
  • rhs — BOZO not sufficiently general.
        Invariant (vl-maybe-rhs-p rhs).

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, which is richer and supports new invocations,

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

dynamic_array_new ::= 'new' '[' expression ']' [ '(' expression ')' ]

class_new ::= [ class_scope ] 'new' [ '(' list_of_arguments ')' ]
            | 'new' expression

Except that BOZO we currently don't support class_scope or some kinds of list_of_arguments.

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->rhs
Access the rhs field of a vl-vardeclassign-p structure.
Vl-vardeclassign->id
Access the id field of a vl-vardeclassign-p structure.
Vl-vardeclassign->dims
Access the dims field of a vl-vardeclassign-p structure.