• 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
        • Loader
        • Warnings
        • Getting-started
        • Utilities
        • Printer
        • Kit
        • Mlib
        • Transforms
          • Unparameterization
          • Elaborate
          • Addnames
          • Annotate
            • Increment-elim
            • Make-implicit-wires
            • Basic-bind-elim
            • Argresolve
              • Vl-convert-namedargs
              • Vl-unhierarchicalize-interfaceport
              • Vl-interfacelist-argresolve
              • Vl-modulelist-argresolve
              • Vl-gateinst-dirassign
              • Vl-arguments-argresolve
              • Vl-unhierarchicalize-interfaceports
              • Vl-check-blankargs
              • Vl-annotate-plainargs
              • Vl-modinst-maybe-argresolve
              • Vl-modinst-argresolve
              • Vl-modinstlist-argresolve
              • Vl-gateinstlist-dirassign
              • Vl-interface-argresolve
                • Vl-module-argresolve
                • Vl-namedarglist-alist
                • Vl-make-namedarg-alist
                • Vl-design-argresolve
                • Vl-fast-find-namedarg
                • Vl-namedarg-alist
                • Vl-scopeitem-modport-p
                • Vl-scopeitem-modinst-p
                • Vl-scopeitem-interfaceport-p
                • Vl-port-interface-p
              • Basicsanity
              • Portdecl-sign
              • Enum-names
              • Port-resolve
              • Udp-elim
              • Vl-annotate-design
              • Vl-annotate-module
            • Clean-warnings
            • Eliminitial
            • Custom-transform-hooks
            • Problem-modules
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Argresolve

    Vl-interface-argresolve

    Apply the argresolve transformation to a vl-interface-p.

    Signature
    (vl-interface-argresolve x ss) → new-x
    Arguments
    x — Guard (vl-interface-p x).
    ss — Guard (vl-scopestack-p ss).
    Returns
    new-x — Type (vl-interface-p new-x).

    This is just glue-code to apply vl-modinst-argresolve to all of the interface instances, and vl-gateinst-dirassign to all of the gate instances in the interface.

    Definitions and Theorems

    Function: vl-interface-argresolve

    (defun vl-interface-argresolve (x ss)
      (declare (xargs :guard (and (vl-interface-p x)
                                  (vl-scopestack-p ss))))
      (let ((__function__ 'vl-interface-argresolve))
        (declare (ignorable __function__))
        (b* (((mv warnings genblob)
              (vl-genblob-argresolve (vl-interface->genblob x)
                                     ss (vl-interface->warnings x)))
             (x-warn (change-vl-interface x
                                          :warnings warnings)))
          (vl-genblob->interface genblob x-warn))))

    Theorem: vl-interface-p-of-vl-interface-argresolve

    (defthm vl-interface-p-of-vl-interface-argresolve
      (b* ((new-x (vl-interface-argresolve x ss)))
        (vl-interface-p new-x))
      :rule-classes :rewrite)

    Theorem: vl-interface-argresolve-of-vl-interface-fix-x

    (defthm vl-interface-argresolve-of-vl-interface-fix-x
      (equal (vl-interface-argresolve (vl-interface-fix x)
                                      ss)
             (vl-interface-argresolve x ss)))

    Theorem: vl-interface-argresolve-vl-interface-equiv-congruence-on-x

    (defthm vl-interface-argresolve-vl-interface-equiv-congruence-on-x
      (implies (vl-interface-equiv x x-equiv)
               (equal (vl-interface-argresolve x ss)
                      (vl-interface-argresolve x-equiv ss)))
      :rule-classes :congruence)

    Theorem: vl-interface-argresolve-of-vl-scopestack-fix-ss

    (defthm vl-interface-argresolve-of-vl-scopestack-fix-ss
      (equal (vl-interface-argresolve x (vl-scopestack-fix ss))
             (vl-interface-argresolve x ss)))

    Theorem: vl-interface-argresolve-vl-scopestack-equiv-congruence-on-ss

    (defthm vl-interface-argresolve-vl-scopestack-equiv-congruence-on-ss
      (implies (vl-scopestack-equiv ss ss-equiv)
               (equal (vl-interface-argresolve x ss)
                      (vl-interface-argresolve x ss-equiv)))
      :rule-classes :congruence)