• 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-fundecl-p
            • Vl-fundecl-fix
            • Make-vl-fundecl
              • Vl-fundecl-equiv
              • Change-vl-fundecl
              • Vl-fundecl->portdecls
              • Vl-fundecl->paramdecls
              • Vl-fundecl->blockitems
              • Vl-fundecl->vardecls
              • Vl-fundecl->rettype
              • Vl-fundecl->name
              • Vl-fundecl->lifetime
              • Vl-fundecl->imports
              • Vl-fundecl->loc
              • Vl-fundecl->body
              • Vl-fundecl->atts
            • Vl-assign
            • Vl-gateinst
            • Vl-modinst
            • Vl-commentmap
            • Vl-portdecl
            • Vl-taskdecl
            • Vl-design
            • 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-fundecl

    Make-vl-fundecl

    Basic constructor macro for vl-fundecl structures.

    Syntax
    (make-vl-fundecl [:name <name>] 
                     [:lifetime <lifetime>] 
                     [:rettype <rettype>] 
                     [:portdecls <portdecls>] 
                     [:imports <imports>] 
                     [:vardecls <vardecls>] 
                     [:paramdecls <paramdecls>] 
                     [:blockitems <blockitems>] 
                     [:body <body>] 
                     [:atts <atts>] 
                     [:loc <loc>]) 
    

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

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

    Definition

    This is an ordinary make- macro introduced by defprod.

    Macro: make-vl-fundecl

    (defmacro make-vl-fundecl (&rest args)
      (std::make-aggregate 'vl-fundecl
                           args
                           '((:name)
                             (:lifetime)
                             (:rettype)
                             (:portdecls)
                             (:imports)
                             (:vardecls)
                             (:paramdecls)
                             (:blockitems)
                             (:body)
                             (:atts)
                             (:loc))
                           'make-vl-fundecl
                           nil))

    Function: vl-fundecl

    (defun vl-fundecl (name lifetime
                            rettype portdecls imports vardecls
                            paramdecls blockitems body atts loc)
     (declare (xargs :guard (and (stringp name)
                                 (vl-lifetime-p lifetime)
                                 (vl-datatype-p rettype)
                                 (vl-portdecllist-p portdecls)
                                 (vl-importlist-p imports)
                                 (vl-vardecllist-p vardecls)
                                 (vl-paramdecllist-p paramdecls)
                                 (vl-blockitemlist-p blockitems)
                                 (vl-stmt-p body)
                                 (vl-atts-p atts)
                                 (vl-location-p loc))))
     (declare (xargs :guard t))
     (let ((__function__ 'vl-fundecl))
      (declare (ignorable __function__))
      (b* ((name (mbe :logic (str-fix name) :exec name))
           (lifetime (mbe :logic (vl-lifetime-fix lifetime)
                          :exec lifetime))
           (rettype (mbe :logic (vl-datatype-fix rettype)
                         :exec rettype))
           (portdecls (mbe :logic (vl-portdecllist-fix portdecls)
                           :exec portdecls))
           (imports (mbe :logic (vl-importlist-fix imports)
                         :exec imports))
           (vardecls (mbe :logic (vl-vardecllist-fix vardecls)
                          :exec vardecls))
           (paramdecls (mbe :logic (vl-paramdecllist-fix paramdecls)
                            :exec paramdecls))
           (blockitems (mbe :logic (vl-blockitemlist-fix blockitems)
                            :exec blockitems))
           (body (mbe :logic (vl-stmt-fix body)
                      :exec body))
           (atts (mbe :logic (vl-atts-fix atts)
                      :exec atts))
           (loc (mbe :logic (vl-location-fix loc)
                     :exec loc)))
       (cons
        :vl-fundecl
        (std::prod-cons
            (std::prod-cons
                 (std::prod-cons name lifetime)
                 (std::prod-cons rettype
                                 (std::prod-cons portdecls imports)))
            (std::prod-cons
                 (std::prod-cons vardecls
                                 (std::prod-cons paramdecls blockitems))
                 (std::prod-cons body (std::prod-cons atts loc))))))))