×

Compare-and-swap transaction

  • US 10,223,002 B2
  • Filed: 02/08/2017
  • Issued: 03/05/2019
  • Est. Priority Date: 02/08/2017
  • Status: Active Grant
First Claim
Patent Images

1. An apparatus comprising:

  • a master device to issue a transactions specifying a target address and comprising a data field for transporting at least one operand value, wherein the master device is configured to issue a compare-and-swap transaction for which said at least one operand value comprises a compare data value and a swap data value; and

    a processing unit responsive to the compare-and-swap transaction to select whether to write the swap data value to a storage location corresponding to the target address in dependence on whether the compare data value matches a target data value read from the storage location, an offset portion of the target address indicating the position of the target data value within the storage location;

    wherein when issuing the compare-and-swap transaction, the master device is configured to pack the compare data value into a first region of said data field selected in dependence on said offset portion of the target address and having a position within said data field corresponding to the position of the target data value within the storage location.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×