• 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
            • Module-fix
            • Make-module
            • Module-vars
            • Module-p
            • Module-equiv
            • Change-module
              • Module->constraints
              • Module->aliaspairs
              • Module->wires
              • Module->insts
              • Module->fixups
              • Module->assigns
              • Module-addr-p
            • Lhs
            • Path
            • Svar-add-namespace
            • Design
            • 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
    • Module

    Change-module

    Modifying constructor for module structures.

    Syntax
    (change-module x 
                   [:wires <wires>] 
                   [:insts <insts>] 
                   [:assigns <assigns>] 
                   [:fixups <fixups>] 
                   [:constraints <constraints>] 
                   [:aliaspairs <aliaspairs>]) 
    

    This is an often useful alternative to make-module.

    We construct a new module structure that is a copy of x, except that you can explicitly change some particular fields. Any fields you don't mention just keep their values from x.

    Definition

    This is an ordinary change- macro introduced by defprod.

    Macro: change-module

    (defmacro change-module (x &rest args)
      (std::change-aggregate 'module
                             x args
                             '((:wires . module->wires)
                               (:insts . module->insts)
                               (:assigns . module->assigns)
                               (:fixups . module->fixups)
                               (:constraints . module->constraints)
                               (:aliaspairs . module->aliaspairs))
                             'change-module
                             'nil))