syntacore / scr1-sdk

open-source SDKs for the SCR1 core
Other
66 stars 31 forks source link

How to create Coremark Test for TCM? #7

Open I3ernhard opened 2 weeks ago

I3ernhard commented 2 weeks ago

Hi, how can I create a Coremark Test for TCM. I tried to adapt the Makefiles from the hello and dhrystone examples, but without any success.

Thank you! BR Bernhard

achuykov-sc commented 2 weeks ago

Hi @I3ernhard,

You could build CoreMark test for TCM from SCR1 software examples. Please change directory to scr1 and type command

make CFG=<put your configuration here> TARGETS=coremark TCM=1

A couple of notes:

  1. Predefined configurations MAX, BASE and MIN assumes TCM=1 by default
  2. The SCR1 testbench loads application for external memory always, even if application builds of TCM. Then, application's startup copies required code and data from external memory to TCM and jumps to TCM

Best regards, Alexander

I3ernhard commented 1 week ago

Hi Alexander,

first thank you for your reply and suggestion. when I load the binary to the Memory via xModem should be the starting TCM address also be f0000000 and the launching address also f0000200 as it is for the dhrystone? If not or generally speaking how do I find that out for the different programs?

Thanks a lot! BR Bernhard

achuykov-sc commented 1 week ago

Hi Bernhard,

Ok, it clear for me that you are running on FPGA. In this case I'm recommending to build benchmark from Microbench suite from SC-DT package: https://syntacore.com/tools/development-tools (just follow User Guide, chapter "External Benchmark Applications" and README.md from folder /workspace/microbench)

For FPGA from our SDK, the default TCM address is 0xF0000000 and entry point is 0xF0000000 too.

Best regards, Alexander

I3ernhard commented 1 week ago

Hi Alexander, you are right with the FPGA. I'm using the Arty A7 100T Dev. Board so with the command make CFG=BASE TARGETS=coremark TCM=1 I can't do it? If I do that I runs through correctly but there is no bin file?

So with "cmake --build build --target coremark" from the SC-DT Package. I should be able to do it? I will try that out when I'm home again.

Thanks, BR Bernhard

I3ernhard commented 6 days ago

Hi Alexander,

I was able to build it both ways but I always I get and .elf but no .bin file. Do I undeststand something wrong? Thanks a lot, BR Bernhard