• 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
            • Vl-interfaceportlist->ifnames
            • Vl-blockscope
              • Vl-blockscope-fix
              • Make-vl-blockscope
                • Vl-blockscope-equiv
                • Vl-blockscope-p
                • Vl-blockscope->paramdecls
                • Vl-blockscope->vardecls
                • Vl-blockscope->typedefs
                • Vl-blockscope->scopetype
                • Vl-blockscope->imports
                • Change-vl-blockscope
                • Vl-blockscope->name
                • Vl-taskdecl->blockscope
                • Vl-fundecl->blockscope
                • Vl-foreachstmt->blockscope
                • Vl-blockstmt->blockscope
                • Vl-forstmt->blockscope
              • Vl-scope-find-item
              • Vl-scopestack-find-item/ss/package
              • Vl-importlist-find-explicit-item
              • Vl-scopestack-find-item/context
              • Vl-importlist-find-implicit-item
              • Vl-import-stars-find-item
              • Vl-scopeinfo
              • Vl-importlist->explicit-item-alist
              • Vl-scopestack-find-definition/ss
              • Vl-scopeitem
              • Vl-scopestack-find-package/ss
              • Vl-scopestack
              • Vl-scopeinfo-find-item
              • Vl-scopestack-find-item/ss
              • Vl-scopestack-find-class/ss
              • Scopestack-constants
              • Vl-scope-namespace
              • Vl-maybe-scope
              • Vl-importresult
              • Vl-scopestack-push
              • Vl-import-stars-itemnames
              • Vl-scope->scopeinfo
              • Vl-scope-find-item-fast
              • Vl-interface-scope-find-item
              • Vl-genblob-scope-find-item
              • Vl-module-scope-find-item
              • Vl-design-scope-find-definition
              • Vl-scopestack-find-item
              • Vl-scopestack-find-definition
              • Vl-scopeinfo->itemnames
              • Vl-scope-find-portdecl
              • Vl-scope-find-definition
              • Vl-package-scope-find-item
              • Vl-interface-scope-find-portdecl
              • Vl-genblob-scope-find-portdecl
              • Vl-design-scope-find-item
              • Vl-blockscope-scope-find-item
              • Vl-scopestack-find-package
              • Vl-scope-find-package
              • Vl-module-scope-find-portdecl
              • Vl-design-scope-find-package
              • Vl-design-scope-find-class
              • Vl-class-scope-find-item
              • Vl-scopestack-find-class
              • Vl-scope-find-class
              • Vl-scopestack->hashkey
              • Vl-scope-find-portdecl-fast
              • Vl-package-scope-item-alist-top
              • Vl-scopestack->path-aux
              • Vl-scopedef
              • Vl-scope-portdecl-alist
              • Vl-scope-package-alist
              • Vl-scope-find-definition-fast
              • Vl-scope-definition-alist
              • Vl-scope-find-package-fast
              • Vl-scope-find-class-fast
              • Vl-scope-class-alist
              • Vl-scopestack->path
              • Vl-scopestack->design
              • Vl-scopeitem->name
              • Vl-scope
              • Vl-scopestack-init
              • Vl-importlist->star-packages
              • Vl-scopestack-pop
              • Vl-scopestack-nesting-level
              • Vl-scopestack->toplevel
              • Vl-scope->scopetype
              • Vl-scope->id
              • Vl-design-scope-package-alist-top
              • Vl-bindlist->modinsts
              • Vl-scopestack-toplevel-p
              • Vl-scopestacks-free
              • Vl-importresult-alist
            • Hid-tools
            • 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-blockscope

    Make-vl-blockscope

    Basic constructor macro for vl-blockscope structures.

    Syntax
    (make-vl-blockscope [:imports <imports>] 
                        [:paramdecls <paramdecls>] 
                        [:vardecls <vardecls>] 
                        [:typedefs <typedefs>] 
                        [:scopetype <scopetype>] 
                        [:name <name>]) 
    

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

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

    Definition

    This is an ordinary make- macro introduced by defprod.

    Macro: make-vl-blockscope

    (defmacro make-vl-blockscope (&rest args)
      (std::make-aggregate 'vl-blockscope
                           args
                           '((:imports)
                             (:paramdecls)
                             (:vardecls)
                             (:typedefs)
                             (:scopetype)
                             (:name))
                           'make-vl-blockscope
                           nil))

    Function: vl-blockscope

    (defun vl-blockscope (imports paramdecls
                                  vardecls typedefs scopetype name)
     (declare (xargs :guard (and (vl-importlist-p imports)
                                 (vl-paramdecllist-p paramdecls)
                                 (vl-vardecllist-p vardecls)
                                 (vl-typedeflist-p typedefs)
                                 (vl-scopetype-p scopetype)
                                 (maybe-stringp name))))
     (declare (xargs :guard t))
     (let ((__function__ 'vl-blockscope))
      (declare (ignorable __function__))
      (b* ((imports (mbe :logic (vl-importlist-fix imports)
                         :exec imports))
           (paramdecls (mbe :logic (vl-paramdecllist-fix paramdecls)
                            :exec paramdecls))
           (vardecls (mbe :logic (vl-vardecllist-fix vardecls)
                          :exec vardecls))
           (typedefs (mbe :logic (vl-typedeflist-fix typedefs)
                          :exec typedefs))
           (scopetype (mbe :logic (vl-scopetype-fix scopetype)
                           :exec scopetype))
           (name (mbe :logic (maybe-string-fix name)
                      :exec name)))
        (cons :vl-blockscope
              (std::prod-cons
                   (std::prod-cons imports
                                   (std::prod-cons paramdecls vardecls))
                   (std::prod-cons typedefs
                                   (std::prod-cons scopetype name)))))))