• 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
          • Vl-module
          • Vl-vardecl
          • Expressions
          • Vl-fundecl
          • Vl-assign
          • Vl-gateinst
          • Vl-modinst
          • Vl-commentmap
          • Vl-portdecl
          • Vl-taskdecl
          • Vl-design
            • Vl-design-p
            • Vl-design-fix
            • Make-vl-design
              • Vl-design-equiv
              • Change-vl-design
              • Vl-design->taskdecls
              • Vl-design->paramdecls
              • Vl-design->interfaces
              • Vl-design->warnings
              • Vl-design->version
              • Vl-design->vardecls
              • Vl-design->typedefs
              • Vl-design->programs
              • Vl-design->packages
              • Vl-design->imports
              • Vl-design->fwdtypes
              • Vl-design->fundecls
              • Vl-design->configs
              • Vl-design->comments
              • Vl-design->udps
              • Vl-design->mods
            • Vl-interface
            • Vl-plainarglist->exprs
            • Vl-taskdecllist->names
            • Vl-fundecllist->names
            • Vl-package
            • Vl-port
            • Vl-udp
            • Vl-paramdecl
            • Vl-genelement
            • Vl-cycledelayrange
            • Vl-namedarg
            • Vl-sort-blockitems-aux
            • Vl-distitem
            • Vl-gatedelay
            • Vl-repetition
            • Vl-typedef
            • Vl-range
            • Vl-gatestrength
            • Vl-program
            • Vl-config
            • Vl-always
            • Vl-datatype-update-dims
            • Vl-import
            • Vl-enumbasetype
            • Vl-repeateventcontrol
            • Vl-paramargs
            • Vl-initial
            • Vl-eventcontrol
            • Vl-udpsymbol-p
            • Vl-maybe-range
            • Vl-maybe-nettypename
            • Vl-maybe-gatestrength
            • Vl-maybe-gatedelay
            • Vl-maybe-delayoreventcontrol
            • Vl-alias
            • Maybe-string-fix
            • Vl-maybe-packeddimension
            • Vl-fwdtypedef
            • Vl-evatom
            • Vl-packeddimension-p
            • Vl-maybe-udpsymbol
            • Vl-maybe-module
            • Vl-maybe-direction
            • Vl-maybe-datatype
            • Vl-maybe-cstrength
            • Vl-direction-p
            • Vl-arguments
            • Vl-maybe-design
            • Vl-udpline
            • Vl-exprdist
            • Vl-context1
            • Vl-genvar
            • Vl-enumitem
            • Vl-datatype-update-udims
            • Vl-datatype-update-pdims
            • Vl-modelement
            • Vl-udpedge
            • Vl-delaycontrol
            • Vl-context
            • Vl-sort-blockitems
            • Vl-distweighttype-p
            • Vl-ctxelement->loc
            • Vl-blockitem
            • Vl-vardecllist
            • Vl-module->ifports
            • Vl-modelement->loc
            • Vl-ctxelement
            • Vl-coretypename-p
            • Vl-packeddimensionlist
            • Vl-modelementlist->genelements
            • Vl-gatetype-p
            • Vl-paramdecllist
            • Vl-lifetime-p
            • Vl-datatype->udims
            • Vl-datatype->pdims
            • Vl-timeunit-p
            • Vl-repetitiontype-p
            • Vl-port->name
            • Vl-importlist
            • Vl-genelement->loc
            • Vl-delayoreventcontrol
            • Vl-cstrength-p
            • Statements
            • Vl-udpentry-p
            • Vl-packeddimension-fix
            • Vl-nettypename-p
            • Vl-portdecllist
            • Vl-port->loc
            • Vl-enumbasekind-fix
            • Vl-arguments->args
            • Vl-taskdecllist
            • Vl-portlist
            • Vl-importpart-p
            • Vl-importpart-fix
            • Vl-fundecllist
            • Vl-blockstmt-p
            • Vl-assignlist
            • Vl-alwaystype-p
            • Vl-typedeflist
            • Vl-syntaxversion-p
            • Vl-randomqualifier-p
            • Vl-modinstlist
            • Vl-gateinstlist
            • Vl-blockitemlist
            • Vl-udptable
            • Vl-udplist
            • Vl-udpentrylist
            • Vl-programlist
            • Vl-paramvaluelist
            • Vl-packagelist
            • Vl-namedparamvaluelist
            • Vl-namedarglist
            • Vl-modulelist
            • Vl-modportlist
            • Vl-modport-portlist
            • Vl-interfacelist
            • Vl-initiallist
            • Vl-genvarlist
            • Vl-fwdtypedeflist
            • Vl-evatomlist
            • Vl-enumitemlist
            • Vl-distlist
            • Vl-configlist
            • Vl-alwayslist
            • Vl-aliaslist
            • Vl-regularportlist
            • Vl-rangelist-list
            • Vl-rangelist
            • Vl-paramdecllist-list
            • Vl-modelementlist
            • Vl-maybe-range-list
            • Vl-interfaceportlist
            • Vl-argumentlist
            • Data-types
          • Getting-started
          • Utilities
          • Loader
          • Transforms
          • Lint
          • Mlib
          • Server
          • Kit
          • Printer
          • Esim-vl
          • Well-formedness
        • Sv
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-design

    Make-vl-design

    Basic constructor macro for vl-design structures.

    Syntax
    (make-vl-design [:version <version>] 
                    [:mods <mods>] 
                    [:udps <udps>] 
                    [:interfaces <interfaces>] 
                    [:programs <programs>] 
                    [:packages <packages>] 
                    [:configs <configs>] 
                    [:vardecls <vardecls>] 
                    [:taskdecls <taskdecls>] 
                    [:fundecls <fundecls>] 
                    [:paramdecls <paramdecls>] 
                    [:imports <imports>] 
                    [:fwdtypes <fwdtypes>] 
                    [:typedefs <typedefs>] 
                    [:warnings <warnings>] 
                    [:comments <comments>]) 
    

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

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

    Definition

    This is an ordinary make- macro introduced by defprod.

    Macro: make-vl-design

    (defmacro make-vl-design (&rest args)
      (std::make-aggregate 'vl-design
                           args
                           '((:version . *vl-current-syntax-version*)
                             (:mods)
                             (:udps)
                             (:interfaces)
                             (:programs)
                             (:packages)
                             (:configs)
                             (:vardecls)
                             (:taskdecls)
                             (:fundecls)
                             (:paramdecls)
                             (:imports)
                             (:fwdtypes)
                             (:typedefs)
                             (:warnings)
                             (:comments))
                           'make-vl-design
                           nil))

    Function: vl-design

    (defun vl-design (version mods udps interfaces
                              programs packages configs vardecls
                              taskdecls fundecls paramdecls imports
                              fwdtypes typedefs warnings comments)
     (declare (xargs :guard (and (vl-syntaxversion-p version)
                                 (vl-modulelist-p mods)
                                 (vl-udplist-p udps)
                                 (vl-interfacelist-p interfaces)
                                 (vl-programlist-p programs)
                                 (vl-packagelist-p packages)
                                 (vl-configlist-p configs)
                                 (vl-vardecllist-p vardecls)
                                 (vl-taskdecllist-p taskdecls)
                                 (vl-fundecllist-p fundecls)
                                 (vl-paramdecllist-p paramdecls)
                                 (vl-importlist-p imports)
                                 (vl-fwdtypedeflist-p fwdtypes)
                                 (vl-typedeflist-p typedefs)
                                 (vl-warninglist-p warnings)
                                 (vl-commentmap-p comments))))
     (declare (xargs :guard t))
     (let ((__function__ 'vl-design))
      (declare (ignorable __function__))
      (b* ((version (mbe :logic (vl-syntaxversion-fix version)
                         :exec version))
           (mods (mbe :logic (vl-modulelist-fix mods)
                      :exec mods))
           (udps (mbe :logic (vl-udplist-fix udps)
                      :exec udps))
           (interfaces (mbe :logic (vl-interfacelist-fix interfaces)
                            :exec interfaces))
           (programs (mbe :logic (vl-programlist-fix programs)
                          :exec programs))
           (packages (mbe :logic (vl-packagelist-fix packages)
                          :exec packages))
           (configs (mbe :logic (vl-configlist-fix configs)
                         :exec configs))
           (vardecls (mbe :logic (vl-vardecllist-fix vardecls)
                          :exec vardecls))
           (taskdecls (mbe :logic (vl-taskdecllist-fix taskdecls)
                           :exec taskdecls))
           (fundecls (mbe :logic (vl-fundecllist-fix fundecls)
                          :exec fundecls))
           (paramdecls (mbe :logic (vl-paramdecllist-fix paramdecls)
                            :exec paramdecls))
           (imports (mbe :logic (vl-importlist-fix imports)
                         :exec imports))
           (fwdtypes (mbe :logic (vl-fwdtypedeflist-fix fwdtypes)
                          :exec fwdtypes))
           (typedefs (mbe :logic (vl-typedeflist-fix typedefs)
                          :exec typedefs))
           (warnings (mbe :logic (vl-warninglist-fix warnings)
                          :exec warnings))
           (comments (mbe :logic (vl-commentmap-fix comments)
                          :exec comments)))
       (cons
        :vl-design
        (std::prod-cons
          (std::prod-cons
               (std::prod-cons (std::prod-cons version mods)
                               (std::prod-cons udps interfaces))
               (std::prod-cons (std::prod-cons programs packages)
                               (std::prod-cons configs vardecls)))
          (std::prod-cons
               (std::prod-cons (std::prod-cons taskdecls fundecls)
                               (std::prod-cons paramdecls imports))
               (std::prod-cons (std::prod-cons fwdtypes typedefs)
                               (std::prod-cons warnings comments))))))))