Lösung des Praktikums Systementwurf
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

fft.vhd 13KB

1 year ago
123456789
  1. library ieee;
  2. use ieee.std_logic_1164.all;
  3. library work;
  4. use work.test_utility.all;
  5. package fft_data is
  6. constant expected : real_array( 0 to 1023 ) := (1.400077e-01,1.631006e-01,4.579161e-02,1.638744e-01,2.014323e-01,1.751627e+00,3.725031e-01,1.321073e-01,4.345959e-01,3.126748e-01,2.921721e-01,4.182611e-01,9.186539e-02,2.316879e-01,2.063257e-01,2.443818e-01,3.204013e-01,2.518824e-01,2.490902e-01,2.755829e-01,2.901987e-01,2.310183e-01,1.380682e-01,4.137335e-02,1.821911e-01,3.849657e-01,2.579769e-01,2.075598e-01,2.347006e-01,1.450103e-01,2.185122e-01,2.153282e-01,3.964341e+00,1.729022e-01,7.515065e-02,2.416848e-01,1.749128e-01,3.286295e-01,1.123644e-01,5.713965e-02,1.156537e-01,3.440511e-01,3.383082e-01,1.743206e-01,4.009396e-01,1.929011e-01,2.514783e-01,2.657047e-01,3.455679e-01,1.456240e-01,4.950228e-02,4.646390e-02,1.706572e-02,2.245333e-01,2.159272e-01,1.328469e-01,4.099350e-01,1.301445e-01,2.815202e-01,1.941099e-01,1.202426e-01,1.889600e-01,1.333201e-01,3.542707e-01,2.488066e-01,2.415012e-01,1.691778e-01,2.398767e-02,1.967010e-01,2.317934e-01,1.942473e-01,2.842496e-01,3.335730e-01,2.037441e-01,2.120339e-01,2.574666e-01,1.888043e-01,2.684270e-01,3.135189e-01,1.810302e-01,1.955532e-01,4.859236e-01,1.246064e-01,1.411959e-01,6.945253e-02,4.573855e-01,2.333594e-01,2.861014e-01,3.180932e-01,2.867535e-01,3.144628e-01,1.446351e-01,1.830697e-01,9.428367e-02,2.420044e-01,1.902588e-01,1.910852e-01,2.007655e-01,4.003132e-01,1.042668e-01,3.420224e-01,4.631629e-01,2.279680e-01,2.682562e-01,3.255370e-01,2.960867e-01,8.137213e-02,2.539533e-01,1.511125e-01,3.123292e-01,3.883526e-01,8.820713e-02,2.827073e-01,1.359767e-01,5.766666e-01,5.554063e-02,8.886527e-02,2.480626e-01,2.649462e-01,3.140529e-01,2.933081e-01,2.897829e-01,3.955528e-01,2.541061e-01,2.607835e-01,3.614890e-01,7.783117e-02,9.103174e-02,3.709492e-01,2.940106e-01,2.130100e-01,2.496498e-01,9.191309e-02,3.533632e-02,1.805623e-01,8.928566e-02,2.380424e-01,1.907064e-01,2.697022e-01,1.430689e-01,3.490459e-01,2.992451e-01,6.800354e-02,2.244534e-02,7.743893e-02,1.741521e-01,7.360994e-02,1.593922e-01,1.465899e-01,1.719157e-01,4.485097e-01,3.098611e-01,1.349618e-01,3.341462e-01,1.425298e-01,2.875902e-01,8.426153e-02,3.288285e-01,2.145013e-01,8.162631e-02,1.674171e-01,1.592194e-01,1.685525e-01,3.440325e-01,1.469657e-01,1.376795e-01,1.735331e-01,1.711099e-01,5.260750e-02,3.700888e-01,1.360041e-01,1.230156e-01,1.053979e-01,3.539028e-01,2.806161e-01,2.221132e-01,3.672347e-01,1.339912e-01,1.195079e-01,2.571085e-01,2.199113e-01,7.953332e-02,1.690346e-01,1.203663e-01,2.221095e-01,2.012171e-01,1.270380e-01,8.900518e-02,2.025151e-01,1.914574e-01,1.459286e-01,9.652802e-02,3.075261e-01,7.239375e-02,1.135965e-01,2.084964e-01,2.755392e-01,1.252988e-01,3.073075e-01,6.053112e-02,3.553204e-01,2.459441e-01,1.033225e-01,5.226908e-02,3.245927e-01,1.159644e-01,2.152760e-01,1.555173e-01,1.855022e-01,2.659614e-01,8.466729e-02,2.707186e-02,1.980485e-01,1.328685e-01,1.775677e-01,3.187793e-01,1.672417e-01,2.179600e-01,2.258015e-01,2.917109e-01,1.549580e-01,2.101620e-01,3.088741e-01,2.448144e-01,1.225766e-01,1.224377e-01,2.486137e-01,1.989210e-01,3.487260e-01,1.115108e-01,3.017660e-01,2.739770e-01,2.921598e-01,4.401497e-01,1.167351e-01,2.877316e-01,3.210582e-01,2.372447e-01,2.083751e-01,4.352092e-01,2.652424e-01,3.971176e-01,8.233179e-02,3.019593e-01,3.607931e-02,1.257835e-01,1.740972e-01,1.983701e-01,2.049058e-01,3.620155e-01,2.495642e-01,9.517803e-02,2.263584e-01,1.810629e-01,2.911930e-01,2.530651e-01,2.327204e-01,3.575457e-01,1.279376e-01,2.846593e-01,1.975898e-01,1.317701e-01,1.248586e-01,2.603230e-01,1.531465e-01,2.142851e-01,2.460313e-01,1.011628e-01,2.743606e-02,9.798534e-02,2.598632e-01,2.272824e-01,2.918966e-01,2.798742e-01,1.158270e-01,1.984987e-01,7.667792e-02,2.586592e-01,1.252270e-01,7.540244e-03,3.438416e-01,1.685521e-01,5.040530e-02,3.481922e-01,9.636129e-02,3.185849e-01,9.104028e-02,1.825642e-01,7.228275e-02,2.163923e-01,3.058604e-01,8.656666e-02,1.414090e-01,9.473977e-02,2.447495e-01,1.840448e-01,1.416565e-01,1.309659e-01,1.916810e-01,2.661250e-01,2.531486e-01,5.928098e-02,2.545844e-01,2.603267e-01,6.143219e-02,4.629719e-02,2.879857e-01,2.880686e-01,2.532247e-01,1.193916e-01,2.020878e-01,1.140908e-01,1.050417e-01,2.798772e-01,4.201054e-02,5.210670e-02,2.238559e-01,1.203570e-01,2.209939e-01,1.510058e-01,9.476274e-02,1.791161e-01,2.099509e-01,1.931393e-01,2.549953e-01,1.458509e-01,4.574895e-02,2.720677e-01,2.541411e-01,3.180994e-01,1.762382e-01,1.313164e-01,1.409390e-01,1.347537e-01,1.688052e-01,1.575773e-01,7.693820e-02,2.413943e-01,2.250850e-01,2.442751e-01,2.493840e-01,2.388378e-01,3.496171e-01,1.566967e-01,1.596259e-01,1.375277e-01,1.056590e-01,1.290449e-01,4.179420e-02,3.033647e-01,2.293904e-01,9.110396e-02,2.403690e-02,2.712335e-01,3.602684e-01,3.402961e-01,6.989443e-02,1.108020e-01,1.569847e-01,3.553422e-01,1.233466e-01,9.721116e-02,1.696935e-01,3.640107e-02,3.218429e-01,3.337425e-01,3.058794e-01,2.716095e-02,6.699575e-02,3.461188e-01,6.029394e-02,8.938456e-02,1.363983e-01,1.131106e-01,1.183942e-01,2.789734e-01,3.389439e-01,1.383525e-01,1.478976e-01,2.187950e-01,1.095712e-01,1.658192e-01,2.306195e-01,2.253823e-01,1.522200e-01,1.160801e-01,1.077572e-01,1.743584e-01,6.443595e-02,4.361884e-01,2.149287e-01,6.989495e-02,3.030854e-01,1.504890e-01,1.401931e-01,7.994465e-02,6.749998e-02,3.183240e-01,1.112412e-01,1.059852e-01,1.084195e-01,2.845615e-01,1.680185e-01,5.498453e-02,1.216659e-01,2.146499e-01,3.154186e-01,2.629816e-01,2.238417e-01,3.034517e-01,1.220421e-01,2.526435e-02,8.076669e-02,2.639892e-01,3.520345e-01,3.095080e-01,3.017585e-01,9.434102e-02,8.888971e-02,9.488585e-02,3.339364e-01,9.159034e-02,1.308015e-01,8.898154e-02,1.616609e-01,2.067160e-01,3.428670e-01,1.946016e-01,1.945727e-01,2.343824e-01,9.430303e-02,2.174679e-01,2.570229e-01,3.375154e-01,3.329378e-01,3.178921e-02,1.855018e-01,2.698726e-01,1.631245e-02,1.255766e-01,1.337043e-01,1.416253e-01,1.809932e-01,3.279381e-01,1.504732e-01,1.030225e-01,1.177707e-01,4.627299e-02,1.104795e-01,3.581461e-01,1.113898e-01,1.573663e-01,2.998735e-01,1.920863e-01,2.785196e-01,3.001266e-01,6.547855e-02,1.638073e-01,2.227451e-01,5.649753e-02,3.988065e-01,1.137652e-01,1.962301e-01,1.489101e-01,1.230734e-02,1.931451e-01,1.556067e-01,2.410580e-01,7.636927e-02,2.494093e-01,4.741695e-02,1.650607e-01,2.952928e-01,1.017218e-01,1.661487e-01,1.402428e-01,2.562570e-01,1.079669e-01,2.603894e-01,2.140741e-01,2.835537e-01,1.823413e-01,3.690622e-01,1.167490e-01,9.928998e-02,2.537481e-01,1.234185e-01,1.968486e-01,1.461619e-01,2.121714e-01,1.998100e-01,4.008999e-01,9.013472e-02,4.048161e-01,7.740369e-02,5.876323e-01,1.569351e-01,1.479546e-01,1.317904e-01,1.110921e-01,2.028868e-01,1.995984e-01,2.003272e-01,1.925287e-01,2.028638e-01,3.013702e-01,1.362094e-01,2.069687e-02,1.567332e-01,2.058759e-01,2.609297e-01,1.561693e-01,1.180124e-02,1.561692e-01,2.609297e-01,2.058759e-01,1.567332e-01,2.069682e-02,1.362094e-01,3.013702e-01,2.028638e-01,1.925286e-01,2.003272e-01,1.995985e-01,2.028868e-01,1.110921e-01,1.317904e-01,1.479546e-01,1.569351e-01,5.876323e-01,7.740364e-02,4.048161e-01,9.013472e-02,4.009000e-01,1.998100e-01,2.121714e-01,1.461619e-01,1.968486e-01,1.234185e-01,2.537481e-01,9.928998e-02,1.167490e-01,3.690622e-01,1.823413e-01,2.835537e-01,2.140742e-01,2.603894e-01,1.079668e-01,2.562570e-01,1.402428e-01,1.661487e-01,1.017218e-01,2.952929e-01,1.650606e-01,4.741691e-02,2.494092e-01,7.636927e-02,2.410580e-01,1.556067e-01,1.931451e-01,1.230734e-02,1.489102e-01,1.962301e-01,1.137652e-01,3.988064e-01,5.649748e-02,2.227451e-01,1.638073e-01,6.547855e-02,3.001266e-01,2.785196e-01,1.920863e-01,2.998735e-01,1.573663e-01,1.113898e-01,3.581462e-01,1.104795e-01,4.627299e-02,1.177707e-01,1.030225e-01,1.504732e-01,3.279381e-01,1.809932e-01,1.416253e-01,1.337043e-01,1.255765e-01,1.631247e-02,2.698725e-01,1.855018e-01,3.178921e-02,3.329377e-01,3.375154e-01,2.570229e-01,2.174679e-01,9.430307e-02,2.343824e-01,1.945728e-01,1.946016e-01,3.428669e-01,2.067160e-01,1.616608e-01,8.898158e-02,1.308015e-01,9.159032e-02,3.339364e-01,9.488586e-02,8.888974e-02,9.434102e-02,3.017585e-01,3.095080e-01,3.520345e-01,2.639892e-01,8.076669e-02,2.526435e-02,1.220422e-01,3.034518e-01,2.238417e-01,2.629815e-01,3.154186e-01,2.146498e-01,1.216659e-01,5.498454e-02,1.680184e-01,2.845615e-01,1.084196e-01,1.059852e-01,1.112412e-01,3.183240e-01,6.750001e-02,7.994468e-02,1.401931e-01,1.504891e-01,3.030854e-01,6.989492e-02,2.149288e-01,4.361884e-01,6.443592e-02,1.743584e-01,1.077572e-01,1.160801e-01,1.522200e-01,2.253823e-01,2.306195e-01,1.658192e-01,1.095712e-01,2.187950e-01,1.478976e-01,1.383525e-01,3.389439e-01,2.789734e-01,1.183942e-01,1.131106e-01,1.363983e-01,8.938456e-02,6.029391e-02,3.461188e-01,6.699573e-02,2.716095e-02,3.058794e-01,3.337425e-01,3.218428e-01,3.640110e-02,1.696935e-01,9.721116e-02,1.233466e-01,3.553421e-01,1.569847e-01,1.108020e-01,6.989444e-02,3.402961e-01,3.602685e-01,2.712335e-01,2.403690e-02,9.110399e-02,2.293904e-01,3.033647e-01,4.179421e-02,1.290449e-01,1.056590e-01,1.375277e-01,1.596260e-01,1.566967e-01,3.496172e-01,2.388377e-01,2.493840e-01,2.442750e-01,2.250850e-01,2.413943e-01,7.693815e-02,1.575773e-01,1.688052e-01,1.347538e-01,1.409390e-01,1.313164e-01,1.762382e-01,3.180994e-01,2.541411e-01,2.720677e-01,4.574897e-02,1.458509e-01,2.549953e-01,1.931393e-01,2.099509e-01,1.791161e-01,9.476274e-02,1.510058e-01,2.209938e-01,1.203571e-01,2.238559e-01,5.210671e-02,4.201056e-02,2.798772e-01,1.050417e-01,1.140908e-01,2.020878e-01,1.193916e-01,2.532248e-01,2.880686e-01,2.879857e-01,4.629718e-02,6.143220e-02,2.603267e-01,2.545844e-01,5.928097e-02,2.531487e-01,2.661250e-01,1.916810e-01,1.309660e-01,1.416565e-01,1.840448e-01,2.447495e-01,9.473976e-02,1.414090e-01,8.656666e-02,3.058604e-01,2.163923e-01,7.228269e-02,1.825642e-01,9.104029e-02,3.185849e-01,9.636129e-02,3.481921e-01,5.040530e-02,1.685521e-01,3.438416e-01,7.540246e-03,1.252270e-01,2.586592e-01,7.667794e-02,1.984987e-01,1.158270e-01,2.798742e-01,2.918965e-01,2.272824e-01,2.598632e-01,9.798534e-02,2.743603e-02,1.011628e-01,2.460313e-01,2.142851e-01,1.531466e-01,2.603231e-01,1.248586e-01,1.317701e-01,1.975898e-01,2.846593e-01,1.279376e-01,3.575457e-01,2.327204e-01,2.530651e-01,2.911929e-01,1.810629e-01,2.263585e-01,9.517805e-02,2.495642e-01,3.620155e-01,2.049058e-01,1.983701e-01,1.740972e-01,1.257835e-01,3.607929e-02,3.019592e-01,8.233179e-02,3.971176e-01,2.652425e-01,4.352093e-01,2.083751e-01,2.372446e-01,3.210582e-01,2.877317e-01,1.167351e-01,4.401497e-01,2.921598e-01,2.739770e-01,3.017660e-01,1.115108e-01,3.487260e-01,1.989210e-01,2.486137e-01,1.224377e-01,1.225767e-01,2.448144e-01,3.088741e-01,2.101620e-01,1.549580e-01,2.917109e-01,2.258015e-01,2.179600e-01,1.672417e-01,3.187792e-01,1.775677e-01,1.328685e-01,1.980484e-01,2.707188e-02,8.466727e-02,2.659613e-01,1.855022e-01,1.555173e-01,2.152760e-01,1.159644e-01,3.245926e-01,5.226908e-02,1.033226e-01,2.459441e-01,3.553204e-01,6.053109e-02,3.073075e-01,1.252988e-01,2.755392e-01,2.084964e-01,1.135965e-01,7.239379e-02,3.075262e-01,9.652802e-02,1.459286e-01,1.914574e-01,2.025151e-01,8.900516e-02,1.270380e-01,2.012172e-01,2.221095e-01,1.203663e-01,1.690346e-01,7.953331e-02,2.199113e-01,2.571085e-01,1.195079e-01,1.339913e-01,3.672347e-01,2.221132e-01,2.806160e-01,3.539028e-01,1.053979e-01,1.230156e-01,1.360040e-01,3.700888e-01,5.260752e-02,1.711099e-01,1.735331e-01,1.376795e-01,1.469657e-01,3.440324e-01,1.685525e-01,1.592194e-01,1.674171e-01,8.162634e-02,2.145012e-01,3.288285e-01,8.426156e-02,2.875903e-01,1.425299e-01,3.341462e-01,1.349618e-01,3.098611e-01,4.485098e-01,1.719157e-01,1.465899e-01,1.593922e-01,7.360995e-02,1.741521e-01,7.743893e-02,2.244536e-02,6.800354e-02,2.992452e-01,3.490459e-01,1.430689e-01,2.697022e-01,1.907064e-01,2.380424e-01,8.928566e-02,1.805623e-01,3.533635e-02,9.191306e-02,2.496498e-01,2.130100e-01,2.940106e-01,3.709492e-01,9.103169e-02,7.783117e-02,3.614890e-01,2.607835e-01,2.541060e-01,3.955528e-01,2.897830e-01,2.933081e-01,3.140529e-01,2.649462e-01,2.480626e-01,8.886527e-02,5.554066e-02,5.766667e-01,1.359767e-01,2.827074e-01,8.820708e-02,3.883525e-01,3.123292e-01,1.511125e-01,2.539534e-01,8.137216e-02,2.960867e-01,3.255370e-01,2.682562e-01,2.279680e-01,4.631629e-01,3.420224e-01,1.042667e-01,4.003132e-01,2.007655e-01,1.910852e-01,1.902588e-01,2.420044e-01,9.428362e-02,1.830697e-01,1.446351e-01,3.144628e-01,2.867535e-01,3.180932e-01,2.861015e-01,2.333594e-01,4.573855e-01,6.945253e-02,1.411958e-01,1.246065e-01,4.859236e-01,1.955532e-01,1.810302e-01,3.135189e-01,2.684270e-01,1.888043e-01,2.574666e-01,2.120339e-01,2.037441e-01,3.335730e-01,2.842496e-01,1.942473e-01,2.317933e-01,1.967010e-01,2.398763e-02,1.691778e-01,2.415012e-01,2.488066e-01,3.542708e-01,1.333201e-01,1.889600e-01,1.202426e-01,1.941099e-01,2.815202e-01,1.301445e-01,4.099350e-01,1.328469e-01,2.159272e-01,2.245332e-01,1.706570e-02,4.646387e-02,4.950227e-02,1.456240e-01,3.455679e-01,2.657047e-01,2.514783e-01,1.929011e-01,4.009396e-01,1.743206e-01,3.383082e-01,3.440511e-01,1.156538e-01,5.713966e-02,1.123644e-01,3.286296e-01,1.749128e-01,2.416848e-01,7.515068e-02,1.729022e-01,3.964341e+00,2.153282e-01,2.185122e-01,1.450102e-01,2.347005e-01,2.075598e-01,2.579769e-01,3.849658e-01,1.821912e-01,4.137337e-02,1.380682e-01,2.310183e-01,2.901986e-01,2.755830e-01,2.490903e-01,2.518824e-01,3.204013e-01,2.443818e-01,2.063257e-01,2.316880e-01,9.186540e-02,4.182612e-01,2.921721e-01,3.126748e-01,4.345959e-01,1.321073e-01,3.725032e-01,1.751627e+00,2.014323e-01,1.638744e-01,4.579160e-02,1.631006e-01);
  7. end package fft_data;