• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
        • Warnings
        • Primitives
        • Use-set
        • Syntax
        • Getting-started
        • Utilities
        • Loader
          • Preprocessor
          • Vl-loadconfig
          • Lexer
          • Vl-loadstate
          • Parser
            • Parse-expressions
            • Parse-udps
            • Vl-genelements
            • Parse-paramdecls
            • Parse-blockitems
            • Parse-utils
            • Parse-insts
            • Parse-datatype
            • Parse-functions
            • Parse-datatypes
            • Parse-strengths
            • Vl-parse-genvar-declaration
            • Vl-parse
            • Parse-ports
              • Parse-port-types
                • Vl-parsed-portdecl-head
                  • Vl-parsed-portdecl-head-fix
                  • Vl-parsed-portdecl-head-equiv
                  • Make-vl-parsed-portdecl-head
                    • Vl-parsed-portdecl-head->nettype
                    • Vl-parsed-portdecl-head->implicit-p
                    • Vl-parsed-portdecl-head->explicit-p
                    • Vl-parsed-portdecl-head->var-p
                    • Vl-parsed-portdecl-head->type
                    • Change-vl-parsed-portdecl-head
                    • Vl-parsed-portdecl-head-p
                  • Vl-parse-port-declaration-head-2012
                  • Vl-parse-ansi-port-header
                • Sv-ansi-portdecls
                • Creating-portdecls/vardecls
                • Sv-non-ansi-portdecls
                • Verilog-2005-ports
                • Sv-ansi-port-interpretation
                • Verilog-2005-portdecls
              • Seq
              • Parse-packages
            • Vl-load-merge-descriptions
            • Scope-of-defines
            • Vl-load-file
            • Vl-flush-out-descriptions
            • Vl-description
            • Vl-loadresult
            • Vl-read-file
            • Vl-find-basename/extension
            • Vl-find-file
            • Vl-read-files
            • Extended-characters
            • Vl-load
            • Vl-load-main
            • Vl-load-description
            • Vl-descriptions-left-to-load
            • Inject-warnings
            • Vl-load-descriptions
            • Vl-load-files
            • Vl-load-summary
            • Vl-collect-modules-from-descriptions
            • Vl-descriptionlist
          • Transforms
          • Lint
          • Mlib
          • Server
          • Kit
          • Printer
          • Esim-vl
          • Well-formedness
        • Sv
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-parsed-portdecl-head

    Make-vl-parsed-portdecl-head

    Basic constructor macro for vl-parsed-portdecl-head structures.

    Syntax
    (make-vl-parsed-portdecl-head [:nettype <nettype>] 
                                  [:var-p <var-p>] 
                                  [:explicit-p <explicit-p>] 
                                  [:implicit-p <implicit-p>] 
                                  [:type <type>]) 
    

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

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

    Definition

    This is an ordinary make- macro introduced by defprod.

    Macro: make-vl-parsed-portdecl-head

    (defmacro make-vl-parsed-portdecl-head (&rest args)
      (std::make-aggregate 'vl-parsed-portdecl-head
                           args
                           '((:nettype)
                             (:var-p)
                             (:explicit-p)
                             (:implicit-p)
                             (:type))
                           'make-vl-parsed-portdecl-head
                           nil))

    Function: vl-parsed-portdecl-head

    (defun vl-parsed-portdecl-head
           (nettype var-p explicit-p implicit-p type)
     (declare (xargs :guard (and (vl-maybe-nettypename-p nettype)
                                 (booleanp var-p)
                                 (booleanp explicit-p)
                                 (booleanp implicit-p)
                                 (vl-datatype-p type))))
     (declare (xargs :guard t))
     (let ((__function__ 'vl-parsed-portdecl-head))
      (declare (ignorable __function__))
      (b* ((nettype (mbe :logic (vl-maybe-nettypename-fix nettype)
                         :exec nettype))
           (var-p (mbe :logic (acl2::bool-fix var-p)
                       :exec var-p))
           (explicit-p (mbe :logic (acl2::bool-fix explicit-p)
                            :exec explicit-p))
           (implicit-p (mbe :logic (acl2::bool-fix implicit-p)
                            :exec implicit-p))
           (type (mbe :logic (vl-datatype-fix type)
                      :exec type)))
       (cons :vl-parsed-portdecl-head
             (std::prod-cons
                  (std::prod-cons nettype var-p)
                  (std::prod-cons explicit-p
                                  (std::prod-cons implicit-p type)))))))