Matlab power function passing HDL coder requirements
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Jesus
am 15 Jan. 2014
Kommentiert: Shubham Kapoor
am 21 Apr. 2015
Which could be the easiest way of realizing the MATLAB function power(a,b) in order to fulfill HDL coder conversion requirements?
According to HDL code generation, none of the power functions are supported.
Thanks in advance.
0 Kommentare
Akzeptierte Antwort
Tim McBrayer
am 15 Jan. 2014
Bearbeitet: Tim McBrayer
am 15 Jan. 2014
There are several ways that you could approach this, depending on your data types and value requirements. One big question is, can your exponent be fractional, or is it limited to integer values? You could build a Stateflow chart or write a MATLAB Function block, if using Simulink. You could also build a subsystem that will repeatedly multiply by your value, using only basic blocks.
If generating HDL Code from MATLAB, you can write your own function, using whatever technique you wish.
4 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu HDL Code Generation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!