• 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
        • 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
              • Vl-convert-namedargs
              • Vl-modulelist-argresolve
              • Vl-arguments-argresolve
              • Vl-gateinst-dirassign
              • Vl-check-blankargs
              • Vl-annotate-plainargs
              • Vl-modinst-argresolve
              • Vl-modinstlist-argresolve
              • Vl-gateinstlist-dirassign
              • Vl-module-argresolve
                • Vl-design-argresolve
              • Portdecl-sign
              • Designwires
              • 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
    • Argresolve

    Vl-module-argresolve

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

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

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

    Definitions and Theorems

    Function: vl-module-argresolve

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

    Theorem: vl-module-p-of-vl-module-argresolve

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

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

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

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

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

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

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

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

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