US20050172210A1 - Add-compare-select accelerator using pre-compare-select-add operation - Google Patents
Add-compare-select accelerator using pre-compare-select-add operation Download PDFInfo
- Publication number
- US20050172210A1 US20050172210A1 US11/049,436 US4943605A US2005172210A1 US 20050172210 A1 US20050172210 A1 US 20050172210A1 US 4943605 A US4943605 A US 4943605A US 2005172210 A1 US2005172210 A1 US 2005172210A1
- Authority
- US
- United States
- Prior art keywords
- result
- pcsa
- select
- compare
- adder
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Abandoned
Links
Images
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03M—CODING; DECODING; CODE CONVERSION IN GENERAL
- H03M13/00—Coding, decoding or code conversion, for error detection or error correction; Coding theory basic assumptions; Coding bounds; Error probability evaluation methods; Channel models; Simulation or testing of codes
- H03M13/37—Decoding methods or techniques, not specific to the particular type of coding provided for in groups H03M13/03 - H03M13/35
- H03M13/39—Sequence estimation, i.e. using statistical methods for the reconstruction of the original codes
- H03M13/41—Sequence estimation, i.e. using statistical methods for the reconstruction of the original codes using the Viterbi algorithm or Viterbi processors
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03M—CODING; DECODING; CODE CONVERSION IN GENERAL
- H03M13/00—Coding, decoding or code conversion, for error detection or error correction; Coding theory basic assumptions; Coding bounds; Error probability evaluation methods; Channel models; Simulation or testing of codes
- H03M13/37—Decoding methods or techniques, not specific to the particular type of coding provided for in groups H03M13/03 - H03M13/35
- H03M13/39—Sequence estimation, i.e. using statistical methods for the reconstruction of the original codes
- H03M13/41—Sequence estimation, i.e. using statistical methods for the reconstruction of the original codes using the Viterbi algorithm or Viterbi processors
- H03M13/4107—Sequence estimation, i.e. using statistical methods for the reconstruction of the original codes using the Viterbi algorithm or Viterbi processors implementing add, compare, select [ACS] operations
Definitions
- One or more embodiments of the present invention relate generally to the field of computer systems. More particularly, one or more embodiments of the present invention relate to the field of add-compare-select operations performed by computer systems.
- Pattern recognition is one digital signal processing technique that may be used, for example, for error correction in communications applications, for image recognition applications, for speech recognition applications, and for handwriting recognition applications.
- Digital signal processing techniques typically use sophisticated algorithms that perform the same operations, such as an add-compare-select operation for example, on a relatively large number of data in units of bytes, words, or doublewords, for example.
- a typical computer system supports add-compare-select operations with multiple instructions and one or more arithmetic logic units.
- the Intel® 32-bit Architecture as defined by Intel® Corporation of Santa Clara, Calif. supports add-compare-select operations with various instructions to add packed data and with various instructions to compare packed data.
- FIG. 1 illustrates an exemplary computer system comprising a processor having one or more pre-compare-select-add (PCSA) execution units;
- PCSA pre-compare-select-add
- FIG. 2 illustrates, for one embodiment, a processor having one or more PCSA execution units
- FIG. 3 illustrates, for one embodiment, a flow diagram to perform one or more pre-compare-select-add operations
- FIG. 4 illustrates, for one embodiment, a PCSA execution unit
- FIG. 5 illustrates, for one embodiment, pre-comparison circuitry and selection and operation performance circuitry for the PCSA execution unit of FIG. 4 ;
- FIG. 6 illustrates, for one embodiment, shifted input lines for a 3-1 adder/subtractor for a PCSA execution unit
- FIG. 7 illustrates, for another embodiment, pre-comparison circuitry and selection and operation performance circuitry for the PCSA execution unit of FIG. 4 ;
- FIG. 8 illustrates, for another embodiment, a PCSA execution unit
- FIG. 9 illustrates, for another embodiment, a PCSA execution unit
- FIG. 10 illustrates, for another embodiment, a flow diagram to perform one or more pre-compare-select-add operations
- FIG. 11 illustrates, for another embodiment, pre-comparison circuitry and selection and operation performance circuitry for the PCSA execution unit of FIG. 4 ;
- FIG. 12 illustrates, for another embodiment, a PCSA execution unit.
- FIG. 1 illustrates an exemplary computer system 100 comprising a processor 102 having one or more pre-compare-select-add (PCSA) execution units 103 .
- PCSA pre-compare-select-add
- FIG. 1 illustrates an exemplary computer system 100 comprising a processor 102 having one or more pre-compare-select-add (PCSA) execution units 103 .
- PCSA pre-compare-select-add
- PDAs personal digital assistants
- computer system 100 comprises another processor 104 that may also have one or more PCSA execution units.
- Processors 102 and 104 may each comprise any suitable processor architecture such as, for example, the IntelTM 32-bit Architecture or the Intel® 64-bit Architecture as defined by Intel® Corporation of Santa Clara, Calif. Although described in the context of two processors 102 and 104 , computer system 100 for other embodiments may comprise one, three, or more processors any of which may comprise one or more PCSA execution units.
- Computer system 100 also comprises a memory controller 120 .
- Processors 102 and 104 and memory controller 120 for one embodiment are each coupled to one another by a processor bus 110 .
- Memory controller 120 may comprise any suitable circuitry formed on any suitable one or more integrated circuit chips.
- Memory controller 120 may comprise any suitable interface controllers to provide for any suitable communication link to processor bus 110 and/or to any suitable device in communication with memory controller 120 .
- Memory controller 120 for one embodiment may provide suitable arbitration, buffering, and coherency management for each interface.
- Memory controller 120 provides an interface to processor 102 and/or processor 104 over processor bus 110 .
- processor 102 or 104 may alternatively be combined with memory controller 120 to form a single integrated circuit chip.
- Memory controller 120 for one embodiment also provides an interface to a main memory 122 , a graphics controller 130 , and an input/output (I/O) controller 140 .
- Main memory 122 is coupled to memory controller 120 to load and store data and/or instructions, for example, for computer system 100 .
- Main memory 122 may comprise any suitable memory, such as suitable dynamic random access memory (DRAM) for example.
- DRAM dynamic random access memory
- Graphics controller 130 is coupled to memory controller 120 to control the display of information on a suitable display 132 , such as a cathode ray tube (CRT) or liquid crystal display (LCD) for example, coupled to graphics controller 130 .
- a suitable display 132 such as a cathode ray tube (CRT) or liquid crystal display (LCD) for example, coupled to graphics controller 130 .
- Memory controller 120 for one embodiment interfaces with graphics controller 130 through an accelerated graphics port (AGP). Graphics controller 130 for one embodiment may alternatively be combined with memory controller 120 to form a single integrated circuit chip.
- AGP accelerated graphics port
- I/O controller 140 is coupled to memory controller 120 to provide an interface to one or more I/O devices coupled to I/O controller 140 .
- I/O controller 140 may comprise any suitable interface controllers to provide for any suitable communication link to memory controller 120 and/or to any suitable device in communication with I/O controller 140 .
- I/O controller 140 for one embodiment may provide suitable arbitration and buffering for each interface.
- I/O controller 140 may provide an interface to one or more storage devices 142 , such as a hard disk drive (HDD), a floppy disk drive, a compact disc (CD) drive, and/or a digital versatile disc (DVD) drive, for example, to store data and/or instructions, for example.
- I/O controller 140 for one embodiment may also provide an interface to a keyboard 144 and a cursor control device 146 , such as a mouse, joystick, or touch tablet for example.
- I/O controller 140 may provide an interface to an audio coder/decoder (codec) 150 to convert received analog audio signals output from one or more suitable audio devices 152 into corresponding digital audio signals and/or to convert digital audio signals into corresponding analog audio signals for output to audio device(s) 152 .
- Audio device(s) 152 may include, for example, one or more microphones and/or speakers for example.
- I/O controller 140 may provide an interface to a video codec 160 to convert received analog video signals output from one or more suitable video devices 162 into corresponding digital video signals and/or to convert digital video signals into corresponding analog video signals for output to video device(s) 162 .
- Video device(s) 162 may include, for example, a video camcorder and/or a video cassette recorder (VCR) for example.
- VCR video cassette recorder
- I/O controller 140 may provide an interface to a communications codec 170 to convert analog signals received from one or more other computer systems over one or more networks, including the Internet for example, into corresponding digital signals and/or to convert digital signals into analog signals for transmission to one or more other computer systems over one or more networks, including the Internet for example.
- Communications codec 170 for one embodiment may comprise, for example, a modem codec or a radio frequency interface.
- I/O controller 140 may provide an interface to a digitizer 180 to convert one-dimensional, two-dimensional, or three-dimensional movement of a stylus, for example, into corresponding digital signals.
- Digitizer 180 for one embodiment may comprise, for example, a tablet digitizer.
- I/O controller 140 is also coupled to a firmware controller 190 to provide an interface to firmware controller 190 .
- Firmware controller 190 comprises a basic input/output system (BIOS) memory 192 to store suitable system and/or video BIOS software.
- BIOS memory 192 may comprise any suitable non-volatile memory, such as a flash memory for example.
- Processor 102 comprises one or more pre-compare-select-add (PCSA) execution units 103 to help accelerate the performance of add-compare-select operations.
- Processor 102 for one embodiment may use one or more PCSA execution units 103 in performing digital signal processing, for example, on digital signals stored on storage device(s) 142 , stored in main memory 122 , and/or received through audio codec 150 , video codec 160 , communications codec 170 , and/or digitizer 180 , for example.
- PCSA pre-compare-select-add
- processor 102 for one embodiment comprises instruction processing logic 200 , cache logic 210 , interface logic 220 , and registers 230 .
- Interface logic 220 couples cache logic 210 to processor bus 110 and may comprise any suitable circuitry.
- Cache logic 210 and registers 230 are coupled to instruction processing logic 200 .
- Cache logic 210 helps supply instructions and/or data to instruction processing logic 200 .
- Cache logic 210 may store instructions and/or data accessed from main memory 122 through interface logic 220 and memory controller 120 for processing by instruction processing logic 200 .
- Cache logic 210 may also store recently and/or frequently used instructions and/or data to help minimize accesses to main memory 122 .
- Cache logic 210 may comprise any suitable circuitry.
- Cache logic 210 for one embodiment may implement a two cache level memory subsystem in which cache memory at a primary cache level is relatively small in size and closely coupled to instruction processing logic 200 to facilitate relatively quicker access of instructions and/or data stored at the primary cache level while cache memory at a secondary cache level stores relatively more instructions and/or data yet has a relatively slower access time.
- Cache logic 210 for one embodiment may implement a dedicated instruction cache memory portion and a separate dedicated data cache memory portion at the primary cache level.
- Cache logic 210 for other embodiments may implement one, three, or more cache levels.
- Cache logic 210 may store instructions and/or data for instruction processing logic 200 in accordance with any suitable caching scheme.
- Instruction processing logic 200 may comprise any suitable circuitry to fetch and process instructions and/or data. Instruction processing logic 200 for one embodiment, as illustrated in FIG. 2 , comprises an instruction pipeline comprising instruction fetch/decode logic 202 and execution logic 204 coupled to instruction fetch/decode logic 202 .
- Instruction fetch/decode logic 202 fetches instructions from cache logic 210 .
- Instruction fetch/decode logic 202 may comprise any suitable circuitry to fetch instructions in any suitable manner.
- Instruction fetch/decode logic 202 for one embodiment may identify a next instruction to be fetched by instruction processing logic 200 in accordance with an instruction pointer maintained by instruction fetch/decode logic 202 and may request the instruction from cache logic 210 .
- Cache logic 210 may identify whether the requested instruction is stored in cache memory and, if not, may request the instruction from main memory 122 through interface logic 220 and memory controller 120 .
- Instruction fetch/decode logic 202 may identify the next instruction, for example, as the next sequential instruction in a program, as a predicted or actual destination of a branch instruction, or as the start of a new routine, such as an exception handling routine for example.
- Instruction fetch/decode logic 202 for one embodiment may decode each instruction into one or more micro-operations. Instruction fetch/decode logic 202 for one embodiment may decode each instruction into one or more triadic micro-operations.
- a triadic micro-operation comprises an operation code or opcode and may comprise up to two logical source operands and one logical destination operand.
- Execution logic 204 executes the micro-operations generated by instruction fetch/decode logic 202 .
- Execution logic 204 may comprise any suitable circuitry and for one embodiment comprises a plurality of execution units including one or more pre-compare-select-add (PCSA) execution units 103 .
- PCSA pre-compare-select-add
- execution logic 204 for one embodiment may comprise two PCSA execution units 205 and 206 .
- execution logic 204 may comprise one, three, or more PCSA execution units.
- Execution logic 204 for one embodiment may also comprise one or more integer execution units, one or more floating point execution units, and/or a memory interface execution unit for example.
- Execution logic 204 may dispatch each micro-operation to an appropriate execution unit available to execute the micro-operation.
- Execution logic 204 for one embodiment executes one or more memory load micro-operations by dispatching the memory load micro-operation to a memory interface execution unit coupled to cache logic 210 to request data from cache memory or main memory 122 . Execution logic 204 may then store the requested data in one or more registers of registers 230 or may allow access to the requested data through one or more memory ports for use by any execution unit in executing a micro-operation.
- Execution logic 204 for one embodiment may execute micro-operations in the order they are generated by instruction fetch/decode logic 202 .
- Execution logic 204 for another embodiment may comprise suitable circuitry to execute micro-operations out-of-order to help increase instruction throughput.
- one or more PCSA execution units 103 may be implemented using any suitable processor architecture.
- instruction fetch/decode logic 202 for another embodiment may not decode one or more fetched instructions into micro-operations but rather may process each instruction for execution directly.
- one or more PCSA execution units 103 may be implemented with any suitable digital signal processor (DSP) architecture.
- DSP digital signal processor
- Instruction processing logic 200 may perform one or more pre-compare-select-add operations using one or more PCSA execution units 103 in any suitable manner. Instruction processing logic 200 for one embodiment may perform one or more pre-compare-select-add operations in accordance with a flow diagram 300 as illustrated in FIG. 3 . Although flow diagram 300 is described in connection with PCSA execution unit 205 , any one or more PCSA execution units 103 , such as PCSA execution unit 206 for example, may be used to perform one or more pre-compare-select-add operations in accordance with flow diagram 300 .
- instruction fetch/decode logic 202 fetches and decodes a pre-compare-select-add (PCSA) single instruction multiple data (SIMD) instruction to perform one or more pre-compare-select-add operations.
- PCSA pre-compare-select-add
- SIMD single instruction multiple data
- the PCSA SIMD instruction may have any suitable format.
- execution logic 204 fetches at least first, second, and third input data.
- Execution logic 204 may fetch the at least first, second, and third input data in response to the PCSA SIMD instruction.
- Execution logic 204 for one embodiment may request any of the at least first, second, and third input data from cache logic 210 .
- Execution logic 204 may then allow access to the requested input data from PCSA execution unit 205 through one or more memory ports or may store the requested input data in one or more registers of registers 230 and allow access to the requested input data from PCSA execution unit 205 through one or more register ports.
- Execution logic 204 may read any of the at least first, second, and third input data already loaded in registers 230 from registers 230 .
- the fetched input data may have any suitable size and may be stored in any suitable format.
- the fetched first, second, and third input data may be 16 bits in size.
- the fetched input data for one embodiment may be in a packed format. In this manner, more than one input data may be made available for access for PCSA execution unit 205 through one memory or register port.
- PCSA execution unit 205 receives the fetched at least first, second, and third input data and for blocks 308 , 310 , 312 , and 314 performs one or more pre-compare-select-add operations on the received input data.
- PCSA execution unit 205 for one embodiment may receive the fetched at least first, second, and third input data and perform one or more pre-compare-select-add operations on the received input data in response to the PCSA SIMD instruction.
- a pre-compare-select-add operation comprises identifying how a first result of a first operation on at least two input data compares to a second result of a second operation on at least two input data, selecting an operation or result in response to the comparison, and performing the selected operation to produce the selected result.
- PCSA execution unit 205 may support any suitable type or types of first and second operations.
- PCSA execution unit 205 for one embodiment may support one or more arithmetic operations on input data.
- PCSA execution unit 205 may support addition for the first and second operations on input data.
- PCSA execution unit 205 may also or alternatively support subtraction, multiplication, and/or division, for example, for the first and/or second operations on input data.
- PCSA execution unit 205 for one embodiment may support addition and subtraction for the first operation and addition and subtraction for the second operation.
- PCSA execution unit 205 for one embodiment may at least partially overlap the performance of multiple pre-compare-select-add operations in time.
- PCSA execution unit 205 for one embodiment may perform multiple pre-compare-select-add operations on received input data in parallel.
- PCSA execution unit 205 for one embodiment may perform multiple pre-compare-select-add operations on the same input data and at least partially overlap such performance in time.
- PCSA execution unit 205 for one embodiment may perform two pre-compare-select-add operations on the received first, second, and third input data.
- PCSA execution unit 205 may also perform one or more pre-compare-select-add operations on fetched and received fourth, fifth, and sixth input data in an at least partially overlapped manner in time with the performance of one or more pre-compare-select-add operations on the received first, second, and third input data.
- PCSA execution unit 205 identifies how a first result of a first operation on input data compares to a second result of a second operation on input data for one or more pre-compare-select-add operations. PCSA execution unit 205 may identify how the first and second results compare in any suitable manner.
- PCSA execution unit 205 for one embodiment may identify whether the first result, for example, is greater than or equal to the second result, for example.
- PCSA execution unit 205 for one embodiment may identify how the first and second results compare by performing arithmetic operations on input data to identify whether the difference between the first and second results is positive or zero or is negative. That is, PCSA execution unit 205 for one embodiment may perform operations that effectively subtract the second operation from the first operation. In this manner, PCSA execution unit 205 may identify how the first and second results compare without determining the first and second results and without directly comparing the first and second results.
- PCSA execution unit 205 for another embodiment may identify whether the second result, for example, is less than or equal to the first result, for example.
- PCSA execution unit 205 may identify for a pre-compare-select-add operation whether a first result r 1 of an addition operation on first input data i 1 and third input data i 3 is greater than or equal to a second result r 2 of a subtraction operation on second input data i 2 and third input data i 3 .
- PCSA execution unit 205 may optionally store data indicating how the first result compares to the second result for one or more pre-compare-select-add operations. PCSA execution unit 205 may store any suitable data in any suitable manner for any suitable purpose.
- PCSA execution unit 205 selectively performs for one or more pre-compare-select-add operations the first operation or the second operation to produce a selected result in response to identifying how the first result compares to the second result. By selectively performing the first operation or the second operation, PCSA execution unit 205 performs only one operation to produce a selected result for a pre-compare-select-add operation.
- PCSA execution unit 205 selects for one or more pre-compare-select-add operations the first result or the second result in response to identifying how the first result compares to the second result.
- PCSA execution unit 205 may select the first result or the second result in any suitable manner. For one embodiment where PCSA execution unit 205 identifies whether the first result, for example, is greater than or equal to the second result, for example, PCSA execution unit 205 may select the first result, for example, if the first result is greater than or equal to the second result or may select the second result, for example, if the first result is less than the second result.
- PCSA execution unit 205 performs for one or more pre-compare-select-add operations the first operation or the second operation to produce the selected result in response to selecting the first result or the second result.
- PCSA execution unit 205 may perform the first operation or the second operation to produce the selected result in any suitable manner.
- PCSA execution unit 205 for block 308 may identify for a pre-compare-select-add operation whether a first result r 1 of an addition operation on first input data i 1 and third input data i 3 is greater than or equal to a second result r 2 of a subtraction operation on second input data i 2 and third input data i 3
- PCSA execution unit 205 for one embodiment may select for block 312 the first result r 1 , for example, if PCSA execution unit 205 identifies the first result r 1 is greater than or equal to the second result r 2 and may perform for block 314 the first operation, that is i 1 +i 3 , to produce the first result r 1 .
- PCSA execution unit 205 may then select for block 312 the second result r 2 , for example, and may perform for block 314 the second operation, that is i 2 ⁇ i 3 , to produce the second result r 2 .
- PCSA execution unit 205 outputs the selected result for one or more pre-compare-select-add operations.
- PCSA execution unit 205 for one embodiment may output the selected result for one or more pre-compare-select-add operations in response to the PCSA SIMD instruction.
- PCSA execution unit 205 for one embodiment may output the selected result for one or more pre-compare-select-add operations to one or more memory ports for storage in memory and/or to one or more register ports for storage in one or more registers 230 .
- a selected result may have any suitable size and may be stored in any suitable format. For one embodiment, a selected result may be 16 bits in size.
- a selected result for one embodiment may be in a packed format. In this manner, more than one selected result may be output to one memory or register port.
- PCSA execution unit 205 If any data indicating how the first result compares to the second result for one or more pre-compare-select-add operations is to be output for block 318 , PCSA execution unit 205 outputs such data for block 320 . PCSA execution unit 205 may output such data in any suitable manner and in response to any suitable condition. Blocks 318 and 320 are optional.
- PCSA execution unit 205 for one embodiment may output such data for each of one or more iterations of operations for blocks 302 - 316 .
- PCSA execution unit 205 for another embodiment may output such data when PCSA execution unit 205 has stored a predetermined amount of such data.
- PCSA execution unit 205 may output such data when PCSA execution unit 205 has stored such data in repeating operations for blocks 302 - 316 a predetermined number of times.
- PCSA execution unit 205 for one embodiment may output data for block 320 as PCSA execution unit 205 outputs the selected result for one or more pre-compare-select-add operations for block 316 .
- PCSA execution unit 205 for one embodiment may output data for block 320 to one or more memory ports for storage in memory and/or to one or more register ports for storage in one or more registers 230 .
- Such data may have any suitable size and may be stored in any suitable format. For one embodiment, such data may be output in one or more 32-bit portions.
- PCSA execution unit 205 may output data for block 320 in response to the PCSA SIM instruction.
- instruction fetch/decode logic 202 may fetch and decode a PCSA read instruction to output such data from PCSA execution unit 205 and to store the output data to registers 230 and/or to memory.
- the PCSA read instruction may have any suitable format.
- instruction processing logic 200 may then repeat operations for blocks 302 - 320 . Otherwise, instruction processing logic 200 for block 324 may optionally output from PCSA execution unit 205 any remaining stored data indicating how the first result compares to the second result for one or more pre-compare-select-add operations.
- instruction fetch/decode logic 202 may fetch and decode a PCSA read instruction to output such data from PCSA execution unit 205 .
- the PCSA read instruction may have any suitable format.
- PCSA execution unit 205 for one embodiment may output data for block 324 to one or more memory ports for storage in memory and/or to one or more register ports for storage in one or more registers 230 . Such data may have any suitable size and may be stored in any suitable format. For one embodiment, such data may be output in one or more 32-bit portions.
- Instruction processing logic 200 may perform operations for blocks 302 - 324 in any suitable order and may or may not overlap in time the performance of any suitable operation with any other suitable operation. Instruction processing logic 200 for one embodiment may at least partially overlap in time the performance of suitable operations for any blocks 302 - 324 in a pipelined manner.
- Instruction processing logic 200 for one embodiment may support saturation, precision adjustment, and/or data packing in performing one or more pre-compare-select-add operations in accordance with flow diagram 300 .
- one or more PCSA execution units 103 for another embodiment may be controlled to perform one or more pre-compare-select-add operations in accordance with flow diagram 300 using any other suitable technique.
- Each of one or more PCSA execution units 103 may have any suitable number of inputs to receive any suitable number of input data for block 306 , may comprise any suitable circuitry to perform any suitable number of one or more pre-compare-select-add operations on input data for blocks 308 , 310 , 312 , and 314 , and may have any suitable number of outputs to output any suitable number of selected results for block 316 and/or data indicating how a first result compares to a second result for one or more pre-compare-select-add operations for blocks 320 and/or 324 .
- One or more PCSA execution units of PCSA execution unit(s) 103 may or may not be implemented similarly.
- PCSA execution unit 205 for one embodiment may comprise a PCSA execution unit block 400 and control logic 490 coupled to PCSA execution unit block 400 , as illustrated in FIG. 4 .
- PCSA execution unit block 400 has inputs 401 , 402 , and 403 , has outputs 471 and 472 , and comprises pre-comparison circuitry 410 and selection and operation performance circuitry 440 .
- Pre-comparison circuitry 410 is coupled to inputs 401 , 402 , and 403 and has an output coupled to selection and operation performance circuitry 440 and to output 472 .
- Control logic 490 for one embodiment may control pre-comparison circuitry 410 for block 306 of FIG. 3 to receive first, second, and third input data at inputs 401 , 402 , and 403 , respectively, from one or more memory and/or register ports 481 and for block 308 to identify how a first result of a first operation on input data compares to a second result of a second operation on input data for a pre-compare-select-add operation.
- Control logic 490 for one embodiment may control pre-comparison circuitry 410 for block 310 to store data indicating how the first result compares to the second result for one or more pre-compare-select-add operations.
- Control logic 490 for one embodiment may control pre-comparison circuitry 410 for blocks 320 and/or 324 to output to one or more memory and/or register ports 482 at output 472 data indicating how the first result compares to the second result for one or more pre-compare-select-add operations.
- Selection and operation performance circuitry 440 is coupled to inputs 401 , 402 , and 403 , to output 471 , and to an output of pre-comparison circuitry 410 .
- Control logic 490 for one embodiment may control selection and operation performance circuitry 440 to receive first, second, and third input data from inputs 401 , 402 , and 403 , respectively, and to receive from pre-comparison circuitry 410 data indicating how a first result of a first operation on input data compares to a second result of a second operation on input data for a pre-compare-select-add operation.
- Control logic 490 for one embodiment may control selection and operation performance circuitry 440 for block 312 of FIG.
- Control logic 490 for one embodiment may control selection and operation performance circuitry 440 for block 314 to perform the first operation or the second operation to produce the selected result and for block 316 to output the selected result to one or more memory and/or register ports 482 at output 471 .
- PCSA execution unit block 400 may comprise any suitable circuitry for pre-comparison circuitry 410 and for selection and operation performance circuitry 440 .
- PCSA execution unit 205 for one embodiment may comprise a PCSA execution unit block 500 and control logic 590 coupled to PCSA execution unit block 500 , as illustrated in FIG. 5 .
- PCSA execution unit block 500 has inputs 501 , 502 , and 503 , has outputs 571 and 572 , and comprises pre-comparison circuitry 510 and selection and operation performance circuitry 540 .
- Inputs 501 , 502 , and 503 generally correspond to inputs 401 , 402 , and 403 , respectively, of FIG. 4 .
- Outputs 571 and 572 generally correspond to outputs 471 and 472 , respectively.
- Pre-comparison circuitry 510 and selection and operation performance circuitry 540 generally correspond to pre-comparison circuitry 410 and selection and operation performance circuitry 440 , respectively.
- Memory/register port(s) 581 and 582 generally correspond to memory/register port(s) 481 and 482 , respectively.
- Pre-comparison circuitry 510 for one embodiment comprises shift circuitry 511 , a 3-1 adder/subtractor 521 , and a buffer 531 .
- Shift circuitry 511 is coupled to input 503 and has an output coupled to 3-1 adder/subtractor 521 .
- Control logic 590 for one embodiment may control shift circuitry 511 to shift bits of third input data at input 503 by a predetermined number of one or more bits relative to input lines for 3-1 adder/subtractor 521 to produce a multiple of the third input data.
- Control logic 590 for one embodiment may control shift circuitry 511 to shift third input data i 3 by one bit to produce 2*i 3 .
- Shift circuitry 511 may comprise any suitable circuitry to shift bits of the third input data in any suitable manner.
- Shift circuitry 511 for one embodiment may comprise suitable circuitry to shift bits of third input data by a selective number of bits. In this manner, control logic 590 may control shift circuitry 511 to shift bits of third input data by zero bits or by one bit, for example.
- Pre-comparison circuitry 510 for another embodiment may comprise shifted input lines to shift third input data by a predetermined number of one or more bits relative to input 503 for input to 3-1 adder/subtractor 521 .
- FIG. 6 illustrates for one embodiment shifted input lines to shift third input data by one bit relative to input 503 for input to 3-1 adder/subtractor 521 .
- Pre-comparison circuitry 510 for one embodiment shifts third input data by n bit(s) to produce a 2 n multiple of the third input data for use to identify how a first result of a first operation on input data compares to a second result of a second operation on input data.
- Pre-comparison circuitry 510 for another embodiment may not shift third input data by any bits.
- 3-1 adder/subtractor 521 is coupled to inputs 501 and 502 and to an output of shift circuitry 511 and has an output coupled to buffer 531 .
- Control logic 590 for one embodiment may control 3-1 adder/subtractor 521 for block 306 of FIG. 3 to receive as inputs first input data, second input data, and shifted third input data.
- Control logic 590 for one embodiment may control 3-1 adder/subtractor 521 for block 308 to identify how a first result of a first addition or subtraction operation on input data compares to a second result of a second addition or subtraction operation on input data for a pre-compare-select-add operation.
- Control logic 590 for one embodiment may control 3-1 adder/subtractor 521 to output to buffer 531 data indicating how the first result compares to the second result for the pre-compare-select-add operation.
- Control logic 590 for one embodiment may control 3-1 adder/subtractor 521 to perform i 1 ⁇ i 2 +2*i 3 , which is equal to (i 1 +i 3 ) ⁇ (i 2 ⁇ i 3 ), and to output to buffer 531 data, such as a single bit for example, indicating whether the result is positive or zero or is negative.
- 3-1 adder/subtractor 521 may comprise any suitable circuitry to perform addition or subtraction on input data of any suitable size.
- 3-1 adder/subtractor 521 for one embodiment may perform addition or subtraction on 16-bit input data, for example.
- Control logic 590 for one embodiment may control buffer 531 for block 310 of FIG. 3 to receive and store data indicating how the first result compares to the second result. Control logic 590 for one embodiment may control buffer 531 to store such data for one or more pre-compare-select-add operations. Buffer 531 may comprise any suitable circuitry to store any suitable amount of data in any suitable manner. Buffer 531 for one embodiment may comprise a shift register that may store, for example, 16 or 32 bits.
- Selection and operation performance circuitry 540 for one embodiment comprises buffers 541 , 542 , and 543 , a multiplexer 551 , and an adder/subtractor 561 .
- Buffers 541 , 542 , and 543 have inputs coupled to inputs 501 , 502 , and 503 , respectively.
- Control logic 590 for one embodiment may control buffers 541 , 542 , and 543 to receive and store the first input data, the second input data, and the third input data, respectively.
- Buffers 541 , 542 , and 543 may comprise any suitable circuitry to store any suitable amount of data in any suitable manner.
- Buffers 541 , 542 , and 543 for one embodiment may be implemented using D-type flip-flops, for example, to store 16 bits, for example.
- Multiplexer 551 has inputs coupled to outputs of buffers 531 , 541 , and 542 and has an output coupled to adder/subtractor 561 .
- Control logic 590 for one embodiment may control buffers 541 , 542 , and 543 to output the stored first, second, and third input data, respectively, and may control multiplexer 551 to receive the stored first and second input data.
- Control logic 590 for one embodiment may control buffer 531 for block 312 of FIG. 3 to output stored data indicating how the first result compares to the second result for a pre-compare-select-add operation to control multiplexer 551 to output in a selective manner either the received first input data or the received second input data to adder/subtractor 561 .
- Adder/subtractor 561 has inputs coupled to the output of multiplexer 551 and to an output of buffer 543 and has an output coupled to output 571 .
- Control logic 590 for one embodiment may control adder/subtractor 561 to receive as inputs the data selectively output from multiplexer 551 and the third input data stored in buffer 543 .
- Control logic 590 for one embodiment may control adder/subtractor 561 for block 314 to perform an addition or subtraction operation on input data to produce either the first or second result for a pre-compare-select-add operation depending on how the first result compares to the second result.
- Control logic 590 for one embodiment may control adder/subtractor 561 for block 316 to output the produced first or second result for a pre-compare-select-add operation at output 571 to one or more memory and/or register ports 582 .
- control logic 590 may control 3-1 adder/subtractor 521 to identify whether a first result r 1 of an addition operation on first input data i 1 and third input data i 3 is greater than or equal to a second result r 2 of a subtraction operation on second input data i 2 and third input data i 3
- control logic 590 for one embodiment may control multiplexer 551 to output first input data i 1 , for example, if 3-1 adder/subtractor 521 identifies the first result r 1 is greater than or equal to the second result r 2 and may then control adder/subtractor 561 to perform the first operation, that is i 1 +i 3 , to produce the first result r 1 .
- control logic 590 may control multiplexer 551 to output second input data i 2 , for example, and may then control adder/subtractor 561 to perform the second operation, that is i 2 ⁇ i 3 , to produce the second result r 2 .
- Control logic 590 may control adder-subtractor 561 to perform an addition or subtraction operation on input data in any suitable manner.
- adder-subtractor 561 may be coupled to receive from buffer 531 data indicating how the first result compares to the second result for the pre-compare-select-add operation to control adder/subtractor 561 to perform in a selective manner either the first operation or the second operation.
- control logic 590 may be coupled to receive from 3-1 adder/subtractor 521 or from buffer 531 data indicating how the first result compares to the second result for the pre-compare-select-add operation to control adder/subtractor 561 to perform in a selective manner either the first operation or the second operation.
- Adder/subtractor 561 may comprise any suitable circuitry to perform addition or subtraction on input data of any suitable size.
- Adder/subtractor 561 for one embodiment may perform addition or subtraction on 16-bit input data, for example.
- Adder/subtractor 561 for one embodiment may also perform saturation and/or merging operations.
- Buffer 531 has an output coupled to output 572 .
- Control logic 590 for one embodiment may control buffer 531 for blocks 320 and/or 324 to output data stored in buffer 531 at output 572 to one or more memory and/or register ports 582 .
- Control logic 590 for one embodiment may control buffer 531 to output data as adder/subtractor 561 outputs data.
- Control logic 590 for one embodiment may control buffer 531 to output data when buffer 531 has stored a predetermined amount of data.
- Control logic 590 for one embodiment may control PCSA execution unit block 500 to perform pre-compare-select-add operations in a pipelined manner.
- Control logic 590 for one embodiment may control shift circuitry 511 to shift input data, may control 3-1 adder/subtractor 521 to receive input data and identify how a first result of a first addition or subtraction operation on input data compares to a second result of a second addition or subtraction operation on input data, may control buffer 531 to receive and store data output from 3-1 adder/subtractor 521 , and may control buffers 541 , 542 , and 543 to receive and store input data during a first computation cycle for a first pre-compare-select-add operation.
- Control logic 590 for one embodiment may control buffer 531 to output stored data to control multiplexer 551 , may control buffers 541 , 542 , and 543 to output stored data, may control multiplexer 551 to receive stored data from buffers 541 and 542 and to output data in a selective manner to adder/subtractor 561 , and may control adder/subtractor 561 to receive input data from multiplexer 551 and buffer 543 , to perform an addition or subtraction operation on input data to produce either the first or second result, and to output the produced result during a second computation cycle for the first pre-compare-select-add operation.
- Control logic 590 for one embodiment may control PCSA execution unit block 500 to overlap in time the performance of the first computation cycle for a second pre-compare-select-add operation with the performance of the second computation cycle for the first pre-compare-select-add operation. Control logic 590 for one embodiment may then control PCSA execution unit block 500 to receive new input data for a new pre-compare-select-add operation for each of multiple consecutive computation cycles and, after an initial one computation cycle latency period, to output a selected result for a completed pre-compare-select-add operation for each of multiple consecutive computation cycles.
- PCSA execution unit 205 for one embodiment may comprise a PCSA execution unit block 700 and control logic 790 coupled to PCSA execution unit block 700 , as illustrated in FIG. 7 .
- PCSA execution unit block 700 has inputs 701 , 702 , and 703 , has outputs 771 and 772 , comprises pre-comparison circuitry 710 comprising shift circuitry 711 , a 3-1 adder/subtractor 721 , and a buffer 731 , and comprises selection and operation performance circuitry 740 comprising a multiplexer 751 , buffers 741 and 743 , and an adder/subtractor 761 .
- Inputs 701 , 702 , and 703 generally correspond to inputs 501 , 502 , and 503 , respectively, of FIG. 5 .
- Pre-comparison circuitry 710 generally corresponds to pre-comparison circuitry 510 .
- Shift circuitry 711 generally corresponds to shift circuitry 511 .
- 3-1 adder/subtractor 721 generally corresponds to 3-1 adder/subtractor 521 .
- Buffer 731 generally corresponds to buffer 531 except buffer 731 for one embodiment may not have an output to control multiplexer 751 .
- Selection and operation performance circuitry 740 generally corresponds to selection and operation performance circuitry 540 .
- Multiplexer 751 generally corresponds to multiplexer 551 except multiplexer 751 has inputs coupled to inputs 701 and 702 and to an output of 3-1 adder/subtractor 721 and has an output coupled to buffer 741 .
- Buffer 741 has an input coupled to an output of multiplexer 751 and has an output coupled to adder/subtractor 761 .
- Buffer 743 generally corresponds to buffer 543 .
- Adder/subtractor 761 generally corresponds to adder/subtractor 561 except adder/subtractor 761 has inputs coupled to outputs of buffers 741 and 743 .
- Outputs 771 and 772 generally correspond to outputs 571 and 572 , respectively.
- Memory/register port(s) 781 and 782 generally correspond to memory/register port(s) 581 and 582 , respectively.
- Control logic 790 generally corresponds to control logic 590 .
- Control logic 790 for one embodiment may control PCSA execution unit block 700 similarly as control logic 590 may control PCSA execution unit block 500 except control logic 790 controls PCSA execution unit block 700 for block 312 of FIG. 3 by controlling 3-1 adder/subtractor 721 to output data indicating how a first result compares to a second result to control multiplexer 751 to output in a selective manner either the received first input data or the received second input data to buffer 741 .
- Control logic 790 for one embodiment may control adder/subtractor 761 for block 314 to perform an addition or subtraction operation on input data to produce either the first or second result for a pre-compare-select-add operation depending on how the first result compares to the second result.
- Control logic 790 for one embodiment may control PCSA execution unit block 700 to perform pre-compare-select-add operations in a pipelined manner.
- Control logic 790 for one embodiment may control shift circuitry 711 to shift input data, may control 3-1 adder/subtractor 721 to receive input data and identify how a first result of a first addition or subtraction operation on input data compares to a second result of a second addition or subtraction operation on input data and to output data to buffer 731 and to control multiplexer 751 , may control multiplexer 751 to receive input data and to output data in a selective manner to buffer 741 , may control buffer 731 to receive and store data output from 3-1 adder/subtractor 721 , and may control buffers 741 and 743 to receive and store input data during a first computation cycle for a first pre-compare-select-add operation.
- Control logic 790 may control buffers 731 , 741 , and 743 to output stored data and may control adder/subtractor 761 to receive input data from buffers 741 and 743 , to perform an addition or subtraction operation on input data to produce either the first or second result, and to output the produced result during a second computation cycle for the first pre-compare-select-add operation.
- Control logic 790 for one embodiment may control PCSA execution unit block 700 to overlap in time the performance of the first computation cycle for a second pre-compare-select-add operation with the performance of the second computation cycle for the first pre-compare-select-add operation. Control logic 790 for one embodiment may then control PCSA execution unit block 700 to receive new input data for a new pre-compare- select-add operation for each of multiple consecutive computation cycles and, after an initial one computation cycle latency period, to output a selected result for a completed pre-compare-select-add operation for each of multiple consecutive computation cycles.
- PCSA execution unit 205 for one embodiment may comprise a PCSA execution unit block 800 and control logic 890 coupled to PCSA execution unit block 800 , as illustrated in FIG. 8 .
- Control logic 890 for one embodiment may control PCSA execution unit block 800 to perform one pre-compare-select-add operation and/or to perform multiple pre-compare-select-add operations in parallel.
- PCSA execution unit block 800 has inputs 801 , 802 , 803 , 804 , 805 , and 806 , has outputs 871 , 872 , 873 , 874 , 875 , and 876 , and comprises pre-comparison circuitry 810 and selection and operation performance circuitry 840 .
- Pre-comparison circuitry 810 is coupled to inputs 801 , 802 , 803 , 804 , 805 , and 806 and has outputs coupled to selection and operation performance circuitry 840 and to outputs 873 and 874 .
- Control logic 890 for one embodiment may control pre-comparison circuitry 810 for block 306 of FIG.
- Control logic 890 for one embodiment may control pre-comparison circuitry 810 for block 310 to store data indicating how the first result compares to the second result for one or more pre-compare-select-add operations.
- Control logic 890 for one embodiment may control pre-comparison circuitry 810 for blocks 320 and/or 324 to output to one or more memory and/or register ports 882 at outputs 873 and/or 874 data indicating how the first result compares to the second result for one or more pre-compare-select-add operations.
- Selection and operation performance circuitry 840 is coupled to inputs 801 , 802 , 803 , 804 , 805 , and 806 , to outputs 871 , 872 , 875 , and 876 , and to outputs of pre-comparison circuitry 810 .
- Control logic 890 for one embodiment may control selection and operation performance circuitry 840 to receive first, second, and third input data and/or fourth, fifth, and sixth input data from inputs 801 , 802 , 803 , 804 , 805 , and 806 , respectively, and to receive from pre-comparison circuitry 810 data indicating how a first result of a first operation on input data compares to a second result of a second operation on input data for one or more pre-compare-select-add operations.
- Control logic 890 for one embodiment may control selection and operation performance circuitry 840 for block 312 of FIG. 3 to select the first result or the second result for one or more pre-compare-select-add operations based on the received data.
- Control logic 890 for one embodiment may control selection and operation performance circuitry 840 for block 314 to perform the first operation or the second operation to produce the selected result for one or more pre-compare-select-add operations and for block 316 to output the selected result for one or more pre-compare-select-add operations to one or more memory and/or register ports 882 at outputs 871 , 872 , 875 , and/or 876 .
- Pre-comparison circuitry 810 for one embodiment comprises 3-1 adder/subtractors 821 , 822 , 823 , and 824 and buffers 831 and 832 .
- 3-1 adder/subtractors 821 and 822 and/or 3-1 adder/subtractors 823 and 824 for one embodiment may be implemented as dual 3-1 adder/subtractors.
- the input data lines from input 803 are shifted to shift third input data by one or more bits relative to input 803 to produce a multiple of the third input data for input to 3-1 adder/subtractors 821 and 822 .
- Pre-comparison circuitry 810 for another embodiment may comprise suitable shift circuitry to shift bits of third input data at input 803 by one or more bits for input to 3-1 adder/subtractors 821 and 822 .
- the input data lines from input 804 are shifted to shift fourth input data by one or more bits relative to input 804 to produce a multiple of the fourth input data for input to 3-1 adder/subtractors 823 and 824 .
- Pre-comparison circuitry 810 for another embodiment may comprise suitable shift circuitry to shift bits of fourth input data at input 804 by one or more bits for input to 3-1 adder/subtractors 823 and 824 .
- Selection and operation performance circuitry 840 for one embodiment comprises buffers 841 , 842 , 843 , 844 , 845 , and 846 , multiplexers 851 , 852 , 853 , and 854 , and adder/subtractors 861 , 862 , 863 , and 864 .
- Adder/subtractors 861 and 862 and/or adder/subtractors 863 and 864 for one embodiment may be implemented as dual adder/subtractors.
- 3-1 adder/subtractor 821 , buffer 831 , buffers 841 , 842 , and 843 , multiplexer 851 , and adder/subtractor 861 are similarly coupled as 3-1 adder/subtractor 521 , buffer 531 , buffers 541 , 542 , and 543 , multiplexer 551 , and adder/subtractor 561 , respectively, of FIG. 5 , with inputs 801 , 802 ; and 803 corresponding to inputs 501 , 502 , and 503 , respectively, and with outputs 871 and 873 corresponding to outputs 571 and 572 , respectively.
- Control logic 890 for one embodiment may control 3-1 adder/subtractor 821 , buffer 831 , buffers 841 , 842 , and 843 , multiplexer 851 , and adder/subtractor 861 to perform a first pre-compare-select-add operation on first, second, and third input data received from inputs 801 , 802 , and 803 , respectively, to output the selected result for the first pre-compare-select-add operation at output 871 , and to output data indicating how a first result of a first addition or subtraction operation on input data compares to a second result of a second addition or subtraction operation on input data for the first pre-compare-select-add operation from buffer 831 to output 873 .
- 3-1 adder/subtractor 822 , buffer 832 , buffers 841 , 842 , and 843 , multiplexer 852 , and adder/subtractor 862 are similarly coupled as 3-1 adder/subtractor 521 , buffer 531 , buffers 541 , 542 , and 543 , multiplexer 551 , and adder/subtractor 561 , respectively, of FIG. 5 , with inputs 801 , 802 , and 803 corresponding to inputs 501 , 502 , and 503 , respectively, and with outputs 875 and 874 corresponding to outputs 571 and 572 , respectively.
- Control logic 890 for one embodiment may control 3-1 adder/subtractor 822 , buffer 832 , buffers 841 , 842 , and 843 , multiplexer 852 , and adder/subtractor 862 to perform a second pre-compare-select-add operation on first, second, and third input data received from inputs 801 , 802 , and 803 , respectively, to output the selected result for the second pre-compare-select-add operation at output 875 , and to output data indicating how a first result of a first addition or subtraction operation on input data compares to a second result of a second addition or subtraction operation on input data for the second pre-compare-select-add operation from buffer 832 to output 874 .
- 3-1 adder/subtractor 823 , buffer 831 , buffers 844 , 845 , and 846 , multiplexer 853 , and adder/subtractor 863 are similarly coupled as 3-1 adder/subtractor 521 , buffer 531 , buffers 543 , 541 , and 542 , multiplexer 551 , and adder/subtractor 561 , respectively, of FIG. 5 , with inputs 804 , 805 , and 806 corresponding to inputs 503 , 501 , and 502 , respectively, and with outputs 872 and 873 corresponding to outputs 571 and 572 , respectively.
- Control logic 890 for one embodiment may control 3-1 adder/subtractor 823 , buffer 831 , buffers 844 , 845 , and 846 , multiplexer 853 , and adder/subtractor 863 to perform a third pre-compare-select-add operation on fourth, fifth, and sixth input data received from inputs 804 , 805 , and 806 , respectively, to output the selected result for the third pre-compare-select-add operation at output 872 , and to output data indicating how a first result of a first addition or subtraction operation on input data compares to a second result of a second addition or subtraction operation on input data for the third pre-compare-select-add operation from buffer 831 to output 873 .
- 3-1 adder/subtractor 824 , buffer 832 , buffers 844 , 845 , and 846 , multiplexer 854 , and adder/subtractor 864 are similarly coupled as 3-1 adder/subtractor 521 , buffer 531 , buffers 543 , 541 , and 542 , multiplexer 551 , and adder/subtractor 561 , respectively, of FIG. 5 , with inputs 804 , 805 , and 806 corresponding to inputs 503 , 501 , and 502 , respectively, and with outputs 876 and 874 corresponding to outputs 571 and 572 , respectively.
- Control logic 890 for one embodiment may control 3-1 adder/subtractor 824 , buffer 832 , buffers 844 , 845 , and 846 , multiplexer 854 , and adder/subtractor 864 to perform a fourth pre-compare-select-add operation on fourth, fifth, and sixth input data received from inputs 804 , 805 , and 806 , respectively, to output the selected result for the fourth pre-compare-select-add operation at output 876 , and to output data indicating how a first result of a first addition or subtraction operation on input data compares to a second result of a second addition or subtraction operation on input data for the fourth pre-compare-select-add operation from buffer 832 to output 874 .
- PCSA execution unit block 800 may comprise only one buffer to store such data for 3-1 adder/subtractors 821 , 822 , 823 , and 824 or may comprise four buffers to store such data for 3-1 adder/subtractors 821 , 822 , 823 , and 824 , respectively.
- PCSA execution unit 205 for one embodiment may comprise a PCSA execution unit block 900 and control logic 990 coupled to PCSA execution unit block 900 , as illustrated in FIG. 9 .
- Control logic 990 for one embodiment may control PCSA execution unit block 900 to perform one pre-compare-select-add operation and/or to perform multiple pre-compare-select add operations in parallel.
- PCSA execution unit block 900 has inputs 901 , 902 , 903 , 904 , 905 , and 906 , has outputs 971 , 972 , 973 , 974 , 975 , and 976 , comprises pre-comparison circuitry 910 comprising 3-1 adder/subtractors 921 , 922 , 923 , and 924 and buffers 931 and 932 , and comprises selection and operation performance circuitry 940 comprising multiplexers 951 , 952 , 953 , and 954 , buffers 941 , 942 , 943 , 944 , 945 , and 946 , and adder/subtractors 961 , 962 , 963 , and 964 .
- 3-1 adder/subtractors 921 and 922 and/or 3-1 adder/subtractors 923 and 924 for one embodiment may be implemented as dual 3-1 adder/subtractors.
- Adder/subtractors 961 and 962 and/or adder/subtractors 963 and 964 for one embodiment may be implemented as dual adder/subtractors.
- Inputs 901 , 902 , 903 , 904 , 905 , and 906 generally correspond to inputs 801 , 802 , 803 , 804 , 805 , and 806 , respectively, of FIG. 8 .
- Pre-comparison circuitry 910 generally corresponds to pre-comparison circuitry 810 .
- Selection and operation performance circuitry 940 generally corresponds to selection and operation performance circuitry 840 .
- Outputs 971 , 972 , 973 , 974 , 975 , and 976 generally correspond to outputs 871 , 872 , 873 , 874 , 875 , and 876 , respectively.
- Memory/register port(s) 981 and 982 generally correspond to memory/register port(s) 881 and 882 , respectively.
- Control logic 990 generally corresponds to control logic 890 .
- 3-1 adder/subtractor 921 , buffer 931 , multiplexer 951 , buffers 941 and 943 , and adder/subtractor 961 are similarly coupled as 3-1 adder/subtractor 721 , buffer 731 , multiplexer 751 , buffers 741 and 743 , and adder/subtractor 761 , respectively, of FIG. 7 , with inputs 901 , 902 , and 903 corresponding to inputs 701 , 702 , and 703 , respectively, and with outputs 971 and 973 corresponding to outputs 771 and 772 , respectively.
- Control logic 990 may control 3-1 adder/subtractor 921 , buffer 931 , multiplexer 951 , buffers 941 and 943 , and adder/subtractor 961 to perform a first pre-compare-select-add operation on first, second, and third input data received from inputs 901 , 902 , and 903 , respectively, to output the selected result for the first pre-compare-select-add operation at output 971 , and to output data indicating how a first result of a first addition or subtraction operation on input data compares to a second result of a second addition or subtraction operation on input data for the first pre-compare-select-add operation from buffer 931 to output 973 .
- 3-1 adder/subtractor 922 , buffer 932 , multiplexer 952 , buffers 942 and 943 , and adder/subtractor 962 are similarly coupled as 3-1 adder/subtractor 721 , buffer 731 , multiplexer 751 , buffers 741 and 743 , and adder/subtractor 761 , respectively, of FIG. 7 , with inputs 901 , 902 , and 903 corresponding to inputs 701 , 702 , and 703 , respectively, and with outputs 975 and 974 corresponding to outputs 771 and 772 , respectively.
- Control logic 990 may control 3-1 adder/subtractor 922 , buffer 932 , multiplexer 952 , buffers 942 and 943 , and adder/subtractor 962 to perform a second pre-compare-select-add operation on first, second, and third input data received from inputs 901 , 902 , and 903 , respectively, to output the selected result for the second pre-compare-select-add operation at output 975 , and to output data indicating how a first result of a first addition or subtraction operation on input data compares to a second result of a second addition or subtraction operation on input data for the second pre-compare-select-add operation from buffer 932 to output 974 .
- 3-1 adder/subtractor 923 , buffer 931 , multiplexer 953 , buffers 944 and 945 , and adder/subtractor 963 are similarly coupled as 3-1 adder/subtractor 721 , buffer 731 , multiplexer 751 , buffers 743 and 741 , and adder/subtractor 761 , respectively, of FIG. 7 , with inputs 904 , 905 , and 906 corresponding to inputs 703 , 701 , and 702 , respectively, and with outputs 972 and 973 corresponding to outputs 771 and 772 , respectively.
- Control logic 990 may control 3-1 adder/subtractor 923 , buffer 931 , multiplexer 953 , buffers 944 and 945 , and adder/subtractor 963 to perform a third pre-compare-select-add operation on fourth, fifth, and sixth input data received from inputs 904 , 905 , and 906 , respectively, to output the selected result for the third pre-compare-select-add operation at output 972 , and to output data indicating how a first result of a first addition or subtraction operation on input data compares to a second result of a second addition or subtraction operation on input data for the third pre-compare-select-add operation from buffer 931 to output 973 .
- 3-1 adder/subtractor 924 , buffer 932 , multiplexer 954 , buffers 944 and 946 , and adder/subtractor 964 are similarly coupled as 3-1 adder/subtractor 721 , buffer 731 , multiplexer 751 , buffers 743 and 741 , and adder/subtractor 761 , respectively, of FIG. 7 , with inputs 904 , 905 , and 906 corresponding to inputs 703 , 701 , and 702 , respectively, and with outputs 976 and 974 corresponding to outputs 771 and 772 , respectively.
- Control logic 990 may control 3-1 adder/subtractor 924 , buffer 932 , multiplexer 954 , buffers 944 and 946 , and adder/subtractor 964 to perform a fourth pre-compare-select-add operation on fourth, fifth, and sixth input data received from inputs 904 , 905 , and 906 , respectively, to output the selected result for the fourth pre-compare-select-add operation at output 976 , and to output data indicating how a first result of a first addition or subtraction operation on input data compares to a second result of a second addition or subtraction operation on input data for the fourth pre-compare-select-add operation from buffer 932 to output 974 .
- PCSA execution unit block 900 may comprise only one buffer to store such data for 3-1 adder/subtractors 921 , 922 , 923 , and 924 or may comprise four buffers to store such data for 3-1 adder/subtractors 921 , 922 , 923 , and 924 , respectively.
- PCSA execution unit block 900 for one embodiment may be implemented using hardware of a digital signal processing (DSP) core with a 3-1 adder/subtractor associated with one or more multiplier-accumulators (MACs) and with an adder/subtractor between the accumulators of the MAC and memory or register ports.
- DSP digital signal processing
- Buffers 941 and 942 and multiplexers 951 and 952 may be implemented using corresponding accumulators and multiplexers, respectively, of one MAC
- buffers 945 and 946 and multiplexers 953 and 954 may be implemented using corresponding accumulators and multiplexers, respectively, of another MAC.
- Instruction processing logic 200 for another embodiment may perform one or more pre-compare-select-add operations in accordance with a flow diagram 1000 as illustrated in FIG. 10 .
- flow diagram 1000 is described in connection with PCSA execution unit 205 , any one or more PCSA execution units 103 , such as PCSA execution unit 206 for example, may be used to perform one or more pre-compare-select-add operations in accordance with flow diagram 1000 .
- Blocks 1002 , 1004 , 1006 , 1008 , 1010 , and 1012 generally correspond to blocks 302 , 304 , 306 , 308 , 310 , and 312 , respectively, of FIG. 3 .
- PCSA execution unit 205 performs for one or more pre-compare-select-add operations both the first operation to produce the first result and the second operation to produce the second result.
- PCSA execution unit 205 may perform the first operation and the second operation in any suitable manner.
- Blocks 1016 , 1018 , 1020 , 1022 , and 1024 generally correspond to blocks 316 , 318 , 320 , 322 , and 324 , respectively, of FIG. 3 .
- Instruction processing logic 200 may perform operations for blocks 1002 - 1024 in any suitable order and may or may not overlap in time the performance of any suitable operation with any other suitable operation. Instruction processing logic 200 for one embodiment may at least partially overlap in time the performance of suitable operations for any blocks 1002 - 1024 in a pipelined manner.
- Instruction processing logic 200 for one embodiment may support saturation, precision adjustment, and/or data packing in performing one or more pre-compare-select-add operations in accordance with flow diagram 1000 .
- one or more PCSA execution units 103 for another embodiment may be controlled to perform one or more pre-compare-select-add operations in accordance with flow diagram 1000 using any other suitable technique.
- Each of one or more PCSA execution units 103 may have any suitable number of inputs to receive any suitable number of input data for block 1006 , may comprise any suitable circuitry to perform any suitable number of one or more pre-compare-select-add operations on input data for blocks 1008 , 1010 , 1012 , and 1014 , and may have any suitable number of outputs to output any suitable number of selected results for block 1016 and/or data indicating how a first result compares to a second result for one or more pre-compare-select-add operations for blocks 1020 and/or 1024 .
- One or more PCSA execution units of PCSA execution unit(s) 103 may or may not be implemented similarly.
- PCSA execution unit 205 for one embodiment may comprise PCSA execution unit block 400 and control logic 490 , as illustrated in FIG. 4 .
- Control logic 490 for one embodiment may control pre-comparison circuitry 410 for block 1006 of FIG. 10 to receive first, second, and third input data at inputs 401 , 402 , and 403 , respectively, from one or more memory and/or register ports 481 and for block 1008 to identify how a first result of a first operation on input data compares to a second result of a second operation on input data for a pre-compare-select-add operation.
- Control logic 490 for one embodiment may control pre-comparison circuitry 410 for block 1010 to store data indicating how the first result compares to the second result for one or more pre-compare-select-add operations.
- Control logic 490 for one embodiment may control pre-comparison circuitry 410 for blocks 1020 and/or 1024 to output to one or more memory and/or register ports 482 at output 472 data indicating how the first result compares to the second result for one or more pre-compare-select-add operations.
- Control logic 490 for one embodiment may control selection and operation performance circuitry 440 to receive first, second, and third input data from inputs 401 , 402 , and 403 , respectively, and to receive from pre-comparison circuitry 410 data indicating how a first result of a first operation on input data compares to a second result of a second operation on input data for a pre-compare-select-add operation.
- Control logic 490 for one embodiment may control selection and operation performance circuitry 440 for block 1012 of FIG. 10 to select the first result or the second result based on the received data.
- Control logic 490 for one embodiment may control selection and operation performance circuitry 440 for block 1014 to perform the first operation to produce the first result and the second operation to produce the second result and for block 1016 to output the selected result to one or more memory and/or register ports 482 at output 471 .
- PCSA execution unit block 400 may comprise any suitable circuitry for pre-comparison circuitry 410 and for selection and operation performance circuitry 440 .
- PCSA execution unit 205 for one embodiment may comprise a PCSA execution unit block 1100 and control logic 1190 coupled to PCSA execution unit block 1100 , as illustrated in FIG. 11 .
- PCSA execution unit block 1100 has inputs 1101 , 1102 , and 1103 , has outputs 1171 and 1172 , and comprises pre-comparison circuitry 1110 and selection and operation performance circuitry 1140 .
- Inputs 1101 , 1102 , and 1103 generally correspond to inputs 401 , 402 , and 403 , respectively, of FIG. 4 .
- Outputs 1171 and 1172 generally correspond to outputs 471 and 472 , respectively.
- Pre-comparison circuitry 1110 and selection and operation performance circuitry 1140 generally correspond to pre-comparison circuitry 410 and selection and operation performance circuitry 440 , respectively.
- Memory/register port(s) 1181 and 1182 generally correspond to memory/register port(s) 481 and 482 , respectively.
- Pre-comparison circuitry 1110 for one embodiment comprises shift circuitry 1111 , a 3-1 adder/subtractor 1121 , and a buffer 1131 .
- Shift circuitry 1111 , 3-1 adder/subtractor 1121 , and buffer 1131 generally correspond to shift circuitry 711 , 3-1 adder/subtractor 721 , and buffer 731 of FIG. 7 .
- Selection and operation performance circuitry 1140 for one embodiment comprises adder/subtractors 1161 and 1162 and a multiplexer 1151 .
- Adder/subtractors 1161 and 1162 for one embodiment may be implemented as a dual adder/subtractor.
- Adder/subtractor 1161 has inputs coupled to inputs 1101 and 1103 and an output coupled to an input of multiplexer 1151 .
- Control logic 1190 for one embodiment may control adder/subtractor 1161 to receive first input data and third input data at inputs 1101 and 1103 , respectively, to perform for block 1014 of FIG. 10 a first addition or subtraction operation on the first and third input data to produce a first result for a pre-compare-select-add operation, and to output the first result to multiplexer 1151 .
- Adder/subtractor 1162 has inputs coupled to inputs 1102 and 1103 and an output coupled to an input of multiplexer 1151 .
- Control logic 1190 for one embodiment may control adder/subtractor 1162 to receive second input data and third input data at inputs 1102 and 1103 , respectively, to perform for block 1014 of FIG. 10 a second addition or subtraction operation on the second and third input data to produce a second result for the pre-compare-select-add operation, and to output the second result to multiplexer 1151 .
- Multiplexer 1151 has inputs coupled to outputs of adder/subtractors 1161 and 1162 and to an output of 3-1 adder/subtractor 1121 and has an output coupled to output 1171 .
- Control logic 1190 for one embodiment for block 1012 of FIG. 10 may control multiplexer 1151 to receive the first result output from adder/subtractor 1161 and the second result output from adder/subtractor 1162 and may control 3-1 adder/subtractor 1121 to output data indicating how the first result compares to the second result to control multiplexer 1151 for block 1016 to output in a selective manner either the received first result or the received second result at output 1171 to one or more memory and/or register ports 1182 .
- Control logic 1190 for one embodiment may control pre-comparison circuitry 1110 and selection and operation performance circuitry 1140 to perform a pre-compare-select-add operation on first, second, and third input data received from inputs 1101 , 1102 , and 1103 , respectively, to output the selected result for the pre-compare-select-add operation at output 1171 , and to output data indicating how a first result of a first addition or subtraction operation on input data compares to a second result of a second addition or subtraction operation on input data for the pre-compare-select-add operation from buffer 113 1 to output 1172 during a single computation cycle.
- Control logic 1190 for one embodiment may then control PCSA execution unit block 1100 to receive new input data for a new pre-compare-select-add operation for each of multiple consecutive computation cycles and to output a selected result for a completed pre-compare-select-add operation for each of multiple consecutive computation cycles.
- PCSA execution unit 205 for one embodiment may comprise a PCSA execution unit block 1200 and control logic 1290 coupled to PCSA execution unit block 1200 , as illustrated in FIG. 12 .
- Control logic 1290 for one embodiment may control PCSA execution unit block 1200 to perform one pre-compare-select-add operation and/or to perform multiple pre-compare-select add operations in parallel.
- PCSA execution unit block 1200 has inputs 1201 , 1202 , 1203 , 1204 , 1205 , and 1206 , has outputs 1271 , 1272 , 1273 , 1274 , 1275 , and 1276 , comprises pre-comparison circuitry 1210 comprising 3-1 adder/subtractors 1221 , 1222 , 1223 , and 1224 and buffers 1231 and 1232 , and comprises selection and operation performance circuitry 1240 comprising adder/subtractors 1261 , 1262 , 1263 , 1264 , 1265 , 1266 , 1267 , and 1268 and multiplexers 1251 , 1252 , 1253 , and 1254 .
- 3-1 adder/subtractors 1221 and 1222 and/or 3-1 adder/subtractors 1223 and 1224 for one embodiment may be implemented as dual 3-1 adder/subtractors.
- Any suitable two adder/subtractors 1261 , 1262 , 1263 , 1264 , 1265 , 1266 , 1267 , 1268 for one embodiment may be implemented as dual adder/subtractors.
- Inputs 1201 , 1202 , 1203 , 1204 , 1205 , and 1206 generally correspond to inputs 801 , 802 , 803 , 804 , 805 , and 806 , respectively, of FIG. 8 .
- Pre-comparison circuitry 1210 generally corresponds to pre-comparison circuitry 810 .
- Selection and operation performance circuitry 1240 generally corresponds to selection and operation performance circuitry 840 .
- Outputs 1271 , 1272 , 1273 , 1274 , 1275 , and 1276 generally correspond to outputs 871 , 872 , 873 , 874 , 875 , and 876 , respectively.
- Memory/register port(s) 1281 and 1282 generally correspond to memory/register port(s) 881 and 882 , respectively.
- Control logic 1290 generally corresponds to control logic 890 .
- 3-1 adder/subtractor 1221 , buffer 1231 , adder/subtractors 1261 and 1262 , and multiplexer 1251 are similarly coupled as 3-1 adder/subtractor 1121 , buffer 1131 , adder/subtractors 1161 and 1162 , and multiplexer 1151 , respectively, of FIG. 11 , with inputs 1201 , 1202 , and 1203 corresponding to inputs 1101 , 1102 , and 1103 , respectively, and with outputs 1271 and 1273 corresponding to outputs 1171 and 1172 , respectively.
- Control logic 1290 for one embodiment may control 3-1 adder/subtractor 1221 , buffer 1231 , adder/subtractors 1261 and 1262 , and multiplexer 1251 to perform a first pre-compare-select-add operation on first, second, and third input data received from inputs 1201 , 1202 , and 1203 , respectively, to output the selected result for the first pre-compare-select-add operation at output 1271 , and to output data indicating how a first result of a first addition or subtraction operation on input data compares to a second result of a second addition or subtraction operation on input data for the first pre-compare-select-add operation from buffer 1231 to output 1273 .
- 3-1 adder/subtractor 1222 , buffer 1232 , adder/subtractors 1263 and 1264 , and multiplexer 1252 are similarly coupled as 3-1 adder/subtractor 1121 , buffer 1131 , adder/subtractors 1161 and 1162 , and multiplexer 1151 , respectively, of FIG. 11 , with inputs 1201 , 1202 , and 1203 corresponding to inputs 1101 , 1102 , and 1103 , respectively, and with outputs 1275 and 1274 corresponding to outputs 117 i and 1172 , respectively.
- Control logic 1290 for one embodiment may control 3-1 adder/subtractor 1222 , buffer 1232 , adder/subtractors 1263 and 1264 , and multiplexer 1252 to perform a second pre-compare-select-add operation on first, second, and third input data received from inputs 1201 , 1202 , and 1203 , respectively, to output the selected result for the second pre-compare-select-add operation at output 1275 , and to output data indicating how a first result of a first addition or subtraction operation on input data compares to a second result of a second addition or subtraction operation on input data for the second pre-compare-select-add operation from buffer 1232 to output 1274 .
- 3-1 adder/subtractor 1223 , buffer 1231 , adder/subtractors 1265 and 1266 , and multiplexer 1253 are similarly coupled as 3-1 adder/subtractor 1121 , buffer 1131 , adder/subtractors 1161 and 1162 , and multiplexer 1151 , respectively, of FIG. 11 , with inputs 1204 , 1205 , and 1206 corresponding to inputs 1103 , 1101 , and 1102 , respectively, and with outputs 1272 and 1273 corresponding to outputs 1171 and 1172 , respectively.
- Control logic 1290 for one embodiment may control 3-1 adder/subtractor 1223 , buffer 1231 , adder/subtractors 1265 and 1266 , and multiplexer 1253 to perform a third pre-compare-select-add operation on fourth, fifth, and sixth input data received from inputs 1204 , 1205 , and 1206 , respectively, to output the selected result for the third pre-compare-select-add operation at output 1272 , and to output data indicating how a first result of a first addition or subtraction operation on input data compares to a second result of a second addition or subtraction operation on input data for the third pre-compare-select-add operation from buffer 1231 to output 1273 .
- 3-1 adder/subtractor 1224 , buffer 1232 , adder/subtractors 1267 and 1268 , and multiplexer 1254 are similarly coupled as 3-1 adder/subtractor 1121 , buffer 1131 , adder/subtractors 1161 and 1162 , and multiplexer 1151 , respectively, of FIG. 11 , with inputs 1204 , 1205 , and 1206 corresponding to inputs 1103 , 1101 , and 1102 , respectively, and with outputs 1276 and 1274 corresponding to outputs 1171 and 1172 , respectively.
- Control logic 1290 for one embodiment may control 3-1 adder/subtractor 1224 , buffer 1232 , adder/subtractors 1267 and 1268 , and multiplexer 1254 to perform a fourth pre-compare-select-add operation on fourth, fifth, and sixth input data received from inputs 1204 , 1205 , and 1206 , respectively, to output the selected result for the fourth pre-compare-select-add operation at output 1276 , and to output data indicating how a first result of a first addition or subtraction operation on input data compares to a second result of a second addition or subtraction operation on input data for the fourth pre-compare-select-add operation from buffer 1232 to output 1274 .
- PCSA execution unit block 1200 may comprise only one buffer to store such data for 3-1 adder/subtractors 1221 , 1222 , 1223 , and 1224 or may comprise four buffers to store such data for 3-1 adder/subtractors 1221 , 1222 , 1223 , and 1224 , respectively.
- Processor 102 of FIG. 1 may use one or more PCSA execution units 103 for one embodiment to help accelerate the performance of add-compare-select operations in performing any suitable digital signal processing such as pattern recognition, for example, for error correction in communications applications, for image recognition applications, for speech recognition applications, and/or for handwriting recognition applications, for example.
- PCSA execution units 103 for one embodiment to help accelerate the performance of add-compare-select operations in performing any suitable digital signal processing such as pattern recognition, for example, for error correction in communications applications, for image recognition applications, for speech recognition applications, and/or for handwriting recognition applications, for example.
- processor 102 may use one or more PCSA execution units 103 to perform metric updates for one or more states for a suitable Viterbi algorithm.
- One or more PCSA execution units 103 may be used to compute, for example, one or more Viterbi butterflies, for example.
- PCSA execution unit 205 of FIGS. 8, 9 , and 12 for example, for one embodiment may compute the following Viterbi butterfly:
- new_metric( 0 ) max(old_metric( 0 )+sum, old_metric( 1 ) ⁇ sum);
- new_metric( 8 ) max(old_metric( 0 ) ⁇ sum, old_metric( 1 )+sum)
- new_metric( 1 ) max(old_metric( 2 )+difference, old_metric( 3 ) ⁇ difference);
- new_metric( 9 ) max(old_metric( 2 ) ⁇ difference, old_metric( 3 )+difference)
- new_metric(i) is a new accumulated metric value for state i;
- old_metric(i) is an old accumulated metric value for state i
- sum and difference are local distance values based on soft-decision inputs.
- Instruction processing logic 200 for one embodiment may compute these Viterbi butterflies, for example, by performing, in accordance with blocks 302 - 316 of FIG. 3 or with blocks 1002 - 1016 of FIG. 10 , a first pre-compare-select-add operation to produce new_metric( 0 ), a second pre-compare-select-add operation to produce new_metric( 8 ), a third pre-compare-select-add operation to produce new_metric( 1 ), and a fourth pre-compare-select-add operation to produce new_metric( 9 ).
- PCSA execution unit 205 may receive old_metric( 0 ), old_metric( 1 ), sum, difference, old_metric( 2 ), and old_metric( 3 ) as first, second, third, fourth, fifth, and sixth input data, respectively.
- PCSA execution unit 205 may identify whether the result of the operation old_metric( 0 )+sum is greater than or equal to the result of the operation old_metric( 1 ) ⁇ sum. If so, PCSA execution unit 205 may perform the operation old_metric( 0 )+sum and output the result for new_metric( 0 ). Otherwise, PCSA execution unit 205 may perform the operation old_metric( 1 ) ⁇ sum and output the result as new_metric( 0 ).
- PCSA execution unit 205 may identify whether the result of the operation old_metric( 0 ) ⁇ sum is greater than or equal to the result of the operation old_metric( 1 )+sum. If so, PCSA execution unit 205 may perform the operation old_metric( 0 ) ⁇ sum and output the result for new_metric( 8 ). Otherwise, PCSA execution unit 205 may perform the operation old_metric( 1 )+sum and output the result as new_metric( 8 ).
- PCSA execution unit 205 may identify whether the result of the operation old_metric( 2 )+difference is greater than or equal to the result of the operation old_metric( 3 ) ⁇ difference. If so, PCSA execution unit 205 may perform the operation old_metric( 2 )+difference and output the result for new_metric( 1 ). Otherwise, PCSA execution unit 205 may perform the operation old_metric( 3 ) ⁇ difference and output the result as new_metric( 1 ).
- PCSA execution unit 205 may identify whether the result of the operation old_metric( 2 ) ⁇ difference is greater than or equal to the result of the operation old_metric( 3 )+difference. If so, PCSA execution unit 205 may perform the operation old_metric( 2 ) ⁇ difference and output the result for new_metric( 9 ). Otherwise, PCSA execution unit 205 may perform the operation old_metric( 3 )+difference and output the result as new_metric( 9 ).
- Instruction processing logic 200 may similarly use PCSA execution unit 205 to compute the Viterbi butterfly to produce new_metric( 2 ) and new_metric( 10 ) in parallel with the Viterbi butterfly to produce new_metric( 3 ) and new_metric( 11 ), to compute the Viterbi butterfly to produce new_metric( 4 ) and new_metric( 12 ) in parallel with the Viterbi butterfly to produce new_metric( 5 ) and new_metric( 13 ), and to compute the Viterbi butterfly to produce new_metric( 6 ) and new_metric( 14 ) in parallel with the Viterbi butterfly to produce new_metric( 7 ) and new_metric( 15 ) as follows:
- new_metric( 2 ) max(old_metric( 4 )+sum, old_metric( 5 ) ⁇ sum);
- new_metric( 10 ) max(old_metric( 4 ) ⁇ sum, old_metric( 5 )+sum);
- new_metric( 3 ) max(old_metric( 6 )+difference, old_metric( 7 ) ⁇ difference);
- new_metric( 11 ) max(old_metric( 6 ) ⁇ difference, old_metric( 7 )+difference);
- new_metric( 4 ) max(old_metric( 8 )+sum, old_metric( 9 ) ⁇ sum);
- new_metric( 12 ) max(old_metric( 8 ) ⁇ sum, old_metric( 9 )+sum);
- new_metric( 5 ) max(old_metric( 10 )+difference, old_metric( 11 ) ⁇ difference);
- new_metric( 13 ) max(old_metric( 1 0 ) ⁇ difference, old_metric( 11 )+difference);
- new_metric( 6 ) max(old_metric( 12 )+sum, old_metric( 13 ) ⁇ sum);
- new_metric( 14 ) max(old_metric( 12 ) ⁇ sum, old_metric( 13 )+sum);
- new_metric( 7 ) max(old_metric( 14 )+difference, old_metric( 15 ) ⁇ difference);
- new_metric( 15 ) max(old_metric( 14 ) ⁇ difference, old_metric( 15 )+difference).
- instruction processing logic 200 may store the sum and difference input data in registers 230 and fetch old_metric(i) input data from memory for each pair of Viterbi butterfly computations to help reduce memory bandwidth in fetching input data for PCSA execution unit 205 .
- PCSA execution unit 205 may output new_Metric( 0 ) and new_metric( 1 ), for example, in a packed format to the same memory port and new_metric( 8 ) and new_metric( 9 ), for example, in a packed format to the same memory port to help write the new_metric(i) output data in a continuous area of memory and to help load and store the new_metric(i) data in accordance with a SIMD technique.
- PCSA execution unit 205 may store, in accordance with block 310 of FIG. 3 or block 1010 of FIG. 10 , data indicating how a first result of a first operation compares to a second result of a second operation for one or more pre-compare-select-add operations. Such data may be used, for example, to perform a traceback routine for the Viterbi algorithm.
- PCSA execution unit 205 may comprise suitable circuitry to perform one, three, four, or more Viterbi butterflies in parallel.
- PCSA execution unit 205 may be used to perform pre-compare-select-add operations for any suitable one or more applications.
- PCSA execution unit 205 may be used to perform any suitable operation, such as addition, subtraction, and/or a comparison operation for example.
Landscapes
- Physics & Mathematics (AREA)
- Probability & Statistics with Applications (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Advance Control (AREA)
Abstract
How a first result of a first operation compares to a second result of a second operation is identified. The identification may be performed without producing the first result or the second result. The first result or the second result may be selected in response to the identification, and the first operation or the second operation may be performed in response to the selection to produce the selected result. Alternatively, the first operation may be performed to produce the first result and the second operation may be performed to produce the second result. The produced first result or the produced second result may be selected in response to the identification.
Description
- 1. Technical Field
- One or more embodiments of the present invention relate generally to the field of computer systems. More particularly, one or more embodiments of the present invention relate to the field of add-compare-select operations performed by computer systems.
- 2. Description of Related Art
- To address the needs of multi-media, communications, and graphics applications, computer systems have been designed to support one or more digital signal processing techniques to process, for example, analog data, video data, and/or audio data. Pattern recognition is one digital signal processing technique that may be used, for example, for error correction in communications applications, for image recognition applications, for speech recognition applications, and for handwriting recognition applications. Digital signal processing techniques typically use sophisticated algorithms that perform the same operations, such as an add-compare-select operation for example, on a relatively large number of data in units of bytes, words, or doublewords, for example.
- A typical computer system supports add-compare-select operations with multiple instructions and one or more arithmetic logic units. As one example, the Intel® 32-bit Architecture as defined by Intel® Corporation of Santa Clara, Calif. supports add-compare-select operations with various instructions to add packed data and with various instructions to compare packed data.
- One or more embodiments of the present invention are illustrated by way of example and not limitation in the figures of the accompanying drawings, in which like references indicate similar elements and in which:
-
FIG. 1 illustrates an exemplary computer system comprising a processor having one or more pre-compare-select-add (PCSA) execution units; -
FIG. 2 illustrates, for one embodiment, a processor having one or more PCSA execution units; -
FIG. 3 illustrates, for one embodiment, a flow diagram to perform one or more pre-compare-select-add operations; -
FIG. 4 illustrates, for one embodiment, a PCSA execution unit; -
FIG. 5 illustrates, for one embodiment, pre-comparison circuitry and selection and operation performance circuitry for the PCSA execution unit ofFIG. 4 ; -
FIG. 6 illustrates, for one embodiment, shifted input lines for a 3-1 adder/subtractor for a PCSA execution unit; -
FIG. 7 illustrates, for another embodiment, pre-comparison circuitry and selection and operation performance circuitry for the PCSA execution unit ofFIG. 4 ; -
FIG. 8 illustrates, for another embodiment, a PCSA execution unit; -
FIG. 9 illustrates, for another embodiment, a PCSA execution unit; -
FIG. 10 illustrates, for another embodiment, a flow diagram to perform one or more pre-compare-select-add operations; -
FIG. 11 illustrates, for another embodiment, pre-comparison circuitry and selection and operation performance circuitry for the PCSA execution unit ofFIG. 4 ; and -
FIG. 12 illustrates, for another embodiment, a PCSA execution unit. - The following detailed description sets forth an embodiment or embodiments in accordance with the present invention for add-compare-select (ACS) accelerator using pre-compare-select-add (PCSA) operation. In the following description, details are set forth such as specific processor architectures, circuitry, etc., in order to provide a thorough understanding of one or more embodiments of the present invention. It will be evident, however, that one or more embodiments of the present invention may be practiced without these details. In other instances, well-known computer components, etc., have not been described in particular detail so as not to obscure this description.
-
FIG. 1 illustrates anexemplary computer system 100 comprising aprocessor 102 having one or more pre-compare-select-add (PCSA)execution units 103. Although described in ,the context ofcomputer system 100, one or more PCSAexecution units 103 may be used with any suitable computer system comprising any suitable one or more devices. Suitable computer systems include, without limitation, personal desktop and notebook computer systems, tablet computer systems, digital cellular telephone systems, and personal digital assistants (PDAs), for example. - As illustrated in
FIG. 1 ,computer system 100 comprises another processor 104 that may also have one or more PCSA execution units.Processors 102 and 104 may each comprise any suitable processor architecture such as, for example, the Intel™ 32-bit Architecture or the Intel® 64-bit Architecture as defined by Intel® Corporation of Santa Clara, Calif. Although described in the context of twoprocessors 102 and 104,computer system 100 for other embodiments may comprise one, three, or more processors any of which may comprise one or more PCSA execution units. -
Computer system 100 also comprises amemory controller 120.Processors 102 and 104 andmemory controller 120 for one embodiment are each coupled to one another by aprocessor bus 110.Memory controller 120 may comprise any suitable circuitry formed on any suitable one or more integrated circuit chips. -
Memory controller 120 may comprise any suitable interface controllers to provide for any suitable communication link toprocessor bus 110 and/or to any suitable device in communication withmemory controller 120.Memory controller 120 for one embodiment may provide suitable arbitration, buffering, and coherency management for each interface. -
Memory controller 120 provides an interface toprocessor 102 and/or processor 104 overprocessor bus 110. For one embodiment,processor 102 or 104 may alternatively be combined withmemory controller 120 to form a single integrated circuit chip.Memory controller 120 for one embodiment also provides an interface to a main memory 122, agraphics controller 130, and an input/output (I/O)controller 140. - Main memory 122 is coupled to
memory controller 120 to load and store data and/or instructions, for example, forcomputer system 100. Main memory 122 may comprise any suitable memory, such as suitable dynamic random access memory (DRAM) for example. -
Graphics controller 130 is coupled tomemory controller 120 to control the display of information on asuitable display 132, such as a cathode ray tube (CRT) or liquid crystal display (LCD) for example, coupled tographics controller 130.Memory controller 120 for one embodiment interfaces withgraphics controller 130 through an accelerated graphics port (AGP).Graphics controller 130 for one embodiment may alternatively be combined withmemory controller 120 to form a single integrated circuit chip. - I/
O controller 140 is coupled tomemory controller 120 to provide an interface to one or more I/O devices coupled to I/O controller 140. I/O controller 140 may comprise any suitable interface controllers to provide for any suitable communication link tomemory controller 120 and/or to any suitable device in communication with I/O controller 140. I/O controller 140 for one embodiment may provide suitable arbitration and buffering for each interface. - For one embodiment, I/
O controller 140 may provide an interface to one ormore storage devices 142, such as a hard disk drive (HDD), a floppy disk drive, a compact disc (CD) drive, and/or a digital versatile disc (DVD) drive, for example, to store data and/or instructions, for example. I/O controller 140 for one embodiment may also provide an interface to akeyboard 144 and acursor control device 146, such as a mouse, joystick, or touch tablet for example. - I/
O controller 140 for one embodiment may provide an interface to an audio coder/decoder (codec) 150 to convert received analog audio signals output from one or moresuitable audio devices 152 into corresponding digital audio signals and/or to convert digital audio signals into corresponding analog audio signals for output to audio device(s) 152. Audio device(s) 152 may include, for example, one or more microphones and/or speakers for example. - I/
O controller 140 for one embodiment may provide an interface to avideo codec 160 to convert received analog video signals output from one or moresuitable video devices 162 into corresponding digital video signals and/or to convert digital video signals into corresponding analog video signals for output to video device(s) 162. Video device(s) 162 may include, for example, a video camcorder and/or a video cassette recorder (VCR) for example. - I/
O controller 140 for one embodiment may provide an interface to acommunications codec 170 to convert analog signals received from one or more other computer systems over one or more networks, including the Internet for example, into corresponding digital signals and/or to convert digital signals into analog signals for transmission to one or more other computer systems over one or more networks, including the Internet for example.Communications codec 170 for one embodiment may comprise, for example, a modem codec or a radio frequency interface. - I/
O controller 140 for one embodiment may provide an interface to adigitizer 180 to convert one-dimensional, two-dimensional, or three-dimensional movement of a stylus, for example, into corresponding digital signals. Digitizer 180 for one embodiment may comprise, for example, a tablet digitizer. - I/
O controller 140 is also coupled to afirmware controller 190 to provide an interface tofirmware controller 190.Firmware controller 190 comprises a basic input/output system (BIOS)memory 192 to store suitable system and/or video BIOS software.BIOS memory 192 may comprise any suitable non-volatile memory, such as a flash memory for example. -
Processor 102 comprises one or more pre-compare-select-add (PCSA)execution units 103 to help accelerate the performance of add-compare-select operations.Processor 102 for one embodiment may use one or morePCSA execution units 103 in performing digital signal processing, for example, on digital signals stored on storage device(s) 142, stored in main memory 122, and/or received throughaudio codec 150,video codec 160,communications codec 170, and/ordigitizer 180, for example. - As illustrated in
FIG. 2 ,processor 102 for one embodiment comprisesinstruction processing logic 200, cache logic 210, interface logic 220, and registers 230. Interface logic 220 couples cache logic 210 toprocessor bus 110 and may comprise any suitable circuitry. Cache logic 210 andregisters 230 are coupled toinstruction processing logic 200. - Cache logic 210 helps supply instructions and/or data to
instruction processing logic 200. Cache logic 210 may store instructions and/or data accessed from main memory 122 through interface logic 220 andmemory controller 120 for processing byinstruction processing logic 200. Cache logic 210 may also store recently and/or frequently used instructions and/or data to help minimize accesses to main memory 122. - Cache logic 210 may comprise any suitable circuitry. Cache logic 210 for one embodiment may implement a two cache level memory subsystem in which cache memory at a primary cache level is relatively small in size and closely coupled to
instruction processing logic 200 to facilitate relatively quicker access of instructions and/or data stored at the primary cache level while cache memory at a secondary cache level stores relatively more instructions and/or data yet has a relatively slower access time. Cache logic 210 for one embodiment may implement a dedicated instruction cache memory portion and a separate dedicated data cache memory portion at the primary cache level. Cache logic 210 for other embodiments may implement one, three, or more cache levels. Cache logic 210 may store instructions and/or data forinstruction processing logic 200 in accordance with any suitable caching scheme. -
Instruction processing logic 200 may comprise any suitable circuitry to fetch and process instructions and/or data.Instruction processing logic 200 for one embodiment, as illustrated inFIG. 2 , comprises an instruction pipeline comprising instruction fetch/decode logic 202 andexecution logic 204 coupled to instruction fetch/decode logic 202. - Instruction fetch/
decode logic 202 fetches instructions from cache logic 210. Instruction fetch/decode logic 202 may comprise any suitable circuitry to fetch instructions in any suitable manner. Instruction fetch/decode logic 202 for one embodiment may identify a next instruction to be fetched byinstruction processing logic 200 in accordance with an instruction pointer maintained by instruction fetch/decode logic 202 and may request the instruction from cache logic 210. Cache logic 210 may identify whether the requested instruction is stored in cache memory and, if not, may request the instruction from main memory 122 through interface logic 220 andmemory controller 120. Instruction fetch/decode logic 202 may identify the next instruction, for example, as the next sequential instruction in a program, as a predicted or actual destination of a branch instruction, or as the start of a new routine, such as an exception handling routine for example. - Instruction fetch/
decode logic 202 for one embodiment may decode each instruction into one or more micro-operations. Instruction fetch/decode logic 202 for one embodiment may decode each instruction into one or more triadic micro-operations. A triadic micro-operation comprises an operation code or opcode and may comprise up to two logical source operands and one logical destination operand. -
Execution logic 204 executes the micro-operations generated by instruction fetch/decode logic 202.Execution logic 204 may comprise any suitable circuitry and for one embodiment comprises a plurality of execution units including one or more pre-compare-select-add (PCSA)execution units 103. As illustrated inFIG. 2 ,execution logic 204 for one embodiment may comprise twoPCSA execution units 205 and 206. For other embodiments,execution logic 204 may comprise one, three, or more PCSA execution units.Execution logic 204 for one embodiment may also comprise one or more integer execution units, one or more floating point execution units, and/or a memory interface execution unit for example.Execution logic 204 may dispatch each micro-operation to an appropriate execution unit available to execute the micro-operation. -
Execution logic 204 for one embodiment executes one or more memory load micro-operations by dispatching the memory load micro-operation to a memory interface execution unit coupled to cache logic 210 to request data from cache memory or main memory 122.Execution logic 204 may then store the requested data in one or more registers ofregisters 230 or may allow access to the requested data through one or more memory ports for use by any execution unit in executing a micro-operation. -
Execution logic 204 for one embodiment may execute micro-operations in the order they are generated by instruction fetch/decode logic 202.Execution logic 204 for another embodiment may comprise suitable circuitry to execute micro-operations out-of-order to help increase instruction throughput. - Although described in the context of
instruction processing logic 200 as illustrated inFIG. 2 , one or morePCSA execution units 103 may be implemented using any suitable processor architecture. As one example, instruction fetch/decode logic 202 for another embodiment may not decode one or more fetched instructions into micro-operations but rather may process each instruction for execution directly. As another example, one or morePCSA execution units 103 may be implemented with any suitable digital signal processor (DSP) architecture. -
Instruction processing logic 200 may perform one or more pre-compare-select-add operations using one or morePCSA execution units 103 in any suitable manner.Instruction processing logic 200 for one embodiment may perform one or more pre-compare-select-add operations in accordance with a flow diagram 300 as illustrated inFIG. 3 . Although flow diagram 300 is described in connection withPCSA execution unit 205, any one or morePCSA execution units 103, such as PCSA execution unit 206 for example, may be used to perform one or more pre-compare-select-add operations in accordance with flow diagram 300. - For
block 302 ofFIG. 3 , instruction fetch/decode logic 202 fetches and decodes a pre-compare-select-add (PCSA) single instruction multiple data (SIMD) instruction to perform one or more pre-compare-select-add operations. The PCSA SIMD instruction may have any suitable format. - For
block 304,execution logic 204 fetches at least first, second, and third input data.Execution logic 204 for one embodiment may fetch the at least first, second, and third input data in response to the PCSA SIMD instruction.Execution logic 204 for one embodiment may request any of the at least first, second, and third input data from cache logic 210.Execution logic 204 may then allow access to the requested input data fromPCSA execution unit 205 through one or more memory ports or may store the requested input data in one or more registers ofregisters 230 and allow access to the requested input data fromPCSA execution unit 205 through one or more register ports.Execution logic 204 for one embodiment may read any of the at least first, second, and third input data already loaded inregisters 230 fromregisters 230. The fetched input data may have any suitable size and may be stored in any suitable format. For one embodiment, the fetched first, second, and third input data may be 16 bits in size. The fetched input data for one embodiment may be in a packed format. In this manner, more than one input data may be made available for access forPCSA execution unit 205 through one memory or register port. - For block 306,
PCSA execution unit 205 receives the fetched at least first, second, and third input data and forblocks 308, 310, 312, and 314 performs one or more pre-compare-select-add operations on the received input data.PCSA execution unit 205 for one embodiment may receive the fetched at least first, second, and third input data and perform one or more pre-compare-select-add operations on the received input data in response to the PCSA SIMD instruction. A pre-compare-select-add operation comprises identifying how a first result of a first operation on at least two input data compares to a second result of a second operation on at least two input data, selecting an operation or result in response to the comparison, and performing the selected operation to produce the selected result. -
PCSA execution unit 205 may support any suitable type or types of first and second operations.PCSA execution unit 205 for one embodiment may support one or more arithmetic operations on input data. As one example,PCSA execution unit 205 may support addition for the first and second operations on input data. Although described as a pre-compare-select-add execution unit to perform one or more pre-compare-select-add operations,PCSA execution unit 205 may also or alternatively support subtraction, multiplication, and/or division, for example, for the first and/or second operations on input data.PCSA execution unit 205 for one embodiment may support addition and subtraction for the first operation and addition and subtraction for the second operation. -
PCSA execution unit 205 for one embodiment may at least partially overlap the performance of multiple pre-compare-select-add operations in time.PCSA execution unit 205 for one embodiment may perform multiple pre-compare-select-add operations on received input data in parallel.PCSA execution unit 205 for one embodiment may perform multiple pre-compare-select-add operations on the same input data and at least partially overlap such performance in time.PCSA execution unit 205 for one embodiment may perform two pre-compare-select-add operations on the received first, second, and third input data.PCSA execution unit 205 for one embodiment may also perform one or more pre-compare-select-add operations on fetched and received fourth, fifth, and sixth input data in an at least partially overlapped manner in time with the performance of one or more pre-compare-select-add operations on the received first, second, and third input data. - For block 308,
PCSA execution unit 205 identifies how a first result of a first operation on input data compares to a second result of a second operation on input data for one or more pre-compare-select-add operations.PCSA execution unit 205 may identify how the first and second results compare in any suitable manner. -
PCSA execution unit 205 for one embodiment may identify whether the first result, for example, is greater than or equal to the second result, for example.PCSA execution unit 205 for one embodiment may identify how the first and second results compare by performing arithmetic operations on input data to identify whether the difference between the first and second results is positive or zero or is negative. That is,PCSA execution unit 205 for one embodiment may perform operations that effectively subtract the second operation from the first operation. In this manner,PCSA execution unit 205 may identify how the first and second results compare without determining the first and second results and without directly comparing the first and second results.PCSA execution unit 205 for another embodiment may identify whether the second result, for example, is less than or equal to the first result, for example. - As one example,
PCSA execution unit 205 for one embodiment may identify for a pre-compare-select-add operation whether a first result r1 of an addition operation on first input data i1 and third input data i3 is greater than or equal to a second result r2 of a subtraction operation on second input data i2 and third input data i3.PCSA execution unit 205 may identify whether r1=i1+i3≧r2=i2−i3 by performing (i1+i3)−(i2−i3) or i1−i2+2*i3 and positive or zero, indicating r1≧r2, or is negative, indicating r1<r2. - For
block 310,PCSA execution unit 205 may optionally store data indicating how the first result compares to the second result for one or more pre-compare-select-add operations.PCSA execution unit 205 may store any suitable data in any suitable manner for any suitable purpose. - For blocks 312 and 314,
PCSA execution unit 205 selectively performs for one or more pre-compare-select-add operations the first operation or the second operation to produce a selected result in response to identifying how the first result compares to the second result. By selectively performing the first operation or the second operation,PCSA execution unit 205 performs only one operation to produce a selected result for a pre-compare-select-add operation. - For block 312,
PCSA execution unit 205 selects for one or more pre-compare-select-add operations the first result or the second result in response to identifying how the first result compares to the second result.PCSA execution unit 205 may select the first result or the second result in any suitable manner. For one embodiment wherePCSA execution unit 205 identifies whether the first result, for example, is greater than or equal to the second result, for example,PCSA execution unit 205 may select the first result, for example, if the first result is greater than or equal to the second result or may select the second result, for example, if the first result is less than the second result. - For block 314,
PCSA execution unit 205 performs for one or more pre-compare-select-add operations the first operation or the second operation to produce the selected result in response to selecting the first result or the second result.PCSA execution unit 205 may perform the first operation or the second operation to produce the selected result in any suitable manner. - As one example where
PCSA execution unit 205 for block 308 may identify for a pre-compare-select-add operation whether a first result r1 of an addition operation on first input data i1 and third input data i3 is greater than or equal to a second result r2 of a subtraction operation on second input data i2 and third input data i3,PCSA execution unit 205 for one embodiment may select for block 312 the first result r1, for example, ifPCSA execution unit 205 identifies the first result r1 is greater than or equal to the second result r2 and may perform for block 314 the first operation, that is i1+i3, to produce the first result r1. IfPCSA execution unit 205 identifies the first result r1 is less than the second result r2,PCSA execution unit 205 for one embodiment may then select for block 312 the second result r2, for example, and may perform for block 314 the second operation, that is i2−i3, to produce the second result r2. - For block 316,
PCSA execution unit 205 outputs the selected result for one or more pre-compare-select-add operations.PCSA execution unit 205 for one embodiment may output the selected result for one or more pre-compare-select-add operations in response to the PCSA SIMD instruction.PCSA execution unit 205 for one embodiment may output the selected result for one or more pre-compare-select-add operations to one or more memory ports for storage in memory and/or to one or more register ports for storage in one ormore registers 230. A selected result may have any suitable size and may be stored in any suitable format. For one embodiment, a selected result may be 16 bits in size. A selected result for one embodiment may be in a packed format. In this manner, more than one selected result may be output to one memory or register port. - If any data indicating how the first result compares to the second result for one or more pre-compare-select-add operations is to be output for
block 318,PCSA execution unit 205 outputs such data forblock 320.PCSA execution unit 205 may output such data in any suitable manner and in response to any suitable condition.Blocks -
PCSA execution unit 205 for one embodiment may output such data for each of one or more iterations of operations for blocks 302-316.PCSA execution unit 205 for another embodiment may output such data whenPCSA execution unit 205 has stored a predetermined amount of such data. As one example,PCSA execution unit 205 may output such data whenPCSA execution unit 205 has stored such data in repeating operations for blocks 302-316 a predetermined number of times. -
PCSA execution unit 205 for one embodiment may output data forblock 320 asPCSA execution unit 205 outputs the selected result for one or more pre-compare-select-add operations for block 316.PCSA execution unit 205 for one embodiment may output data forblock 320 to one or more memory ports for storage in memory and/or to one or more register ports for storage in one ormore registers 230. Such data may have any suitable size and may be stored in any suitable format. For one embodiment, such data may be output in one or more 32-bit portions. -
PCSA execution unit 205 for one embodiment may output data forblock 320 in response to the PCSA SIM instruction. For another embodiment, instruction fetch/decode logic 202 may fetch and decode a PCSA read instruction to output such data fromPCSA execution unit 205 and to store the output data toregisters 230 and/or to memory. The PCSA read instruction may have any suitable format. - If any more pre-compare-select-add operations are to be performed for
block 322,instruction processing logic 200 may then repeat operations for blocks 302-320. Otherwise,instruction processing logic 200 forblock 324 may optionally output fromPCSA execution unit 205 any remaining stored data indicating how the first result compares to the second result for one or more pre-compare-select-add operations. For one embodiment, instruction fetch/decode logic 202 may fetch and decode a PCSA read instruction to output such data fromPCSA execution unit 205. The PCSA read instruction may have any suitable format.PCSA execution unit 205 for one embodiment may output data forblock 324 to one or more memory ports for storage in memory and/or to one or more register ports for storage in one ormore registers 230. Such data may have any suitable size and may be stored in any suitable format. For one embodiment, such data may be output in one or more 32-bit portions. -
Instruction processing logic 200 may perform operations for blocks 302-324 in any suitable order and may or may not overlap in time the performance of any suitable operation with any other suitable operation.Instruction processing logic 200 for one embodiment may at least partially overlap in time the performance of suitable operations for any blocks 302-324 in a pipelined manner. -
Instruction processing logic 200 for one embodiment may support saturation, precision adjustment, and/or data packing in performing one or more pre-compare-select-add operations in accordance with flow diagram 300. - Although described in the context of performing pre-compare-select-add operations using a SIMD technique, one or more
PCSA execution units 103 for another embodiment may be controlled to perform one or more pre-compare-select-add operations in accordance with flow diagram 300 using any other suitable technique. - Each of one or more
PCSA execution units 103, such asPCSA execution unit 205 and/or PCSA execution unit 206 for example, may have any suitable number of inputs to receive any suitable number of input data for block 306, may comprise any suitable circuitry to perform any suitable number of one or more pre-compare-select-add operations on input data forblocks 308, 310, 312, and 314, and may have any suitable number of outputs to output any suitable number of selected results for block 316 and/or data indicating how a first result compares to a second result for one or more pre-compare-select-add operations forblocks 320 and/or 324. One or more PCSA execution units of PCSA execution unit(s) 103 may or may not be implemented similarly. -
PCSA execution unit 205 for one embodiment may comprise a PCSAexecution unit block 400 andcontrol logic 490 coupled to PCSAexecution unit block 400, as illustrated inFIG. 4 . PCSAexecution unit block 400 hasinputs outputs pre-comparison circuitry 410 and selection andoperation performance circuitry 440. -
Pre-comparison circuitry 410 is coupled toinputs operation performance circuitry 440 and tooutput 472.Control logic 490 for one embodiment may controlpre-comparison circuitry 410 for block 306 ofFIG. 3 to receive first, second, and third input data atinputs ports 481 and for block 308 to identify how a first result of a first operation on input data compares to a second result of a second operation on input data for a pre-compare-select-add operation.Control logic 490 for one embodiment may controlpre-comparison circuitry 410 forblock 310 to store data indicating how the first result compares to the second result for one or more pre-compare-select-add operations.Control logic 490 for one embodiment may controlpre-comparison circuitry 410 forblocks 320 and/or 324 to output to one or more memory and/or registerports 482 atoutput 472 data indicating how the first result compares to the second result for one or more pre-compare-select-add operations. - Selection and
operation performance circuitry 440 is coupled toinputs output 471, and to an output ofpre-comparison circuitry 410.Control logic 490 for one embodiment may control selection andoperation performance circuitry 440 to receive first, second, and third input data frominputs pre-comparison circuitry 410 data indicating how a first result of a first operation on input data compares to a second result of a second operation on input data for a pre-compare-select-add operation.Control logic 490 for one embodiment may control selection andoperation performance circuitry 440 for block 312 ofFIG. 3 to select the first result or the second result based on the received data.Control logic 490 for one embodiment may control selection andoperation performance circuitry 440 for block 314 to perform the first operation or the second operation to produce the selected result and for block 316 to output the selected result to one or more memory and/or registerports 482 atoutput 471. PCSAexecution unit block 400 may comprise any suitable circuitry forpre-comparison circuitry 410 and for selection andoperation performance circuitry 440. -
PCSA execution unit 205 for one embodiment may comprise a PCSAexecution unit block 500 and control logic 590 coupled to PCSAexecution unit block 500, as illustrated inFIG. 5 . PCSAexecution unit block 500 hasinputs 501, 502, and 503, hasoutputs pre-comparison circuitry 510 and selection andoperation performance circuitry 540. -
Inputs 501, 502, and 503 generally correspond toinputs FIG. 4 .Outputs outputs Pre-comparison circuitry 510 and selection andoperation performance circuitry 540 generally correspond topre-comparison circuitry 410 and selection andoperation performance circuitry 440, respectively. Memory/register port(s) 581 and 582 generally correspond to memory/register port(s) 481 and 482, respectively. -
Pre-comparison circuitry 510 for one embodiment comprises shift circuitry 511, a 3-1 adder/subtractor 521, and a buffer 531. - Shift circuitry 511 is coupled to input 503 and has an output coupled to 3-1 adder/
subtractor 521. Control logic 590 for one embodiment may control shift circuitry 511 to shift bits of third input data atinput 503 by a predetermined number of one or more bits relative to input lines for 3-1 adder/subtractor 521 to produce a multiple of the third input data. Control logic 590 for one embodiment may control shift circuitry 511 to shift third input data i3 by one bit to produce 2*i3. Shift circuitry 511 may comprise any suitable circuitry to shift bits of the third input data in any suitable manner. - Shift circuitry 511 for one embodiment may comprise suitable circuitry to shift bits of third input data by a selective number of bits. In this manner, control logic 590 may control shift circuitry 511 to shift bits of third input data by zero bits or by one bit, for example.
-
Pre-comparison circuitry 510 for another embodiment may comprise shifted input lines to shift third input data by a predetermined number of one or more bits relative to input 503 for input to 3-1 adder/subtractor 521.FIG. 6 illustrates for one embodiment shifted input lines to shift third input data by one bit relative to input 503 for input to 3-1 adder/subtractor 521. -
Pre-comparison circuitry 510 for one embodiment shifts third input data by n bit(s) to produce a 2n multiple of the third input data for use to identify how a first result of a first operation on input data compares to a second result of a second operation on input data.Pre-comparison circuitry 510 for another embodiment may not shift third input data by any bits. - 3-1 adder/
subtractor 521 is coupled to inputs 501 and 502 and to an output of shift circuitry 511 and has an output coupled to buffer 531. - Control logic 590 for one embodiment may control 3-1 adder/
subtractor 521 for block 306 ofFIG. 3 to receive as inputs first input data, second input data, and shifted third input data. - Control logic 590 for one embodiment may control 3-1 adder/
subtractor 521 for block 308 to identify how a first result of a first addition or subtraction operation on input data compares to a second result of a second addition or subtraction operation on input data for a pre-compare-select-add operation. Control logic 590 for one embodiment may control 3-1 adder/subtractor 521 to output to buffer 531 data indicating how the first result compares to the second result for the pre-compare-select-add operation. - As one example, control logic 590 for one embodiment may control 3-1 adder/
subtractor 521 to identify whether a first result r1 of an addition operation on first input data i1 and third input data i3 is greater than or equal to a second result r2 of a subtraction operation on second input data i2 and third input data i3, that is whether r1=i1+i3≧r2=i2−i3, by determining the difference of the sum of the first and third input data minus the difference of the second input data minus the third input data, that is (i1+i3)−(i2−i3), and identifying whether the result is positive or zero, indicating r1≧r2, or is negative, indicating r1<r2. Control logic 590 for one embodiment may control 3-1 adder/subtractor 521 to perform i1−i2+2*i3, which is equal to (i1+i3)−(i2−i3), and to output to buffer 531 data, such as a single bit for example, indicating whether the result is positive or zero or is negative. - 3-1 adder/
subtractor 521 may comprise any suitable circuitry to perform addition or subtraction on input data of any suitable size. 3-1 adder/subtractor 521 for one embodiment may perform addition or subtraction on 16-bit input data, for example. - Control logic 590 for one embodiment may control buffer 531 for
block 310 ofFIG. 3 to receive and store data indicating how the first result compares to the second result. Control logic 590 for one embodiment may control buffer 531 to store such data for one or more pre-compare-select-add operations. Buffer 531 may comprise any suitable circuitry to store any suitable amount of data in any suitable manner. Buffer 531 for one embodiment may comprise a shift register that may store, for example, 16 or 32 bits. - Selection and
operation performance circuitry 540 for one embodiment comprisesbuffers multiplexer 551, and an adder/subtractor 561. -
Buffers inputs 501, 502, and 503, respectively. Control logic 590 for one embodiment may controlbuffers Buffers Buffers -
Multiplexer 551 has inputs coupled to outputs ofbuffers subtractor 561. Control logic 590 for one embodiment may controlbuffers multiplexer 551 to receive the stored first and second input data. Control logic 590 for one embodiment may control buffer 531 for block 312 ofFIG. 3 to output stored data indicating how the first result compares to the second result for a pre-compare-select-add operation to controlmultiplexer 551 to output in a selective manner either the received first input data or the received second input data to adder/subtractor 561. - Adder/
subtractor 561 has inputs coupled to the output ofmultiplexer 551 and to an output ofbuffer 543 and has an output coupled tooutput 571. Control logic 590 for one embodiment may control adder/subtractor 561 to receive as inputs the data selectively output frommultiplexer 551 and the third input data stored inbuffer 543. - Control logic 590 for one embodiment may control adder/
subtractor 561 for block 314 to perform an addition or subtraction operation on input data to produce either the first or second result for a pre-compare-select-add operation depending on how the first result compares to the second result. Control logic 590 for one embodiment may control adder/subtractor 561 for block 316 to output the produced first or second result for a pre-compare-select-add operation atoutput 571 to one or more memory and/or registerports 582. - As one example where control logic 590 may control 3-1 adder/
subtractor 521 to identify whether a first result r1 of an addition operation on first input data i1 and third input data i3 is greater than or equal to a second result r2 of a subtraction operation on second input data i2 and third input data i3, control logic 590 for one embodiment may controlmultiplexer 551 to output first input data i1, for example, if 3-1 adder/subtractor 521 identifies the first result r1 is greater than or equal to the second result r2 and may then control adder/subtractor 561 to perform the first operation, that is i1+i3, to produce the first result r1. If 3-1 adder/subtractor 521 identifies the first result r1 is less than the second result r2, control logic 590 for one embodiment may controlmultiplexer 551 to output second input data i2, for example, and may then control adder/subtractor 561 to perform the second operation, that is i2−i3, to produce the second result r2. - Control logic 590 may control adder-
subtractor 561 to perform an addition or subtraction operation on input data in any suitable manner. For one embodiment where the first and second operations for a pre-compare-select-add operation are different, adder-subtractor 561 may be coupled to receive from buffer 531 data indicating how the first result compares to the second result for the pre-compare-select-add operation to control adder/subtractor 561 to perform in a selective manner either the first operation or the second operation. For another embodiment where the first and second operations for a pre-compare-select-add operation are different, control logic 590 may be coupled to receive from 3-1 adder/subtractor 521 or from buffer 531 data indicating how the first result compares to the second result for the pre-compare-select-add operation to control adder/subtractor 561 to perform in a selective manner either the first operation or the second operation. - Adder/
subtractor 561 may comprise any suitable circuitry to perform addition or subtraction on input data of any suitable size. Adder/subtractor 561 for one embodiment may perform addition or subtraction on 16-bit input data, for example. Adder/subtractor 561 for one embodiment may also perform saturation and/or merging operations. - Buffer 531 has an output coupled to
output 572. Control logic 590 for one embodiment may control buffer 531 forblocks 320 and/or 324 to output data stored in buffer 531 atoutput 572 to one or more memory and/or registerports 582. Control logic 590 for one embodiment may control buffer 531 to output data as adder/subtractor 561 outputs data. Control logic 590 for one embodiment may control buffer 531 to output data when buffer 531 has stored a predetermined amount of data. - Control logic 590 for one embodiment may control PCSA
execution unit block 500 to perform pre-compare-select-add operations in a pipelined manner. - Control logic 590 for one embodiment may control shift circuitry 511 to shift input data, may control 3-1 adder/
subtractor 521 to receive input data and identify how a first result of a first addition or subtraction operation on input data compares to a second result of a second addition or subtraction operation on input data, may control buffer 531 to receive and store data output from 3-1 adder/subtractor 521, and may controlbuffers - Control logic 590 for one embodiment may control buffer 531 to output stored data to control
multiplexer 551, may controlbuffers multiplexer 551 to receive stored data frombuffers subtractor 561, and may control adder/subtractor 561 to receive input data frommultiplexer 551 andbuffer 543, to perform an addition or subtraction operation on input data to produce either the first or second result, and to output the produced result during a second computation cycle for the first pre-compare-select-add operation. - Control logic 590 for one embodiment may control PCSA
execution unit block 500 to overlap in time the performance of the first computation cycle for a second pre-compare-select-add operation with the performance of the second computation cycle for the first pre-compare-select-add operation. Control logic 590 for one embodiment may then control PCSAexecution unit block 500 to receive new input data for a new pre-compare-select-add operation for each of multiple consecutive computation cycles and, after an initial one computation cycle latency period, to output a selected result for a completed pre-compare-select-add operation for each of multiple consecutive computation cycles. -
PCSA execution unit 205 for one embodiment may comprise a PCSAexecution unit block 700 andcontrol logic 790 coupled to PCSAexecution unit block 700, as illustrated inFIG. 7 . PCSAexecution unit block 700 has inputs 701, 702, and 703, hasoutputs pre-comparison circuitry 710 comprisingshift circuitry 711, a 3-1 adder/subtractor 721, and abuffer 731, and comprises selection andoperation performance circuitry 740 comprising amultiplexer 751,buffers 741 and 743, and an adder/subtractor 761. - Inputs 701, 702, and 703 generally correspond to
inputs 501, 502, and 503, respectively, ofFIG. 5 .Pre-comparison circuitry 710 generally corresponds topre-comparison circuitry 510.Shift circuitry 711 generally corresponds to shift circuitry 511. 3-1 adder/subtractor 721 generally corresponds to 3-1 adder/subtractor 521. Buffer 731 generally corresponds to buffer 531 exceptbuffer 731 for one embodiment may not have an output to controlmultiplexer 751. - Selection and
operation performance circuitry 740 generally corresponds to selection andoperation performance circuitry 540.Multiplexer 751 generally corresponds to multiplexer 551 exceptmultiplexer 751 has inputs coupled to inputs 701 and 702 and to an output of 3-1 adder/subtractor 721 and has an output coupled tobuffer 741.Buffer 741 has an input coupled to an output ofmultiplexer 751 and has an output coupled to adder/subtractor 761. Buffer 743 generally corresponds to buffer 543. - Adder/
subtractor 761 generally corresponds to adder/subtractor 561 except adder/subtractor 761 has inputs coupled to outputs ofbuffers 741 and 743.Outputs outputs - Memory/register port(s) 781 and 782 generally correspond to memory/register port(s) 581 and 582, respectively.
Control logic 790 generally corresponds to control logic 590. -
Control logic 790 for one embodiment may control PCSAexecution unit block 700 similarly as control logic 590 may control PCSAexecution unit block 500 exceptcontrol logic 790 controls PCSAexecution unit block 700 for block 312 ofFIG. 3 by controlling 3-1 adder/subtractor 721 to output data indicating how a first result compares to a second result to controlmultiplexer 751 to output in a selective manner either the received first input data or the received second input data to buffer 741..Control logic 790 for one embodiment may control adder/subtractor 761 for block 314 to perform an addition or subtraction operation on input data to produce either the first or second result for a pre-compare-select-add operation depending on how the first result compares to the second result. -
Control logic 790 for one embodiment may control PCSAexecution unit block 700 to perform pre-compare-select-add operations in a pipelined manner. -
Control logic 790 for one embodiment may controlshift circuitry 711 to shift input data, may control 3-1 adder/subtractor 721 to receive input data and identify how a first result of a first addition or subtraction operation on input data compares to a second result of a second addition or subtraction operation on input data and to output data to buffer 731 and to controlmultiplexer 751, may controlmultiplexer 751 to receive input data and to output data in a selective manner to buffer 741, may control buffer 731 to receive and store data output from 3-1 adder/subtractor 721, and may controlbuffers 741 and 743 to receive and store input data during a first computation cycle for a first pre-compare-select-add operation. -
Control logic 790 for one embodiment may controlbuffers subtractor 761 to receive input data frombuffers 741 and 743, to perform an addition or subtraction operation on input data to produce either the first or second result, and to output the produced result during a second computation cycle for the first pre-compare-select-add operation. -
Control logic 790 for one embodiment may control PCSAexecution unit block 700 to overlap in time the performance of the first computation cycle for a second pre-compare-select-add operation with the performance of the second computation cycle for the first pre-compare-select-add operation.Control logic 790 for one embodiment may then control PCSAexecution unit block 700 to receive new input data for a new pre-compare- select-add operation for each of multiple consecutive computation cycles and, after an initial one computation cycle latency period, to output a selected result for a completed pre-compare-select-add operation for each of multiple consecutive computation cycles. -
PCSA execution unit 205 for one embodiment may comprise a PCSAexecution unit block 800 andcontrol logic 890 coupled to PCSAexecution unit block 800, as illustrated inFIG. 8 .Control logic 890 for one embodiment may control PCSAexecution unit block 800 to perform one pre-compare-select-add operation and/or to perform multiple pre-compare-select-add operations in parallel. - PCSA
execution unit block 800 hasinputs outputs operation performance circuitry 840. - Pre-comparison circuitry 810 is coupled to
inputs operation performance circuitry 840 and to outputs 873 and 874.Control logic 890 for one embodiment may control pre-comparison circuitry 810 for block 306 ofFIG. 3 to receive first, second, and third input data and/or fourth, fifth, and sixth input data atinputs ports 881 and for block 308 to identify how a first result of a first operation on input data compares to a second result of a second operation on input data for one or more pre-compare-select-add operations.Control logic 890 for one embodiment may control pre-comparison circuitry 810 forblock 310 to store data indicating how the first result compares to the second result for one or more pre-compare-select-add operations.Control logic 890 for one embodiment may control pre-comparison circuitry 810 forblocks 320 and/or 324 to output to one or more memory and/or registerports 882 at outputs 873 and/or 874 data indicating how the first result compares to the second result for one or more pre-compare-select-add operations. - Selection and
operation performance circuitry 840 is coupled toinputs outputs Control logic 890 for one embodiment may control selection andoperation performance circuitry 840 to receive first, second, and third input data and/or fourth, fifth, and sixth input data frominputs Control logic 890 for one embodiment may control selection andoperation performance circuitry 840 for block 312 ofFIG. 3 to select the first result or the second result for one or more pre-compare-select-add operations based on the received data.Control logic 890 for one embodiment may control selection andoperation performance circuitry 840 for block 314 to perform the first operation or the second operation to produce the selected result for one or more pre-compare-select-add operations and for block 316 to output the selected result for one or more pre-compare-select-add operations to one or more memory and/or registerports 882 atoutputs - Pre-comparison circuitry 810 for one embodiment comprises 3-1 adder/
subtractors buffers subtractors 821 and 822 and/or 3-1 adder/subtractors 823 and 824 for one embodiment may be implemented as dual 3-1 adder/subtractors. - For one embodiment, the input data lines from
input 803 are shifted to shift third input data by one or more bits relative to input 803 to produce a multiple of the third input data for input to 3-1 adder/subtractors 821 and 822. Pre-comparison circuitry 810 for another embodiment may comprise suitable shift circuitry to shift bits of third input data atinput 803 by one or more bits for input to 3-1 adder/subtractors 821 and 822. - For one embodiment, the input data lines from input 804 are shifted to shift fourth input data by one or more bits relative to input 804 to produce a multiple of the fourth input data for input to 3-1 adder/
subtractors 823 and 824. Pre-comparison circuitry 810 for another embodiment may comprise suitable shift circuitry to shift bits of fourth input data at input 804 by one or more bits for input to 3-1 adder/subtractors 823 and 824. - Selection and
operation performance circuitry 840 for one embodiment comprisesbuffers multiplexers subtractors subtractors 861 and 862 and/or adder/subtractors 863 and 864 for one embodiment may be implemented as dual adder/subtractors. - For one embodiment, 3-1 adder/
subtractor 821,buffer 831,buffers 841, 842, and 843,multiplexer 851, and adder/subtractor 861 are similarly coupled as 3-1 adder/subtractor 521, buffer 531,buffers multiplexer 551, and adder/subtractor 561, respectively, ofFIG. 5 , with inputs 801, 802; and 803 corresponding toinputs 501, 502, and 503, respectively, and withoutputs 871 and 873 corresponding tooutputs -
Control logic 890 for one embodiment may control 3-1 adder/subtractor 821,buffer 831,buffers 841, 842, and 843,multiplexer 851, and adder/subtractor 861 to perform a first pre-compare-select-add operation on first, second, and third input data received frominputs 801, 802, and 803, respectively, to output the selected result for the first pre-compare-select-add operation atoutput 871, and to output data indicating how a first result of a first addition or subtraction operation on input data compares to a second result of a second addition or subtraction operation on input data for the first pre-compare-select-add operation frombuffer 831 to output 873. - For one embodiment, 3-1 adder/subtractor 822,
buffer 832,buffers 841, 842, and 843,multiplexer 852, and adder/subtractor 862 are similarly coupled as 3-1 adder/subtractor 521, buffer 531,buffers multiplexer 551, and adder/subtractor 561, respectively, ofFIG. 5 , withinputs 801, 802, and 803 corresponding toinputs 501, 502, and 503, respectively, and withoutputs 875 and 874 corresponding tooutputs -
Control logic 890 for one embodiment may control 3-1 adder/subtractor 822,buffer 832,buffers 841, 842, and 843,multiplexer 852, and adder/subtractor 862 to perform a second pre-compare-select-add operation on first, second, and third input data received frominputs 801, 802, and 803, respectively, to output the selected result for the second pre-compare-select-add operation atoutput 875, and to output data indicating how a first result of a first addition or subtraction operation on input data compares to a second result of a second addition or subtraction operation on input data for the second pre-compare-select-add operation frombuffer 832 to output 874. - For one embodiment, 3-1 adder/
subtractor 823,buffer 831,buffers multiplexer 853, and adder/subtractor 863 are similarly coupled as 3-1 adder/subtractor 521, buffer 531,buffers multiplexer 551, and adder/subtractor 561, respectively, ofFIG. 5 , withinputs 804, 805, and 806 corresponding toinputs 503, 501, and 502, respectively, and withoutputs 872 and 873 corresponding tooutputs -
Control logic 890 for one embodiment may control 3-1 adder/subtractor 823,buffer 831,buffers multiplexer 853, and adder/subtractor 863 to perform a third pre-compare-select-add operation on fourth, fifth, and sixth input data received frominputs 804, 805, and 806, respectively, to output the selected result for the third pre-compare-select-add operation atoutput 872, and to output data indicating how a first result of a first addition or subtraction operation on input data compares to a second result of a second addition or subtraction operation on input data for the third pre-compare-select-add operation frombuffer 831 to output 873. - For one embodiment, 3-1 adder/subtractor 824,
buffer 832,buffers multiplexer 854, and adder/subtractor 864 are similarly coupled as 3-1 adder/subtractor 521, buffer 531,buffers multiplexer 551, and adder/subtractor 561, respectively, ofFIG. 5 , withinputs 804, 805, and 806 corresponding toinputs 503, 501, and 502, respectively, and withoutputs 876 and 874 corresponding tooutputs -
Control logic 890 for one embodiment may control 3-1 adder/subtractor 824,buffer 832,buffers multiplexer 854, and adder/subtractor 864 to perform a fourth pre-compare-select-add operation on fourth, fifth, and sixth input data received frominputs 804, 805, and 806, respectively, to output the selected result for the fourth pre-compare-select-add operation atoutput 876, and to output data indicating how a first result of a first addition or subtraction operation on input data compares to a second result of a second addition or subtraction operation on input data for the fourth pre-compare-select-add operation frombuffer 832 to output 874. - Although described as comprising two
buffers execution unit block 800 for another embodiment may comprise only one buffer to store such data for 3-1 adder/subtractors subtractors -
PCSA execution unit 205 for one embodiment may comprise a PCSAexecution unit block 900 andcontrol logic 990 coupled to PCSAexecution unit block 900, as illustrated inFIG. 9 .Control logic 990 for one embodiment may control PCSAexecution unit block 900 to perform one pre-compare-select-add operation and/or to perform multiple pre-compare-select add operations in parallel. - PCSA
execution unit block 900 hasinputs outputs pre-comparison circuitry 910 comprising 3-1 adder/subtractors buffers operation performance circuitry 940 comprisingmultiplexers buffers subtractors subtractors 921 and 922 and/or 3-1 adder/subtractors subtractors subtractors -
Inputs inputs FIG. 8 .Pre-comparison circuitry 910 generally corresponds to pre-comparison circuitry 810. Selection andoperation performance circuitry 940 generally corresponds to selection andoperation performance circuitry 840.Outputs outputs - Memory/register port(s) 981 and 982 generally correspond to memory/register port(s) 881 and 882, respectively.
Control logic 990 generally corresponds to controllogic 890. - For one embodiment, 3-1 adder/
subtractor 921,buffer 931,multiplexer 951,buffers subtractor 961 are similarly coupled as 3-1 adder/subtractor 721,buffer 731,multiplexer 751,buffers 741 and 743, and adder/subtractor 761, respectively, ofFIG. 7 , withinputs outputs outputs -
Control logic 990 for one embodiment may control 3-1 adder/subtractor 921,buffer 931,multiplexer 951,buffers subtractor 961 to perform a first pre-compare-select-add operation on first, second, and third input data received frominputs output 971, and to output data indicating how a first result of a first addition or subtraction operation on input data compares to a second result of a second addition or subtraction operation on input data for the first pre-compare-select-add operation frombuffer 931 tooutput 973. - For one embodiment, 3-1 adder/subtractor 922,
buffer 932, multiplexer 952,buffers subtractor 962 are similarly coupled as 3-1 adder/subtractor 721,buffer 731,multiplexer 751,buffers 741 and 743, and adder/subtractor 761, respectively, ofFIG. 7 , withinputs outputs 975 and 974 corresponding tooutputs -
Control logic 990 for one embodiment may control 3-1 adder/subtractor 922,buffer 932, multiplexer 952,buffers subtractor 962 to perform a second pre-compare-select-add operation on first, second, and third input data received frominputs output 975, and to output data indicating how a first result of a first addition or subtraction operation on input data compares to a second result of a second addition or subtraction operation on input data for the second pre-compare-select-add operation frombuffer 932 to output 974. - For one embodiment, 3-1 adder/
subtractor 923,buffer 931,multiplexer 953,buffers subtractor 963 are similarly coupled as 3-1 adder/subtractor 721,buffer 731,multiplexer 751,buffers 743 and 741, and adder/subtractor 761, respectively, ofFIG. 7 , with inputs 904, 905, and 906 corresponding to inputs 703, 701, and 702, respectively, and withoutputs outputs -
Control logic 990 for one embodiment may control 3-1 adder/subtractor 923,buffer 931,multiplexer 953,buffers subtractor 963 to perform a third pre-compare-select-add operation on fourth, fifth, and sixth input data received from inputs 904, 905, and 906, respectively, to output the selected result for the third pre-compare-select-add operation atoutput 972, and to output data indicating how a first result of a first addition or subtraction operation on input data compares to a second result of a second addition or subtraction operation on input data for the third pre-compare-select-add operation frombuffer 931 tooutput 973. - For one embodiment, 3-1 adder/
subtractor 924,buffer 932, multiplexer 954,buffers subtractor 964 are similarly coupled as 3-1 adder/subtractor 721,buffer 731,multiplexer 751,buffers 743 and 741, and adder/subtractor 761, respectively, ofFIG. 7 , with inputs 904, 905, and 906 corresponding to inputs 703, 701, and 702, respectively, and withoutputs 976 and 974 corresponding tooutputs -
Control logic 990 for one embodiment may control 3-1 adder/subtractor 924,buffer 932, multiplexer 954,buffers subtractor 964 to perform a fourth pre-compare-select-add operation on fourth, fifth, and sixth input data received from inputs 904, 905, and 906, respectively, to output the selected result for the fourth pre-compare-select-add operation atoutput 976, and to output data indicating how a first result of a first addition or subtraction operation on input data compares to a second result of a second addition or subtraction operation on input data for the fourth pre-compare-select-add operation frombuffer 932 to output 974. - Although described as comprising two
buffers execution unit block 900 for another embodiment may comprise only one buffer to store such data for 3-1 adder/subtractors subtractors - PCSA
execution unit block 900 for one embodiment may be implemented using hardware of a digital signal processing (DSP) core with a 3-1 adder/subtractor associated with one or more multiplier-accumulators (MACs) and with an adder/subtractor between the accumulators of the MAC and memory or register ports.Buffers multiplexers 951 and 952 may be implemented using corresponding accumulators and multiplexers, respectively, of one MAC, and buffers 945 and 946 andmultiplexers 953 and 954 may be implemented using corresponding accumulators and multiplexers, respectively, of another MAC. -
Instruction processing logic 200 for another embodiment may perform one or more pre-compare-select-add operations in accordance with a flow diagram 1000 as illustrated inFIG. 10 . Although flow diagram 1000 is described in connection withPCSA execution unit 205, any one or morePCSA execution units 103, such as PCSA execution unit 206 for example, may be used to perform one or more pre-compare-select-add operations in accordance with flow diagram 1000. -
Blocks 1002, 1004, 1006, 1008, 1010, and 1012 generally correspond toblocks FIG. 3 . - For block 1014,
PCSA execution unit 205 performs for one or more pre-compare-select-add operations both the first operation to produce the first result and the second operation to produce the second result.PCSA execution unit 205 may perform the first operation and the second operation in any suitable manner. -
Blocks blocks FIG. 3 . -
Instruction processing logic 200 may perform operations for blocks 1002-1024 in any suitable order and may or may not overlap in time the performance of any suitable operation with any other suitable operation.Instruction processing logic 200 for one embodiment may at least partially overlap in time the performance of suitable operations for any blocks 1002-1024 in a pipelined manner. -
Instruction processing logic 200 for one embodiment may support saturation, precision adjustment, and/or data packing in performing one or more pre-compare-select-add operations in accordance with flow diagram 1000. - Although described in the context of performing pre-compare-select-add operations using a SIMD technique, one or more
PCSA execution units 103 for another embodiment may be controlled to perform one or more pre-compare-select-add operations in accordance with flow diagram 1000 using any other suitable technique. - Each of one or more
PCSA execution units 103, such asPCSA execution unit 205 and/or PCSA execution unit 206 for example, may have any suitable number of inputs to receive any suitable number of input data for block 1006, may comprise any suitable circuitry to perform any suitable number of one or more pre-compare-select-add operations on input data forblocks 1008, 1010, 1012, and 1014, and may have any suitable number of outputs to output any suitable number of selected results forblock 1016 and/or data indicating how a first result compares to a second result for one or more pre-compare-select-add operations forblocks 1020 and/or 1024. One or more PCSA execution units of PCSA execution unit(s) 103 may or may not be implemented similarly. -
PCSA execution unit 205 for one embodiment may comprise PCSAexecution unit block 400 andcontrol logic 490, as illustrated inFIG. 4 . -
Control logic 490 for one embodiment may controlpre-comparison circuitry 410 for block 1006 ofFIG. 10 to receive first, second, and third input data atinputs ports 481 and for block 1008 to identify how a first result of a first operation on input data compares to a second result of a second operation on input data for a pre-compare-select-add operation.Control logic 490 for one embodiment may controlpre-comparison circuitry 410 forblock 1010 to store data indicating how the first result compares to the second result for one or more pre-compare-select-add operations.Control logic 490 for one embodiment may controlpre-comparison circuitry 410 forblocks 1020 and/or 1024 to output to one or more memory and/or registerports 482 atoutput 472 data indicating how the first result compares to the second result for one or more pre-compare-select-add operations. -
Control logic 490 for one embodiment may control selection andoperation performance circuitry 440 to receive first, second, and third input data frominputs pre-comparison circuitry 410 data indicating how a first result of a first operation on input data compares to a second result of a second operation on input data for a pre-compare-select-add operation.Control logic 490 for one embodiment may control selection andoperation performance circuitry 440 for block 1012 ofFIG. 10 to select the first result or the second result based on the received data.Control logic 490 for one embodiment may control selection andoperation performance circuitry 440 for block 1014 to perform the first operation to produce the first result and the second operation to produce the second result and forblock 1016 to output the selected result to one or more memory and/or registerports 482 atoutput 471. - PCSA
execution unit block 400 may comprise any suitable circuitry forpre-comparison circuitry 410 and for selection andoperation performance circuitry 440. -
PCSA execution unit 205 for one embodiment may comprise a PCSAexecution unit block 1100 andcontrol logic 1190 coupled to PCSAexecution unit block 1100, as illustrated inFIG. 11 . PCSAexecution unit block 1100 has inputs 1101, 1102, and 1103, hasoutputs 1171 and 1172, and comprisespre-comparison circuitry 1110 and selection andoperation performance circuitry 1140. - Inputs 1101, 1102, and 1103 generally correspond to
inputs FIG. 4 .Outputs 1171 and 1172 generally correspond tooutputs Pre-comparison circuitry 1110 and selection andoperation performance circuitry 1140 generally correspond topre-comparison circuitry 410 and selection andoperation performance circuitry 440, respectively. Memory/register port(s) 1181 and 1182 generally correspond to memory/register port(s) 481 and 482, respectively. -
Pre-comparison circuitry 1110 for one embodiment comprises shift circuitry 1111, a 3-1 adder/subtractor 1121, and a buffer 1131. Shift circuitry 1111, 3-1 adder/subtractor 1121, and buffer 1131 generally correspond to shiftcircuitry 711, 3-1 adder/subtractor 721, and buffer 731 ofFIG. 7 . - Selection and
operation performance circuitry 1140 for one embodiment comprises adder/subtractors subtractors - Adder/
subtractor 1161 has inputs coupled to inputs 1101 and 1103 and an output coupled to an input of multiplexer 1151.Control logic 1190 for one embodiment may control adder/subtractor 1161 to receive first input data and third input data at inputs 1101 and 1103, respectively, to perform for block 1014 ofFIG. 10 a first addition or subtraction operation on the first and third input data to produce a first result for a pre-compare-select-add operation, and to output the first result to multiplexer 1151. - Adder/
subtractor 1162 has inputs coupled to inputs 1102 and 1103 and an output coupled to an input of multiplexer 1151.Control logic 1190 for one embodiment may control adder/subtractor 1162 to receive second input data and third input data at inputs 1102 and 1103, respectively, to perform for block 1014 ofFIG. 10 a second addition or subtraction operation on the second and third input data to produce a second result for the pre-compare-select-add operation, and to output the second result to multiplexer 1151. - Multiplexer 1151 has inputs coupled to outputs of adder/
subtractors output 1171.Control logic 1190 for one embodiment for block 1012 ofFIG. 10 may control multiplexer 1151 to receive the first result output from adder/subtractor 1161 and the second result output from adder/subtractor 1162 and may control 3-1 adder/subtractor 1121 to output data indicating how the first result compares to the second result to control multiplexer 1151 forblock 1016 to output in a selective manner either the received first result or the received second result atoutput 1171 to one or more memory and/or register ports 1182. -
Control logic 1190 for one embodiment may controlpre-comparison circuitry 1110 and selection andoperation performance circuitry 1140 to perform a pre-compare-select-add operation on first, second, and third input data received from inputs 1101, 1102, and 1103, respectively, to output the selected result for the pre-compare-select-add operation atoutput 1171, and to output data indicating how a first result of a first addition or subtraction operation on input data compares to a second result of a second addition or subtraction operation on input data for the pre-compare-select-add operation from buffer 113 1 to output 1172 during a single computation cycle.Control logic 1190 for one embodiment may then control PCSAexecution unit block 1100 to receive new input data for a new pre-compare-select-add operation for each of multiple consecutive computation cycles and to output a selected result for a completed pre-compare-select-add operation for each of multiple consecutive computation cycles. -
PCSA execution unit 205 for one embodiment may comprise a PCSAexecution unit block 1200 andcontrol logic 1290 coupled to PCSAexecution unit block 1200, as illustrated inFIG. 12 .Control logic 1290 for one embodiment may control PCSAexecution unit block 1200 to perform one pre-compare-select-add operation and/or to perform multiple pre-compare-select add operations in parallel. - PCSA
execution unit block 1200 hasinputs outputs pre-comparison circuitry 1210 comprising 3-1 adder/subtractors buffers operation performance circuitry 1240 comprising adder/subtractors multiplexers - 3-1 adder/
subtractors 1221 and 1222 and/or 3-1 adder/subtractors 1223 and 1224 for one embodiment may be implemented as dual 3-1 adder/subtractors. Any suitable two adder/subtractors -
Inputs inputs FIG. 8 .Pre-comparison circuitry 1210 generally corresponds to pre-comparison circuitry 810. Selection andoperation performance circuitry 1240 generally corresponds to selection andoperation performance circuitry 840.Outputs outputs - Memory/register port(s) 1281 and 1282 generally correspond to memory/register port(s) 881 and 882, respectively.
Control logic 1290 generally corresponds to controllogic 890. - For one embodiment, 3-1 adder/subtractor 1221,
buffer 1231, adder/subtractors multiplexer 1251 are similarly coupled as 3-1 adder/subtractor 1121, buffer 1131, adder/subtractors FIG. 11 , with inputs 1201, 1202, and 1203 corresponding to inputs 1101, 1102, and 1103, respectively, and withoutputs 1271 and 1273 corresponding tooutputs 1171 and 1172, respectively. -
Control logic 1290 for one embodiment may control 3-1 adder/subtractor 1221,buffer 1231, adder/subtractors multiplexer 1251 to perform a first pre-compare-select-add operation on first, second, and third input data received from inputs 1201, 1202, and 1203, respectively, to output the selected result for the first pre-compare-select-add operation at output 1271, and to output data indicating how a first result of a first addition or subtraction operation on input data compares to a second result of a second addition or subtraction operation on input data for the first pre-compare-select-add operation frombuffer 1231 tooutput 1273. - For one embodiment, 3-1 adder/
subtractor 1222,buffer 1232, adder/subtractors multiplexer 1252 are similarly coupled as 3-1 adder/subtractor 1121, buffer 1131, adder/subtractors FIG. 11 , with inputs 1201, 1202, and 1203 corresponding to inputs 1101, 1102, and 1103, respectively, and withoutputs 1275 and 1274 corresponding to outputs 117i and 1172, respectively. -
Control logic 1290 for one embodiment may control 3-1 adder/subtractor 1222,buffer 1232, adder/subtractors multiplexer 1252 to perform a second pre-compare-select-add operation on first, second, and third input data received from inputs 1201, 1202, and 1203, respectively, to output the selected result for the second pre-compare-select-add operation at output 1275, and to output data indicating how a first result of a first addition or subtraction operation on input data compares to a second result of a second addition or subtraction operation on input data for the second pre-compare-select-add operation frombuffer 1232 tooutput 1274. - For one embodiment, 3-1 adder/
subtractor 1223,buffer 1231, adder/subtractors 1265 and 1266, andmultiplexer 1253 are similarly coupled as 3-1 adder/subtractor 1121, buffer 1131, adder/subtractors FIG. 11 , withinputs outputs 1272 and 1273 corresponding tooutputs 1171 and 1172, respectively. -
Control logic 1290 for one embodiment may control 3-1 adder/subtractor 1223,buffer 1231, adder/subtractors 1265 and 1266, andmultiplexer 1253 to perform a third pre-compare-select-add operation on fourth, fifth, and sixth input data received frominputs buffer 1231 tooutput 1273. - For one embodiment, 3-1 adder/subtractor 1224,
buffer 1232, adder/subtractors 1267 and 1268, and multiplexer 1254 are similarly coupled as 3-1 adder/subtractor 1121, buffer 1131, adder/subtractors FIG. 11 , withinputs outputs outputs 1171 and 1172, respectively. -
Control logic 1290 for one embodiment may control 3-1 adder/subtractor 1224,buffer 1232, adder/subtractors 1267 and 1268, and multiplexer 1254 to perform a fourth pre-compare-select-add operation on fourth, fifth, and sixth input data received frominputs output 1276, and to output data indicating how a first result of a first addition or subtraction operation on input data compares to a second result of a second addition or subtraction operation on input data for the fourth pre-compare-select-add operation frombuffer 1232 tooutput 1274. - Although described as comprising two
buffers execution unit block 1200 for another embodiment may comprise only one buffer to store such data for 3-1 adder/subtractors subtractors -
Processor 102 ofFIG. 1 may use one or morePCSA execution units 103 for one embodiment to help accelerate the performance of add-compare-select operations in performing any suitable digital signal processing such as pattern recognition, for example, for error correction in communications applications, for image recognition applications, for speech recognition applications, and/or for handwriting recognition applications, for example. - As one example,
processor 102 may use one or morePCSA execution units 103 to perform metric updates for one or more states for a suitable Viterbi algorithm. One or morePCSA execution units 103 may be used to compute, for example, one or more Viterbi butterflies, for example. For a Viterbi algorithm having a constraint length of K=5 and a coding rate of ½,PCSA execution unit 205 ofFIGS. 8, 9 , and 12, for example, for one embodiment may compute the following Viterbi butterfly: - new_metric(0)=max(old_metric(0)+sum, old_metric(1)−sum); and
- new_metric(8)=max(old_metric(0)−sum, old_metric(1)+sum)
- in parallel with the following Viterbi butterfly:
- new_metric(1)=max(old_metric(2)+difference, old_metric(3)−difference); and
- new_metric(9)=max(old_metric(2)−difference, old_metric(3)+difference)
- for the Viterbi algorithm where:
- new_metric(i) is a new accumulated metric value for state i;
- old_metric(i) is an old accumulated metric value for state i; and
- sum and difference are local distance values based on soft-decision inputs.
-
Instruction processing logic 200 for one embodiment may compute these Viterbi butterflies, for example, by performing, in accordance with blocks 302-316 ofFIG. 3 or with blocks 1002-1016 ofFIG. 10 , a first pre-compare-select-add operation to produce new_metric(0), a second pre-compare-select-add operation to produce new_metric(8), a third pre-compare-select-add operation to produce new_metric(1), and a fourth pre-compare-select-add operation to produce new_metric(9). -
PCSA execution unit 205 for one embodiment may receive old_metric(0), old_metric(1), sum, difference, old_metric(2), and old_metric(3) as first, second, third, fourth, fifth, and sixth input data, respectively. - For the first pre-compare-select-add operation,
PCSA execution unit 205 may identify whether the result of the operation old_metric(0)+sum is greater than or equal to the result of the operation old_metric(1)−sum. If so,PCSA execution unit 205 may perform the operation old_metric(0)+sum and output the result for new_metric(0). Otherwise,PCSA execution unit 205 may perform the operation old_metric(1)−sum and output the result as new_metric(0). - For the second pre-compare-select-add operation,
PCSA execution unit 205 may identify whether the result of the operation old_metric(0)−sum is greater than or equal to the result of the operation old_metric(1)+sum. If so,PCSA execution unit 205 may perform the operation old_metric(0)−sum and output the result for new_metric(8). Otherwise,PCSA execution unit 205 may perform the operation old_metric(1)+sum and output the result as new_metric(8). - For the third pre-compare-select-add operation,
PCSA execution unit 205 may identify whether the result of the operation old_metric(2)+difference is greater than or equal to the result of the operation old_metric(3)−difference. If so,PCSA execution unit 205 may perform the operation old_metric(2)+difference and output the result for new_metric(1). Otherwise,PCSA execution unit 205 may perform the operation old_metric(3)−difference and output the result as new_metric(1). - For the fourth pre-compare-select-add operation,
PCSA execution unit 205 may identify whether the result of the operation old_metric(2)−difference is greater than or equal to the result of the operation old_metric(3)+difference. If so,PCSA execution unit 205 may perform the operation old_metric(2)−difference and output the result for new_metric(9). Otherwise,PCSA execution unit 205 may perform the operation old_metric(3)+difference and output the result as new_metric(9). -
Instruction processing logic 200 for one embodiment may similarly usePCSA execution unit 205 to compute the Viterbi butterfly to produce new_metric(2) and new_metric(10) in parallel with the Viterbi butterfly to produce new_metric(3) and new_metric(11), to compute the Viterbi butterfly to produce new_metric(4) and new_metric(12) in parallel with the Viterbi butterfly to produce new_metric(5) and new_metric(13), and to compute the Viterbi butterfly to produce new_metric(6) and new_metric(14) in parallel with the Viterbi butterfly to produce new_metric(7) and new_metric(15) as follows: - new_metric(2)=max(old_metric(4)+sum, old_metric(5)−sum);
- new_metric(10)=max(old_metric(4)−sum, old_metric(5)+sum);
- new_metric(3)=max(old_metric(6)+difference, old_metric(7)−difference);
- new_metric(11)=max(old_metric(6)−difference, old_metric(7)+difference);
- new_metric(4)=max(old_metric(8)+sum, old_metric(9)−sum);
- new_metric(12)=max(old_metric(8)−sum, old_metric(9)+sum);
- new_metric(5)=max(old_metric(10)+difference, old_metric(11)−difference);
- new_metric(13)=max(old_metric(1 0)−difference, old_metric(11)+difference);
- new_metric(6)=max(old_metric(12)+sum, old_metric(13)−sum);
- new_metric(14)=max(old_metric(12)−sum, old_metric(13)+sum);
- new_metric(7)=max(old_metric(14)+difference, old_metric(15)−difference); and
- new_metric(15)=max(old_metric(14)−difference, old_metric(15)+difference).
- Because the sum and difference input data are used for each pair of Viterbi butterfly computations,
instruction processing logic 200 for one embodiment may store the sum and difference input data inregisters 230 and fetch old_metric(i) input data from memory for each pair of Viterbi butterfly computations to help reduce memory bandwidth in fetching input data forPCSA execution unit 205. - Because the new_metric(i) output data may be used as old_metric(i) input data for a subsequent metric update,
PCSA execution unit 205 for one embodiment may output new_Metric(0) and new_metric(1), for example, in a packed format to the same memory port and new_metric(8) and new_metric(9), for example, in a packed format to the same memory port to help write the new_metric(i) output data in a continuous area of memory and to help load and store the new_metric(i) data in accordance with a SIMD technique. - For one or more Viterbi butterfly computations,
PCSA execution unit 205 for one embodiment may store, in accordance withblock 310 ofFIG. 3 or block 1010 ofFIG. 10 , data indicating how a first result of a first operation compares to a second result of a second operation for one or more pre-compare-select-add operations. Such data may be used, for example, to perform a traceback routine for the Viterbi algorithm. - Although described as computing two Viterbi butterflies in parallel,
PCSA execution unit 205 may comprise suitable circuitry to perform one, three, four, or more Viterbi butterflies in parallel. - Although described as performing pre-compare-select-add operations to perform a Viterbi algorithm,
PCSA execution unit 205 may be used to perform pre-compare-select-add operations for any suitable one or more applications. - Although described as performing pre-compare-select-add operations,
PCSA execution unit 205 for one embodiment may be used to perform any suitable operation, such as addition, subtraction, and/or a comparison operation for example. - In the foregoing description, one or more embodiments of the present invention have been described. It will, however, be evident that various modifications and changes may be made thereto without departing from the broader spirit or scope of the present invention as defined in the appended claims. The specification and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense.
Claims (16)
1. A machine-implemented method comprising
identifying how a first result of a first operation compares to a second result of a second operation;
selecting the first result or the second result in response to the identifying; and
performing the first operation or the second operation in response to the selecting to produce the selected result.
2. The method of claim 1 , wherein the identifying comprises identifying how a first result of a first operation compares to a second result of a second operation without producing the first result or the second result.
3. The method of claim 1 , comprising storing data indicating how the first result of the first operation compares to the second result of the second operation.
4-5. (canceled)
6. The method of claim 1 , comprising performing the identifying, selecting, and performing for a Viterbi algorithm.
7. A machine-implemented method comprising
identifying how a first result of a first operation compares to a second result of a second operation without producing the first result or the second result;
performing the first operation to produce the first result and the second operation to produce the second result; and
selecting the produced first result or the produced second result in response to the identifying.
8. The method of claim 7 , comprising storing data indicating how the first result of the first operation compares to the second result of the second operation.
9-10. (canceled)
11. The method of claim 7 , comprising performing the identifying, selecting, and performing for a Viterbi algorithm.
12. An apparatus comprising
pre-comparison circuitry to identify how a first result of a first operation compares to a second result of a second operation and to output data indicating how the first result compares to the second result; and
selection and operation performance circuitry to select the first result or the second result in response to the data indicating how the first result compares to the second result and to perform the first operation or the second operation to produce the selected result.
13. The apparatus of claim 12 , the pre-comparison circuitry to identify how a first result of a first operation compares to a second result of a second operation without producing the first result or the second result.
14. The apparatus of claim 12 , the pre-comparison circuitry to store the data indicating how the first result of the first operation compares to the second result of the second operation.
15-16. (canceled)
17. An apparatus comprising
pre-comparison circuitry to identify how a first result of a first operation compares to a second result of a second operation without producing the first result or the second result and to output data indicating how the first result compares to the second result; and
selection and operation performance circuitry to perform the first operation to produce the first result and the second operation to produce the second result and to select the produced first result or the produced second result in response to the data indicating how the first result compares to the second result.
18. The apparatus of claim 17 , the pre-comparison circuitry to store the data indicating how the first result of the first operation compares to the second result of the second operation.
19-29. (canceled)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US11/049,436 US20050172210A1 (en) | 2002-03-29 | 2005-02-01 | Add-compare-select accelerator using pre-compare-select-add operation |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US10/112,969 US6928605B2 (en) | 2002-03-29 | 2002-03-29 | Add-compare-select accelerator using pre-compare-select-add operation |
US11/049,436 US20050172210A1 (en) | 2002-03-29 | 2005-02-01 | Add-compare-select accelerator using pre-compare-select-add operation |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US10/112,969 Continuation US6928605B2 (en) | 2002-03-29 | 2002-03-29 | Add-compare-select accelerator using pre-compare-select-add operation |
Publications (1)
Publication Number | Publication Date |
---|---|
US20050172210A1 true US20050172210A1 (en) | 2005-08-04 |
Family
ID=28453472
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US10/112,969 Expired - Fee Related US6928605B2 (en) | 2002-03-29 | 2002-03-29 | Add-compare-select accelerator using pre-compare-select-add operation |
US11/049,436 Abandoned US20050172210A1 (en) | 2002-03-29 | 2005-02-01 | Add-compare-select accelerator using pre-compare-select-add operation |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US10/112,969 Expired - Fee Related US6928605B2 (en) | 2002-03-29 | 2002-03-29 | Add-compare-select accelerator using pre-compare-select-add operation |
Country Status (1)
Country | Link |
---|---|
US (2) | US6928605B2 (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110090779A1 (en) * | 2009-10-16 | 2011-04-21 | Mediatek Inc. | Apparatus for generating viterbi-processed data |
US20110090773A1 (en) * | 2009-10-16 | 2011-04-21 | Chih-Ching Yu | Apparatus for generating viterbi-processed data using an input signal obtained from reading an optical disc |
US20110167323A1 (en) * | 2010-01-07 | 2011-07-07 | Mediatek Inc. | Error-Correcting Apparatus and Method Thereof |
US20110246751A1 (en) * | 2006-09-22 | 2011-10-06 | Julier Michael A | Instruction and logic for processing text strings |
US8432780B1 (en) | 2012-05-10 | 2013-04-30 | Mediatek Inc. | Viterbi decoding apparatus using level information generator supporting different hardware configurations to generate level information to Viterbi decoder and related method thereof |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050147414A1 (en) * | 2003-12-30 | 2005-07-07 | Morrow Warren R. | Low latency optical memory bus |
US11908519B2 (en) * | 2021-08-31 | 2024-02-20 | International Business Machines Corporation | Pre-compare operation for compact low-leakage dual-compare cam cell |
Citations (28)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4743967A (en) * | 1986-03-14 | 1988-05-10 | Fujitsu Limited | Differential coding apparatus having an optimum predicted value determining circuit |
US5181209A (en) * | 1989-04-03 | 1993-01-19 | Deutsche Forschungsanstalt Fur Luft- Und Raumfahrt E.V. | Method for generalizing the viterbi algorithm and devices for executing the method |
US5418795A (en) * | 1991-09-13 | 1995-05-23 | Sony Corporation | Viterbi decoder with path metric comparisons for increased decoding rate and with normalization timing calculation |
US5459798A (en) * | 1993-03-19 | 1995-10-17 | Intel Corporation | System and method of pattern recognition employing a multiprocessing pipelined apparatus with private pattern memory |
US5560039A (en) * | 1993-02-25 | 1996-09-24 | Intel Corporation | Apparatus and method for a four address arithmetic unit |
US5638408A (en) * | 1994-11-14 | 1997-06-10 | Nec Corporation | Variable transmission bit rate discrimination method and apparatus |
US5752001A (en) * | 1995-06-01 | 1998-05-12 | Intel Corporation | Method and apparatus employing Viterbi scoring using SIMD instructions for data recognition |
US5825921A (en) * | 1993-03-19 | 1998-10-20 | Intel Corporation | Memory transfer apparatus and method useful within a pattern recognition system |
US5859861A (en) * | 1995-06-21 | 1999-01-12 | Hyundai Electronics Ind. Co., Ltd. | High speed viterbi decoder |
US5881106A (en) * | 1994-09-05 | 1999-03-09 | Sgs-Thomson Microelectronics S.A. | Signal processing circuit to implement a Viterbi algorithm |
US5907842A (en) * | 1995-12-20 | 1999-05-25 | Intel Corporation | Method of sorting numbers to obtain maxima/minima values with ordering |
US5987638A (en) * | 1997-04-22 | 1999-11-16 | Lsi Logic Corporation | Apparatus and method for computing the result of a viterbi equation in a single cycle |
US6081562A (en) * | 1997-10-22 | 2000-06-27 | Hitachi Ltd. | Implementing reduced-state viterbi detectors |
US6255856B1 (en) * | 1998-09-11 | 2001-07-03 | Hyundai Electronics Industries Co., Ltd. | Comparator |
US6324226B1 (en) * | 1999-11-22 | 2001-11-27 | Matsushita Electric Industrial Co., Ltd. | Viterbi decoder |
US6408420B1 (en) * | 1998-07-17 | 2002-06-18 | Nec Corporation | Viterbi decoding method and apparatus thereof |
US6467064B1 (en) * | 1999-03-19 | 2002-10-15 | Fujitsu Limited | Viterbi decoder |
US6484286B1 (en) * | 1999-09-01 | 2002-11-19 | Lsi Logic Corporation | Error signal calculation from a Viterbi output |
US6615228B1 (en) * | 2000-05-30 | 2003-09-02 | Hewlett-Packard Development Company, Lp | Selection based rounding system and method for floating point operations |
US6639954B2 (en) * | 1998-05-28 | 2003-10-28 | Fujitsu Limited | Mobile communication terminal and transmission-bit-rate detection method |
US6690750B1 (en) * | 1999-12-23 | 2004-02-10 | Texas Instruments Incorporated | Flexible Viterbi decoder for wireless applications |
US6711218B2 (en) * | 1996-06-12 | 2004-03-23 | Ericsson Inc. | System and method for received signal decoding |
US6807134B2 (en) * | 1999-12-28 | 2004-10-19 | Matsushita Electric Industrial Co., Ltd. | Asymmetry detection apparatus, jitter detection apparatus, and recording/reproduction apparatus |
US6813744B1 (en) * | 1999-08-09 | 2004-11-02 | Infineon Technologies Ag | ACS unit for a viterbi decoder |
US6826588B2 (en) * | 1999-12-23 | 2004-11-30 | Intel Corporation | Method and apparatus for a fast comparison in redundant form arithmetic |
US6954841B2 (en) * | 2002-06-26 | 2005-10-11 | International Business Machines Corporation | Viterbi decoding for SIMD vector processors with indirect vector element access |
US6973615B1 (en) * | 2000-12-15 | 2005-12-06 | Conexant Systems, Inc. | System of and method for decoding trellis codes |
US7020830B2 (en) * | 2001-12-24 | 2006-03-28 | Agere Systems Inc. | High speed add-compare-select operations for use in viterbi decoders |
-
2002
- 2002-03-29 US US10/112,969 patent/US6928605B2/en not_active Expired - Fee Related
-
2005
- 2005-02-01 US US11/049,436 patent/US20050172210A1/en not_active Abandoned
Patent Citations (31)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4743967A (en) * | 1986-03-14 | 1988-05-10 | Fujitsu Limited | Differential coding apparatus having an optimum predicted value determining circuit |
US5181209A (en) * | 1989-04-03 | 1993-01-19 | Deutsche Forschungsanstalt Fur Luft- Und Raumfahrt E.V. | Method for generalizing the viterbi algorithm and devices for executing the method |
US5418795A (en) * | 1991-09-13 | 1995-05-23 | Sony Corporation | Viterbi decoder with path metric comparisons for increased decoding rate and with normalization timing calculation |
US5717908A (en) * | 1993-02-25 | 1998-02-10 | Intel Corporation | Pattern recognition system using a four address arithmetic logic unit |
US5560039A (en) * | 1993-02-25 | 1996-09-24 | Intel Corporation | Apparatus and method for a four address arithmetic unit |
US5825921A (en) * | 1993-03-19 | 1998-10-20 | Intel Corporation | Memory transfer apparatus and method useful within a pattern recognition system |
US5881312A (en) * | 1993-03-19 | 1999-03-09 | Intel Corporation | Memory transfer apparatus and method useful within a pattern recognition system |
US5459798A (en) * | 1993-03-19 | 1995-10-17 | Intel Corporation | System and method of pattern recognition employing a multiprocessing pipelined apparatus with private pattern memory |
US5881106A (en) * | 1994-09-05 | 1999-03-09 | Sgs-Thomson Microelectronics S.A. | Signal processing circuit to implement a Viterbi algorithm |
US5638408A (en) * | 1994-11-14 | 1997-06-10 | Nec Corporation | Variable transmission bit rate discrimination method and apparatus |
US5752001A (en) * | 1995-06-01 | 1998-05-12 | Intel Corporation | Method and apparatus employing Viterbi scoring using SIMD instructions for data recognition |
US5859861A (en) * | 1995-06-21 | 1999-01-12 | Hyundai Electronics Ind. Co., Ltd. | High speed viterbi decoder |
US5907842A (en) * | 1995-12-20 | 1999-05-25 | Intel Corporation | Method of sorting numbers to obtain maxima/minima values with ordering |
US6128614A (en) * | 1995-12-20 | 2000-10-03 | Intel Corporation | Method of sorting numbers to obtain maxima/minima values with ordering |
US6711218B2 (en) * | 1996-06-12 | 2004-03-23 | Ericsson Inc. | System and method for received signal decoding |
US5987638A (en) * | 1997-04-22 | 1999-11-16 | Lsi Logic Corporation | Apparatus and method for computing the result of a viterbi equation in a single cycle |
US6081562A (en) * | 1997-10-22 | 2000-06-27 | Hitachi Ltd. | Implementing reduced-state viterbi detectors |
US6639954B2 (en) * | 1998-05-28 | 2003-10-28 | Fujitsu Limited | Mobile communication terminal and transmission-bit-rate detection method |
US6408420B1 (en) * | 1998-07-17 | 2002-06-18 | Nec Corporation | Viterbi decoding method and apparatus thereof |
US6255856B1 (en) * | 1998-09-11 | 2001-07-03 | Hyundai Electronics Industries Co., Ltd. | Comparator |
US6467064B1 (en) * | 1999-03-19 | 2002-10-15 | Fujitsu Limited | Viterbi decoder |
US6813744B1 (en) * | 1999-08-09 | 2004-11-02 | Infineon Technologies Ag | ACS unit for a viterbi decoder |
US6484286B1 (en) * | 1999-09-01 | 2002-11-19 | Lsi Logic Corporation | Error signal calculation from a Viterbi output |
US6324226B1 (en) * | 1999-11-22 | 2001-11-27 | Matsushita Electric Industrial Co., Ltd. | Viterbi decoder |
US6690750B1 (en) * | 1999-12-23 | 2004-02-10 | Texas Instruments Incorporated | Flexible Viterbi decoder for wireless applications |
US6826588B2 (en) * | 1999-12-23 | 2004-11-30 | Intel Corporation | Method and apparatus for a fast comparison in redundant form arithmetic |
US6807134B2 (en) * | 1999-12-28 | 2004-10-19 | Matsushita Electric Industrial Co., Ltd. | Asymmetry detection apparatus, jitter detection apparatus, and recording/reproduction apparatus |
US6615228B1 (en) * | 2000-05-30 | 2003-09-02 | Hewlett-Packard Development Company, Lp | Selection based rounding system and method for floating point operations |
US6973615B1 (en) * | 2000-12-15 | 2005-12-06 | Conexant Systems, Inc. | System of and method for decoding trellis codes |
US7020830B2 (en) * | 2001-12-24 | 2006-03-28 | Agere Systems Inc. | High speed add-compare-select operations for use in viterbi decoders |
US6954841B2 (en) * | 2002-06-26 | 2005-10-11 | International Business Machines Corporation | Viterbi decoding for SIMD vector processors with indirect vector element access |
Cited By (24)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9703564B2 (en) | 2006-09-22 | 2017-07-11 | Intel Corporation | Instruction and logic for processing text strings |
US11023236B2 (en) | 2006-09-22 | 2021-06-01 | Intel Corporation | Instruction and logic for processing text strings |
US9632784B2 (en) | 2006-09-22 | 2017-04-25 | Intel Corporation | Instruction and logic for processing text strings |
US20110246751A1 (en) * | 2006-09-22 | 2011-10-06 | Julier Michael A | Instruction and logic for processing text strings |
US11029955B2 (en) | 2006-09-22 | 2021-06-08 | Intel Corporation | Instruction and logic for processing text strings |
US8825987B2 (en) | 2006-09-22 | 2014-09-02 | Intel Corporation | Instruction and logic for processing text strings |
US9063720B2 (en) * | 2006-09-22 | 2015-06-23 | Intel Corporation | Instruction and logic for processing text strings |
US9069547B2 (en) | 2006-09-22 | 2015-06-30 | Intel Corporation | Instruction and logic for processing text strings |
US9448802B2 (en) | 2006-09-22 | 2016-09-20 | Intel Corporation | Instruction and logic for processing text strings |
US9495160B2 (en) | 2006-09-22 | 2016-11-15 | Intel Corporation | Instruction and logic for processing text strings |
US11537398B2 (en) | 2006-09-22 | 2022-12-27 | Intel Corporation | Instruction and logic for processing text strings |
US9645821B2 (en) | 2006-09-22 | 2017-05-09 | Intel Corporation | Instruction and logic for processing text strings |
US9740490B2 (en) | 2006-09-22 | 2017-08-22 | Intel Corporation | Instruction and logic for processing text strings |
US9720692B2 (en) | 2006-09-22 | 2017-08-01 | Intel Corporation | Instruction and logic for processing text strings |
US10929131B2 (en) | 2006-09-22 | 2021-02-23 | Intel Corporation | Instruction and logic for processing text strings |
US9740489B2 (en) | 2006-09-22 | 2017-08-22 | Intel Corporation | Instruction and logic for processing text strings |
US9772846B2 (en) | 2006-09-22 | 2017-09-26 | Intel Corporation | Instruction and logic for processing text strings |
US9772847B2 (en) | 2006-09-22 | 2017-09-26 | Intel Corporation | Instruction and logic for processing text strings |
US9804848B2 (en) | 2006-09-22 | 2017-10-31 | Intel Corporation | Instruction and logic for processing text strings |
US10261795B2 (en) | 2006-09-22 | 2019-04-16 | Intel Corporation | Instruction and logic for processing text strings |
US20110090779A1 (en) * | 2009-10-16 | 2011-04-21 | Mediatek Inc. | Apparatus for generating viterbi-processed data |
US20110090773A1 (en) * | 2009-10-16 | 2011-04-21 | Chih-Ching Yu | Apparatus for generating viterbi-processed data using an input signal obtained from reading an optical disc |
US20110167323A1 (en) * | 2010-01-07 | 2011-07-07 | Mediatek Inc. | Error-Correcting Apparatus and Method Thereof |
US8432780B1 (en) | 2012-05-10 | 2013-04-30 | Mediatek Inc. | Viterbi decoding apparatus using level information generator supporting different hardware configurations to generate level information to Viterbi decoder and related method thereof |
Also Published As
Publication number | Publication date |
---|---|
US6928605B2 (en) | 2005-08-09 |
US20030188244A1 (en) | 2003-10-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9639369B2 (en) | Split register file for operands of different sizes | |
US6052769A (en) | Method and apparatus for moving select non-contiguous bytes of packed data in a single instruction | |
US6823448B2 (en) | Exception handling using an exception pipeline in a pipelined processor | |
US6173393B1 (en) | System for writing select non-contiguous bytes of data with single instruction having operand identifying byte mask corresponding to respective blocks of packed data | |
US20210357216A1 (en) | Enabling removal and reconstruction of flag operations in a processor | |
RU2662394C2 (en) | Instruction and logic for memory access in a clustered wide-execution machine | |
US20120204008A1 (en) | Processor with a Hybrid Instruction Queue with Instruction Elaboration Between Sections | |
JP2009527035A (en) | Packed addition and subtraction operations in microprocessors. | |
US20050172210A1 (en) | Add-compare-select accelerator using pre-compare-select-add operation | |
TW201732547A (en) | Instructions and logic for load-indices-and-prefetch-scatters operations | |
TW201732546A (en) | Instruction and logic for reoccurring adjacent gathers | |
EP3265909A1 (en) | Register renaming in multi-core block-based instruction set architecture | |
KR102296619B1 (en) | Instruction and logic for a vector format for processing computations | |
US10002081B2 (en) | Apparatus for hardware implementation of heterogeneous decompression processing | |
US6341300B1 (en) | Parallel fixed point square root and reciprocal square root computation unit in a processor | |
US20170185403A1 (en) | Hardware content-associative data structure for acceleration of set operations | |
US6237083B1 (en) | Microprocessor including multiple register files mapped to the same logical storage and inhibiting sychronization between the register files responsive to inclusion of an instruction in an instruction sequence | |
JP5335440B2 (en) | Early conditional selection of operands | |
US8151096B2 (en) | Method to improve branch prediction latency | |
US20170177345A1 (en) | Instruction and Logic for Permute with Out of Order Loading | |
JP2009524167A5 (en) | ||
US10102215B2 (en) | Apparatus for hardware implementation of lossless data compression | |
US20170177355A1 (en) | Instruction and Logic for Permute Sequence | |
US10069512B2 (en) | Systems, methods, and apparatuses for decompression using hardware and software | |
US20140281251A1 (en) | Method and apparatus for cache line state update in sectored cache with line state tracker |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
STCB | Information on status: application discontinuation |
Free format text: ABANDONED -- FAILURE TO RESPOND TO AN OFFICE ACTION |