code: def inspect(self, w):
          
          if isinstance(w, WireVector):
              w = w.name
          try:
              vals = self.tracer.trace[w]
          except KeyError:
              pass
          else:
              if not vals:
                  raise PyrtlError('No context available. Please run a simulation step')
              return vals[-1]
          raise PyrtlError('CompiledSimulation does not support inspecting internal WireVectors')
docs: Get the latest value of the wire given, if possible.