필터 지우기
필터 지우기

HDL Coder RAM generation for an array

조회 수: 1 (최근 30일)
Arun
Arun 2014년 12월 2일
답변: Kiran Kintali 2021년 4월 6일
will hdl coder generate ram for 2 dimension array if isempty(my_ary)
my_ary = zeros (10,1000)
end
new_value = [1:10];
%later assigna a column in my_ary as follows
my_ary(:,2) = new_value;
Will hdlcoder generate 10 different RAM blocks

답변 (1개)

Kiran Kintali
Kiran Kintali 2021년 4월 6일
RAM mapping is an area optimization that maps storage and delay elements in your MATLAB® code to RAM. Without this optimization, storage and delay elements are mapped to registers. RAM mapping can therefore reduce the area of your design in the target hardware.
You can map the following MATLAB code elements to RAM:
  • persistent array variable
  • dsp.Delay System object™
  • hdl.RAM System object
See demo example how to use persistent arrays and MAP them to RAMs
>> mlhdlc_demo_setup('heq')
% this table shows code samples for different choices
web(fullfile(docroot, 'hdlcoder/ug/ram-mapping-comparison-for-matlab-code.html?s_tid=doc_srchtitle'))

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by