Borrar filtros
Borrar filtros

HDL coder Generated Model and Simulink Model Results Does not Match

2 visualizaciones (últimos 30 días)
shauk
shauk el 22 de Mayo de 2017
Comentada: shauk el 23 de Mayo de 2017
Hallo
So i have my model, where 44.1 kHz signal comes in and the output is 11.28 MHz. I am using FIR interpolation filter for up sampling the input signal. I use HDL coder to generate the VHDL code and download the design to a FPGA, i am using 22.56 MHz as my FPGA system clock. But at the output i get some corrupted results and it looks like my output has a Fs of 22.56 MHz.
I am using pipelines in my filter design to increase the timing constraints. And when i compare the generated model results with my simulation results, i can see some error. For example at some points when my simulink simulation result is 1, the generated model result goes to 0 and vice versa. Any idea why this is happening?
What could be the solution, or any test to identify the problem

Respuestas (2)

Bharath Venkataraman
Bharath Venkataraman el 22 de Mayo de 2017
You may be seeing the 0s inserted by the pipeline registers in the output.
One way to debug is to have a parallel valid in - valid out signal chain to the FIR Interpolator. The appropriate delays will be added to this valid signal and you should look at the value only when valid is high.
  1 comentario
shauk
shauk el 23 de Mayo de 2017
Hallo thanks for the answer, but could you please explain the line in bit details, or suggest me a documentation where i could find some explanation. "You may be seeing the 0s inserted by the pipeline registers in the output."

Iniciar sesión para comentar.


shauk
shauk el 23 de Mayo de 2017
Hallo thanks for the answer, but could you please explain the line in bit details, or suggest me a documentation where i could find some explanation. "You may be seeing the 0s inserted by the pipeline registers in the output."

Categorías

Más información sobre Optimization en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by