summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJulian Blake Kongslie2022-03-20 17:27:41 -0700
committerJulian Blake Kongslie2022-03-20 17:27:41 -0700
commit3a65ecf1581148b0c09e85c58019d017e78f1857 (patch)
tree951f531e8f095d73e6b65ab31853a70b3ba85a0f /Makefile
parentCleanup of PDP-8 core to support arbitrated memory protocol. (diff)
downloadmultipdp8-3a65ecf1581148b0c09e85c58019d017e78f1857.tar.xz
Run ~*EIGHT GODDAMN PDP-8s IN PARALLEL*~
It looks like we could probably fit 16 on the current FPGA, just about. (doesn't meet timing at 50MHz, should in theory work at 40MHz)
Diffstat (limited to '')
-rw-r--r--Makefile19
1 files changed, 13 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 0250933..3ba08fd 100644
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,19 @@ fpga: pdp8.sof
7 quartus_pgm -c 1 -m JTAG -o "P;$<@1" 7 quartus_pgm -c 1 -m JTAG -o "P;$<@1"
8.PHONY: fpga 8.PHONY: fpga
9 9
10download-%: mem/%
11 p8bin2uart 1 $< | ./download.tcl 0 1
12 p8bin2uart 1 $< | ./download.tcl 1 1
13 p8bin2uart 1 $< | ./download.tcl 2 1
14 p8bin2uart 1 $< | ./download.tcl 3 1
15 p8bin2uart 1 $< | ./download.tcl 4 1
16 p8bin2uart 1 $< | ./download.tcl 5 1
17 p8bin2uart 1 $< | ./download.tcl 6 1
18 p8bin2uart 1 $< | ./download.tcl 7 1
19
20download-pal-%: build/%.bin
21 p8bin2uart 1 $< | ./download.tcl 0 1
22
10term-mem: 23term-mem:
11 nios2-terminal --instance 0 24 nios2-terminal --instance 0
12.PHONY: term-mem 25.PHONY: term-mem
@@ -15,12 +28,6 @@ term-pdp8:
15 nios2-terminal --instance 1 28 nios2-terminal --instance 1
16.PHONY: term-pdp8 29.PHONY: term-pdp8
17 30
18build/%.hex: build/%.bin
19 p8bin2hex $< > $@
20
21build/%.hex: %.bin
22 p8bin2hex $< > $@
23
24build/%.bin: %.pal 31build/%.bin: %.pal
25 @mkdir -p $(dir $@) 32 @mkdir -p $(dir $@)
26 palbart $< 33 palbart $<