• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • ACL2
    • Macro-libraries
    • 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
            • Vl-modulelist-drop-blankports
            • Vl-modinst-drop-blankports
            • Vl-modinstlist-drop-blankports
            • Vl-plainarglist-drop-blankports
            • Vl-module-drop-blankports
              • Vl-portlist-drop-blankports
              • Vl-design-drop-blankports
            • Clean-warnings
            • Addinstnames
            • Custom-transform-hooks
            • Annotate
            • 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
    • Drop-blankports

    Vl-module-drop-blankports

    Drop any blank ports from a module, and simultaneously remove all arguments to blank ports from all module instances within the module.

    Signature
    (vl-module-drop-blankports x ss) → new-x
    Arguments
    x — module to rewrite.
        Guard (vl-module-p x).
    ss — Guard (vl-scopestack-p ss).
    Returns
    new-x — Type (vl-module-p new-x).

    Definitions and Theorems

    Function: vl-module-drop-blankports

    (defun vl-module-drop-blankports (x ss)
     (declare (xargs :guard (and (vl-module-p x)
                                 (vl-scopestack-p ss))))
     (let ((__function__ 'vl-module-drop-blankports))
       (declare (ignorable __function__))
       (b* (((vl-module x) x)
            (ss (vl-scopestack-push (vl-module-fix x)
                                    ss))
            (ports (vl-portlist-drop-blankports x.ports))
            ((mv warnings modinsts)
             (vl-modinstlist-drop-blankports x.modinsts ss x.warnings)))
         (change-vl-module x
                           :ports ports
                           :modinsts modinsts
                           :warnings warnings))))

    Theorem: vl-module-p-of-vl-module-drop-blankports

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