• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
        • Svex-stvs
          • Svtv-data
          • Defsvtv$
          • Svtv-run
          • Defsvtv-phasewise
          • Svtv
          • Svtv-spec
          • Defsvtv
          • Process.lisp
          • Svtv-doc
          • Svtv-chase$
          • Svtv-versus-stv
          • Svtv-debug-fsm
          • Structure.lisp
          • Svtv-debug
            • Vcd.lisp
              • Elab-mod->vcd-wires
              • Vcd-scope
              • Vcd-wire
              • Vcd-print-4vec-aux
              • Vcd-dump-delta
              • Vcd-wirelist-add-to-wiremap
              • Vcd-print-header
              • Vcd-dump-first-snapshot-aux
              • Vcd-dump-delta-aux
              • Vcd-wiremap
              • 4vecarr
              • Vcd-print-wiredecls
              • Vcd-4vec-bitstr
                • Vcd-index->codechars
                • Vcd-wire->width
                • Vcd-index->codestr
                • Vcd-dump-first-snapshot
                • Vcd-wirelist
              • Debug.lisp
            • Def-pipeline-thm
            • Expand.lisp
            • Def-cycle-thm
            • Svtv-utilities
            • Svtv-debug$
            • Defsvtv$-phasewise
          • Svex-decomposition-methodology
          • Sv-versus-esim
          • Svex-decomp
          • Svex-compose-dfs
          • Svex-compilation
          • Moddb
          • Svmods
          • Svstmt
          • Sv-tutorial
          • Expressions
          • Symbolic-test-vector
          • Vl-to-svex
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vcd.lisp

    Vcd-4vec-bitstr

    Signature
    (vcd-4vec-bitstr x width) → bits
    Arguments
    x — Guard (4vec-p x).
    width — Guard (natp width).
    Returns
    bits — Type (stringp bits).

    Definitions and Theorems

    Function: vcd-4vec-bitstr

    (defun vcd-4vec-bitstr (x width)
     (declare (xargs :guard (and (4vec-p x) (natp width))))
     (let ((__function__ 'vcd-4vec-bitstr))
      (declare (ignorable __function__))
      (b* (((4vec x) x))
       (vl-printedlist->string
            (vcd-print-4vec-aux x.upper x.lower
                                (min (lnfix width)
                                     (+ 1
                                        (max (integer-length x.upper)
                                             (integer-length x.lower))))
                                nil)))))

    Theorem: stringp-of-vcd-4vec-bitstr

    (defthm stringp-of-vcd-4vec-bitstr
      (b* ((bits (vcd-4vec-bitstr x width)))
        (stringp bits))
      :rule-classes :type-prescription)

    Theorem: vcd-4vec-bitstr-of-4vec-fix-x

    (defthm vcd-4vec-bitstr-of-4vec-fix-x
      (equal (vcd-4vec-bitstr (4vec-fix x) width)
             (vcd-4vec-bitstr x width)))

    Theorem: vcd-4vec-bitstr-4vec-equiv-congruence-on-x

    (defthm vcd-4vec-bitstr-4vec-equiv-congruence-on-x
      (implies (4vec-equiv x x-equiv)
               (equal (vcd-4vec-bitstr x width)
                      (vcd-4vec-bitstr x-equiv width)))
      :rule-classes :congruence)

    Theorem: vcd-4vec-bitstr-of-nfix-width

    (defthm vcd-4vec-bitstr-of-nfix-width
      (equal (vcd-4vec-bitstr x (nfix width))
             (vcd-4vec-bitstr x width)))

    Theorem: vcd-4vec-bitstr-nat-equiv-congruence-on-width

    (defthm vcd-4vec-bitstr-nat-equiv-congruence-on-width
      (implies (nat-equiv width width-equiv)
               (equal (vcd-4vec-bitstr x width)
                      (vcd-4vec-bitstr x width-equiv)))
      :rule-classes :congruence)