Associative memories with subfield minimum and maximum clamping.
A content addressable memory system addresses compatibility issues by selectively modifying register writes on a per-pipeline basis, enhancing performance and user experience in next-generation processing systems.
Patent Information
- Application Number
- JP2022534361
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-12-11
- Filing Date
- 2020-12-11
- Publication Date
- 2024-10-16
- Estimated Expiration
- 2040-12-11
AI Technical Summary
Next generation processing systems face compatibility issues with older applications and I/O devices, leading to performance penalties due to time-consuming firmware modifications of register bits, which impact user experience.
A content addressable memory (CAM) is used to selectively modify register writes on a per-pipeline basis, applying data masks and subfield functions to align data with next-generation hardware, reducing performance penalties.
The CAM efficiently modifies register writes without significant performance impact, ensuring compatibility and improving user experience by aligning data with new hardware specifications.
Smart Images

Figure 0007568723000001 
Figure 0007568723000002 
Figure 0007568723000003
Abstract
Description
[Background technology]
[0001] A processing system receives data and commands from applications and input / output (I / O) devices in registers and other storage modules. As next generation processing systems are developed, an important design consideration is providing compatibility with older applications and I / O devices. For example, data and commands generated by applications may conflict with new features, thereby adversely affecting the user experience. In addition, bug fix workarounds may require setting or clearing register bits. Data may be manipulated at run-time using firmware or flash microcode to ensure backward compatibility. However, when data is manipulated using firmware, for every register write, the firmware applies an address test to determine whether a potential modification of the data is necessary and, if necessary, to perform the modification. This requires multiple clock cycles, and the number of clock cycles required increases with the number of addresses that need to be examined. Thus, analyzing data while the program is running to reset or clear register bits in firmware or flash microcode is time consuming and requires a performance penalty that may adversely affect the user experience.
[0002] The present disclosure can be best understood, and its numerous features and advantages made apparent to those skilled in the art by referencing the accompanying drawings, in which: The use of the same reference numbers in different drawings indicates similar or identical elements. [Brief description of the drawings]
[0003] [Figure 1] 1 is a block diagram of a processing system including a content addressable memory (CAM) for modifying register writes to one or more pipeline registers, according to some embodiments. [Diagram 2]FIG. 2 is a block diagram of the CAM of FIG. 1 including a data mask defining subfields of a register write and subfield functions and subfield data corresponding to each subfield, according to some embodiments. [Diagram 3] FIG. 3 illustrates a replacement subfield function of the CAM of FIG. 2 that replaces specific bits of a register write, according to some embodiments. [Figure 4] 3 illustrates a minimum clamp-subfield function of the CAM of FIG. 2 that clamps the subfield value of a register write to a minimum value, according to some embodiments. [Diagram 5] 3 illustrates a minimum clamp-subfield function of the CAM of FIG. 2 that clamps the subfield value of a register write to a maximum value in accordance with some embodiments. [Figure 6] 6 is a flow chart illustrating a method for modifying register writes on a per-pipe basis using the CAM of FIGS. 1-5 according to some embodiments. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0004] 1-6 illustrate exemplary hardware systems and techniques for selectively modifying register writes received from existing software to match next generation hardware. A processing system including multiple processing pipelines has a CAM in an I / O path for selectively modifying register writes on a per-pipeline basis. The CAM compares an address of the register write to an address field of each entry in the CAM. In response to determining that the address of the register write matches an address field of an entry in the CAM, the CAM selectively modifies the register write as defined by a function for the matching entry in the CAM. For example, in some embodiments, the function for the matching entry is a replacement function, where the CAM replaces the value of the data of the register write with data stored in the CAM for the matching entry (i.e., the modified value). In some embodiments, the function for the matching entry is a minimum clamp, where the data of the register write is compared to a minimum value stored in the CAM for the matching entry and replaced with the minimum value if the value of the register write data is less than the minimum value. Conversely, in some embodiments, the function for a matched entry is a maximum clamp, where the register write data is compared to the maximum value stored in the CAM for the matched entry, and if the value of the register write data exceeds the maximum value, it is replaced with the maximum value.
[0005] The CAM selectively modifies or discards register writes on a pipeline-by-pipeline basis, so that for a valid CAM entry, the CAM modifies or discards the register write for a first pipeline but leaves it unchanged for a second (or third, etc.) pipeline. In some embodiments, for a given address, each pipeline has a different CAM entry such that the register writes for the pipelines are modified independently.
[0006] Additionally, the CAM, in some embodiments, includes a data mask for each entry, which defines the subfields of the register write. For example, in some embodiments, the register write data includes 32 bits, and the data mask defines the bit positions that belong to each subfield. Each subfield defined by the data mask of each entry may include a single bit or multiple bits. Additionally, the CAM includes a subfield function for each subfield, and a subfield data or subfield value for each subfield. Thus, if the subfield function for the first subfield is a replacement function, the CAM replaces the bit values of the data for the bit positions defined by the data mask with the subfield data for the matched CAM entry (e.g., flip each 0 to a 1 and flip each 1 to a 0). Similarly, if the subfield function for the first subfield is minimum clamp, the CAM compares the values of the bit positions of the subfields of the data defined by the data mask with the subfields for the matched CAM entry, and clamps the value of the data subfield to the subfield value for the matched CAM entry if the value of the data subfield is less than the subfield value for the matched CAM entry. If the subfield function for the first subfield is max clamp, the CAM compares the values of the bit positions of the data subfield defined by the data mask with the subfield value for the matching CAM entry, and if the value of the data subfield is greater than the subfield value for the matching CAM entry, clamps the value of the data subfield to the subfield value for the matching CAM entry.
[0007] Additionally, in some embodiments, each CAM entry includes an indication that a second (or third) subfield function is to be performed on the second (or third) subfield of the data write. For example, if the continue bit is set for a first slot of a CAM entry having multiple subfields and the address of the register write matches the address field of the CAM entry, the first subfield function is performed on the first subfield of the data of the register write and the next (second) slot of the CAM entry is used to perform the second subfield function on either the first subfield or the second subfield of the data. If the continue bit is set for the second slot of the CAM entry, the third subfield function is performed on one of the first, second, or third subfield of the data. To illustrate, if the first subfield function is a permute function for the first subfield, the second subfield function is a minimum clamp for the second subfield, and the third subfield function is a maximum clamp for the third subfield, then the CAM permutes the bits of the first subfield of data, clamps the value of the second subfield to the minimum, and clamps the value of the third subfield to the maximum, all using a single CAM lookup and comparison. If a minimum clamp and a maximum clamp apply to the same subfield, the CAM limits the value of the corresponding subfield. Thus, the continuation bit(s) chain the operations together such that multiple operations are performed on different ranges of bits in a single register write. By using the CAM to selectively modify register writes, data generated by existing software may be modified to match next generation hardware without a noticeable performance penalty.
[0008] FIG. 1 is a block diagram of a processing system 100 including a content addressable memory (CAM) 110 configured to modify register writes from an external storage medium 106 to one or more pipeline registers, according to some embodiments. The processing system includes an interface, such as an input / output (I / O) engine 104, and two pipelines, pipeline 120 and pipeline 130. Pipeline 120 includes registers 122 and processing unit 124. Similarly, pipeline 130 includes registers 132 and processing unit 134. Processing system 100 executes one or more sets of instructions (e.g., computer programs) to perform specific tasks for an electronic device. Examples of such tasks include controlling aspects of the operation of the electronic device, displaying information to a user to provide a particular user experience, communicating with other electronic devices, and the like. Thus, in different embodiments, processing system 100 is employed in any of several types of electronic devices, such as desktop computers, laptop computers, servers, game consoles, tablets, smartphones, and the like.
[0009] To support the execution of one or more instruction sets, processing system 100 includes multiple processor cores (only one processor core 140 is shown in FIG. 1 for ease of illustration). In some embodiments, each processor core includes one or more instruction pipelines (e.g., pipeline 120 and pipeline 130) for fetching instructions, decoding the instructions into corresponding operations, dispatching the operations to one or more execution units (e.g., processing units 124, 134), executing the operations, and retiring the operations. While FIG. 1 illustrates two pipelines 120, 130, other embodiments include one pipeline or two or more pipelines. In the course of executing instructions, the processor cores generate graphics and other operations related to the visual display of information. Based on those operations, the processor cores provide commands and data to a graphics processing unit (GPU) (not shown).
[0010] The I / O engine 104 processes input and output operations related to a display (not shown) as well as other elements of the processing system 100, such as a keyboard, mouse, printer, external disk, etc. In the illustrated embodiment, the I / O engine 104 reads information stored on an external storage medium 106, such as a compact disc (CD) and a digital video disc (DVD). The external storage medium 106 stores information representing program code used to implement applications, such as video games. The program code on the external storage medium 106 is written to registers 122 of the pipeline 120 to form a copy of the instructions or program code executed by the processing unit 124. Similarly, the program code on the external storage medium 106 is written to registers 132 of the pipeline 130 to form a copy of the instructions or program code executed by the processing unit 134.
[0011] To facilitate selective modification of register writes from an external storage medium to registers 122, 132, the processing system includes a CAM 110. The CAM 110 is configured to selectively modify data of the register writes on a pipeline-by-pipeline basis such that the register writes are modified for a first pipeline and are not modified or modified differently for a second pipeline than the modifications for the first pipeline. In some embodiments, the CAM 110 is configured to apply a data mask to register writes to addresses matching addresses of entries in the CAM 110. The data mask defines subfields of the register write and specifies a subfield function or opcode to be performed on bits (i.e., subfields) of the register write that correspond to the data mask. In some embodiments, the CAM 110 is configured to store an indication (e.g., a continue bit) in either the same or a different subfield of the register write that a second subfield function (i.e., additional operations) is to be performed on the register write. Each entry in CAM 110 includes an address field, a data mask, a function select field that identifies the opcode if more than one function is performed for a single register write, a data value subfield, a pipeline enable bit for each pipeline, and a continue bit. In some embodiments, each entry in CAM 110 includes a function select field for each subfield. In some embodiments, each entry in CAM 110 includes an indication to discard the register write data. If an indication, such as skip write, is set, CAM 110 changes the address output to a reserved register address for register writes that are discarded by hardware.
[0012] The function selection field includes a substitution function, a minimum clamping function, and a maximum clamping function. In response to a substitution function being defined for a bit subfield defined by the data mask, the CAM 110 replaces bits of the register write data 102 that have a corresponding data mask bit set with the corresponding data value subfield of the matching CAM 110 entry. Thus, for example, if the data mask is 0xffff0000, the data value subfield of the matching CAM 110 entry is 0xccddeeff, the register write data 102 is 0x12345678, and the modified value is 0ccdd5678. In response to a minimum clamping function being defined for a bit subfield defined by the data mask, the CAM 110 compares the value of the register write data 102 subfield with the corresponding data value subfield of the matching CAM 110 entry. If the value of the subfield of the register write data 102 is less than the corresponding data value subfield of the matched CAM 110 entry, the CAM 110 clamps the value of the subfield of the register write data 102 to the data value subfield of the matched entry. In response to a maximum clamping function defined for the subfields of the bits defined by the data mask, the CAM 110 compares the value of the subfield of the register write data 102 to the corresponding data value subfield of the matched CAM 110 entry. If the value of the subfield of the register write data 102 is greater than the corresponding data value subfield of the matched CAM 110 entry, the CAM 110 clamps the value of the subfield of the register write data 102 to the data value subfield of the matched entry. Thus, the CAM 110 selectively modifies the subfields of the register write data 102.
[0013] To illustrate, during operation, the I / O engine 104 receives register write data 102 from the external storage medium 106. The I / O engine 104 provides the register write data 102 to the CAM 110. The CAM 110 performs a lookup that compares the address of the register write data 102 to the address field of each entry of the CAM 110. In some embodiments, when searching the CAM 110 for a match, the first match found starting with entry 0 is used and matches in higher entries are ignored. If a match is found and at least one pipeline is enabled, for example by setting a pipeline enable bit, the CAM 110 modifies the register write data 102 as defined by the data mask and subfield function and data fields for the matching CAM 110 entry. If the pipeline is not enabled, the CAM 110 refrains from modifying the data 102. Thus, in the illustrated example, the CAM 110 contains a match on the address of the data 102. The pipeline enable bit for the pipeline 120 is set for the matching entry. Thus, CAM 110 modifies data 102 for pipeline 120 and provides the modified data 112 to register 122. However, in the illustrated example, the pipeline enable bit for pipeline 130 is not set, and thus CAM 110 does not modify data 102 for pipeline 130 and provides data 102 to register 132.
[0014] 2 is a block diagram of the CAM 110 of FIG. 1 including a data mask 206 defining subfields of register write data and subfield data corresponding to each subfield, according to some embodiments. In the illustrated example, each entry of the CAM 110 includes an address field 202, a skip write field 204, a data mask 206, a function select 208, a pipeline enable 210, a pipeline enable 212, and a continue bit 216. When set, the skip write field 204 changes the register address output from the CAM 110 for the register write data to an address that is discarded by hardware. The data mask 206 defines three subfields (subfield-1 220, subfield-2 230, and subfield-3 240) of the register write data that match the address field 202 of the entry of the CAM 110. Each subfield includes one or more bits and is independently sized. Thus, in the illustrated example, subfield-1 220 contains fewer bits than subfield-2 230, and subfield-3 240 contains more bits than subfield-1 220 and fewer bits than subfield-2 230. In some embodiments, the set bit position defines the last bit of the subfield. For example, a new subfield begins when the mask bit for the next most significant bits is set. For 32-bit data, bit 31 begins a subfield and bit 0 ends a subfield. Starting with the most significant bit 31, when the bit in data mask 206 is 0, either a new subfield is beginning or we are in the middle of a subfield. When the bit in data mask 206 is 1, it is the last bit of a subfield.
[0015] The matching entry in the CAM 110 includes a function select 208 that identifies a function or opcode to be performed on bits of the register write data (not shown) that correspond to the bits identified by the data mask 206. In some embodiments, the function select 208 is either a substitution function, a minimum clamping function, or a maximum clamping function. The subfield-1 data value 222 is used to either substitute the value of the bit of the register write data that corresponds to subfield-1 220 (when the function select 208 is a substitution function) or clamp the value of the bit of the register write data that corresponds to subfield-1 220 (when the function select 208 is a minimum clamping function or a maximum clamping function and the value of the "subfield-1" register write data is either less than or greater than the value of the subfield-1 data value 222). The continue bit 216 being set indicates that the CAM 110 is to perform a second function on the register write data that matched the address field 202. Therefore, the second CAM slot, subfield-2 230, is used to perform the second function.
[0016] Similar to subfield-1 220, function select 208 identifies a function or opcode to be performed on the bits of the register write data that correspond to the bits identified by data mask 206 as subfield-2 230. The subfield-2 data value 232 is used to either replace the value of the bit of the register write data that corresponds to subfield-2 230 (in which case function select 208 is a replace function) or clamp the value of the bit of the register write data that corresponds to subfield-2 230 (in which case function select 208 is a minimum or maximum clamp function and the value of the "subfield-2" register write data is either less than the minimum value of subfield-2 data 232 or greater than the maximum value of subfield-2 data 232). The continue bit 216 being set indicates that the CAM 110 is to perform a third function on the register write data that matched address field 202. Thus, a third CAM slot, subfield-3 240, is used to perform the third function.
[0017] Like subfield-1 220 and subfield-2 230, function select 208 identifies a function or opcode to be performed on the bits of the register write data that correspond to the bits identified by data mask 206 as subfield-3 240. The subfield-3 data value 242 is used to either replace the value of the bit of the register write data that corresponds to subfield-3 240 (in which case function select 208 is a replacement function) or clamp the value of the bit of the register write data that corresponds to subfield-3 240 (in which case function select 208 is a minimum or maximum clamp function and the value of the "subfield-3" register write data is less than the minimum value of subfield-3 data values 242 or greater than the maximum value of subfield-3 data values 242).
[0018] In some embodiments, subfield-1 220, subfield-2 230, and subfield-3 240 each include a subfield-specific subfield function selection (not shown). Thus, the subfield function selection for each subfield is independent of the subfield function selection for the other subfields. For example, in some embodiments, the subfield selection for subfield-1 220 is a substitution function, while the subfield selection for subfield-2 230 is a minimum clamping function and the subfield selection for subfield-3 240 is a maximum clamping function.
[0019] 3 illustrates a replacement subfield function of the CAM 110 of FIG. 1 for replacing certain bits of the register write data 300, according to some embodiments. In the illustrated example, a data mask 310 defines subfields ranging from bit 31 (301) to bit N (308) of the register write data 300, where bits to be changed are indicated by an "f" and bits to remain unchanged are indicated by a "0". In the illustrated example, the register write data 300 includes bits having the following values: bit 31 (301) is 0, bit 30 (302) is 0, bit 29 (303) is 1, bit 28 (304) is 0, bit 27 (305) is 1, bit 26 (306) is 1, bit 25 (307) is 0, and bit N (308) is 1. Data mask 310 indicates that the following bits are to be modified: bit 31 (301), bit 30 (302), bit 28 (304), bit 27 (305), and bit 25 (307). The function selection associated with subfield 310 is substitution function 322, and data values that replace the values of bits 301-308 that data mask 310 indicates are to be modified are provided as substitution data 324. CAM 110 replaces register write data 300 with substitution data 324 to generate modified data 330. In the illustrated example, substitution data 324 has bit values flipped from those of register write data 300. Thus, for modified data 330, bit 31 (301) is flipped to 1, bit 30 (302) is flipped to 1, bit 29 (303) remains unchanged as 1, bit 28 (304) is flipped to 1, bit 27 (305) is flipped to 0, bit 26 (306) remains unchanged as 1, bit 25 (307) is flipped to 1, and bit N (308) remains unchanged as 1.
[0020] 4 illustrates a minimum clamp subfield function of the CAM 110 of FIG. 1 that clamps the subfield value 402 of the register write data 400 to a minimum value 414, according to some embodiments. In the illustrated example, the subfield 410 defined by the data mask for the entry of the CAM 110 that matched the register write data 400 has a minimum clamp function 412 and a function selection that defines a minimum value 414. The CAM 110 compares the subfield value 402 of the register write data 400 to the minimum value 414. If the subfield value 402 is greater than or equal to the minimum value 414, the CAM 110 does not change the subfield value 402 when providing the register write data 400 to either or both of the registers 122, 132, depending on which pipeline is enabled. However, if the sub-field value 402 is less than the minimum value 414 , the CAM 110 clamps (sets) the sub-field value 402 to the minimum value 414 and provides modified data 420 to either or both of the registers 122 , 132 .
[0021] 5 illustrates a maximum clamp subfield function of the CAM 110 that clamps the subfield value 502 of the register write data 500 to a maximum value 514, according to some embodiments. In the illustrated example, the subfield 510 defined by the data mask for the entry of the CAM 110 that matched the register write data 500 has a function selection that defines a minimum clamp function 512 and a maximum value 514. The CAM 110 compares the subfield value 502 of the register write data 500 to the maximum value 514. If the subfield value 502 is less than or equal to the maximum value 514, the CAM 110 does not modify the subfield value 502 when providing the register write data 500 to either or both of the registers 122, 132, depending on which pipeline is enabled. However, if the subfield value 502 is greater than the maximum value 514, the CAM 110 clamps (sets) the subfield value 502 to the maximum value 514 and provides modified data 520 to either or both of the registers 122, 132.
[0022] 6 illustrates a method 600 for modifying register write data on a per-pipe basis using the CAM 110 of FIG. 1, according to some embodiments. At block 602, the CAM 110 receives the register write data 102. At block 604, the CAM 110 searches its entries for an entry with an address field that matches the address of the register write data 102. At block 606, the CAM 110 determines whether it contains a matching entry. If at block 606, the CAM 110 does not contain a matching entry, method flow continues to block 608. At block 608, the CAM 110 refrains from modifying the register write data 102 and provides the unmodified register write data 102 to the registers 122, 132, and method flow continues again to block 602 to receive the next register write data.
[0023] If, at block 606, the CAM 110 determines that it contains a matched entry, method flow continues at block 610. At block 610, the CAM 110 determines whether the matched entry has a pipeline enable set for any pipelines. If a pipeline enable is not set for any pipelines, method flow continues again at block 608, where the CAM 110 refrains from modifying the register write data 102, and method flow continues again at block 602 to receive the next register write data. If, at block 610, a pipeline enable is set for at least one pipeline, method flow continues at block 612. At block 612, the CAM 110 applies a data mask associated with the matched entry of the CAM 110 to define one or more subfields of the register write data 102. At block 614, the CAM 110 performs a function defined by a function select on bits of the register write data 102 corresponding to each subfield defined by the data mask. At block 616, the CAM 110 determines whether the continue bit is set for the matching entry. If the continue bit is not set at block 616, method flow continues to block 618 where the CAM 110 provides the modified data 112 to either or both of the registers 122, 132, depending on which pipeline is active. Method flow then continues again to block 602 to receive the next register write data.
[0024] If, at block 616, the CAM 110 determines that the continue bit is set, method flow continues at block 620. At block 620, the CAM 110 gets the next CAM 110 entry, after which method flow continues again to block 612 to apply the data mask for the next CAM 110 entry. Once the CAM 110 has performed all of the functions on the register write data 102, at block 618, the CAM 110 provides the modified data 112 to either or both of the registers 122, 132. In some embodiments, the CAM 110 performs a first set of one or more functions on subfields of the register write data 102 for the pipeline 120 and a second set of one or more functions on subfields of the register write data 102 for the pipeline 130.
[0025] A computer-readable storage medium includes any non-transitory storage medium or combination of non-transitory storage media that can be accessed by a computer system during use to provide instructions and / or data to the computer system. Such storage media may include, but are not limited to, optical media (e.g., compact discs (CDs), digital versatile discs (DVDs), Blu-ray discs), magnetic media (e.g., floppy disks, magnetic tape, magnetic hard drives), volatile memory (e.g., random access memory (RAM) or cache), non-volatile memory (e.g., read-only memory (ROM) or flash memory), or micro-electromechanical systems (MEMS) based storage media. The computer-readable storage medium (e.g., system RAM or ROM) may be internal to the computing system, the computer-readable storage medium (e.g., a magnetic hard drive) may be permanently attached to the computing system, the computer-readable storage medium (e.g., an optical disk or Universal Serial Bus (USB)-based flash memory) may be removably attached to the computing system, or the computer-readable storage medium (e.g., network-accessible storage (NAS)) may be coupled to the computer system via a wired or wireless network.
[0026] In some embodiments, certain aspects of the above techniques may be implemented by one or more processors of a processing system executing software. The software includes one or more sets of executable instructions stored in or tangibly embodied on a non-transitory computer-readable storage medium. The software may include instructions and specific data that, when executed by one or more processors, operate the one or more processors to perform one or more aspects of the above techniques. The non-transitory computer-readable storage medium may include, for example, a magnetic or optical disk storage device, a solid-state storage device such as a flash memory, a cache, a random access memory (RAM), or one or more other non-volatile memory devices, etc. The executable instructions stored on the non-transitory computer-readable storage medium may be source code, assembly language code, object code, or other instruction formats that can be interpreted or executed by one or more processors.
[0027] According to one aspect, a method includes receiving, in a processing system, first data associated with a first address to be written to a first register of the processing system. The method further includes comparing the first address in a content addressable memory (CAM) of the processing system to an address field of each entry of the CAM, and in response to determining that the first address matches the address field of the entry of the CAM, selectively modifying a value of the first data based on a function selection associated with the entry of the CAM. The method also includes writing the modified value to the first register. In some embodiments, the method includes applying a data mask associated with the entry of the CAM, the data mask defining one or more subfields of the first register, each subfield including subfield data having one or more bits.
[0028] In some embodiments, the method includes modifying a value of the first data by replacing a value of a bit of the first data corresponding to a first subfield of the data mask with a value of a bit stored in the entry of the CAM in response to a function selection that defined a replacement function. In some embodiments, the method includes selectively modifying a value of the first data by setting a value of a first subfield of the first data corresponding to a first subfield of the entry of the CAM to the first value stored in the first subfield of the entry of the CAM in response to determining that the function selection defined a minimum clamp and determining that the value of the first subfield of the first data is less than a first value stored in the first subfield of the entry of the CAM. Further, in some embodiments, the CAM performs a first operation on the first subfield of the first data and a second operation on a second subfield of the first data in response to an indication that an additional operation is to be performed. In some embodiments, the CAM selectively modifies the value of the first data by changing an address at which the first data is output to a register address for a register write that is discarded by the processing system.
[0029] According to another aspect, a method includes receiving, in a CAM of a processing system, first data to be written to a register of the processing system, and, in response to a match of the first data with an entry of the CAM, applying a data mask stored in the entry, the data mask defining one or more subfields of the first data, each subfield including subfield data including one or more bits. Further, the method includes performing a first operation on a first subfield of the first data based on a function selection stored in the matched entry of the CAM. In some embodiments, the method includes performing a second operation on a second subfield of the first data in response to an indication that an additional operation is to be performed. Further, in some embodiments, the method includes selectively modifying a value of the first data for the first pipeline based on an indication that the first pipeline is enabled, and selectively modifying a value of the first data for the second pipeline based on an indication that the second pipeline is enabled.
[0030] According to another aspect, a processing system includes a register, an interface configured to receive first data associated with a first address to be written to the register, and a CAM configured to compare the first address with an address field of a respective entry of the CAM. In response to determining that the first address matches the address field of the entry of the CAM, the CAM selectively modifies a value of the first data based on a function selection associated with the entry of the CAM and writes the modified value to the register.
[0031] In addition to the above, it should be noted that not all activities or elements described in the summary description are required, some of the specific activities or devices may not be required, one or more additional activities may be performed, and one or more additional elements may be included. Furthermore, the order in which the activities are listed is not necessarily the order in which they are performed. Also, the concepts have been described with reference to specific embodiments. However, those skilled in the art will appreciate that various changes and modifications can be made without departing from the scope of the invention as set forth in the claims. Thus, the specification and drawings should be regarded in an illustrative rather than a restrictive sense, and all such modifications are intended to be included within the scope of the invention.
[0032] Benefits, other advantages, and solutions to problems have been described above with regard to specific embodiments. However, the benefits, advantages, solutions to problems, and features from which any benefit, advantage, or solution may arise or be manifested are not to be construed as critical, essential, or essential features of any or all of the claims. Moreover, the specific embodiments described above are illustrative only, as the disclosed invention may be modified and practiced in different but similar manners apparent to those skilled in the art having the benefit of the teachings herein. No limitations are intended to the details of construction or design herein shown, other than as described in the appended claims. It is therefore apparent that the specific embodiments described above may be altered or modified, and all such variations are considered to be within the scope of the disclosed invention. Accordingly, the protection sought herein is set forth in the appended claims.
Claims
1. 1. A method comprising: In a processing system including a plurality of processing pipelines, receiving first data associated with a first address to be written to a first register of the processing system; comparing the first address to an address field of each entry in a content addressable memory (CAM) of the processing system; in response to determining that the first address matches the address field of the CAM entry, selectively modifying a value of the first data on a pipeline basis based on a function selection field associated with the CAM entry; writing the modified value to the first register; Selectively altering a value of the first data includes: selectively modifying a value of the first data for the first pipeline based on an indication that the first pipeline is valid; selectively modifying a value of the first data for the second pipeline based on an indication that the second pipeline is valid. method.
2. applying a data mask associated with an entry of the CAM; the data mask defines one or more sub-fields of the first register, each sub-field containing sub-field data including one or more bits; 2. The method of claim 1.
3. Selectively modifying the value of the first data includes replacing a value of a bit of the first data corresponding to a first subfield of the data mask with a value of a bit of the subfield data stored in an entry of the CAM in response to the function selection field including a substitution function. The method of claim 2.
4. Selectively modifying the value of the first data includes setting a value of a first subfield of the first data corresponding to a first subfield of the CAM entry to the first value stored in the first subfield of the CAM entry in response to determining that the function select field includes a minimum clamp and determining that a value of a first subfield of the first data is less than a first value stored in a first subfield of the CAM entry. The method of claim 2.
5. selectively modifying the value of the first data includes setting a value of a first subfield of the first data corresponding to a first subfield of a CAM entry to the first value stored in the first subfield of the CAM entry in response to determining that a first subfield function of a first subfield includes a maximum clamp and determining that a value of the first subfield of the first data is greater than a first value stored in a first subfield of the CAM entry. The method of claim 2.
6. selectively modifying a value of the first data includes, in response to an indication that an additional operation is to be performed, performing a first operation on a first subfield of the first data and performing a second operation on a second subfield of the first data. The method of claim 2.
7. Selectively altering a value of the first data includes: changing the address to which the first data is output to a register address for a register write that is discarded by the processing system.
2. The method of claim 1.
8. 1. A method comprising: receiving, in a content addressable memory (CAM) of a processing system including a plurality of processing pipelines, first data to be written to a register of the processing system; responsive to a match of the first data with an entry of the CAM, applying a data mask stored in the entry, the data mask defining one or more subfields of the first data, each subfield including subfield data including one or more bits; performing a first operation on a first sub-field of the first data for each pipeline based on a first function selection field stored in the matching entry of the CAM; the first operation includes selectively altering a value of the first data for the first pipeline based on an indication that a first pipeline is enabled, and selectively altering a value of the first data for the second pipeline based on an indication that a second pipeline is enabled. method.
9. in response to an indication that an additional operation is to be performed, performing a second operation on a second subfield of the first data.
9. The method of claim 8.
10. performing the first operation includes replacing a value of a bit of the first data corresponding to the first subfield of the data mask with a value of a bit stored in an entry of the CAM in response to the first function selection field including a replacement function.
9. The method of claim 8.
11. performing the first operation includes, in response to determining that the first function select field includes a minimum clamp and determining that a value of the first subfield of the first data corresponding to a first subfield of the CAM entry is less than a first value stored in a first subfield of the CAM entry, setting a value of the first subfield of the first data corresponding to a first subfield of the CAM entry to the first value stored in the first subfield of the CAM entry.
9. The method of claim 8.
12. performing the first operation includes, in response to determining that the first function select field includes a maximum clamp and determining that a value of the first subfield of the first data corresponding to a first subfield of the CAM entry is greater than a first value stored in a first subfield of the CAM entry, setting a value of the first subfield of the first data corresponding to a first subfield of the CAM entry to the first value stored in the first subfield of the CAM entry.
9. The method of claim 8.
13. 1. A processing system including a plurality of processing pipelines, A register; an interface configured to receive first data associated with a first address to be written to the register; A content addressable memory (CAM), The CAM comprises: comparing the first address with an address field of each entry of the CAM; in response to determining that the first address matches the address field of an entry in the CAM, selectively modifying a value of the first data on a pipeline basis based on a function select field associated with the entry in the CAM; writing the modified value to said register; The device is configured to: Selectively altering a value of the first data includes: selectively modifying a value of the first data for the first pipeline based on an indication that the first pipeline is valid; selectively modifying a value of the first data for the second pipeline based on an indication that the second pipeline is valid. Processing system.
14. the CAM is configured to apply a data mask associated with the entry of the CAM; the data mask defines one or more sub-fields of the register, each sub-field containing sub-field data including one or more bits; 14. The processing system of claim 13.
15. the CAM is configured to selectively change a value of the first data by replacing a value of a bit of the first data corresponding to a first subfield of the data mask with a value of a bit stored in the entry of the CAM in response to the function selection field including a substitution function.
15. The processing system of claim 14.
16. the CAM is configured to selectively modify a value of the first data by setting a value of a first subfield of the first data corresponding to a first subfield of the entry of the CAM to the first value stored in the first subfield of the entry of the CAM in response to determining that the function select field includes a minimum clamp and determining that a value of a first subfield of the first data is less than a first value stored in the first subfield of the entry of the CAM.
15. The processing system of claim 14.
17. the CAM is configured to selectively modify a value of the first data by setting a value of a first subfield of the first data corresponding to a first subfield of the entry of the CAM to the first value stored in the first subfield of the entry of the CAM in response to determining that the function select field includes a maximum clamp and determining that a value of a first subfield of the first data is greater than a first value stored in the first subfield of the entry of the CAM.
15. The processing system of claim 14.
18. the CAM is configured, in response to an indication that an additional operation is to be performed, to selectively modify a value of the first data by performing a first operation on a first subfield of the first data and a second operation on a second subfield of the first data.
15. The processing system of claim 14.
Citation Information
Patent Citations
Resistive content addressable memory based in-memory computation architecture
US10340007B2
Ultrasonic transducer
US20140139071A1
Data processing system and associated process using memory cards having data modify functions utilizing a data mask and an internal register
US5167029A
Content addressable memory system
US5438535A
Selective encoding of data values for memory cell blocks
US7782645B1
