simulink can't map matrie to RAM

14 visualizaciones (últimos 30 días)
Xiaotong
Xiaotong el 10 de Dic. de 2025 a las 8:47
Respondida: Kiran Kintali el 11 de Dic. de 2025 a las 13:14
Hi, i worked on this function block in Simulink and failed to map this persistent matrice to RAM in HDLcoder, and there's no warning coming out of HDLcoder. Thanks in advance for your help!
Here is the function:
function rd_out = Buffer45x45(din, addr_x, addr_y, wr_en, rd_en)
persistent u_d ;
if isempty(u_d)
u_d= false(45,45);
end
reg_rd_out = rd_en && u_d(addr_x,addr_y);
u_d(addr_x,addr_y) = wr_en;
rd_out = reg_rd_out;
display(u_d(1:10, 1:10));
end

Respuestas (1)

Kiran Kintali
Kiran Kintali el 11 de Dic. de 2025 a las 13:14
Hi, Can you please share the model here or reach out to technical support for additional guidance? Thanks

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by