code: def clone_wire(old_wire, name=None):
      
      if isinstance(old_wire, Const):
          return Const(old_wire.val, old_wire.bitwidth)
      else:
          if name is None:
              return old_wire.__class__(old_wire.bitwidth, name=old_wire.name)
          return old_wire.__class__(old_wire.bitwidth, name=name)
docs: Makes a copy of any existing wire
  
      :param old_wire: The wire to clone
      :param name: a name fo rhte new wire
  
      Note that this function is mainly intended to be used when the
      two wires are from different blocks. Making two wires with the
      same name in the same block is not allowed