• 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-server
            • Vls-scannedalist-p
            • Vls-loadedalist-p
            • Vls-commands
            • Vls-data-p
            • Vl-server-opts-p
            • Vl-descriptionlist-summaries
            • Vls-transdb
            • Vl-describe
            • Ts-queue
            • Vls-get-plainsrc
            • Vl-description->warnings
            • Vls-showloc
            • File-layout
            • Vls-remove-from-scannedalist
            • Vls-describe
            • Vl-server-top
            • Vls-port-table
              • Vl-find-description-insensitive
              • Vls-get-warnings
              • Vls-get-summary
              • Vls-get-origsrc
              • Vl-ppc-description
              • Vls-get-parents
              • Vls-get-children
              • Vls-data-origname-reportcard
              • Vls-data-from-zip
              • Start
              • Vls-make-scannedalist
              • Vls-get-summaries
              • Vls-get-unloaded-json
              • Vls-get-desctypes
              • Vls-scannedalist-to-json
              • Vls-loadedalist-to-json
              • Vl-description-summary
              • *vl-server-help*
              • Vl-descalist->descriptions/types
              • Stop
            • Vl-gather
            • Vl-zip
            • Vl-main
            • Split-plusargs
            • Vl-shell
            • Vl-json
          • Mlib
          • Transforms
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-server

    Vls-port-table

    Signature
    (vls-port-table origname data) → ans
    Arguments
    origname — Guard (stringp origname).
    data — Guard (vls-data-p data).
    Returns
    ans — Type (stringp ans).

    Definitions and Theorems

    Function: vls-port-table

    (defun vls-port-table (origname data)
     (declare (xargs :guard (and (stringp origname)
                                 (vls-data-p data))))
     (let ((__function__ 'vls-port-table))
       (declare (ignorable __function__))
       (b* (((vls-data data))
            (look (cdr (hons-assoc-equal origname data.orig-descalist)))
            ((unless look)
             (cat "Error: no such module " origname))
            ((unless (mbe :logic (vl-module-p look)
                          :exec (eq (tag look) :vl-module)))
             (cat "Error: expected a module but "
                  origname " is a "
                  (ec-call (symbol-name (tag look))))))
         (with-local-ps (vl-ps-seq (vl-ps-update-htmlp t)
                                   (vl-pp-porttable look))))))

    Theorem: stringp-of-vls-port-table

    (defthm stringp-of-vls-port-table
      (b* ((ans (vls-port-table origname data)))
        (stringp ans))
      :rule-classes :type-prescription)