Go to file
Yinan Xu 35a979a4bd Merge branch 'southlake' of github.com:OpenXiangShan/nexus-am into southlake 2022-05-12 21:06:08 +08:00
am Merge branch 'southlake' of github.com:OpenXiangShan/nexus-am into southlake 2022-05-12 21:06:08 +08:00
apps tests,loader,southlake: update workload 2022-05-04 03:49:53 +08:00
docs drivers: add documents for interrupt handling process 2022-05-02 14:17:37 +08:00
libs/klib southlake: add -DNOPRINT macro to disable printf / uart 2022-05-01 12:48:54 +08:00
share/games/nes share,game,nes: add roms from Navy-apps 2020-03-06 18:17:44 +08:00
tests Merge branch 'southlake' of github.com:OpenXiangShan/nexus-am into southlake 2022-05-12 21:06:08 +08:00
tools os-export: fix export file issues 2020-02-13 00:44:38 +08:00
.gitignore Merge pull request #6 from NJU-ProjectN/fix-gitignore 2020-03-06 18:17:06 +08:00
Makefile Makefiles: include arch.mk by default 2019-03-21 09:32:08 +00:00
Makefile.app Makefile: add comments to makefiles 2019-06-13 19:04:24 +00:00
Makefile.check Makefile: add comments to makefiles 2019-06-13 19:04:24 +00:00
Makefile.compile fix CROSS_COMPILE on non-ELF systems 2022-04-25 12:48:53 +08:00
Makefile.lib fix CROSS_COMPILE on non-ELF systems 2022-04-25 12:48:53 +08:00
README.md README: add illustration for building flash images 2022-04-25 15:26:25 +08:00

README.md

The Abstract Machine (AM)

How to build benchmark flash image

  • clone nexus-am from github:
git clone git@github.com:OpenXiangShan/nexus-am.git
  • enter benchmark directory (using apps/coremark as an example):
cd /apps/coremark
make ARCH=riscv64-xs-flash
cd ./build
ls
  • you will find a ".bin" file, this is a benchmark image in flash

How to use the prepared flash image to do simulation

  • assuming you have a XiangShan repo, the commit ID should be newer than 188f739de96af363761c0f2b80b95b70ad01e0fc
  • make emu build
  • use -F to load the image in flash:
./emu -F $AM_HOME//apps/coremark/build/coremark-riscv64-xs-flash.bin  -i ../ready-to-run/coremark-2-iteration.bin 2>debug.log

NOTE: use -i to specify the initial ram image, or a ramdom file if you do not care.