Digital signal processor and operating method

By integrating a digital filter, a shift register lookup table and a filter memory in a digital signal processor, combined with a state machine and multiple lookup tables, the space and energy efficiency deficiencies of the digital signal processor in the existing technology are solved. Efficient functional integration and flexible operating modes are achieved.

CN112425075BActive Publication Date: 2024-10-01MENTA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201980041552.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-06-22
Filing Date
2019-06-19
Publication Date
2024-10-01
Estimated Expiration
2039-06-19

AI Technical Summary

Technical Problem

Existing digital signal processor architectures have deficiencies in space efficiency and energy consumption when implementing a given function, and rely on external logic units to support specific DSP operations, resulting in circuits in a suboptimal state.

Method used

A programmable digital signal processor is designed, including a digital filter, a shift register lookup table and a filter memory. The filter is implemented by synchronously outputting the outputs of the shift register lookup table and the filter memory in the first operating mode. configured, and used in the second operating mode for other processing tasks, combining state machines and multiple lookup tables to implement finite impulse response and infinite impulse response filters in the FPGA architecture.

Benefits of technology

It improves the space efficiency and energy management of digital signal processors, achieves more efficient function integration, and supports multiple operating modes, enhancing the flexibility and performance of the processor.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112425075B_ABST
    Figure CN112425075B_ABST
Patent Text Reader

Abstract

A flexible digital signal processor module includes a filter unit including a multiplier and an adder, wherein the multiplier receives inputs from a memory and a shift register lookup table. The digital signal processor module can implement a digital filter, such as a FIR or IIR filter, by providing appropriate filter coefficients from the memory and data values ​​from the shift register lookup table. An optional state machine can ensure addressing of the memory shift register lookup table and synchronization between multiple instances of the digital signal processor module, wherein these instances are required for a specific filter implementation. The proposed architecture provides additional operating modes, wherein operations other than filter implementation are supported.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to digital signal processor architecture. Background Art

[0002] A digital signal processor is a digital electronic module that provides dedicated support for digital signal processing operations (eg, digital filters, compression, etc.).

[0003] The digital signal processor functionality can be provided in many forms, including as a stand-alone microprocessor, as part of a "system in a package" unit, or as a dedicated block in an FPGA architecture.

[0004] FPGA is a programmable logic device. They are usually based on standard programmable logic blocks, a large number of which are arranged together to realize various functions.

[0005] Figure 1 An example of an FPGA system known in the art is schematically shown.

[0006] like Figure 1 As shown, the FPGA chip 10 includes a plurality of logic blocks 11. The chip also includes a plurality of input / output ports 12. Connecting these logic blocks 11 and the input / output ports 12 are a plurality of tracks 14. Many programmable wiring areas 13 are provided at the intersections of these tracks, which may also be referred to as switch boxes. In these programmable wiring areas, switches are provided, which can selectively connect any pair of intersecting tracks under the control of the logic values ​​stored in the bit cell memory connected to each switch. The bit cell memory value is set from the non-volatile memory when the system starts. Therefore, by setting the value in the switch memory as required, any connection of any logic block can be coupled to the connection of any other logic block or any input / output port 12. Similarly, any input / output port can be connected to any other input / output port. Therefore, by appropriately configuring the memory cell to define the operation of each logic block, and defining the switch memory 13 to establish appropriate connections between logic blocks, any desired function can be achieved.

[0007] While the fundamental principle of FPGAs is based on the possibility of implementing any digital operation through the appropriate connection of standard logic blocks and appropriate logic values, in some cases this general approach is extremely inefficient in terms of the chip surface area used to implement a given function and the energy consumed in operating the function required by the application. Therefore, many modern FPGA architectures include dedicated blocks15, which include circuits specifically designed to support certain specific functions.

[0008] Certain FPGA architectures provide such dedicated blocks 15 to support digital signal processing operations.

[0009] Figure 2 A digital signal processing block known in the art is shown.

[0010] like Figure 2 As shown, a block 200 is provided that includes two inputs 211 and 212, each buffered by a repeater 213 and 214. The inputs 211 and 212 provide values ​​to a multiplier 220 via another repeater 221, and the multiplier 220 provides its output to an adder 230. The adder receives a second input 215 via another repeater 216 and transmits a block output 217 via yet another repeater 231. Depending on the details of the implementation, various repeaters may or may not be used.

[0011] As a block in the FPGA architecture as described above, the DSP block can be connected to any suitable logic unit provided by other blocks of the FPGA. Specifically, these other blocks will generally be standard logic blocks as described above, which can be configured to provide any logic input that may be required for the desired operation. Filters and other functions can be implemented by providing suitable coefficient values ​​to one input 211 or 212, and a series of data values ​​with appropriate timing to the other input, and configuring other logic blocks to accumulate output values.

