makehdl like functionality for MATLAB Algorithm HDL generation
显示 更早的评论
How can we generate Native floating point hdl for generic target ( for ASIC/FPGA without locking to a particular vendor ), for a matlab function. We tried to generate this and it failed on function like 'floor'
采纳的回答
更多回答(1 个)
Tim McBrayer
2017-6-14
0 个投票
Native Floating Point code generation support was introduced in HDL Coder in R2017a for Simulink models. To instantiate a floor function, simply use the core Simulink Rounding Function block, with its rounding mode set to floor.
类别
在 帮助中心 和 File Exchange 中查找有关 Guided Code Generation 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!