matlab code for hdl conversion
显示 更早的评论
hello, i have wriiten a matlab code which i need to convert into hdl code but it is not supporting for hdl conversion. is there any source that i can learn how to write code that supports hdl conversion? please help with my code. what could be done in this code for hdl support.
function result_k1= tryf_fixpt(sout2)
%#codegen
window_width=50;
result_k1=zeros(1,200);
for j=1:170
window_m1=sout2((j:window_width+(j-1)));
window_m11=window_m1(:);
result_k1(j)=skewness(window_m11);
end
回答(1 个)
Kiran Kintali
2023-10-7
HDLCoder Design Patterns and Examples
This link has several tutorials in this submission show how to generate HDL from MATLAB code,
>> mlhdlc_demo_setup('heq')
Generate HDL Code from MATLAB algorithms; you can follow these doc links for additional info..
- MATLAB Algorithm Design Supported MATLAB syntax and functions, System objects, best practices
- Fixed-Point Conversion Convert floating-point code to fixed-point code, optimize fixed-point data types
- Native Floating Point Generate and verify HDL code from floating-point designs
- Code Generation Generate HDL code and test bench, coding standards and reports
- Speed and Area Optimization Improvements through resource sharing, streaming, pipelining, RAM mapping
类别
在 帮助中心 和 File Exchange 中查找有关 Fixed Point Conversion Basics and Type Specification 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!