• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
        • Svex-stvs
        • Svex-decomposition-methodology
        • Sv-versus-esim
        • Svex-decomp
        • Svex-compose-dfs
        • Svex-compilation
        • Moddb
        • Svmods
          • Address
          • Wire
          • Module
          • Lhs
          • Path
          • Svar-add-namespace
          • Design
            • Design-fix
            • Design-equiv
            • Make-design
              • Design-p
              • Design->modalist
              • Change-design
              • Design->top
            • Modinst
            • Lhs-add-namespace
            • Modalist
            • Path-add-namespace
            • Modname->submodnames
            • Name
            • Constraintlist-addr-p
            • Svex-alist-addr-p
            • Svar-map-addr-p
            • Lhspairs-addr-p
            • Modname
            • Assigns-addr-p
            • Lhs-addr-p
            • Lhatom-addr-p
            • Modhier-list-measure
            • Attributes
            • Modhier-measure
            • Modhier-list-measure-aux
            • Modhier-loopfreelist-p
            • Modhier-loopfree-p
          • Svstmt
          • Sv-tutorial
          • Expressions
          • Symbolic-test-vector
          • Vl-to-svex
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Design

    Make-design

    Basic constructor macro for design structures.

    Syntax
    (make-design [:modalist <modalist>] 
                 [:top <top>]) 
    

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

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

    Definition

    This is an ordinary make- macro introduced by defprod.

    Macro: make-design

    (defmacro make-design (&rest args)
      (std::make-aggregate 'design
                           args '((:modalist) (:top))
                           'make-design
                           nil))

    Function: design

    (defun design (modalist top)
      (declare (xargs :guard (and (modalist-p modalist)
                                  (modname-p top))))
      (declare (xargs :guard t))
      (let ((__function__ 'design))
        (declare (ignorable __function__))
        (b* ((modalist (mbe :logic (modalist-fix modalist)
                            :exec modalist))
             (top (mbe :logic (modname-fix top)
                       :exec top)))
          (list (cons 'modalist modalist)
                (cons 'top top)))))