smpDemo
This demo (smpDemo directory) illustrates how to use multiple cores to process multiple encryption pat the same time in parallel. Each core is assigned an encryption algorithm with an input keys (each core has a different key). Core 0 prints the final encrypted values after the other cores complete the encryption. If a single core performed the encryption, it would take four times more clock cycles to complete the process.
The demo outputs the following messages to a terminal:
***Starting SMP Demo***
synced!
processing clock cycles: 4731
hart 0 encrypted output A: 167c6cc6
hart 0 encrypted output B: 465e6781
hart 1 encrypted output A: e39a3a87
hart 1 encrypted output B: 70cf21d1
hart 2 encrypted output A: cba365ff
hart 2 encrypted output B: 003fdfa8
hart 3 encrypted output A: 93d5278b
hart 3 encrypted output B: 62f40a6f
***Succesfully Ran Demo***