Real-Time Systems concern approaches from hardware-related software development, in particular performance-optimized software development. For this purpose, a problem is set here in which a partial algorithm for calculating a discrete Fourier transformation is implemented accordingly. The discrete Fourier transform (DFT) calculates the frequencies inherent in a function over time. One can imagine that a tone, e.g. of a musical instrument, is recorded and then - after the recording - analyzed, which fundamental tones (= "height of the tone") and which harmonics (= "timbre") are contained in it. The discrete (and fast) Fourier transform (DFT, FFT) are now suitable algorithms to perform this via digital computer. The DFT now uses the sine and cosine functions and can therefore be implemented classically with floating point data types (float, double). However, the calculations with such data types are very time- consuming if no hardware support (co-processor) is available. Especially in embedded systems, this is often missing, and for performance reasons one likes to choose the implementation in the form of integer data types.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Real-Time Systems concern approaches from hardware-related software
development, in particular performance-optimized software development. For this purpose, a problem
is set here in which a partial algorithm for calculating a discrete Fourier transformation is implemented
accordingly.
The discrete Fourier transform (DFT) calculates the frequencies inherent in a function over time. One
can imagine that a tone, e.g. of a musical instrument, is recorded and then - after the recording -
analyzed, which fundamental tones (= "height of the tone") and which harmonics (= "timbre") are
contained in it. The discrete (and fast) Fourier transform (DFT, FFT) are now suitable algorithms to
perform this via digital computer.
The DFT now uses the sine and cosine functions and can therefore be implemented classically with
floating point data types (float, double). However, the calculations with such data types are very time-
consuming if no hardware support (co-processor) is available. Especially in embedded systems, this is
often missing, and for performance reasons one likes to choose the implementation in the form of
integer data types.
This is exactly your task: to find a solution for the integration of the sine and cosine functions for
integration into algorithms that compute with data exclusively in integer format. To anticipate it right
away: A simple "casting" like x = (int)(100.* sin (y)) is NOT sufficient at all, because this only
means that first in double format is calculated and then converted to Integer. However, they should
replace the invoice itself.
In detail:
1:
Capture the algorithm behind the discrete Fourier transform. As a basis, you can find some
information in the script "Embedded Systems Engineering Manual V0.67", Vien is avanavie Fu
m.
www
.2:
Please focus exclusively on the implementation of the sine and cosine functions in integer format. For
the calculation of the DFT, it is assumed that the fundamental vibration has a maximum period of
2048 measuring points. Thus, you need the sine function with a period of 2048 points, but you must
also be able to calculate a sine function with e.g. 977 or 638 points as a period.
Please discuss your approach to calculating such a function with varying scores with as little effort as
possible. Accuracy is considered to be a precision of 16 bits in the function values.
3:
Please now implement the calculation of the sine and cosine functions for any number of points (<
2048) per period and test your implementation so that the error does not exceed +/- 1 lsb.
Transcribed Image Text:Real-Time Systems concern approaches from hardware-related software development, in particular performance-optimized software development. For this purpose, a problem is set here in which a partial algorithm for calculating a discrete Fourier transformation is implemented accordingly. The discrete Fourier transform (DFT) calculates the frequencies inherent in a function over time. One can imagine that a tone, e.g. of a musical instrument, is recorded and then - after the recording - analyzed, which fundamental tones (= "height of the tone") and which harmonics (= "timbre") are contained in it. The discrete (and fast) Fourier transform (DFT, FFT) are now suitable algorithms to perform this via digital computer. The DFT now uses the sine and cosine functions and can therefore be implemented classically with floating point data types (float, double). However, the calculations with such data types are very time- consuming if no hardware support (co-processor) is available. Especially in embedded systems, this is often missing, and for performance reasons one likes to choose the implementation in the form of integer data types. This is exactly your task: to find a solution for the integration of the sine and cosine functions for integration into algorithms that compute with data exclusively in integer format. To anticipate it right away: A simple "casting" like x = (int)(100.* sin (y)) is NOT sufficient at all, because this only means that first in double format is calculated and then converted to Integer. However, they should replace the invoice itself. In detail: 1: Capture the algorithm behind the discrete Fourier transform. As a basis, you can find some information in the script "Embedded Systems Engineering Manual V0.67", Vien is avanavie Fu m. www .2: Please focus exclusively on the implementation of the sine and cosine functions in integer format. For the calculation of the DFT, it is assumed that the fundamental vibration has a maximum period of 2048 measuring points. Thus, you need the sine function with a period of 2048 points, but you must also be able to calculate a sine function with e.g. 977 or 638 points as a period. Please discuss your approach to calculating such a function with varying scores with as little effort as possible. Accuracy is considered to be a precision of 16 bits in the function values. 3: Please now implement the calculation of the sine and cosine functions for any number of points (< 2048) per period and test your implementation so that the error does not exceed +/- 1 lsb.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

For statement 1 we need to capture algorithm but in answer I can see only theory. Can you please write the algorithm as asked in part 1.

Solution
Bartleby Expert
SEE SOLUTION
Follow-up Question

Can you please separate 2 and 3. As this quite confusing which explanation is for 2nd part and which is for 3rd part.

Solution
Bartleby Expert
SEE SOLUTION
Follow-up Question

This question should be solved with help of programming language

Solution
Bartleby Expert
SEE SOLUTION
Knowledge Booster
Use of XOR function
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education