• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
        • Warnings
        • Primitives
        • Use-set
        • Syntax
        • Getting-started
        • Utilities
        • Loader
        • Transforms
          • Expression-sizing
          • Occform
          • Oprewrite
          • Expand-functions
          • Delayredux
          • Unparameterization
          • Caseelim
          • Split
          • Selresolve
          • Weirdint-elim
          • Vl-delta
          • Replicate-insts
          • Rangeresolve
          • Propagate
          • Clean-selects
          • Clean-params
          • Blankargs
          • Inline-mods
          • Expr-simp
          • Trunc
          • Always-top
          • Gatesplit
          • Gate-elim
          • Expression-optimization
          • Elim-supplies
          • Wildelim
          • Drop-blankports
          • Clean-warnings
          • Addinstnames
          • Custom-transform-hooks
          • Annotate
            • Make-implicit-wires
            • Resolve-indexing
            • Origexprs
            • Argresolve
            • Portdecl-sign
            • Designwires
            • Udp-elim
              • Vl-udp-vardecls-from-portdecls
              • Vl-udps-to-modules
              • Vl-udpline-match-expr
              • Vl-combinational-udptable-synth
              • Vl-udptable-assignrhs
              • Vl-udp-to-module
              • Vl-udp-vardecl-from-portdecl
                • Vl-design-udp-elim
              • Vl-annotate-design
            • Latchcode
            • Elim-unused-vars
            • Problem-modules
          • Lint
          • Mlib
          • Server
          • Kit
          • Printer
          • Esim-vl
          • Well-formedness
        • Sv
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Udp-elim

    Vl-udp-vardecl-from-portdecl

    Signature
    (vl-udp-vardecl-from-portdecl x) → vardecl
    Arguments
    x — Guard (vl-portdecl-p x).
    Returns
    vardecl — Type (vl-vardecl-p vardecl).

    Definitions and Theorems

    Function: vl-udp-vardecl-from-portdecl

    (defun vl-udp-vardecl-from-portdecl (x)
      (declare (xargs :guard (vl-portdecl-p x)))
      (let ((__function__ 'vl-udp-vardecl-from-portdecl))
        (declare (ignorable __function__))
        (b* (((vl-portdecl x)))
          (make-vl-vardecl :name x.name
                           :type x.type
                           :nettype :vl-wire
                           :atts (cons (cons "VL_PORT_IMPLICIT" nil)
                                       x.atts)
                           :loc x.loc))))

    Theorem: vl-vardecl-p-of-vl-udp-vardecl-from-portdecl

    (defthm vl-vardecl-p-of-vl-udp-vardecl-from-portdecl
      (b* ((vardecl (vl-udp-vardecl-from-portdecl x)))
        (vl-vardecl-p vardecl))
      :rule-classes :rewrite)