• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Vwsim
      • Fgl
      • Vl
        • Syntax
          • Vl-module
          • Vl-vardecl
          • Vl-fundecl
          • 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-plainarglist->exprs
          • Vl-class
          • Vl-taskdecllist->names
          • Vl-sort-blockitems-aux
          • Vl-fundecllist->names
          • Expressions-and-datatypes
          • Vl-udp
          • Vl-port
            • Vl-regularport
            • Vl-interfaceport
            • Vl-port-p
              • Port-tools
            • Vl-port-fix
            • Vl-port-equiv
          • 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-udpsymbol-p
          • Vl-final
          • Vl-maybe-clkskew
          • 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-modelement->loc
          • Vl-ctxelement
          • Vl-ctxelement->loc
          • Statements
          • Vl-interface->ifports
          • Vl-blockitem
          • Vl-vardecllist
          • Vl-module->ifports
          • Vl-lifetime-p
          • Vl-syntaxversion
          • Vl-nettypename-p
          • Vl-paramdecllist
          • Vl-modelementlist->genelements
          • Vl-importlist
          • Vl-gatetype-p
          • Vl-typedeflist
          • Vl-genelement->loc
          • Vl-cstrength-p
          • Vl-port->name
          • Vl-elabtask->loc
          • Vl-delayoreventcontrol
          • Vl-udpentry-p
          • Vl-portdecllist
          • Vl-port->loc
          • Property-expressions
          • Vl-taskdecllist
          • 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-blockstmt-p
          • Vl-bindlist
          • Vl-initiallist
          • Vl-genvarlist
          • Vl-gclkdecllist
          • Vl-finallist
          • Vl-elabtasklist
          • Vl-defaultdisablelist
          • Vl-clkdecllist
          • Vl-cassertionlist
          • 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-casekey-p
          • Vl-blockitemlist
          • Vl-ansi-portdecllist
          • Vl-regularportlist
          • Vl-paramdecllist-list
          • Vl-modelementlist
          • Vl-interfaceportlist
        • Loader
        • Warnings
        • Getting-started
        • Utilities
        • Printer
        • Kit
        • Mlib
        • Transforms
      • X86isa
      • Svl
      • Rtl
    • Software-verification
    • Testing-utilities
    • Math
  • Vl-port

Vl-port-p

Recognizer for vl-port.

Signature
(vl-port-p x) → *

Definitions and Theorems

Function: vl-port-p

(defun
    vl-port-p (x)
    (declare (xargs :guard t))
    (let ((__function__ 'vl-port-p))
         (declare (ignorable __function__))
         (common-lisp::case (tag x)
                            ((:vl-regularport) (vl-regularport-p x))
                            (otherwise (vl-interfaceport-p x)))))

Theorem: consp-when-vl-port-p

(defthm consp-when-vl-port-p
        (implies (vl-port-p x) (consp x))
        :rule-classes :compound-recognizer)

Theorem: vl-port-p-when-vl-regularport-p

(defthm vl-port-p-when-vl-regularport-p
        (implies (vl-regularport-p x)
                 (vl-port-p x))
        :rule-classes ((:rewrite :backchain-limit-lst 1)))

Theorem: vl-port-p-when-vl-interfaceport-p

(defthm vl-port-p-when-vl-interfaceport-p
        (implies (vl-interfaceport-p x)
                 (vl-port-p x))
        :rule-classes ((:rewrite :backchain-limit-lst 1)))

Theorem: vl-regularport-p-by-tag-when-vl-port-p

(defthm vl-regularport-p-by-tag-when-vl-port-p
        (implies (and (or (equal (tag x) :vl-regularport))
                      (vl-port-p x))
                 (vl-regularport-p x))
        :rule-classes ((:rewrite :backchain-limit-lst 1)))

Theorem: vl-interfaceport-p-by-tag-when-vl-port-p

(defthm vl-interfaceport-p-by-tag-when-vl-port-p
        (implies (and (or (equal (tag x) :vl-interfaceport))
                      (vl-port-p x))
                 (vl-interfaceport-p x))
        :rule-classes ((:rewrite :backchain-limit-lst 1)))

Theorem: vl-port-p-when-invalid-tag

(defthm vl-port-p-when-invalid-tag
        (implies (and (not (equal (tag x) :vl-regularport))
                      (not (equal (tag x) :vl-interfaceport)))
                 (not (vl-port-p x)))
        :rule-classes ((:rewrite :backchain-limit-lst 0)))

Theorem: tag-when-vl-port-p-forward

(defthm tag-when-vl-port-p-forward
        (implies (vl-port-p x)
                 (or (equal (tag x) :vl-regularport)
                     (equal (tag x) :vl-interfaceport)))
        :rule-classes ((:forward-chaining)))

Subtopics

Port-tools
Basic functions for working with arguments and ports.