• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Fgl
      • Vwsim
      • Vl
        • Syntax
        • Loader
          • Preprocessor
          • Vl-loadconfig
          • Vl-loadstate
          • Lexer
          • Parser
            • Parse-expressions
            • Parse-udps
            • Parse-statements
            • Parse-property
            • Vl-genelements
            • Parse-paramdecls
            • Parse-blockitems
            • Parse-utils
            • Parse-insts
            • Parse-functions
            • Parse-assignments
              • Parse-lvalues-2005
              • Vl-parse-continuous-assign
              • Vl-parse-list-of-variable-assignments
              • Vl-parse-list-of-net-assignments
              • Vl-parse-variable-lvalue-2012-aux
              • Vl-parse-net-lvalue-2012-aux
              • Vl-parse-variable-lvalue-2012
              • Vl-parse-variable-assignment
              • Vl-parse-net-lvalue-2012
              • Vl-parse-net-assignment
              • Vl-build-assignments
                • Vl-parse-variable-lvalue
                • Vl-parse-net-lvalue
              • Parse-clocking
              • Parse-strengths
              • Vl-parse-genvar-declaration
              • Vl-parse
              • Parse-netdecls
              • Parse-asserts
              • Vl-maybe-parse-lifetime
              • Parse-dpi-import-export
              • Parse-ports
              • Parse-timeunits
              • Seq
              • Parse-packages
              • Parse-eventctrl
            • Vl-load-merge-descriptions
            • Vl-find-basename/extension
            • Vl-load-file
            • Vl-loadresult
            • Scope-of-defines
            • Vl-find-file
            • Vl-flush-out-descriptions
            • Vl-description
            • Vl-read-file
            • Vl-includeskips-report-gather
            • Vl-load-main
            • Extended-characters
            • Vl-load
            • Vl-load-description
            • Vl-descriptions-left-to-load
            • Inject-warnings
            • Vl-preprocess-debug
            • Vl-write-preprocessor-debug-file
            • Vl-read-file-report-gather
            • Vl-load-descriptions
            • Vl-load-files
            • Translate-off
            • Vl-load-read-file-hook
            • Vl-read-file-report
            • Vl-loadstate-pad
            • Vl-load-summary
            • Vl-collect-modules-from-descriptions
            • Vl-loadstate->warnings
            • Vl-iskips-report
            • Vl-descriptionlist
          • Warnings
          • Getting-started
          • Utilities
          • Printer
          • Kit
          • Mlib
          • Transforms
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Parse-assignments

    Vl-build-assignments

    Signature
    (vl-build-assignments loc pairs strength delay atts) → assigns
    Arguments
    loc — Guard (vl-location-p loc).
    pairs — Guard (and (alistp pairs) (vl-exprlist-p (strip-cars pairs)) (vl-exprlist-p (strip-cdrs pairs))) .
    strength — Guard (vl-maybe-gatestrength-p strength).
    delay — Guard (vl-maybe-gatedelay-p delay).
    atts — Guard (vl-atts-p atts).
    Returns
    assigns — Type (vl-assignlist-p assigns).

    Definitions and Theorems

    Function: vl-build-assignments

    (defun vl-build-assignments (loc pairs strength delay atts)
      (declare
           (xargs :guard (and (vl-location-p loc)
                              (and (alistp pairs)
                                   (vl-exprlist-p (strip-cars pairs))
                                   (vl-exprlist-p (strip-cdrs pairs)))
                              (vl-maybe-gatestrength-p strength)
                              (vl-maybe-gatedelay-p delay)
                              (vl-atts-p atts))))
      (let ((__function__ 'vl-build-assignments))
        (declare (ignorable __function__))
        (if (atom pairs)
            nil
          (cons (make-vl-assign :loc loc
                                :lvalue (caar pairs)
                                :expr (cdar pairs)
                                :strength strength
                                :delay delay
                                :atts atts)
                (vl-build-assignments loc (cdr pairs)
                                      strength delay atts)))))

    Theorem: vl-assignlist-p-of-vl-build-assignments

    (defthm vl-assignlist-p-of-vl-build-assignments
      (b*
        ((assigns (vl-build-assignments loc pairs strength delay atts)))
        (vl-assignlist-p assigns))
      :rule-classes :rewrite)