Xgate and multiplication

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

Xgate and multiplication

2,983 次查看
calou
Contributor III
Hello,
 
Could the Xgate do long multiplication?
For example i have : int var, Long result
I want to do result=var*var
 
Is the xgate is able to do that because i saw that it could only do "basic operation".
If it could do it, is it faster to do this operation with xgate or hcs12 core?
 
Thank you
 
Regards
标签 (1)
0 项奖励
回复
2 回复数

1,113 次查看
Steve
NXP Employee
NXP Employee
As Alban said the CPU is a better choice for multiplication (and division), however, the XGATE can do it using C libraries so it is an option when appropriate. AN3289 has a simple example in section 9 that shows the strengths of the two cores when some division is involved.
0 项奖励
回复

1,113 次查看
Alban
Senior Contributor II
Hello Calou,
 
I strongly recommended to use the CPU12X core to do all multiplication and NOT the XGATE.
The XGATE is not an appropriate choice for long multiplication.
 
Cheers,
Alban.
0 项奖励
回复