Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to create Coremark Test for TCM? #7

Open
I3ernhard opened this issue Aug 31, 2024 · 5 comments
Open

How to create Coremark Test for TCM? #7

I3ernhard opened this issue Aug 31, 2024 · 5 comments

Comments

@I3ernhard
Copy link

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
Copy link
Collaborator

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
Copy link
Author

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
Copy link
Collaborator

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
Copy link
Author

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants