[FRDM-KL25Z] Multiply instruction set - cycle counts

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

[FRDM-KL25Z] Multiply instruction set - cycle counts

跳至解决方案
1,647 次查看
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,108 次查看
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,109 次查看
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 项奖励
回复