Folding (DSP implementation)
Folding is a transformation technique used in DSP architecture implementations for minimizing the number of functional blocks in synthesizing DSP architecture.[src] Folding was first developed by Keshab K.[src] Parhi and his students in 1992.[src] Its concept is contrary to unfolding.[src] Folding transforms an operation from a unit-time processing to N unit-times processing where N is called folding factor.[src] Therefore, multiple same operations (less than N) used in original system could be replaced with a signal operation block in transformed system.[src] Thus, in N unit-times, a functional block in transformed system could be reused to perform N operations in original system.[src] While the folding transformation reduces the number of functional units in the architecture, it needs more memory element to store the temporary data.[src] The reason is that multiple data produced from an operation block needs to be distinguished from N data produced from original operations.[src] Therefore, the number of register may be increased.[src] Furthermore, it needs additional multiplexer for switching different operation paths.[src] Hence, the number of switching elements would also be increased.[src] To counterattack such issues, the considerations of folding is * How to schedule multiple operations into an operation block.[src] * How to schedule the memory element for reducing the number of registers and multiplexers.[src]
Folding is a transformation technique used in DSP architecture implementations for minimizing the number of functional blocks in synthesizing DSP architecture.[src] Folding was first developed by Keshab K.[src] Parhi and his students in 1992.[src] Its concept is contrary to unfolding.[src] Folding transforms an operation from a unit-time processing to N unit-times processing where N is called folding factor.[src] Therefore, multiple same operations (less than N) used in original system could be replaced with a signal operation block in transformed system.[src] Thus, in N unit-times, a functional block in transformed system could be reused to perform N operations in original system.[src] While the folding transformation reduces the number of functional units in the architecture, it needs more memory element to store the temporary data.[src] The reason is that multiple data produced from an operation block needs to be distinguished from N data produced from original operations.[src] Therefore, the number of register may be increased.[src] Furthermore, it needs additional multiplexer for switching different operation paths.[src] Hence, the number of switching elements would also be increased.[src] To counterattack such issues, the considerations of folding is How to schedule multiple operations into an operation block.[src] How to schedule the memory element for reducing the number of registers and multiplexers.[src] ==Example== The following graph shows the example of folding transformation.[src] The original DSP system produces y(n) at each unit time.[src] The transformed DSP system produces y(n) in each 2 l where each 2 l increase 1 n, index of y.[src] The resource used in original system are 2 adders, and the resource used in transformed system are 1 adder, 1 register, 3 multiplexer.[src] The functional block, adder, is therefore reduced.[src] ==Algorithm== The DSP implementation in the folding algorithm is a Data flow graph(DFG), which is a graph composed of functional nodes and delay edges.[src] Another input for folding algorithm is folding set which is the function maps an operation unit of original DFG to an operation of transformed DFG with the number n D_F(U\xrightarrow{e}V)=Nw(e)-P_U+v-u where \scriptstyle D_F is the number of delay elements needed between element \scriptstyle U,V , the operation units of original DFG.[src] \scriptstyle w(e) is the delay elements used in original DFG between \scriptstyle U,V .[src] \scriptstyle u is the order of \scriptstyle U in the transformed operation block.[src] \scriptstyle v is the order of \scriptstyle V in the transformed operation block.[src] \scriptstyle P_U is the internal delay in transformed operation of \scriptstyle U .[src] Merging the delay elements forms the data path between the functional elements in transformed DFG.[src] ===Biquad filter example=== The following graph show the example of folding algorithm.[src] The folding set is \scriptstyle \{S_i|j\} where \scriptstyle S_i is the transformed operator and \scriptstyle j is the order of such operator.[src] Therefore, the image of the folding set are \scriptstyle S_1,S_2 representing adder and multiplier respectively.[src] Furthermore, in this example, we use the pipelining adder and multiplier which have 1 and 2 delay respectively in right graph.[src] Next, we compute the delay elements for storing the data.[src] \scriptstyle D_F(1\rightarrow 2)= 4(1)-1+1-3=1 \scriptstyle D_F(1\rightarrow 5)= 4(1)-1+0-3=0 \scriptstyle D_F(1\rightarrow 6)= 4(1)-1+2-3=2 \scriptstyle D_F(1\rightarrow 7)= 4(1)-1+3-3=3 \scriptstyle D_F(1\rightarrow 8)= 4(2)-1+1-3=5 \scriptstyle D_F(3\rightarrow 1)= 4(0)-1+3-2=0 \scriptstyle D_F(4\rightarrow 2)= 4(0)-1+1-0=0 \scriptstyle D_F(5\rightarrow 3)= 4(0)-2+2-0=0 \scriptstyle D_F(6\rightarrow 4)= 4(1)-2+0-2=0 \scriptstyle D_F(7\rightarrow 3)= 4(1)-2+2-3=1 \scriptstyle D_F(8\rightarrow 4)= 4(1)-2+0-1=1 After computing the delay element needed, we construct the data path to connect the functional blocks with corresponding multiplexer.[src] The final graph is shown as below where \scriptstyle \{i,j\} represents the switching moment.[src] ===Register minimization=== In the above example, if we perform register minimization, we could reduce the number of register significantly.[src] The technique for minimizing register is call lifetime analysis, which analyzes the time for when a data is produced and when a data finally s consumed.[src] The time for producing a data is denoted \scriptstyle T_{input} , and the time for the last consumed data is denoted \scriptstyle T_{output} .[src] \scriptstyle T_{input}=u+P_U where u is the folding order of \scriptstyle U and \scriptstyle P_U is the number of pipelining stages in the functional unit that executes \scriptstyle u .[src] \scriptstyle T_{output} for the node \scriptstyle U is \scriptstyle u+P_U+max_V\{D_F(U\rightarrow V)\} Therefore, we could perform life time analysis from the above example as following table.[src] From the life time analyzing above, we could analyze the minimal register needed.[src] In this case, we construct the lifetime chart corresponding to the lifetime table in above.[src] For node 1, we plot a horizontal line from cycle 4 to 9 indicating that the data is need to be stored from cycle 4 to cycle 9.[src] In the same method, we could construct the chart to indicating that how many data need to be stored in each cycle.[src] Hence, cycle 6 needs to store 2 data.[src] Maximum number of data need to be store d in this example is 2.[src] Hence, we allocate 2 delay element for constructing the transformed data path.[src] After allocating 2 delay element for storing the temporary data, we need to schedule data stored at which register.[src] The following table shows the data stored in each register R1 and R2, such that the number of multiplexer could be minimized.[src] Finally, we could reconstruct the data path with fewer delay element and switching element in the folded design.[src] ==See also== Unfolding (DSP implementation) High-level synthesis ==References==[src]
63 sentences · 63 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Folding (DSP implementation)." encyclopegia.org, 2025, https://encyclopegia.org/wiki/folding-dsp-implementation. Accessed 03 December 2026.
Chicago
"Folding (DSP implementation)." encyclopegia.org. Accessed December 3, 2026. https://encyclopegia.org/wiki/folding-dsp-implementation.
APA
encyclopegia.org. (2025). Folding (DSP implementation). Retrieved December 3, 2026, from https://encyclopegia.org/wiki/folding-dsp-implementation
Accessed December 3, 2026 · CC BY-SA 4.0 · citation page · JSON