• 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-follow-hidexpr-dimcheck
            • Vl-follow-data-selects
            • Vl-follow-hidexpr-error
            • Vl-hidstep
              • Vl-hidstep-fix
              • Vl-hidstep-equiv
              • Make-vl-hidstep
                • Vl-hidstep-p
                • Vl-hidstep->elabpath
                • Change-vl-hidstep
                • Vl-hidstep->ss
                • Vl-hidstep->name
                • Vl-hidstep->item
                • Vl-hidstep->index
              • 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-hidstep

    Make-vl-hidstep

    Basic constructor macro for vl-hidstep structures.

    Syntax
    (make-vl-hidstep [:name <name>] 
                     [:index <index>] 
                     [:item <item>] 
                     [:ss <ss>] 
                     [:elabpath <elabpath>]) 
    

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

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

    Definition

    This is an ordinary make- macro introduced by defprod.

    Macro: make-vl-hidstep

    (defmacro make-vl-hidstep (&rest args)
      (std::make-aggregate 'vl-hidstep
                           args
                           '((:name)
                             (:index)
                             (:item)
                             (:ss)
                             (:elabpath))
                           'make-vl-hidstep
                           nil))

    Function: vl-hidstep

    (defun vl-hidstep (name index item ss elabpath)
     (declare (xargs :guard (and (stringp name)
                                 (vl-maybe-expr-p index)
                                 (vl-scopeitem-p item)
                                 (vl-scopestack-p ss)
                                 (vl-elabtraversal-p elabpath))))
     (declare (xargs :guard t))
     (let ((__function__ 'vl-hidstep))
      (declare (ignorable __function__))
      (b* ((name (mbe :logic (str-fix name) :exec name))
           (index (mbe :logic (vl-maybe-expr-fix index)
                       :exec index))
           (item (mbe :logic (vl-scopeitem-fix item)
                      :exec item))
           (ss (mbe :logic (vl-scopestack-fix ss)
                    :exec ss))
           (elabpath (mbe :logic (vl-elabtraversal-fix elabpath)
                          :exec elabpath)))
       (cons
            :vl-hidstep
            (std::prod-cons
                 (std::prod-cons name index)
                 (std::prod-cons item (std::prod-cons ss elabpath)))))))