Hi,
I'm working with HDL FIFO Classic Module and I've discovered that when I do a reset (to local reset port) , FIFO Number of register entries turns to 1 and the empty signal turns to low level. Are there anything wrong with Classic HDL FIFO module or am I missing something?
NOTE: And HDL code generated does just the descrived above
fifo_sample_count_next <= to_unsigned(16#0001#, 16) WHEN rst /= '0' ELSE
fifo_sample_count + to_unsigned(16#0001#, 16) WHEN (fifo_write_enable AND ( NOT fifo_read_enable)) = '1' ELSE
fifo_sample_count + to_unsigned(16#FFFF#, 16) WHEN (( NOT fifo_write_enable) AND fifo_read_enable) = '1' ELSE
fifo_sample_count;

Respuestas (1)

Kiran Kintali
Kiran Kintali el 1 de Dic. de 2023

0 votos

Would you be able to share your sample model? You can prune it to just show HDL FIFO block.
Found a relevant report here. Need to investigate further if the issue is identical.
An update patch is planned for this bug.

6 comentarios

Juan Martin de las mulas
Juan Martin de las mulas el 1 de Dic. de 2023
I've attached a simulink model only with FIFO HDL reset, and the Logic Analyzer shows how the signal turns to 1 after the reset is received. Maybe is it related with the HDL optimization options? I think is something so basic that Im missing something...
Thanks!
Kiran Kintali
Kiran Kintali el 1 de Dic. de 2023
Editada: Kiran Kintali el 1 de Dic. de 2023
please share the mask variables or hardcode the sizes for this pruned model.
(DetectionSize/4)*MaxNumDetections
Juan Martin de las mulas
Juan Martin de las mulas el 4 de Dic. de 2023
Editada: Juan Martin de las mulas el 4 de Dic. de 2023
Sorry Kiran, it's 42000. But it doesn't matter the value I set there... always the same result.
Thanks!
Kiran Kintali
Kiran Kintali el 6 de Dic. de 2023
The issue is fixed in latest release; what is the version of MATLAB you are using? We would like to provide an update.
Kiran Kintali
Kiran Kintali el 6 de Dic. de 2023
The issue is resolved in the latest releases of MATLAB and HDL Coder and is being backported to previous releases. https://www.mathworks.com/support/bugreports/2982578
Do not hesitate to reach out to tech support for the update release information.
Juan Martin de las mulas
Juan Martin de las mulas el 11 de Dic. de 2023
Hi Kiran. I'm using Matlab 2022 version. I wasn't asserting reset and pop at the same time, only set reset, but in any case... thanks!

Iniciar sesión para comentar.

Categorías

Más información sobre Code Generation en Centro de ayuda y File Exchange.

Productos

Versión

R2022a

Etiquetas

Preguntada:

el 1 de Dic. de 2023

Comentada:

el 11 de Dic. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by