[0012] Examples of these methods can be found, for example, in the user guides for the Xilinx Virtex 5 or Xilinx Virtex 4 FPGA architectures.

[0013] In particular, it will be appreciated that, while the prior art approaches described above have improved the efficiency of DSP architectures to some extent, their reliance on external logic units to support the implementation of specific DSP operations means that the resulting circuits are still suboptimal in terms of required space, consumed energy, clock distribution, etc. It would be desirable to provide a DSP architecture that provides more integrated functionality while maintaining a high degree of versatility. Summary of the invention

[0014] According to the present invention, in a first aspect, a programmable digital signal processor is provided, which includes a digital filter, a shift register lookup table and a filter memory, wherein the shift register lookup table is coupled to provide input data to the digital filter in a first operating mode, and the filter memory is coupled to provide filter coefficients to the digital filter in the first operating mode, wherein the output of the filter memory and the output of the shift register lookup table are synchronized to generate corresponding filter coefficients and input data to jointly implement the desired filter configuration.

[0015] In a development of the first aspect, the shift register look-up table comprises a shift register, wherein the shift register is configured so as to be operable as a single continuous shift register or as a plurality of independently operable shift registers.

[0016] In a development of the first aspect, the programmable digital signal processor further comprises a state machine which provides addressing values ​​to the shift register lookup table and the filter memory.

[0017] In a development of the first aspect, the programmable addressing value comprises a single address for the shift register lookup table and the filter memory, whereby the values ​​stored in the shift register lookup table and the filter memory are constructed so that in the first operating mode, the single address references the corresponding coefficients and input data of the digital filter.

[0018] In a development of the first aspect, in a second operating mode, the values ​​stored in the shift register lookup table are output for processing outside of the digital filter.

[0019] In a development of the first aspect, in the second operating mode, the shift register lookup table is used as a multiplier input register.

[0020] In a development of the first aspect, the digital filter constitutes a component of a finite impulse response filter.

[0021] In a development of the first aspect, the digital filter constitutes a component of an infinite impulse response filter, which includes a first finite impulse response filter and a second finite impulse response filter in a feedback configuration, wherein the state machine provides an enable signal to coordinate the combination of the outputs of the first finite impulse response and the second finite impulse response to implement the infinite impulse response filter.

[0022] In a development of the first aspect, the digital signal processor is implemented in an FPGA architecture comprising a plurality of lookup tables, the configuration of each lookup table being defined by one or more corresponding memory cells programmed using a configuration bitstream at system startup, wherein the values ​​in the filter memory are also programmed by the configuration bitstream.

[0023] According to the present invention, in a second aspect, a method for performing digital signal processor operations is provided, the method comprising: addressing a shift register lookup table to output data to the digital signal processor in a first operating mode, addressing a filter memory to provide coefficients to the digital filter in the first operating mode, and performing a digital filter operation on the input data using the coefficients.

[0024] In a development of the second aspect, the method further comprises the following steps: constructing the shift register lookup table and the filter memory so that in the first operating mode a single address value references the corresponding coefficients and input data of the digital filter, so that the following steps are performed using the single address value: addressing the shift register lookup table in the first operating mode to output the coefficients to the digital signal processor, and addressing the filter memory in the first operating mode to provide the input data to the digital filter.

[0025] In a development of the second aspect, the digital filter operation is a finite impulse response filter operation.

[0026] In a development of the second aspect, the digital filter operation is an infinite impulse response filter operation, which includes a first finite impulse response operation and a second finite impulse response operation based on a feedback value, and the method further includes the following steps: providing an enable signal for coordinating the combination of the results of the first finite impulse response operation and the second finite impulse response operation to obtain an infinite impulse response filter result.

[0027] According to the present invention, in a third aspect there is provided a program for a computer, the program comprising instructions suitable for implementing the steps of the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] The above and other advantages of the present invention will now be described with reference to the accompanying drawings, in which:

[0029] Figure 1 An example of an FPGA system known in the prior art is schematically shown;

[0030] Figure 2 A digital signal processing block known in the prior art is shown;

[0031] Figure 3 A programmable digital signal processor according to a first embodiment is shown;

[0032] Figure 4 A programmable digital signal processor according to a second embodiment is shown;

[0033] Figure 5 A parallel implementation of a finite impulse response filter according to an embodiment is presented;

[0034] Figure 6 A parallel implementation of an infinite impulse response filter according to an embodiment is presented;

[0035] Figure 7 A signed multiplier implemented using a filter according to an embodiment is shown; and

[0036] Figure 8 A method of performing digital signal processor operations according to an embodiment is presented. DETAILED DESCRIPTION

[0037] Figure 3 A programmable digital signal processor according to a first embodiment is shown.

