From 0e3a1ba6bc8b08831108c96097de4645bb454a95 Mon Sep 17 00:00:00 2001 From: Jerry Zhao Date: Thu, 16 Mar 2023 13:12:42 -0700 Subject: [PATCH] Add many-core config | hello-world --- .../chipyard/src/main/scala/config/NoCConfigs.scala | 9 +++++++++ tests/Makefile | 3 ++- tests/hello.c | 5 +++++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 tests/hello.c diff --git a/generators/chipyard/src/main/scala/config/NoCConfigs.scala b/generators/chipyard/src/main/scala/config/NoCConfigs.scala index bd36fe040b..fe637ef58d 100644 --- a/generators/chipyard/src/main/scala/config/NoCConfigs.scala +++ b/generators/chipyard/src/main/scala/config/NoCConfigs.scala @@ -215,3 +215,12 @@ class SbusRingNoCConfig extends Config( new freechips.rocketchip.subsystem.WithNBanks(4) ++ new chipyard.config.AbstractConfig ) + +class ManyCoreNoCConfig extends Config( + new boom.common.WithCloneBoomTiles(15, 64) ++ + new boom.common.WithNMegaBooms ++ + new freechips.rocketchip.subsystem.WithCloneRocketTiles(63) ++ + new freechips.rocketchip.subsystem.WithNBigCores(1) ++ + new freechips.rocketchip.subsystem.WithNBanks(16) ++ + new chipyard.config.AbstractConfig +) diff --git a/tests/Makefile b/tests/Makefile index 54959bf048..8756350d66 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -6,7 +6,8 @@ LDFLAGS= -static include libgloss.mk PROGRAMS = pwm blkdev accum charcount nic-loopback big-blkdev pingd \ - streaming-passthrough streaming-fir nvdla spiflashread spiflashwrite fft gcd + streaming-passthrough streaming-fir nvdla spiflashread spiflashwrite fft gcd \ + hello spiflash.img: spiflash.py python3 $< diff --git a/tests/hello.c b/tests/hello.c new file mode 100644 index 0000000000..6af78a208c --- /dev/null +++ b/tests/hello.c @@ -0,0 +1,5 @@ +#include + +int main(void) { + printf("Hello world\n"); +}