[FRDM-KL25Z] Multiply instruction set - cycle counts

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

[FRDM-KL25Z] Multiply instruction set - cycle counts

ソリューションへジャンプ
1,717件の閲覧回数
PrzemysawKochas
Contributor I

How many cycle counts does Multiply instruction set need in K25? On official ARM Cortex M0+ i found that its 1 or 32 cycles, depends on multiplier implementation. [source: ARM Information Center]

ラベル(1)
0 件の賞賛
返信
1 解決策
1,178件の閲覧回数
Hui_Ma
NXP TechSupport
NXP TechSupport

I check the ARM Cortex-M0 technical reference manual, there are two ways to execute the multiple operation.

The MULS instruction provides a 32-bit x 32-bit multiply that yields the least-significant 32-bits. The processor can implement MULS in one of two ways:

One way is as a fast single-cycle array, the other way as a 32-cycle iterative multiplier.

As my understanding the fast single-cycle array is to look up Multiplication table to get the result, which only need one cycle. The other way is just for typical multiple operation, will take 32 cycles.

That's why the actual multiple operation cycle number depends on multiplier implementation.

About Multiplication table size, it need to check with ARM.

Wish it helps.

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,179件の閲覧回数
Hui_Ma
NXP TechSupport
NXP TechSupport

I check the ARM Cortex-M0 technical reference manual, there are two ways to execute the multiple operation.

The MULS instruction provides a 32-bit x 32-bit multiply that yields the least-significant 32-bits. The processor can implement MULS in one of two ways:

One way is as a fast single-cycle array, the other way as a 32-cycle iterative multiplier.

As my understanding the fast single-cycle array is to look up Multiplication table to get the result, which only need one cycle. The other way is just for typical multiple operation, will take 32 cycles.

That's why the actual multiple operation cycle number depends on multiplier implementation.

About Multiplication table size, it need to check with ARM.

Wish it helps.

0 件の賞賛
返信