[0038] As shown, the programmable digital signal processor 300 includes a digital filter 310, a shift register lookup table 320, and a memory 330. The memory may include a random access memory (e.g., a RAM or ROM device), a cascade register, or other. The shift register lookup table 320 is coupled to provide input data to the digital filter 310 in a first operating mode, and the filter memory 330 is coupled to provide filter coefficients to the digital filter 310 in the first operating mode. The output of the filter memory and the output of the shift register lookup table are synchronized to generate corresponding filter coefficients and input data to jointly achieve a desired filter configuration.

[0039] The digital filter comprises: a multiplier configured to multiply a data value and a coefficient value; and an adder for accumulating successive values ​​(possibly in conjunction with an additional register), substantially as described above for Figure 2 Additional delays, summing, multiplexing, or other components may be incorporated to extend functionality.

[0040] As shown, the shift register lookup table 320 includes a shift register including four flip-flops 321, 322, 323, 324. It should be understood that although only four flip-flops are shown, any number of flip-flops may be provided. Since the length of the shift register corresponds to the length of the shift register 320, the shift register 321 may be represented by Figure 3 The maximum number of coefficients that a single implementation of a DSP can handle, so the number of flip-flops can be selected based on the number of coefficients the filter can handle (i.e., the number of filter taps), which is again a fundamental design constraint for filters, reflecting the complexity of the filter operations that can be performed. In some embodiments, a convenient number of flip-flops may be 32.

[0041] Similarly, the number of addresses in the memory 330 may be equal to the number of coefficients that the filter can handle, i.e., the number of filter taps. In other embodiments, the number of addresses in the memory 330 may be less than the number of coefficients that the filter can handle, i.e., the number of filter taps. In other embodiments, the number of addresses in the memory 330 may be greater than the number of coefficients that the filter can handle, i.e., the number of filter taps.

[0042] The length of the data word stored in each memory address can be equal to the width of the input data bus. A 24-bit input bus suggests 24-bit coefficients, and the shift register lookup table includes 24 parallel shift registers and multiplexers. The filter will then perform a multiplication of two 24-bit values ​​in the filtering operation.

[0043] In operation, a continuous stream of binary data values ​​for filtering arrives at input 301, which are progressively clocked through shift registers 321, 322, 323, 324 as processing proceeds as described below. For a given set of values ​​loaded into the flip-flops of shift registers 321, 322, 323, 324, each flip-flop of shift registers 321, 322, 323, 324 is addressed in turn until the number of flip-flops addressed reaches the number of taps in the filter, and that value is passed to filter 310 as the data value.

[0044] At the same time, when each trigger of the shift registers 321, 322, 323, and 324 is addressed until the number of addressed triggers reaches the number of taps in the filter, the memory 330 is simultaneously addressed, whereby the addressed memory location contains the filter coefficients corresponding to the addressed triggers, and the resulting output is transmitted to the filter 310 as a set of coefficient values.

[0045] Thus, the addressed value from the shift register is processed by the filter 310 using the corresponding coefficients provided by the memory 330. The output of the filter is accumulated and then the system proceeds to process the next flip-flop of the shift register 321, 322, 323, 324 and the corresponding position in the memory 330.

[0046] Based on this, each data value in the shift register is processed according to its respective set of coefficients until the number of processed data values ​​reaches the number of taps in the filter, and the results are accumulated at the output of the filter. Once each flip-flop in the shift register that reaches the number of taps in the filter has been addressed, the shift register is clocked (e.g., by activating the clock bus 302) so that the value of each flip-flop in the shift register is passed to its neighbors, the new data value is clocked from the data input 301 into the first flip-flop 321 of the shift register, and the value on the last flip-flop in the shift register is discarded.

[0047] The process of addressing each trigger of the shift registers 321, 322, 323, 324 begins in turn until the number of addressed triggers reaches the number of taps in the filter, and then, for the new set of values, the processing by the filter 310 using the corresponding coefficients provided by the memory 330 is restarted.

[0048] This process will continue indefinitely until every input value on input channel 301 has been processed.

[0049] Figure 4 A programmable digital signal processor according to a second embodiment is shown.

[0050] If targeted Figure 3 As described, the addressing of the coefficient values ​​in the memory 330 and the data values ​​in the shift register lookup table 420 is performed in a synchronized manner so that when the data corresponding to a particular tap position of the filter is obtained from the shift register lookup table 420, the correct coefficient for that tap position is obtained from the memory 330. It should be appreciated that this synchronization can be achieved in a variety of ways, for example, by referring to a mapping table or the like that provides corresponding address values ​​for the memory 330 on the one hand, and to the shift register lookup table 420 on the other hand.

[0051] It will also be appreciated that the memory 330 and the shift register lookup table 420 may be configured such that the same address value points to a corresponding value in the memory 330 and a data value in the shift register lookup table 420 .

