• 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
            • Vl-gatearg-delayredux
            • Vl-assign-delayredux
            • Vl-gatearglist-delayredux
            • Vl-gateinst-delayredux
            • Vl-module-delayredux
            • Vl-simpledelay-p
            • Vl-modulelist-delayredux-aux
            • Vl-gateinstlist-delayredux
            • Vl-assignlist-delayredux
            • Vl-modulelist-delayredux
            • Vl-gateargs-ok-for-delayredux-p
            • Vl-first-bad-gatearg-for-delayredux
            • Vl-design-delayredux
            • Vl-why-is-gatearg-bad-for-delayredux
              • Vl-gatearg-ok-for-delayredux-p
            • 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
            • 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
    • Delayredux

    Vl-why-is-gatearg-bad-for-delayredux

    For error reporting, say what the problem with this bad argument is.

    Signature
    (vl-why-is-gatearg-bad-for-delayredux x) → *
    Arguments
    x — Guard (vl-plainarg-p x).

    Definitions and Theorems

    Function: vl-why-is-gatearg-bad-for-delayredux

    (defun vl-why-is-gatearg-bad-for-delayredux (x)
      (declare (xargs :guard (vl-plainarg-p x)))
      (let ((__function__ 'vl-why-is-gatearg-bad-for-delayredux))
        (declare (ignorable __function__))
        (b* (((vl-plainarg x) x)
             (width (and x.expr (vl-expr->finalwidth x.expr))))
          (cond ((eq x.dir :vl-inout)
                 "has direction 'inout'")
                ((not x.dir) "has unresolved direction")
                ((not width) "has uncomputed width")
                ((not (equal width 1))
                 (cat "has width " (natstr width)))))))