SPRUI04F july 2015 – april 2023
L2: ; PIPED LOOP KERNEL
ADD .L2 B7,B4,B4 ; |14| <0,7> sum0 += a[0]*b[0]
|| ADD .L1 A5,A0,A0 ; |15| <0,7> sum1 += a[1]*b[1]
|| MPY .M2X B6,A4,B7 ; |12| <2,5> a[0] * b[0]
|| MPYH .M1X B6,A4,A5 ; |13| <2,5> a[1] * b[1]
|| [ B0] B .S1 L2 ; |18| <5,2> if (!I) goto loop
|| [ B0] ADD .S2 0xffffffff,B0,B0 ; |17| <6,1> I--
|| LDW .D2T2 *B5++,B6 ; |10| <7,0> load a[0-1] bank0
|| LDW .D1T1 *A3++,A4 ; |11| <7,0> load b[0-1] bank2
|| LDW *B0, B1