From dc1f0c4c0096013799416664894c5194dc7e1f52 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Fri, 28 Feb 2025 23:13:39 +0800 Subject: chore(store): move everything to store. --- .../life/computer-organization-experiment/Makefile | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 store/works/life/computer-organization-experiment/Makefile (limited to 'store/works/life/computer-organization-experiment/Makefile') diff --git a/store/works/life/computer-organization-experiment/Makefile b/store/works/life/computer-organization-experiment/Makefile new file mode 100644 index 0000000..0b4db7f --- /dev/null +++ b/store/works/life/computer-organization-experiment/Makefile @@ -0,0 +1,51 @@ +build/cpu_test_bench: build/cpu.o + ghdl elaborate -g --std=08 --workdir=build -fsynopsys -o build/cpu_test_bench cpu_test_bench + +build/cpu.o: build cpu.vhdl + ghdl analyze -g --std=08 --workdir=build -fsynopsys cpu.vhdl + +all: build/test_bench + +build: + mkdir -p build + +build/adder_1.o: build adder_1.vhdl + ghdl analyze --std=08 --workdir=build -fsynopsys adder_1.vhdl + +build/adder_8.o: build adder_8.vhdl + ghdl analyze --std=08 --workdir=build -fsynopsys adder_8.vhdl + +build/adder_32.o: build adder_32.vhdl + ghdl analyze --std=08 --workdir=build -fsynopsys adder_32.vhdl + +build/alu.o: build alu.vhdl + ghdl analyze --std=08 --workdir=build -fsynopsys alu.vhdl + +build/counter_4.o: build counter_4.vhdl + ghdl analyze --std=08 --workdir=build -fsynopsys counter_4.vhdl + +build/full_adder_1.o: build full_adder_1.vhdl + ghdl analyze --std=08 --workdir=build -fsynopsys full_adder_1.vhdl + +build/multiplexer_1_2.o: build multiplexer_1_2.vhdl + ghdl analyze --std=08 --workdir=build -fsynopsys multiplexer_1_2.vhdl + +build/multiplexer_8_2.o: build multiplexer_8_2.vhdl + ghdl analyze --std=08 --workdir=build -fsynopsys multiplexer_8_2.vhdl + +build/multiplexer_32_2.o: build multiplexer_32_2.vhdl + ghdl analyze --std=08 --workdir=build -fsynopsys multiplexer_32_2.vhdl + +build/shift_32.o: build shift_32.vhdl + ghdl analyze --std=08 --workdir=build -fsynopsys shift_32.vhdl + +build/test_bench.o: build test_bench.vhdl build/counter_4.o build/full_adder_1.o build/multiplexer_1_2.o build/multiplexer_8_2.o build/multiplexer_32_2.o build/adder_1.o build/adder_8.o build/adder_32.o build/shift_32.o build/alu.o + ghdl analyze --std=08 --workdir=build -fsynopsys test_bench.vhdl + +build/test_bench: build/test_bench.o + ghdl elaborate --std=08 --workdir=build -fsynopsys -o build/test_bench test_bench + +.PHONY: all clean + +clean: + rm -r build -- cgit v1.2.3