However, the problem is that vector processing assumes that each and every instruction will be applied to all elements of the vector.
然而,问题是向量处理会假设每条指令都可以适用于向量的所有元素。
For instance, spu_add (myvec, 2) generates an ai (add immediate) instruction, while spu_add (myvec, 2000) first loads the 2000 into its own vector using il and then performs the a (add) instruction.
举例来说,spu_add (myvec,2)就会生成一条ai(立即加法)指令,而spu_add (myvec, 2000)则首先会使用il将2000加载到自己的向量中,然后执行a(加法)指令。
However, if given two vector floats as parameters, it will generate the fa (float add) instruction.
然而,如果传递两个vectorfloat作为参数,就会生成fa(浮点加法)指令。
For addition, spu_add, when given two vector unsigned ints as parameters, will generate the a (32-bit add) instruction.
另外,当 spu_add 被传递两个vectorunsignedint作为参数时,就会生成一条 a(32 位加法)指令。
The whole design has succeeded in the test of large data input, operation in each instruction, border condition and every random data vector. The code coverage has reached the percentage of 100%.
整个设计通过了海量数据输入测试,并对各种指令的操作数、边界情况和各种随机数据组合进行了充分模拟,代码覆盖率为100%。
The whole design has succeeded in the test of large data input, operation in each instruction, border condition and every random data vector. The code coverage has reached the percentage of 100%.
整个设计通过了海量数据输入测试,并对各种指令的操作数、边界情况和各种随机数据组合进行了充分模拟,代码覆盖率为100%。
应用推荐