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

조회 수: 17 (최근 30일)
Abigail Kwan
Abigail Kwan 2020년 7월 20일
답변: Kiran Kintali 2020년 10월 20일
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.

답변 (1개)

Kiran Kintali
Kiran Kintali 2020년 10월 20일
Please check the attached example of uniform rand number generation using HDL Coder native floating point code generaiton features.

카테고리

Help CenterFile Exchange에서 Code Generation에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by