• 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
          • Vl-load-merge-descriptions
          • Vl-find-basename/extension
          • Vl-load-file
          • Vl-loadresult
            • Vl-loadresult-fix
            • Vl-loadresult-equiv
            • Make-vl-loadresult
              • Vl-loadresult-p
              • Vl-loadresult->ifdefmap
              • Change-vl-loadresult
              • Vl-loadresult->filemap
              • Vl-loadresult->design
              • Vl-loadresult->defmap
              • Vl-loadresult->defines
            • 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
    • Vl-loadresult

    Make-vl-loadresult

    Basic constructor macro for vl-loadresult structures.

    Syntax
    (make-vl-loadresult [:design <design>] 
                        [:filemap <filemap>] 
                        [:defines <defines>] 
                        [:ifdefmap <ifdefmap>] 
                        [:defmap <defmap>]) 
    

    This is the usual way to construct vl-loadresult structures. It simply conses together a structure with the specified fields.

    This macro generates a new vl-loadresult structure from scratch. See also change-vl-loadresult, which can "change" an existing structure, instead.

    Definition

    This is an ordinary make- macro introduced by defprod.

    Macro: make-vl-loadresult

    (defmacro make-vl-loadresult (&rest args)
      (std::make-aggregate 'vl-loadresult
                           args
                           '((:design)
                             (:filemap)
                             (:defines)
                             (:ifdefmap)
                             (:defmap))
                           'make-vl-loadresult
                           nil))

    Function: vl-loadresult

    (defun vl-loadresult (design filemap defines ifdefmap defmap)
      (declare (xargs :guard (and (vl-design-p design)
                                  (vl-filemap-p filemap)
                                  (vl-defines-p defines)
                                  (vl-ifdef-use-map-p ifdefmap)
                                  (vl-def-use-map-p defmap))))
      (declare (xargs :guard t))
      (let ((__function__ 'vl-loadresult))
        (declare (ignorable __function__))
        (b* ((design (mbe :logic (vl-design-fix design)
                          :exec design))
             (filemap (mbe :logic (vl-filemap-fix filemap)
                           :exec filemap))
             (defines (mbe :logic (vl-defines-fix defines)
                           :exec defines)
    )
             (ifdefmap (mbe :logic (vl-ifdef-use-map-fix ifdefmap)
                            :exec ifdefmap))
             (defmap (mbe :logic (vl-def-use-map-fix defmap)
                          :exec defmap)))
          (cons :vl-loadresult (list (cons 'design design)
                                     (cons 'filemap filemap)
                                     (cons 'defines defines)
                                     (cons 'ifdefmap ifdefmap)
                                     (cons 'defmap defmap))))))