• 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
        • Warnings
        • Getting-started
        • Utilities
        • Printer
        • Kit
        • Mlib
          • Scopestack
          • Hid-tools
            • Vl-follow-hidexpr
            • Vl-index-expr-typetrace
            • Vl-follow-scopeexpr
            • Vl-follow-hidexpr-dimscheck
            • Vl-datatype-resolve-selects
            • Vl-datatype-remove-dim
            • Vl-operandinfo
              • Vl-operandinfo-fix
              • Vl-operandinfo-p
              • Make-vl-operandinfo
                • Vl-operandinfo-equiv
                • Change-vl-operandinfo
                • Vl-operandinfo->prefixname
                • Vl-operandinfo->type
                • Vl-operandinfo->seltrace
                • Vl-operandinfo->part
                • Vl-operandinfo->orig-expr
                • Vl-operandinfo->hidtype
                • Vl-operandinfo->hidtrace
                • Vl-operandinfo->declname
                • Vl-operandinfo->context
              • Vl-follow-hidexpr-dimcheck
              • Vl-follow-data-selects
              • Vl-follow-hidexpr-error
              • Vl-hidstep
              • Vl-scopestack-find-item/ss/path
              • Vl-follow-array-indices
              • Vl-scopecontext
              • Vl-datatype-set-unsigned
              • Vl-selstep
              • Vl-scopestack-find-elabpath
              • Vl-hid-prefix-for-subhid
              • Vl-find-structmember
              • Vl-select
              • Vl-scopeexpr-replace-hid
              • Vl-genblocklist-find-block
              • Vl-partselect-width
              • Vl-seltrace->indices
              • Vl-datatype->structmembers
              • Vl-hidexpr-resolved-p
              • Vl-operandinfo->indices
              • Vl-flatten-hidindex
              • Vl-subhid-p
              • Vl-seltrace-usertypes-ok
              • Vl-flatten-hidexpr
              • Vl-scopeexpr->hid
              • Vl-seltrace-index-count
              • Vl-operandinfo-usertypes-ok
              • Vl-operandinfo-index-count
              • Vl-datatype-dims-count
              • Vl-scopeexpr-index-count
              • Vl-hidexpr-index-count
              • Vl-usertype-lookup
              • Vl-hidindex-resolved-p
              • Vl-scopeexpr-resolved-p
              • Vl-selstep-usertypes-ok
              • Vl-hidtrace
              • Vl-seltrace
              • Vl-scopedef-interface-p
            • Filtering-by-name
            • Vl-interface-mocktype
            • Stripping-functions
            • Genblob
            • Expr-tools
            • Extract-vl-types
            • Hierarchy
            • Range-tools
            • Finding-by-name
            • Stmt-tools
            • Modnamespace
            • Flat-warnings
            • Reordering-by-name
            • Datatype-tools
            • Syscalls
            • Allexprs
            • Lvalues
            • Port-tools
          • Transforms
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-operandinfo

    Make-vl-operandinfo

    Basic constructor macro for vl-operandinfo structures.

    Syntax
    (make-vl-operandinfo [:orig-expr <orig-expr>] 
                         [:context <context>] 
                         [:prefixname <prefixname>] 
                         [:declname <declname>] 
                         [:hidtrace <hidtrace>] 
                         [:hidtype <hidtype>] 
                         [:seltrace <seltrace>] 
                         [:part <part>] 
                         [:type <type>]) 
    

    This is the usual way to construct vl-operandinfo structures. It simply conses together a structure with the specified fields.

    This macro generates a new vl-operandinfo structure from scratch. See also change-vl-operandinfo, which can "change" an existing structure, instead.

    Definition

    This is an ordinary make- macro introduced by defprod.

    Macro: make-vl-operandinfo

    (defmacro make-vl-operandinfo (&rest args)
      (std::make-aggregate 'vl-operandinfo
                           args
                           '((:orig-expr)
                             (:context)
                             (:prefixname)
                             (:declname)
                             (:hidtrace)
                             (:hidtype)
                             (:seltrace)
                             (:part)
                             (:type))
                           'make-vl-operandinfo
                           nil))

    Function: vl-operandinfo

    (defun vl-operandinfo
           (orig-expr context prefixname declname
                      hidtrace hidtype seltrace part type)
     (declare (xargs :guard (and (vl-expr-p orig-expr)
                                 (vl-scopecontext-p context)
                                 (vl-scopeexpr-p prefixname)
                                 (stringp declname)
                                 (vl-hidtrace-p hidtrace)
                                 (vl-datatype-p hidtype)
                                 (vl-seltrace-p seltrace)
                                 (vl-partselect-p part)
                                 (vl-datatype-p type))))
     (declare (xargs :guard t))
     (let ((__function__ 'vl-operandinfo))
      (declare (ignorable __function__))
      (b* ((orig-expr (mbe :logic (vl-expr-fix orig-expr)
                           :exec orig-expr))
           (context (mbe :logic (vl-scopecontext-fix context)
                         :exec context))
           (prefixname (mbe :logic (vl-scopeexpr-fix prefixname)
                            :exec prefixname))
           (declname (mbe :logic (str-fix declname)
                          :exec declname))
           (hidtrace (mbe :logic (vl-hidtrace-fix hidtrace)
                          :exec hidtrace))
           (hidtype (mbe :logic (vl-datatype-fix hidtype)
                         :exec hidtype))
           (seltrace (mbe :logic (vl-seltrace-fix seltrace)
                          :exec seltrace))
           (part (mbe :logic (vl-partselect-fix part)
                      :exec part))
           (type (mbe :logic (vl-datatype-fix type)
                      :exec type)))
       (std::prod-cons
        (std::prod-cons (std::prod-cons orig-expr context)
                        (std::prod-cons prefixname declname))
        (std::prod-cons (std::prod-cons hidtrace hidtype)
                        (std::prod-cons seltrace
                                        (std::prod-cons part type)))))))