i have matlab 2011,,can i genarate vhdl and verilog code for 2d dct from it by using hdl coder
显示 更早的评论
i have matlab 2011,,can i genarate vhdl and verilog code for 2d dct from it by using hdl coder
1 个评论
Cogli
2015-11-30
First I am not sure if HDL coder can generate VHDL and Verilog code. But I may point out that you can use dct instead of dct2 to ensure MATLAB coder works.
But however dct is supported, conditionally. Therefore, in some cases you can separate dct2() as dct(dct().').' to compute dct2. For example a validation code looks like
N = 10;
x = rand(N,N);
max(max(abs((dct2(x) - dct(dct(x).').'))))
from which we get
ans =
0
So, you can first use two dcts to compute dct2 instead, and then generate your code using MATLAB coder.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 HDL Coder 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!