• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • 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
        • Mlib
        • Transforms
          • Unparameterization
          • Elaborate
            • Elabindex
            • Vl-override-parameter
            • Vl-genblob-elaborate
            • Vl-modelement-elaborate
            • Vl-design-elaborate-aux
            • Vl-package-elaborate-aux
            • Vl-taskdecl-elaborate
            • Vl-clkdecl-elaborate
            • Vl-defaultdisablelist-elaborate
            • Vl-modport-portlist-elaborate
            • Vl-modinst-elaborate-aux
            • Vl-maybe-parse-temps-elaborate
            • Vl-ansi-portdecllist-elaborate
            • Vl-ansi-portdecl-elaborate
            • Vl-parse-temps-elaborate
            • Vl-dpiimportlist-elaborate
            • Vl-clkassignlist-elaborate
            • Vl-cassertionlist-elaborate
            • Vl-assertionlist-elaborate
            • Vl-taskdecllist-elaborate
            • Vl-sequencelist-elaborate
            • Vl-propportlist-elaborate
            • Vl-propertylist-elaborate
            • Vl-plainarglist-elaborate
            • Vl-namedarglist-elaborate
            • Vl-maybe-clkskew-elaborate
              • Vl-gclkdecllist-elaborate
              • Vl-gateinstlist-elaborate
              • Vl-elabtasklist-elaborate
              • Vl-defaultdisable-elaborate
              • Vl-sequence-elaborate
              • Vl-property-elaborate
              • Vl-modportlist-elaborate
              • Vl-modport-port-elaborate
              • Vl-modinstlist-elaborate
              • Vl-letdecllist-elaborate
              • Vl-interfaceport-elaborate
              • Vl-initiallist-elaborate
              • Vl-gateinst-elaborate
              • Vl-fundecllist-elaborate
              • Vl-clkdecllist-elaborate
              • Vl-assignlist-elaborate
              • Vl-assign-elaborate-aux
              • Vl-arguments-elaborate
              • Vl-alwayslist-elaborate
              • Vl-regularport-elaborate
              • Vl-portlist-elaborate
              • Vl-finallist-elaborate
              • Vl-dpiimport-elaborate
              • Vl-clkassign-elaborate
              • Vl-bindlist-elaborate
              • Vl-aliaslist-elaborate
              • Vl-warn-about-negative-indices
              • Vl-udplist-elaborate
              • Vl-propport-elaborate
              • Vl-modinst-elaborate
              • Vl-udp-elaborate
              • Vl-port-elaborate
              • Vl-plainarg-elaborate
              • Vl-namedarg-elaborate
              • Vl-modport-elaborate
              • Vl-gclkdecl-elaborate
              • Vl-elabtask-elaborate
              • Vl-clkskew-elaborate
              • Vl-assign-elaborate
              • Vl-always-elaborate-aux
              • Vl-always-elaborate
              • Vl-alias-elaborate
              • Vl-initial-elaborate
              • Vl-bind-elaborate
              • Vl-final-elaborate
              • Vl-fundecl-paramdecls-for-const-args
              • Vl-fundecl-body-with-const-args
              • Vl-exprlist-args-to-4vec-consts
              • Sv::svex-constval
            • Addnames
            • Annotate
            • Clean-warnings
            • Eliminitial
            • Custom-transform-hooks
            • Problem-modules
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Elaborate

    Vl-maybe-clkskew-elaborate

    Signature
    (vl-maybe-clkskew-elaborate x elabindex &key (reclimit 'reclimit) 
                                (config 'config)) 
     
      → 
    (mv ok warnings new-x new-elabindex)
    Arguments
    x — Guard (vl-maybe-clkskew-p x).
    reclimit — Guard (natp reclimit).
    config — Guard (vl-simpconfig-p config).
    Returns
    warnings — Type (vl-warninglist-p warnings).
    new-x — Type (vl-maybe-clkskew-p new-x).

    Definitions and Theorems

    Function: vl-maybe-clkskew-elaborate-fn

    (defun vl-maybe-clkskew-elaborate-fn (x elabindex reclimit config)
     (declare (xargs :stobjs (elabindex)))
     (declare (xargs :guard (and (vl-maybe-clkskew-p x)
                                 (natp reclimit)
                                 (vl-simpconfig-p config))))
     (let ((__function__ 'vl-maybe-clkskew-elaborate))
      (declare (ignorable __function__))
      (vl-maybe-clkskew-case
       x :none
       (b* ((ok t) (warnings nil))
         (mv ok warnings
             (change-vl-maybe-clkskew-none x)
             elabindex))
       :some
       (b* (((mv ok warnings fty::val elabindex)
             (vl-clkskew-elaborate-fn x.val elabindex reclimit config)))
         (mv ok warnings
             (change-vl-maybe-clkskew-some x
                                           :val fty::val)
             elabindex)))))

    Theorem: vl-warninglist-p-of-vl-maybe-clkskew-elaborate.warnings

    (defthm vl-warninglist-p-of-vl-maybe-clkskew-elaborate.warnings
     (b* (((mv ?ok ?warnings ?new-x ?new-elabindex)
           (vl-maybe-clkskew-elaborate-fn x elabindex reclimit config)))
       (vl-warninglist-p warnings))
     :rule-classes :rewrite)

    Theorem: vl-maybe-clkskew-p-of-vl-maybe-clkskew-elaborate.new-x

    (defthm vl-maybe-clkskew-p-of-vl-maybe-clkskew-elaborate.new-x
     (b* (((mv ?ok ?warnings ?new-x ?new-elabindex)
           (vl-maybe-clkskew-elaborate-fn x elabindex reclimit config)))
       (vl-maybe-clkskew-p new-x))
     :rule-classes :rewrite)

    Theorem: vl-maybe-clkskew-elaborate-fn-of-vl-maybe-clkskew-fix-x

    (defthm vl-maybe-clkskew-elaborate-fn-of-vl-maybe-clkskew-fix-x
      (equal
           (vl-maybe-clkskew-elaborate-fn (vl-maybe-clkskew-fix x)
                                          elabindex reclimit config)
           (vl-maybe-clkskew-elaborate-fn x elabindex reclimit config)))

    Theorem: vl-maybe-clkskew-elaborate-fn-vl-maybe-clkskew-equiv-congruence-on-x

    (defthm
     vl-maybe-clkskew-elaborate-fn-vl-maybe-clkskew-equiv-congruence-on-x
     (implies
      (vl-maybe-clkskew-equiv x x-equiv)
      (equal (vl-maybe-clkskew-elaborate-fn x elabindex reclimit config)
             (vl-maybe-clkskew-elaborate-fn
                  x-equiv elabindex reclimit config)))
     :rule-classes :congruence)

    Theorem: vl-maybe-clkskew-elaborate-fn-of-nfix-reclimit

    (defthm vl-maybe-clkskew-elaborate-fn-of-nfix-reclimit
      (equal
           (vl-maybe-clkskew-elaborate-fn x elabindex (nfix reclimit)
                                          config)
           (vl-maybe-clkskew-elaborate-fn x elabindex reclimit config)))

    Theorem: vl-maybe-clkskew-elaborate-fn-nat-equiv-congruence-on-reclimit

    (defthm
         vl-maybe-clkskew-elaborate-fn-nat-equiv-congruence-on-reclimit
     (implies
      (acl2::nat-equiv reclimit reclimit-equiv)
      (equal (vl-maybe-clkskew-elaborate-fn x elabindex reclimit config)
             (vl-maybe-clkskew-elaborate-fn
                  x elabindex reclimit-equiv config)))
     :rule-classes :congruence)

    Theorem: vl-maybe-clkskew-elaborate-fn-of-vl-simpconfig-fix-config

    (defthm vl-maybe-clkskew-elaborate-fn-of-vl-simpconfig-fix-config
      (equal
           (vl-maybe-clkskew-elaborate-fn
                x elabindex
                reclimit (vl-simpconfig-fix config))
           (vl-maybe-clkskew-elaborate-fn x elabindex reclimit config)))

    Theorem: vl-maybe-clkskew-elaborate-fn-vl-simpconfig-equiv-congruence-on-config

    (defthm
     vl-maybe-clkskew-elaborate-fn-vl-simpconfig-equiv-congruence-on-config
     (implies
      (vl-simpconfig-equiv config config-equiv)
      (equal (vl-maybe-clkskew-elaborate-fn x elabindex reclimit config)
             (vl-maybe-clkskew-elaborate-fn
                  x elabindex reclimit config-equiv)))
     :rule-classes :congruence)