ArticleslgStudy

science

Folding (DSP implementation)

Folding (DSP implementation) is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Folding (DSP implementation) rather than just read about it. In short: Folding is a transformation technique used in DSP architecture implementations for minimizing the number of functional blocks in synthesizing DSP architecture. Folding was first developed by Keshab K.

Folding (DSP implementation) — main illustration
Folding (DSP implementation) — illustration

Key takeaways

  • Folding (DSP implementation) belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Folding (DSP implementation) to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Folding (DSP implementation) from memory before moving on to harder problems.

Reference excerpt

Folding

is a transformation technique used in DSP architecture implementations for minimizing the number of functional blocks in synthesizing DSP architecture. Folding was first developed by Keshab K. Parhi and his students in 1992. Its concept is contrary to unfolding. Folding transforms an operation from a unit-time processing to N unit-times processing where N is called folding factor. Therefore, multiple same operations (less than N) used in original system could be replaced with a signal operation block in transformed system. Thus, in N unit-times, a functional block in transformed system could be reused to perform N operations in original system. While the folding transformation reduces the number of functional units in the architecture, it needs more memory element to store the temporary data. The reason is that multiple data produced from an operation block needs to be distinguished from N data produced from original operations. Therefore, the number of register may be increased. Furthermore, it needs additional multiplexer for switching different operation paths. Hence, the number of switching elements would also be increased. To counterattack such issues, the considerations of folding is

How to schedule multiple operations into an operation block. How to schedule the memory element for reducing the number of registers and multiplexers.

Example The following graph shows the example of folding transformation. The original DSP system produces y(n) at each unit time. The transformed DSP system produces y(n) in each 2 l where each 2 l increase 1 n, index of y. The resource used in original system are 2 adders, and the resource used in transformed system are 1 adder, 1 register, 3 multiplexer. The functional block, adder, is therefore reduced.

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. 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 <= N indicated the order of reused operation. Given a DFG, a folding factor N, and folding set. The transformation is performing:

Creating folded nodes which are the node of the image of folding set. Computing the delay elements for storing the distinguished data among different operation cycles as equation: DF(U→eV)=Nw(e)−PU+v−u where DF is the number of delay elements needed between element U,V, the operation units of original DFG. w(e) is the delay elements used in original DFG between U,V. u is the order of U in the transformed operation block. v is the order of V in the transformed operation block. PU is the internal delay in transformed operation of U.   Merging the delay elements forms the data path between the functional elements in transformed DFG.

Biquad filter example The following graph show the example of folding algorithm. The folding set is {Si|j} where Si is the transformed operator and j is the order of such operator. Therefore, the image of the folding set are S1,S2 representing adder and multiplier respectively. Furthermore, in this example, we use the pipelining adder and multiplier which have 1 and 2 delay respectively in right graph.

Next, we compute the delay elements for storing the data.

DF(1→2)=4(1)−1+1−3=1 DF(1→5)=4(1)−1+0−3=0 DF(1→6)=4(1)−1+2−3=2 DF(1→7)=4(1)−1+3−3=3 DF(1→8)=4(2)−1+1−3=5 DF(3→1)=4(0)−1+3−2=0 DF(4→2)=4(0)−1+1−0=0 DF(5→3)=4(0)−2+2−0=0 DF(6→4)=4(1)−2+0−2=0 DF(7→3)=4(1)−2+2−3=1 DF(8→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. The final graph is shown as below where {i,j} represents the switching moment.

Register minimization

In the above example, if we perform register minimization, we could reduce the number of register significantly. 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. The time for producing a data is denoted Tinput, and the time for the last consumed data is denoted Toutput.

Tinput=u+PU where u is the folding order of U and PU is the number of pipelining stages in the functional unit that executes u. Toutput for the node U is u+PU+maxV{DF(U→V)} Therefore, we could perform life time analysis from the above example as following table.

From the life time analyzing above, we could analyze the minimal register needed. In this case, we construct the lifetime chart corresponding to the lifetime table in above. 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. In the same method, we could construct the chart to indicating that how many data need to be stored in each cycle. Hence, cycle 6 needs to store 2 data. Maximum number of data need to be store d in this example is 2. Hence, we allocate 2 delay element for constructing the transformed data path.

After allocating 2 delay element for storing the temporary data, we need to schedule data stored at which register. The following table shows the data stored in each register R1 and R2, such that the number of multiplexer could be minimized.

Finally, we could reconstruct the data path with fewer delay element and switching element in the folded design.

See also Unfolding (DSP implementation) High-level synthesis

References

Illustrations

Folding (DSP implementation) illustration
Folding (DSP implementation) illustration
Folding (DSP implementation) illustration
Folding (DSP implementation) illustration
Folding (DSP implementation) illustration

Worked examples

Example 1 — a first encounter with Folding (DSP implementation)

Start with the simplest possible case. Write down what Folding (DSP implementation) claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Folding (DSP implementation) before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Folding (DSP implementation) ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Folding (DSP implementation)

In research
Folding (DSP implementation) appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Folding (DSP implementation) in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Folding (DSP implementation) is common in secondary-school and first-year university syllabi. It links to neighbouring topics Digital signal processing, so understanding it makes those chapters shorter.
In everyday life
Look for Folding (DSP implementation) outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Folding (DSP implementation)” →

How to study Folding (DSP implementation) in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Folding (DSP implementation) means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Folding (DSP implementation) out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Folding (DSP implementation) in simple terms?

Folding is a transformation technique used in DSP architecture implementations for minimizing the number of functional blocks in synthesizing DSP architecture. Folding was first developed by Keshab K.

Why does Folding (DSP implementation) matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Folding (DSP implementation)?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Folding (DSP implementation).

Tags

  • Digital signal processing

Keep exploring