Matlab to vhdl conversion

조회 수: 3 (최근 30일)
Rohan
Rohan 2019년 4월 16일
답변: Kiran Kintali 2020년 10월 20일
I am basically trying to convert my MATLAB code into vhdl using HDL coder. I have two function files but hdl coder allows me to add only one function. Hence i used both the functions in one .m file itself. The issue right now is that the 2nd function shows a warning like: "This function may not be used". I tried using and end statement for both functions but it doesnt seem to work. Can anyone please help me out.

답변 (1개)

Kiran Kintali
Kiran Kintali 2020년 10월 20일
HDL Coder supports a single entry point called DUT from which VHDL/Verilog is generated.
Consider making one top level dut.m file with the following interface and use it for HDL code generation.
function [y1, y2] = dut(u1, u2)
y1 = call_to_module1(u1);
y2 = call_to_module2(u2);
end

카테고리

Help CenterFile Exchange에서 HDL Coder에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by