• 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
            • Wire-fix
            • Wire-p
            • Make-wire
            • Wire-equiv
            • Change-wire
              • Wire->name
              • Wire->low-idx
              • Wire->delay
              • Wire->width
              • Wire->type
              • Wire->atts
              • Wirelist
              • Wire->revp
              • Wiretype
            • Module
            • 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
    • Wire

    Change-wire

    Modifying constructor for wire structures.

    Syntax
    (change-wire x 
                 [:name <name>] 
                 [:width <width>] 
                 [:low-idx <low-idx>] 
                 [:delay <delay>] 
                 [:revp <revp>] 
                 [:type <type>] 
                 [:atts <atts>]) 
    

    This is an often useful alternative to make-wire.

    We construct a new wire 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-wire

    (defmacro change-wire (x &rest args)
      (std::change-aggregate 'wire
                             x args
                             '((:name . wire->name)
                               (:width . wire->width)
                               (:low-idx . wire->low-idx)
                               (:delay . wire->delay)
                               (:revp . wire->revp)
                               (:type . wire->type)
                               (:atts . wire->atts))
                             'change-wire
                             'remake-wire))