HDL Code Generation (Verilog) for a 2-D Lookup Table

7 visualizaciones (últimos 30 días)
VIGNESH KUMAR R C
VIGNESH KUMAR R C el 30 de Dic. de 2021
Comentada: Joel Van Sickel el 3 de En. de 2022
Hi,
I am trying to implement a control procedure which has to map to a value based on two measurements. I have decided to use 2-D lookup table for this purpose.
The simulink lookup-table block is working as per my expectations. However, I need to implment the design on a FPGA and in need of the .v file. I have tried generating code and seems to work, but I am not sure of the details to be considered. Also, I am not aware of how to use floting point while generating code.
I would be really helpful to get a step by step procedure to generate the HDL code for the lookup table.
Thanks

Respuestas (1)

Joel Van Sickel
Joel Van Sickel el 30 de Dic. de 2021
Hello,
if you are having issues, try dragging the lookup table block from the hdl coder library instead of the normal one if you haven't done that already. There is nothing different for generating hdl code for a lookup table than other simulink blocks. However, there may be limitations on what lookup table options you can use, so you need to read any warning messages or errors to see if you are using an unsupported feature.
Regards,
Joel
  2 comentarios
VIGNESH KUMAR R C
VIGNESH KUMAR R C el 30 de Dic. de 2021
Hi Joel,
Thank you so much for your answer. I will check it out.
Adding to the question, I would like to ask your thoughts on storing the Lookup Table data in a DRAM. As far as I understand, the HDL code is using the distributed RAM in the FPGA. So, is there any way I can use simulink for generating a memory controller for the FPGA and use it along with the Lookup Table model.
Thanks and regards
Vignesh Kumar R C
Joel Van Sickel
Joel Van Sickel el 3 de En. de 2022
Hello Vignesh,
however, I think it may require some manual tweaking to get what you want since it is focusing on matrix operations and you are looking for LUT behavior.
Regards,
Joel

Iniciar sesión para comentar.

Comunidades de usuarios

Más respuestas en  Power Electronics Control

Categorías

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

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by