original_docstring:  Asserts that a PHY register contains a given value.
  
          Parameters:
              phy_register_base -- The base address of the PHY window in the debug SPI
                                   address range.
              register          -- The PHY register to check.
              value             -- The expected value of the relevant PHY register.
          
docstring: Asserts that a PHY register contains a given value.
  Parameters:
  phy_register_base -- The base address of the PHY window in the debug SPI
  address range.
  register          -- The PHY register to check.
  value             -- The expected value of the relevant PHY register.
docstring_tokens: Asserts that a PHY register contains a given value . Parameters : phy_register_base -- The base address of the PHY window in the debug SPI address range . register -- The PHY register to check . value -- The expected value of the relevant PHY register .
code: def assertPhyRegister(self, phy_register_base: int, register: int, expected_value: int):
          """ Asserts that a PHY register contains a given value.
  
          Parameters:
              phy_register_base -- The base address of the PHY window in the debug SPI
                                   address range.
              register          -- The PHY register to check.
              value             -- The expected value of the relevant PHY register.
          """
  
          # Set the address of the ULPI register we're going to read from.
          self.dut.spi.register_write(phy_register_base, register)
  
          # ... and read back its value.
          actual_value = self.dut.spi.register_read(phy_register_base + 1)
  
          # Finally, validate it.
          if actual_value != expected_value:
              raise AssertionError(f"PHY register {register} was {actual_value}, not expected {expected_value}")
code_tokens: def assertPhyRegister ( self , phy_register_base : int , register : int , expected_value : int ) : self . dut . spi . register_write ( phy_register_base , register ) actual_value = self . dut . spi . register_read ( phy_register_base + 1 ) if actual_value != expected_value : raise AssertionError ( f"PHY register {register} was {actual_value}, not expected {expected_value}" )
short_docstring: Asserts that a PHY register contains a given value.
short_docstring_tokens: Asserts that a PHY register contains a given value .
comment: """ Asserts that a PHY register contains a given value.
  
          Parameters:
              phy_register_base -- The base address of the PHY window in the debug SPI
                                   address range.
              register          -- The PHY register to check.
              value             -- The expected value of the relevant PHY register.
          """$SEP$# Set the address of the ULPI register we're going to read from.$SEP$# ... and read back its value.$SEP$# Finally, validate it.