code: def read_core_register(self, reg):
          
          regIndex = register_name_to_index(reg)
          regValue = self.read_core_register_raw(regIndex)
          # Convert int to float.
          if is_single_float_register(regIndex):
              regValue = conversion.u32_to_float32(regValue)
          elif is_double_float_register(regIndex):
              regValue = conversion.u64_to_float64(regValue)
          return regValue
docs: read CPU register
          Unpack floating point register values