Sign in

username:

password:



Not a member?

Search adsp



Search tips

Subscribe to adsp



adsp by Keywords

AD1819 | AD7332 | ADSP-2106 | ADSP-21060 | ADSP-21065L | ADSP-2116 | ADSP-21160M | ADSP-2181 | ADSP-218x | ADSP-219 | ADSP-2199 | ADSP219 | BF531 | BF532 | BF533 | BF535 | Blackfin | FFT | JTAG | LDF | SDRAM | SHARC | SPORT | UART | VDSP++ | VisualDSP

Discussion Groups

Discussion Groups | Analog Devices DSPs | matrix multiplication dsp code--ADSP2181

Technical discussions related to Analog Devices DSPs (including Blackfin, TigerSHARC, SHARC and ADSP-21xx DSPs).

  

Post a new Thread

matrix multiplication dsp code--ADSP2181 - nirmala_devi2003 - Nov 1 12:19:30 2007



hi frds...i am new to this adsp2181....and i am unable to write 
assembly code for this matrix multiplication .......
plzzz help me.....



(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )

Re: matrix multiplication dsp code--ADSP2181 - Naresh Patel - Nov 2 8:05:39 2007

Please have a look below code. if it is working then kindly inform.

.section/dm data1;
.VAR mat1[4]={1,1,1,1};
.VAR mat2[4]={1,1,1,1};
.section /pm pm_da;
.VAR res[8];
.var buf[4];
.section/pm interrupts;
JUMP start;

.section/pm seg_code2;
start:
       i4=res;
       m4=1;
       l4=0;
       mstat=0x10;
       ax0=0;
       cntr=2;
       do loop1 until ce;
       i0=mat1;
       m0=1;
       l0=0;
       i1=mat2;
       m1=2;
       l1=4;
       m2=ax0;
       modify(i1,m2);
       cntr=4;
       do loop2 until ce;
       mx0=dm(i0,m0);
       my0=dm(i1,m1);
       mr=mx0*my0(ss);
loop2: pm(i4,m4)=mr0;
       ar=ax0;
       ar=ar+1;
loop1: ax0=ar;
       i4=res;
       m4=2;
       l4=0;
       
       i5=res+1;
       m5=2;
       l5=0;
       
       i6=buf;
       m6=1;
       l6=0;
       cntr=4;
       do loop3 until ce;
       ax0=pm(i4,m4);
       ay0=pm(i5,m5);
       ar=ax0+ay0;
loop3: pm(i6,m6)=ar; 
       idle; 
  ----- Original Message ----- 
  From: nirmala_devi2003 
  To: a...@yahoogroups.com 
  Sent: Thursday, November 01, 2007 8:47 PM
  Subject: [adsp] matrix multiplication dsp code--ADSP2181
  hi frds...i am new to this adsp2181....and i am unable to write 
  assembly code for this matrix multiplication .......
  plzzz help me.....



(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )