• 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
        • Warnings
        • Getting-started
        • Utilities
        • Printer
        • Kit
          • Vl-lint
            • Vl-lintconfig-p
            • Condcheck
            • Lint-warning-suppression
            • Lucid
              • Typo-detection
              • Vl-lucid-dissect-pair
              • Vl-lucidstate
              • Vl-lucid-dissect-var-main
              • Vl-lucidstate-init
              • Vl-lucid-check-uses-are-spurious-instances
              • Vl-hidslice-mark
              • Vl-namedarglist-lucidcheck
              • Vl-lucidst-mark-modport
              • Vl-lucid-multidrive-detect
              • Vl-namedarg-lucidcheck
              • Vl-lucid-filter-merges
              • Vl-hidsolo-mark
              • Vl-arguments-lucidcheck
              • Vl-lucid-dissect-database
              • Vl-design-lucid
                • Vl-maybe-delayoreventcontrol-lucidcheck
                • Vl-lucid-valid-bits-for-datatype
                • Vl-delayoreventcontrol-lucidcheck
                • Vl-repeateventcontrol-lucidcheck
                • Vl-namedparamvaluelist-lucidcheck
                • Vl-scopeexprlist-mark-solo
                • Vl-plainarg-lucidcheck
                • Vl-maybe-rhsexprlist-lucidcheck
                • Vl-maybe-paramvalue-lucidcheck
                • Vl-paramvaluelist-lucidcheck
                • Vl-namedparamvalue-lucidcheck
                • Vl-maybe-gatedelay-lucidcheck
                • Vl-plainarglist-lucidcheck
                • Vl-lucidstate-mark
                • Vl-lucid-mark-simple
                • Vl-eventcontrol-lucidcheck
                • Vl-enumitemlist-lucidcheck
                • Vl-delaycontrol-lucidcheck
                • Vl-paramvalue-lucidcheck
                • Vl-paramargs-lucidcheck
                • Vl-maybe-rhsexpr-lucidcheck
                • Vl-maybe-range-lucidcheck
                • Vl-lucid-typo-detect1
                • Vl-gatedelay-lucidcheck
                • Vl-evatomlist-lucidcheck
                • Vl-rangelist-lucidcheck
                • Vl-pps-lucidstate
                • Vl-enumitem-lucidcheck
                • Vl-custom-suppress-multidrive-p
                • Vl-evatom-lucidcheck
                • Vl-rhs-lucidcheck
                • Vl-range-lucidcheck
                • Vl-lucidocclist-drop-bad-modinsts
                • Vl-hidtrace-mark-interfaces
                • Vl-hidstep-mark-interfaces
                • Vl-add-typo-candidate
                • Vl-paramdecl-lucidcheck
                • Vl-interfaceportlist-lucidcheck
                • Vl-interfaceport-lucidcheck
                • Vl-fundecl-lucidcheck
                • Vl-design-lucidcheck-main
                • Vl-taskdecllist-lucidcheck
                • Vl-taskdecl-lucidcheck
                • Vl-portdecllist-lucidcheck
                • Vl-paramdecllist-lucidcheck
                • Vl-package-lucidcheck
                • Vl-modinst-lucidcheck
                • Vl-interfacelist-lucidcheck
                • Vl-gateinstlist-lucidcheck
                • Vl-dpiimportlist-lucidcheck
                • Vl-dpiexportlist-lucidcheck
                • Vl-vardecllist-lucidcheck
                • Vl-vardecl-lucidcheck
                • Vl-typedeflist-lucidcheck
                • Vl-portdecl-lucidcheck
                • Vl-packagelist-lucidcheck
                • Vl-modulelist-lucidcheck
                • Vl-modportlist-lucidcheck
                • Vl-modinstlist-lucidcheck
                • Vl-interface-lucidcheck
                • Vl-initiallist-lucidcheck
                • Vl-gateinst-lucidcheck
                • Vl-fundecllist-lucidcheck
                • Vl-dpiimport-lucidcheck
                • Vl-dpiexport-lucidcheck
                • Vl-assignlist-lucidcheck
                • Vl-alwayslist-lucidcheck
                • Vl-typedef-lucidcheck
                • Vl-modport-lucidcheck
                • Vl-initial-lucidcheck
                • Vl-finallist-lucidcheck
                • Vl-assign-lucidcheck
                • Vl-always-lucidcheck
                • Vl-aliaslist-lucidcheck
                • Vl-module-lucidcheck
                • Vl-lucid-typo-detect
                • Vl-final-lucidcheck
                • Vl-alias-lucidcheck
                • Vl-lucidocclist-drop-foreign-writes
                • Vl-lucid-pp-multibits
                • Vl-lucid-slices-append-bits
                • Vl-scopestack-is-portdecl-p
                • Vl-lucid-valid-bits-for-decl
                • Vl-lucid-resolved-slices->bits
                • Vl-lucid-resolved-slice->bits
                • Vl-lucid-instmod-find-port-dir
                • Vl-custom-suppress-multidrive-p-default
                • Vl-lucidmergealist-count
                • Vl-lucid-scopestack-subscope-p
                • Vl-lucid-range->bits
                • Vl-lucidocclist-drop-initials/finals
                • Vl-lucid-collect-solo-occs
                • Vl-lucid-collect-resolved-slices
                • Vl-basic-lucidctx
                • Vl-scopestack->flat-transitive-names-slow
                • Vl-lucidocclist-drop-generates
                • Vl-lucid-dissect
                • Vl-lucid-first-solo-occ
                • Vl-lucid-do-merges1
                • Vl-lucid-do-merges
                • Vl-lucidocclist-remove-tails
                • Vl-lucid-some-solo-occp
                • Vl-scopestack-top-level-name
                • Vl-normalize-scopestack
                • Vl-lucid-resolved-slice-p
                • Vl-lucid-all-slices-resolved-p
                • Vl-lucid-warning-type
                • Vl-lucid-plainarglist-nicely-resolved-p
                • Vl-lucid-multidrive-summary
                • Vl-string-expr->value
                • Vl-scopestack->topname
                • Vl-pp-lucid-multidrive-summary
                • Vl-lucid-all-slices-p
                • Vl-lucidocclist-some-transistory-p
                • Vl-lucidocc-transistory-p
                • Vl-lucid-plainarg-nicely-resolved-p
                • Vl-inside-true-generate-p
                • Vl-possible-typo-warnings
                • Vl-lucid-z-gateinst-p
                • Vl-lucid-modinst-nicely-resolved-p
                • Vl-inside-interface-p
                • Vl-inside-blockscope-p
                • Vl-typocandidates
                • Vl-lucid-z-expr-p
                • Vl-lucid-z-assign-p
                • Vl-lucidmergealist
                • Vl-lucid-summarize-bits
                • Vl-pp-merged-index-list
                • Vl-pp-merged-index
                • Vl-lucid-pp-bits
              • Lvaluecheck
              • Vl-interfacelist-alwaysstyle
              • Truncation-warnings
              • Vl-modulelist-alwaysstyle
              • Skip-detection
              • Vl-lint-report
              • Vl-lintresult
              • Vl::vl-design-sv-use-set
              • Oddexpr-check
              • Leftright-check
              • Duplicate-detect
              • Selfassigns
              • *vl-lint-help*
              • Arith-compare-check
              • Dupeinst-check
              • Qmarksize-check
              • Lint-whole-file-suppression
              • Run-vl-lint-main
              • Logicassign
              • Run-vl-lint
              • Vl-print-certain-warnings
              • Duperhs-check
              • Vl-lint-top
              • Sd-filter-problems
              • Vl-modulelist-add-svbad-warnings
              • Vl-module-add-svbad-warnings
              • Check-case
              • Vl-lint-extra-actions
              • Drop-lint-stubs
              • Vl-lint-print-warnings
              • Drop-user-submodules
              • Check-namespace
              • Vl-lintconfig-loadconfig
              • Vl-lint-design->svex-modalist-wrapper
              • Vl-delete-sd-problems-for-modnames-aux
              • Vl-collect-new-names-from-orignames
              • Vl-lint-print-all-warnings
              • Vl-design-remove-unnecessary-modules
              • Vl-delete-sd-problems-for-modnames
              • Vl-always-check-style
              • Vl-vardecllist-svbad-warnings
              • Vl-vardecl-svbad-warnings
              • Vl-reportcard-remove-suppressed
              • Vl-reportcard-keep-suppressed
              • Vl-alwayslist-check-style
              • Vl-remove-nameless-descriptions
              • Vl-lint-apply-quiet
              • Vl-warninglist-remove-suppressed
              • Vl-warninglist-keep-suppressed
              • Vl-print-eliminated-descs
              • Vl-module-alwaysstyle
              • Vl-jp-reportcard-aux
              • Vl-interface-alwaysstyle
              • Vl-design-alwaysstyle
              • Vl-jp-description-locations
              • Vl-jp-reportcard
              • Vl-pp-stringlist-lines
              • Vl-jp-design-locations
              • Vl-datatype-svbad-p
              • Unpacked-range-check
              • Sd-problem-major-p
              • Vl-alwaysstyle
            • Vl-server
            • Vl-gather
            • Vl-zip
            • Vl-main
            • Split-plusargs
            • Vl-shell
            • Vl-json
          • Mlib
          • Transforms
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Lucid

    Vl-design-lucid

    Signature
    (vl-design-lucid x &key (modportsp 't) 
                     (paramsp 't) 
                     (generatesp 't) 
                     (typosp 't)) 
     
      → 
    new-x
    Arguments
    x — Guard (vl-design-p x).
    modportsp — Guard (booleanp modportsp).
    paramsp — Guard (booleanp paramsp).
    generatesp — Guard (booleanp generatesp).
    typosp — Guard (booleanp typosp).
    Returns
    new-x — Type (vl-design-p new-x).

    Definitions and Theorems

    Function: vl-design-lucid-fn

    (defun vl-design-lucid-fn (x modportsp paramsp generatesp typosp)
     (declare (xargs :guard (and (vl-design-p x)
                                 (booleanp modportsp)
                                 (booleanp paramsp)
                                 (booleanp generatesp)
                                 (booleanp typosp))))
     (let ((__function__ 'vl-design-lucid))
      (declare (ignorable __function__))
      (b*
       ((x (cwtime (hons-copy (vl-design-fix x))
                   :name vl-design-lucid-hons
                   :mintime 1))
        (ss (vl-scopestack-init x))
        (st (cwtime (vl-lucidstate-init x
                                        :modportsp modportsp
                                        :paramsp paramsp
                                        :generatesp generatesp)))
        (st (cwtime (vl-design-lucidcheck-main x ss st)))
        ((mv reportcard typo-candidates)
         (cwtime (vl-lucid-dissect st)))
        (reportcard
         (b*
           (((unless typosp) reportcard)
            (typo-candidates
                 (fast-alist-free (fast-alist-clean typo-candidates))))
           (cwtime (vl-lucid-typo-detect typo-candidates reportcard)))))
       (clear-memoize-table 'vl-scopestack->flat-transitive-names-slow)
       (vl-scopestacks-free)
       (vl-apply-reportcard x reportcard))))

    Theorem: vl-design-p-of-vl-design-lucid

    (defthm vl-design-p-of-vl-design-lucid
     (b*
      ((new-x
            (vl-design-lucid-fn x modportsp paramsp generatesp typosp)))
      (vl-design-p new-x))
     :rule-classes :rewrite)

    Theorem: vl-design-lucid-fn-of-vl-design-fix-x

    (defthm vl-design-lucid-fn-of-vl-design-fix-x
     (equal (vl-design-lucid-fn (vl-design-fix x)
                                modportsp paramsp generatesp typosp)
            (vl-design-lucid-fn x modportsp paramsp generatesp typosp)))

    Theorem: vl-design-lucid-fn-vl-design-equiv-congruence-on-x

    (defthm vl-design-lucid-fn-vl-design-equiv-congruence-on-x
     (implies
       (vl-design-equiv x x-equiv)
       (equal (vl-design-lucid-fn x modportsp paramsp generatesp typosp)
              (vl-design-lucid-fn x-equiv
                                  modportsp paramsp generatesp typosp)))
     :rule-classes :congruence)

    Theorem: vl-design-lucid-fn-of-bool-fix-modportsp

    (defthm vl-design-lucid-fn-of-bool-fix-modportsp
     (equal (vl-design-lucid-fn x (acl2::bool-fix modportsp)
                                paramsp generatesp typosp)
            (vl-design-lucid-fn x modportsp paramsp generatesp typosp)))

    Theorem: vl-design-lucid-fn-iff-congruence-on-modportsp

    (defthm vl-design-lucid-fn-iff-congruence-on-modportsp
     (implies
       (iff modportsp modportsp-equiv)
       (equal (vl-design-lucid-fn x modportsp paramsp generatesp typosp)
              (vl-design-lucid-fn x modportsp-equiv
                                  paramsp generatesp typosp)))
     :rule-classes :congruence)

    Theorem: vl-design-lucid-fn-of-bool-fix-paramsp

    (defthm vl-design-lucid-fn-of-bool-fix-paramsp
     (equal (vl-design-lucid-fn x modportsp (acl2::bool-fix paramsp)
                                generatesp typosp)
            (vl-design-lucid-fn x modportsp paramsp generatesp typosp)))

    Theorem: vl-design-lucid-fn-iff-congruence-on-paramsp

    (defthm vl-design-lucid-fn-iff-congruence-on-paramsp
     (implies
       (iff paramsp paramsp-equiv)
       (equal (vl-design-lucid-fn x modportsp paramsp generatesp typosp)
              (vl-design-lucid-fn x modportsp
                                  paramsp-equiv generatesp typosp)))
     :rule-classes :congruence)

    Theorem: vl-design-lucid-fn-of-bool-fix-generatesp

    (defthm vl-design-lucid-fn-of-bool-fix-generatesp
     (equal (vl-design-lucid-fn x modportsp
                                paramsp (acl2::bool-fix generatesp)
                                typosp)
            (vl-design-lucid-fn x modportsp paramsp generatesp typosp)))

    Theorem: vl-design-lucid-fn-iff-congruence-on-generatesp

    (defthm vl-design-lucid-fn-iff-congruence-on-generatesp
     (implies
       (iff generatesp generatesp-equiv)
       (equal (vl-design-lucid-fn x modportsp paramsp generatesp typosp)
              (vl-design-lucid-fn x modportsp
                                  paramsp generatesp-equiv typosp)))
     :rule-classes :congruence)

    Theorem: vl-design-lucid-fn-of-bool-fix-typosp

    (defthm vl-design-lucid-fn-of-bool-fix-typosp
     (equal (vl-design-lucid-fn x modportsp paramsp
                                generatesp (acl2::bool-fix typosp))
            (vl-design-lucid-fn x modportsp paramsp generatesp typosp)))

    Theorem: vl-design-lucid-fn-iff-congruence-on-typosp

    (defthm vl-design-lucid-fn-iff-congruence-on-typosp
     (implies
       (iff typosp typosp-equiv)
       (equal (vl-design-lucid-fn x modportsp paramsp generatesp typosp)
              (vl-design-lucid-fn x modportsp
                                  paramsp generatesp typosp-equiv)))
     :rule-classes :congruence)