• 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
          • Vl-module
          • Vl-vardecl
          • Vl-fundecl
            • Vl-fundecl-p
            • Vl-fundecl-fix
            • Make-vl-fundecl
              • Vl-fundecl-equiv
              • Change-vl-fundecl
              • Vl-fundecl->function-map
              • Vl-fundecl->loaditems
              • Vl-fundecl->vardecls
              • Vl-fundecl->typedefs
              • Vl-fundecl->portdecls
              • Vl-fundecl->paramdecls
              • Vl-fundecl->rettype
              • Vl-fundecl->name
              • Vl-fundecl->lifetime
              • Vl-fundecl->imports
              • Vl-fundecl->loc
              • Vl-fundecl->body
              • Vl-fundecl->atts
            • Vl-interface
            • Vl-design
            • Vl-assign
            • Vl-modinst
            • Vl-gateinst
            • Vl-taskdecl
            • Vl-portdecl
            • Vl-commentmap
            • Vl-dpiimport
            • Vl-ansi-portdecl
            • Vl-package
            • Vl-paramdecl
            • Vl-dpiexport
            • Vl-class
            • Vl-sort-blockitems-aux
            • Vl-plainarglist->exprs
            • Vl-taskdecllist->names
            • Expressions-and-datatypes
            • Vl-fundecllist->names
            • Vl-udp
            • Vl-port
            • Vl-genelement
            • Vl-clkdecl
            • Vl-parse-temps
            • Vl-bind
            • Vl-namedarg
            • Vl-exprdist
            • Vl-clkassign
            • Vl-range
            • Vl-propport
            • Vl-typedef
            • Vl-gatedelay
            • Vl-dimension
            • Vl-sequence
            • Vl-clkskew
            • Vl-program
            • Vl-gatestrength
            • Vl-property
            • Vl-config
            • Vl-always
            • Vl-import
            • Vl-repeateventcontrol
            • Vl-timeliteral
            • Vl-initial
            • Vl-eventcontrol
            • Vl-final
            • Vl-udpsymbol-p
            • Vl-maybe-clkskew
            • Vl-function-specialization
            • Vl-alias
            • Vl-maybe-nettypename
            • Vl-maybe-gatedelay
            • Vl-letdecl
            • Vl-direction-p
            • Vl-modelement
            • Vl-maybe-timeprecisiondecl
            • Vl-maybe-scopeid
            • Vl-maybe-gatestrength
            • Vl-maybe-direction
            • Vl-maybe-delayoreventcontrol
            • Vl-gclkdecl
            • Vl-fwdtypedef
            • Vl-maybe-udpsymbol-p
            • Vl-maybe-timeunitdecl
            • Vl-maybe-timeliteral
            • Vl-maybe-parse-temps
            • Vl-maybe-cstrength
            • Vl-arguments
            • Vl-maybe-module
            • Vl-maybe-design
            • Vl-covergroup
            • Vl-udpline
            • Vl-timeunitdecl
            • Vl-genvar
            • Vl-defaultdisable
            • Vl-context1
            • Vl-timeprecisiondecl
            • Vl-sort-blockitems
            • Vl-elabtask
            • Vl-udpedge
            • Vl-delaycontrol
            • Vl-context
            • Vl-ctxelement
            • Vl-ctxelement->loc
            • Vl-modelement->loc
            • Statements
            • Vl-blockitem
            • Vl-vardecllist
            • Vl-interface->ifports
            • Vl-syntaxversion
            • Vl-nettypename-p
            • Vl-module->ifports
            • Vl-lifetime-p
            • Vl-paramdecllist
            • Vl-modelementlist->genelements
            • Vl-importlist
            • Vl-typedeflist
            • Vl-gatetype-p
            • Vl-cstrength-p
            • Vl-port->name
            • Vl-genelement->loc
            • Vl-delayoreventcontrol
            • Vl-udpentry-p
            • Vl-portdecllist
            • Vl-elabtask->loc
            • Property-expressions
            • Vl-taskdecllist
            • Vl-port->loc
            • Vl-fundecllist
            • Vl-sequencelist
            • Vl-propertylist
            • Vl-portlist
            • Vl-dpiimportlist
            • Vl-dpiexportlist
            • Vl-classlist
            • Vl-arguments->args
            • Vl-alwaystype-p
            • Vl-modinstlist
            • Vl-importpart-p
            • Vl-importpart-fix
            • Vl-bindlist
            • Vl-initiallist
            • Vl-genvarlist
            • Vl-gclkdecllist
            • Vl-function-specialization-map
            • Vl-finallist
            • Vl-elabtasklist
            • Vl-defaultdisablelist
            • Vl-clkdecllist
            • Vl-cassertionlist
            • Vl-blockstmt-p
            • Vl-assignlist
            • Vl-assertionlist
            • Vl-alwayslist
            • Vl-aliaslist
            • Vl-udptable
            • Vl-udplist
            • Vl-udpentrylist
            • Vl-propportlist
            • Vl-programlist
            • Vl-packagelist
            • Vl-namedarglist
            • Vl-modulelist
            • Vl-modportlist
            • Vl-modport-portlist
            • Vl-letdecllist
            • Vl-interfacelist
            • Vl-gateinstlist
            • Vl-fwdtypedeflist
            • Vl-covergrouplist
            • Vl-configlist
            • Vl-clkassignlist
            • Vl-blockitemlist
            • Vl-ansi-portdecllist
            • Vl-regularportlist
            • Vl-paramdecllist-list
            • Vl-modelementlist
            • Vl-interfaceportlist
            • Vl-casekey-p
            • Sv::maybe-4veclist
          • Loader
          • Warnings
          • Getting-started
          • Utilities
          • Printer
          • Kit
          • Mlib
          • Transforms
        • 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>] 
                     [:rettype <rettype>] 
                     [:body <body>] 
                     [:loc <loc>] 
                     [:portdecls <portdecls>] 
                     [:function-map <function-map>] 
                     [:lifetime <lifetime>] 
                     [:vardecls <vardecls>] 
                     [:paramdecls <paramdecls>] 
                     [:typedefs <typedefs>] 
                     [:imports <imports>] 
                     [:atts <atts>] 
                     [:loaditems <loaditems>]) 
    

    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)
                             (:rettype)
                             (:body)
                             (:loc)
                             (:portdecls)
                             (:function-map)
                             (:lifetime)
                             (:vardecls)
                             (:paramdecls)
                             (:typedefs)
                             (:imports)
                             (:atts)
                             (:loaditems))
                           'make-vl-fundecl
                           nil))

    Function: vl-fundecl

    (defun vl-fundecl (name rettype body loc portdecls function-map
                            lifetime vardecls paramdecls
                            typedefs imports atts loaditems)
     (declare
      (xargs :guard (and (stringp name)
                         (vl-datatype-p rettype)
                         (vl-stmt-p body)
                         (vl-location-p loc)
                         (vl-portdecllist-p portdecls)
                         (vl-function-specialization-map-p function-map)
                         (vl-lifetime-p lifetime)
                         (vl-vardecllist-p vardecls)
                         (vl-paramdecllist-p paramdecls)
                         (vl-typedeflist-p typedefs)
                         (vl-importlist-p imports)
                         (vl-atts-p atts)
                         (vl-portdecl-or-blockitem-list-p loaditems))))
     (declare (xargs :guard t))
     (let ((__function__ 'vl-fundecl))
      (declare (ignorable __function__))
      (b*
       ((name (mbe :logic (str-fix name) :exec name))
        (rettype (mbe :logic (vl-datatype-fix rettype)
                      :exec rettype))
        (body (mbe :logic (vl-stmt-fix body)
                   :exec body))
        (loc (mbe :logic (vl-location-fix loc)
                  :exec loc))
        (portdecls (mbe :logic (vl-portdecllist-fix portdecls)
                        :exec portdecls))
        (function-map
           (mbe :logic (vl-function-specialization-map-fix function-map)
                :exec function-map))
        (lifetime (mbe :logic (vl-lifetime-fix lifetime)
                       :exec lifetime))
        (vardecls (mbe :logic (vl-vardecllist-fix vardecls)
                       :exec vardecls))
        (paramdecls (mbe :logic (vl-paramdecllist-fix paramdecls)
                         :exec paramdecls))
        (typedefs (mbe :logic (vl-typedeflist-fix typedefs)
                       :exec typedefs))
        (imports (mbe :logic (vl-importlist-fix imports)
                      :exec imports))
        (atts (mbe :logic (vl-atts-fix atts)
                   :exec atts))
        (loaditems
             (mbe :logic (vl-portdecl-or-blockitem-list-fix loaditems)
                  :exec loaditems)))
       (cons
        :vl-fundecl
        (std::prod-cons
          (std::prod-cons
               (std::prod-cons name (std::prod-cons rettype body))
               (std::prod-cons loc
                               (std::prod-cons portdecls function-map)))
          (std::prod-cons
               (std::prod-cons lifetime
                               (std::prod-cons vardecls paramdecls))
               (std::prod-cons (std::prod-cons typedefs imports)
                               (std::prod-cons atts loaditems))))))))