[0052] Therefore, a programmable digital signal processor 400 is provided, which includes a digital filter 310, a shift register lookup table 420 and a memory 330, wherein the shift register lookup table 420 is coupled to provide input data to the digital filter 310 in a first operating mode, and the filter memory 330 is coupled to provide filter coefficients to the digital filter 310 in the first operating mode, wherein the output of the filter memory 330 and the output of the shift register lookup table 420 are synchronized to generate corresponding filter coefficients and input data, which together realize the desired filter configuration.

[0053] Figure 4A method of achieving synchronization is presented, wherein a counter 440 is provided, which receives a clock input 302 and a tap number input 441. The counter 440 is also provided with an output for outputting the current count value. The counter 440 can be more generally considered to constitute part or all of a synchronization state machine. The count value is fed to the memory 330 and the shift register lookup table 420 as an address value. On this basis, the coefficient values ​​are loaded into the memory 330 in sequential positions so that as the count value increases, consecutive coefficient values ​​corresponding to consecutive tap positions are selected. Similarly, as the count value increases, the multiplexer 425 selects consecutive flip-flops in the shift register corresponding to consecutive tap positions. Therefore, the count value is used to address the memory 330 and the shift register lookup table 420 in a synchronous manner. The counter is configured to restart its count when it reaches the tap number count (depending on the implementation details, this number can be any number up to the number of flip-flops in the shift register lookup table 420). In some variations, the counter can be provided with an overflow output, which outputs a predetermined value when the count value reaches the tap number input. This output can be used to coordinate the operation of multiple programmable digital signal processors, for example, as described in further detail below.

[0054] As shown, in Figure 4 In the arrangement of , the multiplexer 425 is implemented as two sub-multiplexers 425a and 425b, each of which receives a portion of the output of the shift registers 321-324. Each sub-multiplexer 425a and 425b may receive half of the output of the shift registers 321-324, or the output of the shift registers 321-324 may be divided between the two sub-multiplexers in some other manner. The outputs of the two sub-multiplexers 425a and 425b are themselves selected by the third sub-multiplexer 435c, so that the three sub-multiplexers 425a, 425b, 425c are logically equivalent to Figure 3 Another multiplexer 426 is provided at a point in the shift registers 321-324 corresponding to the point at which the shift register output is sent to one sub-multiplexer or the other sub-multiplexer, as shown between flip-flop 322 and flip-flop 323. With one selection value, multiplexer 426 couples the input of flip-flop 323 to the output of flip-flop 322 so as to maintain a single shift register in operation. With another selection value, multiplexer 426 decouples the input of flip-flop 323 from the output of flip-flop 322 in favor of alternate inputs, thereby providing two separate shift registers, for example, as described below with reference to Figure 7 as described.

[0055] As shown, Figure 4The filter 310 also includes an accumulator 405 as discussed above, which may be provided to accumulate successive outputs from the filter 310. In this way, for example, a complete finite impulse response filter may be implemented by accumulating the values ​​output by the filter 310 for each tap position, as obtained using the various data values ​​and coefficient values ​​as indicated above.

[0056] Thus, the programmable digital signal processor may further comprise a state machine 440 that provides addressing values ​​to the shift register lookup table and memory, wherein in the first mode of operation a single address references a corresponding coefficient of the digital filter and input data.

[0057] In some embodiments, a DSP module (e.g., for Figure 3 or Figure 4 Those described in the FPGA architecture) can be implemented as DSP blocks in the FPGA architecture. Each DSP block may include one or more DSP modules, such as Figure 3 or Figure 4 Each FPGA may include any number of DSP blocks, as well as standard logic blocks and other types of blocks suitable for the general purpose of the FPGA architecture. Thus, a digital signal processor may be implemented in an FPGA architecture that includes multiple lookup tables, each of which has a configuration defined by one or more corresponding memory cells that are programmed with a configuration bitstream at system startup, wherein the values ​​in the filter memories are also programmed by the configuration bitstream.

[0058] Figure 5 A parallel implementation of a finite impulse response filter according to an embodiment is presented.

[0059] For example, as referenced Figure 3 or Figure 4 As described, FIR filters based on semi-parallel implementations may be used in contexts where the number of taps is greater than that provided by a single DSP module, or where frequency requirements may be better met by multiple DSP modules configured to compute several taps per sampling period.

[0060] For example, in the case of a 12-tap filter with 3 DSPs, the following decomposition may apply:

[0061]

[0062] Where n is the index of each tap,

[0063] Cn is the coefficient for each tap n,

[0064] Xn is the data value at each tap n

[0065] It can be noted that each sub-item presents the same structure and can be implemented using a sequence of 3 cascaded DSPs (a sub-item is an addition of 4 products).

