Coldfire V1 Math support

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Coldfire V1 Math support

2,168件の閲覧回数
davepinnh
Contributor I
How do the JM64/128 perform a multiply?

I see from the manual there are optional MAC, DIV, and EMAC functions as part of the V1 solution. So does the JM64 or JM128 implement any of these hardware functions?

Im guessing not. So how many cycles for a 16x16 multiply on the JM128?

ラベル(1)
0 件の賞賛
返信
3 返答(返信)

1,052件の閲覧回数
davepinnh
Contributor I
OK, great. But without a EMAC or hardware assist, how many clock cycles to do a 16x16 multiply or a MULS.L in a V1.
 
0 件の賞賛
返信

1,052件の閲覧回数
kef
Specialist I
OK, with TPM free running at least prescaler:
 
volatile long a=5;
volatile long b=5;
 
foo()
{
t = TPM1CNT;
   a = a*b;  // 2 loads, muls.l and store
   a = a*b;
   a = a*b;
   a = a*b;
   a = a*b;
   a = a*b;
   a = a*b;
   a = a*b;
   a = a*b;
   a = a*b;
t = TPM1CNT-t;
}
 
after foo executed, I found 77 in the t. Results should be similar repeating the same with shorts
0 件の賞賛
返信

1,052件の閲覧回数
kef
Specialist I
MUL.L and MUL.W instructions are present in MCF51QE. Should be present in JM too.
0 件の賞賛
返信