How to read a matrix data from a subfunction by HDLs coder

조회 수: 1 (최근 30일)
huynh quyen
huynh quyen 2016년 7월 24일
답변: Kiran Kintali 2023년 6월 26일
I am doing a project about levitation acoustic that using FPGA board to control signal. And I must do many programming on the matlab so I using HDLs coder with Matlab to convert code from Matlab into Verilog language. And input of programming is a delay time array that can change depends on number ultrasound and distance between each ultrasound (It is a matrix time ). But when I generate HDLs coder (with a file of main function and a testbench file, But It appear error so not understand Z(1,1),Z(1,2) (access elements of matrix) and Z matrix is output of a sub function (this matrix can change) as the following figure:
I want know the way to read a matrix data to when convert into verilog language is that the programming still understand

답변 (1개)

Kiran Kintali
Kiran Kintali 2023년 6월 26일
HDLCoder Design Patterns and Examples
hdldesignpatterns/matlabhdl section has several MATLAB coding patterns including how to read and write matrices.

카테고리

Help CenterFile Exchange에서 Code Generation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by