Is there a Rand() function alternative for HDL Coder?

16 visualizaciones (últimos 30 días)
Abigail Kwan
Abigail Kwan el 20 de Jul. de 2020
Respondida: Kiran Kintali el 20 de Oct. de 2020
Is there an alternative way of generating "16x3 double" numbers for use in HDL Coder? I am trying to use rand() for a function that I need to convert into HDL, but I am getting an message from HDL Coder saying that I need to change it because it is not supported. I was wondering if there is an alternative or if I would need to make it from scratch.

Respuestas (1)

Kiran Kintali
Kiran Kintali el 20 de Oct. de 2020
Please check the attached example of uniform rand number generation using HDL Coder native floating point code generaiton features.

Categorías

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

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by