[0066] On this basis, if Figure 5 As shown, a first DSP module 510 (corresponding to, for example, the above reference Figure 3 or Figure 4 DSP module described above), a second DSP module 520 (which corresponds to, for example, the DSP module described above Figure 3 or Figure 4 DSP module described above) and a third DSP module 530 (which corresponds to, for example, the DSP module described above Figure 3 or Figure 4 Each DSP module 510, 520, 530 is schematically shown and includes synchronization elements, shift register lookup table elements and memory elements, as well as multipliers and adders of filter elements.

[0067] For example, as referenced Figure 4 As described by the element 400 of , each of the three DSP modules is configured as a FIR filter. Each of the three DSP modules is configured to process a sequential subset of the total taps of the filter to be implemented by the system as a whole, so the total number of taps implemented on all three DSP modules is the number of taps of the final filter.

[0068] The first DSP module 510 receives data input 513. The same data is fed from the output of the shift register lookup table of the first DSP module to the input 523 of the second DSP module 520, and is fed from the output of the shift register lookup table of the second DSP module to the input 533 of the third DSP module 530, so that the shift register lookup tables of the respective DSP modules form a delay line, so that the second DSP module 520 receives data n cycles after the first DSP module 510, and the third DSP module 520 receives data 2n cycles after the first DSP module 510.

[0069] Similarly, the first DSP module 510 receives a synchronization signal 515. Through the delay lines represented by flip-flops 516 and 526, the corresponding synchronization signal 525 is fed to the second DSP module 520, and the corresponding synchronization signal 535 is fed to the third DSP module 530, thereby enabling the second DSP module 520 one cycle after the first DSP module 510 and enabling the third DSP module 520 two cycles after the first DSP module 510.

[0070] The outputs of the first DSP module 510 and the second DSP module 520 are added at the adder 521 of the second DSP module, and the output of the adder 521 and the output of the third DSP module 531 are added at the adder 531 of the third DSP module. The output of the adder 531 is accumulated by the module 540 over the entire filter processing cycle, as discussed above, which can be implemented using the accumulation unit of another DSP module, such as reference Figure 4 Element 405 is described.

[0071] In this way, an FIR of any size can be implemented by connecting an appropriate number of DSP modules as described above and providing appropriate coefficients and synchronization signals. It should be appreciated that any desired number of DSP modules can be connected in this manner.

[0072] Figure 6 A parallel implementation of an infinite impulse response filter according to an embodiment is presented.

[0073] The general formula describing an IIR filter is:

[0074]

[0075] The formula can be simplified by using A0=1.

[0076] The first and defines N b The FIR filter is applied to the sampled input.

[0077] The second sum defines N a The FIR filter is applied to the IIR filter output. This is the feedback loop of the filter.

[0078] On this basis, if Figure 6 As shown, a first DSP module 610 (corresponding to, for example, the above reference Figure 3 or Figure 4 DSP module described above), a second DSP module 620 (which corresponds to, for example, the DSP module described above Figure 3 or Figure 4 DSP modules described above) and a third DSP module 630 (which corresponds to, for example, the DSP modules described above Figure 3 or Figure 4 DSP modules described above).

[0079] For example, as referenced Figure 4 As described with reference to element 400 , two of the three DSP modules 610 and 630 are configured as FIR filters.

[0080] Specifically, the first DSP module 610 defines N bThe FIR filter is applied to the sampled input 601.

[0081] The third DSP module 630 defines N a The FIR filter is applied to the IIR filter output. This is the feedback loop of the filter.

[0082] The FIR filter runs fast enough to produce one result per sampling period, so accumulating the two results in a synchronized manner is possible. Both filters are fully registered, but they operate at a much higher frequency than the sampling frequency, so the final result is available in 1 sampling period. The larger the filter, the less efficient the IIR filter becomes, since the clock ratio is directly related to the number of taps in the largest filter.

[0083] In order to simply solve the filter synchronization problem, the following restrictions are applied in this embodiment:

[0084] The direct FIR sub-filter implemented by the first DSP module 610 is limited to using, for example, reference Figure 4 The single DSP approach described reduces the number of taps implemented in a single DSP block in order to grant the same pipeline latency in all configurations.

[0085] The loopback FIR sub-filter implemented by the third DSP module 630 is limited to half the number of taps of the first DSP module 610 and also uses, for example, reference Figure 4 The single DSP method described above is implemented in accordance with the present invention. In order for the third DSP module 630 to run fast enough to produce its results during a single sampling period of the first DSP module 610, it is necessary to run the third DSP module 630 at 4 times the rate of the first DSP module 610. This can be achieved by implementing this filter with interleaving coefficients having a constant of 0. The interleaving method explains the limitation of 16 taps.

[0086] Sub-filter summation and synchronization are performed in the second DSP module 620 using a shift register lookup table and an ALU.

[0087] The second DSP module 620 receives timing information from registers 651 and 652, which receive coefficient overflow indication 442 from the first DSP module and the third DSP module, respectively, as a basis for synchronizing the signals.

[0088] Synchronization of the results from DSP modules 610 and 630 requires providing a delay line at the output of module 610 to obtain the same depth as DSP module 610 (correcting for the difference in the number of taps N and N / 2). This can be done using a shift register lookup table of DSP module 620 in the second operating mode, where there are not enough dedicated registers in the DSP configuration. The exact number of registers will depend on implementation details, but for example, if a 3-stage pipeline is required, since the other signals have 2*3=6 flip-flops and the DSP circuitry only provides 2, an additional stage can be provided by a shift register lookup table of another DSP module.

[0089] Thus, the digital filter may be an infinite impulse response filter comprising a first finite impulse response and a second finite impulse response in a feedback configuration, wherein the state machine provides a synchronization signal for coordinating the combination of the outputs of the first finite impulse response and the second finite impulse response to implement the infinite impulse response filter.

[0090] In the previous examples, several different configurations based on DSP modules have been presented, such as for Figure 3 or Figure 4 In some of these configurations, a single DSP module has been used for purposes other than implementing filter operations in the module itself, but rather to provide other processing, storage, or synchronization functions for other DSP modules in the proposed system. It should be recognized that, for example, Figure 3 or Figure 4 The components and configuration of the described DSP modules, in particular the availability of freely accessible shift register lookup table 320 and memory unit 330, make each such filter unit highly flexible and suitable for many applications in addition to implementing filter operations. Figure 3 or Figure 4 The described DSP blocks may be used, for example, to implement multipliers, multiplexers, shift registers, etc. that are capable of processing large, complex, or signed values.

[0091] Figure 7 A signed multiplier implemented using a filter according to an embodiment is shown.

[0092] You can use reference Figure 3 or Figure 4 A series of DSP modules connected in series are described to implement a multiplier of any desired size.

[0093] A 47x47 bit multiplier can be defined based on the following decomposition:

[0094] consider:

[0095] A[46:0]×B[46:0]=

[0096] but

[0097] A={A[46:23],A[22:0]}={A2,A1}

[0098] B={B[46:23],B[22:0]}={B2,B1}

[0099] A×B={A2,A1}×{B2,B1}={A2×B2,A1×B2+A2×B1,A1×B1}=

[0100] ={P3+(A1×B2+A2×B1+(A1×B1)[46,23])[46,23],(A1×B2+A2×B1+

[0101] (A1×B1)[46,23])[22,0],(A1×B1)[22,0]}

[0102] As previously mentioned, the multiplier divides the data into a set of 23 least significant bits on the one hand (the basis for this is that the multiplier in this example processes 24 signed bits, of which one bit is discarded, leaving 23 signed bits), and a set of 24 most significant bits on the other hand. The operation is shifted between the processing of the corresponding sets of most significant bits and least significant bits so that the corresponding results can be combined on the next corresponding DSP module.

[0103] As shown, the system includes four DSP modules 710, 720, 730, 740, each DSP module is basically the same as the Figure 3 or Figure 4 Specifically, the DSP module 710 includes a shift register lookup table 711, a synchronization state machine 713 (which corresponds to Figure 4 ), and multiplier 712 and adder 714 (together corresponding to Figure 3 or Figure 4 As shown, the shift register of the shift register lookup table 711 has the same filter unit as described above. Figure 4 The two-part configuration is described, wherein input A1 is fed to the first part of shift register 711a and the second input B1 is fed to the first part of shift register 711b. Each shift register 711a, 711b feeds data to a respective input of multiplier 712. The output of multiplier 712 is fed to output 715 via adder 714. It should be appreciated that since in the case of the first DSP module, adder 714 adds zero to the output of the multiplier, this component could equally be bypassed - it is retained in this example to demonstrate the flexibility of the proposed architecture.

[0104] Similarly, the DSP module 720 includes a shift register lookup table 721, a synchronization state machine 723 (which corresponds to Figure 4 ), and multiplier 722 and adder 724 (together corresponding to Figure 3 or Figure 4 As shown, the shift register of the shift register lookup table 721 has the same filter unit as described above. Figure 4 The two-part configuration (e.g., by the operation of multiplexer 426) is described, wherein input A1 is fed to the first part of shift register 721a and second input B2 is fed to the first part of shift register 721b. Each shift register 721a, 721b feeds data to a corresponding input of multiplier 722. Adder 724 adds the output of multiplier 722 to the output 715 of the preceding DSP module 710 subjected to the shift between the most significant bit and the least significant bit according to the above decomposition. The output of multiplier 722 is fed to output 725 through adder 724.

[0105] Similarly, the DSP module 730 includes a shift register lookup table 731, a synchronization state machine 733 (which corresponds to Figure 4 ), and multiplier 732 and adder 734 (together corresponding to Figure 3 or Figure 4 As shown, the shift register of the shift register lookup table 731 has the same filter unit as described above. Figure 4 The two-part configuration described above, wherein input A2 is fed to the first part of shift register 731a, and the second input B1 is fed to the first part of shift register 731b. Each shift register 731a, 731b feeds data to a corresponding input of multiplier 732. Adder 734 adds the output of multiplier 732 to the output 725 of the previous DSP module 720. The output of multiplier 732 is fed to output 735 through adder 734.

[0106] Similarly, the DSP module 740 includes a shift register lookup table 741, a synchronization state machine 743 (which corresponds to Figure 4 ), and multiplier 742 and adder 744 (together corresponding to Figure 3 or Figure 4 As shown, the shift register of the shift register lookup table 741 has the same filter unit as described above. Figure 4The two-part configuration described above, wherein input A2 is fed to the first part of shift register 741a, and second input B2 is fed to the first part of shift register 741b. Each shift register 741a, 741b feeds data to the corresponding input of multiplier 742. Adder 744 adds the output of multiplier 742 to the output 735 of the preceding DSP module 730 subjected to the shift between the most significant bit and the least significant bit according to the above decomposition. The output of multiplier 742 is fed to output 745 through adder 744.

[0107] At output 715, after appropriate timing correction, the output component P [22:0] Available. At output 735, after appropriate timing correction, the output component P [45:23] Available. At output 745, after appropriate timing correction, the output component P [93:46] Available.

[0108] As described above, the various shift registers 711a, 711b, 721a, 721b, 731a, 731b, 741a, 741b are used in the configuration to provide synchronization of signals on the multiplier so that in any given clock cycle, the value on each output corresponds to the same set of input values ​​A1, B1, A2 and B2. For example, shift registers 711a, 711b can provide a delay value of one flip-flop to their respective signals, shift registers 721a, 721b can provide a delay value of two flip-flops to their respective signals, shift registers 731a, 731b can provide a delay value of three flip-flops to their respective signals, and shift registers 741a, 741b can provide a delay value of four flip-flops to their respective signals. In some embodiments, the DSP unit can provide a large number of input registers specifically for this purpose, which can be used instead of the shift registers in the shift register lookup table or as these shift registers. For example, where a particular DSP unit implementation provides two input registers, the first and second DSP units may rely solely on these dedicated input registers for synchronization, while the third and fourth registers may use dedicated input registers for two levels of delay, and then use shift registers in a shift register lookup table to provide one additional level of delay required for the third DSP block, and two levels of delay required for the fourth DSP block. In addition, the delay operation may be handled differently on this basis for the A input and B input of each DSP block, depending on the dedicated input repeaters available.

[0109] As shown, each DSP module provides additional repeaters for synchronization purposes between the multipliers 712, 722, 732, 742 and the adders 714, 724, 734, 744, and between the adders 714, 724, 734, 744 and the outputs 715, 725, 735, 745. Depending on the implementation details of certain embodiments, some or all of these repeaters may be omitted, or additional repeaters may be provided depending on the application requirements of a given implementation.

[0110] Using the SRL of the DSP unit to simulate the timing for the multiplication calculations additional registers constitutes an example of using the DSP module in the second operating mode, as shown in reference Figure 3 or Figure 4 as described.

[0111] In targeting Figure 7 In this second operating mode shown, the shift register lookup table of the DSP module is used as the multiplier input register.

[0112] Thus, a flexible digital signal processor module is disclosed, comprising a filter unit including a multiplier and an adder, wherein the multiplier receives inputs from a memory and a shift register lookup table. The digital signal processor module can implement a digital filter, such as a FIR or IIR filter, by providing appropriate filter coefficients from the memory and data values ​​from the shift register lookup table. An optional state machine can ensure addressing of the memory shift register lookup table and synchronization between multiple instances of the digital signal processor module, wherein these instances are required for a specific filter implementation. The proposed architecture provides additional operating modes, wherein operations other than filter implementation are supported.

[0113] On this basis, in the second operating mode, the values ​​stored in the shift register lookup table will be output for processing other than the digital filter.

[0114] Figure 8 A method of performing digital signal processor operations according to an embodiment is presented.

[0115] As shown, the method begins at step 800, where a shift register lookup table is addressed to output data to a digital signal processor in a first operating mode, before proceeding to step 810. The method then proceeds to step 820, where a filter memory is addressed to provide coefficients to a digital filter in the first operating mode. The method then proceeds to step 830, where a digital filter operation is performed on the input data using the coefficients, before terminating at step 840.

[0116] For each of the plurality of coefficients defining the digital filter, iteratively performing Figure 8 method.

[0117] Steps 810 and 820 may be performed in reverse order, ie, step 820 precedes step 810, or both may be performed in parallel.

[0118] The method also includes the steps of constructing a shift register lookup table and a filter memory so that in a first operating mode, a single address value references corresponding coefficients and input data of the digital filter, so that the following steps are performed using the single address value: addressing the shift register lookup table in the first operating mode to output data to the digital signal processor, and addressing the filter memory in the first operating mode to provide coefficients to the digital filter.

[0119] exist Figure 8 In some instances of the method, the digital filter operation may be a finite impulse response filter operation.

[0120] exist Figure 8 In some instances of the method, the digital filter operation may be an infinite impulse response filter operation including a first finite impulse response operation and a second finite impulse response operation based on a feedback value, the method further comprising the step of providing an enable signal for coordinating a combination of results of the first finite impulse response operation and the second finite impulse response operation to obtain an infinite impulse response filter result.

[0121] In some embodiments, the methods and processes described herein may be implemented in whole or in part by a computing device. These methods and processes may be implemented by computer applications or services, application programming interfaces (APIs), libraries, and / or other computer program products, or any combination of these entities. Specifically, a program for a computer may be provided, the program comprising a program adapted to implement Figure 8 The method steps or instructions of any variation thereof described above.

[0122] It will be understood that the configurations and / or methods described herein are exemplary in nature, and these specific embodiments or examples should not be considered in a restrictive sense, as many variations are possible. The specific routines or methods described herein may represent one or more of any number of processing strategies. Therefore, the individual actions illustrated and / or described may be performed in the order illustrated and / or described, in other orders, in parallel, or omitted. Likewise, the order of the above process may be changed.

[0123] The subject matter of the present disclosure includes all novel and nonobvious combinations and subcombinations of the various processes, systems and configurations, and other features, functions, acts, and / or properties disclosed herein and any and all equivalents thereof.

Claims

1. A programmable digital signal processor comprising a digital filter, a shift register lookup table and a filter memory, wherein: The shift register lookup table is coupled to provide input data to the digital filter in a first operating mode, and the filter memory is coupled to provide filter coefficients to the digital filter in the first operating mode, wherein the output of the filter memory and the output of the shift register lookup table are synchronized to generate corresponding filter coefficients and input data to jointly implement a desired filter configuration, and the programmable digital signal processor also includes a state machine, which provides addressing values ​​to the shift register lookup table and the filter memory, and the addressing values ​​include a single address for the shift register lookup table and the filter memory, thereby constructing values ​​stored in the shift register lookup table and the filter memory so that in the first operating mode, the single address references the corresponding coefficients and input data of the digital filter.

2. The programmable digital signal processor according to claim 1, wherein: The shift register lookup table includes a shift register, wherein the shift register is configured to be operable as a single continuous shift register or as a plurality of independently operable shift registers.

3. A programmable digital signal processor according to claim 1 or 2, wherein: In a second mode of operation, the values ​​stored in the shift register lookup table are output for processing outside of the digital filter.

4. The programmable digital signal processor according to claim 3, wherein: In the second mode of operation, the shift register lookup table is used as a multiplier input register.

5. The programmable digital signal processor according to claim 1 or 2, wherein: The digital filter forms a component of a finite impulse response filter.

6. A programmable digital signal processor according to claim 1 or 2, wherein: The digital filter constitutes a component of an infinite impulse response filter, which includes a first finite impulse response filter and a second finite impulse response filter in a feedback configuration, wherein the state machine provides an enable signal to coordinate the combination of the outputs of the first finite impulse response filter and the second finite impulse response filter to implement the infinite impulse response filter.

7. A programmable digital signal processor according to claim 1 or 2, wherein: The digital signal processor is implemented in an FPGA architecture including a plurality of lookup tables, the configuration of each of the lookup tables being defined by one or more corresponding memory cells programmed with a configuration bitstream at system startup, wherein the values ​​in the filter memory are also programmed by the configuration bitstream.

8. A method of performing a digital signal processor operation, the method comprising: A shift register lookup table is addressed to output data to the digital signal processor in a first operating mode, and a filter memory is addressed to provide coefficients to a digital filter in the first operating mode, and the digital filter operation is performed on input data using the coefficients; and the shift register lookup table and the filter memory are constructed so that in the first operating mode, a single address value references the corresponding coefficients of the digital filter and the input data, so that the following steps are performed using the single address value: the shift register lookup table is addressed to output coefficients to the digital signal processor in the first operating mode, and the filter memory is addressed to provide the input data to the digital filter in the first operating mode.

9. The method according to claim 8, wherein: The digital filter operation is a finite impulse response filter operation.

10. The method according to claim 8 or 9, wherein: The digital filter operation is an infinite impulse response filter operation including a first finite impulse response operation and a second finite impulse response operation based on a feedback value, the method comprising the further step of providing an enable signal, the enable signal coordinating a combination of results of the first finite impulse response operation and the second finite impulse response operation to obtain an infinite impulse response filter result.

11. A computer program product storing a computer program comprising instructions adapted to implement the steps of the method according to any of claims 8 to 10.