• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • 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-simpledelay->amount
              • 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
    • Vl-simpledelay-p

    Vl-simpledelay->amount

    Get the number of ticks for a simple delay.

    Signature
    (vl-simpledelay->amount x) → amount
    Arguments
    x — Guard (and (vl-gatedelay-p x) (vl-simpledelay-p x)).
    Returns
    amount — Type (natp amount).

    Definitions and Theorems

    Function: vl-simpledelay->amount

    (defun vl-simpledelay->amount (x)
      (declare (xargs :guard (and (vl-gatedelay-p x)
                                  (vl-simpledelay-p x))))
      (let ((__function__ 'vl-simpledelay->amount))
        (declare (ignorable __function__))
        (lnfix (vl-resolved->val (vl-gatedelay->rise x)))))

    Theorem: natp-of-vl-simpledelay->amount

    (defthm natp-of-vl-simpledelay->amount
      (b* ((amount (vl-simpledelay->amount x)))
        (natp amount))
      :rule-classes :type-prescription)