• 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-clocking
            • Parse-strengths
            • Vl-parse-genvar-declaration
            • Vl-parse
            • Parse-netdecls
              • Vl-build-netdecls
              • Vl-parse-net-declaration-finish
              • Vl-parse-net-declaration
              • Vl-build-netdecls-aux
              • Vl-parse-list-of-net-identifiers
              • Vl-parse-netdecltype
              • Vl-netdecls-error
                • Vl-parse-optional-nettype
                • Vl-atomify-assignpairs
                • Vl-rangelist-list
                • Vl-netdeclassigns-check-array-assigns
                • Vl-netdeclassigns-characterize
              • 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-netdecls

    Vl-netdecls-error

    Signature
    (vl-netdecls-error nettype cstrength gstrength 
                       vectoredp scalaredp type delay assigns) 
     
      → 
    *
    Arguments
    type — Guard (vl-datatype-p type).
    assigns — Guard (vl-vardeclassignlist-p assigns).

    Definitions and Theorems

    Function: vl-netdecls-error

    (defun vl-netdecls-error
           (nettype cstrength gstrength
                    vectoredp scalaredp type delay assigns)
     (declare (xargs :guard (and (vl-datatype-p type)
                                 (vl-vardeclassignlist-p assigns))))
     (let ((__function__ 'vl-netdecls-error))
      (declare (ignorable __function__))
      (cond
       ((and (not (eq nettype :vl-trireg))
             cstrength)
        "A non-trireg net illegally has a charge strength.")
       ((and vectoredp
             (not (vl-datatype->pdims type)))
        "A range-free net is illegally declared 'vectored'.")
       ((and scalaredp
             (not (vl-datatype->pdims type)))
        "A range-free net is illegally declared 'scalared'.")
       ((and (or (atom assigns)
                 (not (vl-vardeclassign->rhs (car assigns))))
             gstrength)
        "A drive strength has been given to a net declaration, but is only
              valid on assignments.")
       ((vl-netdeclassigns-check-array-assigns assigns))
       ((and delay
             (eq (vl-netdeclassigns-characterize assigns)
                 :both))
        "A delay has been given to a multiple net declaration where some of the
              nets have assignments and some do not; we don't know what this
              means.  Should the delay be on the nets or the assignments?")
       ((not (vl-vardeclassignlist-newfree-p assigns))
        "The 'new' keyword is used on the right-hand side of a net declaration,
              but this is a continuous assignment so new should not be used here.")
       (t nil))))

    Theorem: vl-vardeclassignlist-newfree-p-unless-vl-netdecls-error

    (defthm vl-vardeclassignlist-newfree-p-unless-vl-netdecls-error
     (implies
        (not (vl-netdecls-error nettype cstrength gstrength
                                vectoredp scalaredp type delay assigns))
        (vl-vardeclassignlist-newfree-p assigns)))