From ad6107d33a8a222d9062aae45d0e8d8483939d5d Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 2 Mar 2025 17:46:57 +0200 Subject: add an idealized NoC + Purely virtual, doesn't exist, but would be 'theoretically' ideal. --- tests/simple_ideal_noc/source.mk | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tests/simple_ideal_noc/source.mk (limited to 'tests/simple_ideal_noc/source.mk') 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 $@ -- cgit v1.3