Code covered by the BSD License  

Highlights from
Dual Core Blackfin Application Example

image thumbnail

Dual Core Blackfin Application Example

by

 

14 May 2008 (Updated )

Target both cores of a BF561 microprocessor with Real-Time Workshop Embedded Coder

dual_core_variables.m

frame_width = 30;
period_count = 1;

% Shared data

wave_share1 = Blackfin.Dual;
wave_share1.RTWInfo.StorageClass='Custom';
wave_share1.RTWInfo.CustomStorageClass='BF561_SHARED_L2_RAM';
wave_share1.Dimensions = frame_width;
wave_share1.DataType = 'int32';

wave_share2 = Blackfin.Dual;
wave_share2.RTWInfo.StorageClass='Custom';
wave_share2.RTWInfo.CustomStorageClass='BF561_SHARED_L2_RAM';
wave_share2.Dimensions = frame_width;
wave_share2.DataType = 'int32';

frame = Blackfin.Dual;
frame.RTWInfo.StorageClass='Custom';
frame.RTWInfo.CustomStorageClass='BF561_SHARED_L2_RAM';
frame.Datatype = 'int32';

accum_complete = Blackfin.Dual;
accum_complete.RTWInfo.StorageClass='Custom';
accum_complete.RTWInfo.CustomStorageClass='BF561_SHARED_L2_RAM';
accum_complete.Datatype = 'uint8';

corr_complete = Blackfin.Dual;
corr_complete.RTWInfo.StorageClass='Custom';
corr_complete.RTWInfo.CustomStorageClass='BF561_SHARED_L2_RAM';
corr_complete.Datatype = 'uint32';

% Core A has no local data

% Core B local data

wave_local1 = Blackfin.Dual;
wave_local1.RTWInfo.StorageClass='Custom';
wave_local1.RTWInfo.CustomStorageClass='BF561_FAST_L1_RAM';
wave_local1.Dimensions = frame_width;
wave_local1.DataType = 'int32';

wave_local2 = Blackfin.Dual;
wave_local2.RTWInfo.StorageClass='Custom';
wave_local2.RTWInfo.CustomStorageClass='BF561_FAST_L1_RAM';
wave_local2.Dimensions = frame_width;
wave_local2.DataType = 'int32';

Contact us