diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-03-02 17:46:57 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-03-02 17:46:57 +0200 |
| commit | ad6107d33a8a222d9062aae45d0e8d8483939d5d (patch) | |
| tree | 42896a55a89e1f0fac2d1963752836095fab5ae7 /tests/simple_ideal_noc/source.mk | |
| parent | e991095180f774e3582329447c291a11499989ba (diff) | |
| download | gran-ad6107d33a8a222d9062aae45d0e8d8483939d5d.tar.gz gran-ad6107d33a8a222d9062aae45d0e8d8483939d5d.zip | |
add an idealized NoC
+ Purely virtual, doesn't exist, but would be 'theoretically' ideal.
Diffstat (limited to 'tests/simple_ideal_noc/source.mk')
| -rw-r--r-- | tests/simple_ideal_noc/source.mk | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/simple_ideal_noc/source.mk b/tests/simple_ideal_noc/source.mk new file mode 100644 index 0000000..2cf271b --- /dev/null +++ b/tests/simple_ideal_noc/source.mk @@ -0,0 +1,18 @@ +IDEAL_NOC_TEST_OBJ != ./scripts/gen-deps --sources "tests/simple_ideal_noc/sim.c" +TEST_PROGS += build/tests/simple_ideal_noc/sim + +build/tests/simple_ideal_noc/test.inc: tests/simple_ideal_noc/test.c + riscv64-unknown-elf-gcc -O2 -Wall -Wextra -ffreestanding -nostdlib \ + -march=rv64i -mabi=lp64 \ + -o build/tests/simple_ideal_noc/test \ + tests/simple_ideal_noc/test.c + riscv64-unknown-elf-objcopy -Obinary \ + build/tests/simple_ideal_noc/test \ + build/tests/simple_ideal_noc/test.bin + xxd -i build/tests/simple_ideal_noc/test.bin \ + > build/tests/simple_ideal_noc/test.inc + +build/tests/simple_ideal_noc/sim.o: build/tests/simple_ideal_noc/test.inc + +build/tests/simple_ideal_noc/sim: $(IDEAL_NOC_TEST_OBJ) $(OBJS) + $(COMPILE) $(IDEAL_NOC_TEST_OBJ) $(OBJS) -o $@ |
