• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
        • Symbolic-test-vectors
          • Defstv
          • Stv-compile
          • Symbolic-test-vector-format
          • Stv-implementation-details
          • Compiled-stv-p
          • Stv-run-for-all-dontcares
          • Stv-run
          • Stv-process
            • Processed-stv-p
            • Stv-fully-general-simulation-run
            • Stv-fully-general-in-alists
            • Stv-run-esim-debug
            • Stv-extract-relevant-signals
            • Stv-fully-general-st-alist
            • Stv-run-esim
            • Stv-run-check-dontcares
            • Symbolic-test-vector-composition
            • Stv-expand
            • Stv-easy-bindings
            • Stv-debug
            • Stv-run-squash-dontcares
            • Stvdata-p
            • Stv-doc
            • Stv2c
            • Stv-widen
            • Stv-out->width
            • Stv-in->width
            • Stv-number-of-phases
            • Stv->outs
            • Stv->ins
            • Stv-suffix-signals
            • Stv->vars
          • Esim-primitives
          • E-conversion
          • Esim-steps
          • Patterns
          • Mod-internal-paths
          • Defmodules
          • Esim-simplify-update-fns
          • Esim-tutorial
          • Esim-vl
        • Vl2014
        • Sv
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Stv-process

    Stv-run-esim

    Signature
    (stv-run-esim mod in-alists state-alists initial-state) 
      → 
    (mv nsts outs)
    Arguments
    mod — The module to run.
        Guard (good-esim-modulep mod).
    in-alists — A list of N alists, to be used at each phase.
    state-alists — A list of N alists, to override particular state bits.
    initial-state — Initial state to use.
    Returns
    nsts — A list of next-state alists.
    outs — A list of outputs alists.

    Definitions and Theorems

    Function: stv-run-esim

    (defun stv-run-esim (mod in-alists state-alists initial-state)
      (declare (xargs :guard (good-esim-modulep mod)))
      (declare (xargs :guard (eql (len in-alists)
                                  (len state-alists))))
      (let ((__function__ 'stv-run-esim))
        (declare (ignorable __function__))
        (b* (((when (atom in-alists)) (mv nil nil))
             (state-alist (append-without-guard (car state-alists)
                                                initial-state))
             ((mv nst1 out1)
              (esim-sexpr-simp mod (car in-alists)
                               state-alist))
             ((mv nst-rest out-rest)
              (stv-run-esim mod (cdr in-alists)
                            (cdr state-alists)
                            nst1)))
          (mv (cons nst1 nst-rest)
              (cons out1 out-rest)))))