How to calculate CRC HW performance

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

How to calculate CRC HW performance

1,543件の閲覧回数
jschepler
Contributor III

Hi all,

I am using a K64F processor and I am currently performing CRC's through software.  I would like to evaluate the performance of the CRC through hardware and compare it to the software version.

To do this, I am using the Cycle Counter in SWO Counters in MCUXpresso.  Is this the correct way to compare the two versions?

The results of my testing show that my software-implemented CRC calculation actually takes 100 less cycles than the hardware version.  

I am using a lookup table for the software-implemented version.

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

1,288件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

I think using the Cycle Counter in SWO Counters in MCUXpresso is the correct way to compare the two versions.
This function is able to measure the number of cycles between break points.

I am refer ARM SWO Performance Counters , measure the CRC-16/CCIT-FALSE(line 197 and 198) of crc example in MCUXpresso SDK_2.4.1_FRDM-K64F. That hardware-implemented CRC calculation takes 201 Cycle counter(120MHz).

CRC-16 CCIT-FALSE.png

Would you please show us the software and hardware CRC function measure result images?
Maybe you can attached your test project here, so that we can check it.

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信