Exctract cpu into its own module

This commit is contained in:
Paul Mathieu
2021-03-06 16:37:42 -08:00
parent 9e61fd9456
commit 634596fd0f
5 changed files with 463 additions and 0 deletions

18
cpu/makefile Normal file
View File

@@ -0,0 +1,18 @@
all: sim
sim: test.ghw
sim_sources = cpu_test.vhdl
sources = cpu.vhdl alu.vhdl reg.vhdl
test_entity = cpu_test
test.ghw: work-obj93.cf
ghdl -r $(test_entity) --wave=$@
work-obj93.cf: $(sim_sources) $(sources)
ghdl -a $^
PHONY: sim
.PRECIOUS: test.ghw