aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/benchmark
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-07-25 14:55:15 +0200
committerClifford Wolf <clifford@clifford.at>2018-07-25 15:51:19 +0200
commitcc6e0e7df3df591f89782b1e7c51d5712ddd88f1 (patch)
treeb319ef90dfec5349519d71e599b91ec179c12b6c /ice40/benchmark
parent1529fbe58c825ed04479b98f2c7403adadd4c2f5 (diff)
downloadnextpnr-cc6e0e7df3df591f89782b1e7c51d5712ddd88f1.tar.gz
nextpnr-cc6e0e7df3df591f89782b1e7c51d5712ddd88f1.tar.bz2
nextpnr-cc6e0e7df3df591f89782b1e7c51d5712ddd88f1.zip
More minor ice40 benchmark improvements
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'ice40/benchmark')
-rw-r--r--ice40/benchmark/.gitignore1
-rw-r--r--ice40/benchmark/Makefile8
2 files changed, 7 insertions, 2 deletions
diff --git a/ice40/benchmark/.gitignore b/ice40/benchmark/.gitignore
index 392dff13..306b5c6e 100644
--- a/ice40/benchmark/.gitignore
+++ b/ice40/benchmark/.gitignore
@@ -2,4 +2,5 @@ hx8kdemo.log
hx8kdemo.blif
hx8kdemo.json
hx8kdemo_[an][0-9].asc
+hx8kdemo_[an][0-9].log
report_[an][0-9].txt
diff --git a/ice40/benchmark/Makefile b/ice40/benchmark/Makefile
index 2dde17cc..5e16d9b0 100644
--- a/ice40/benchmark/Makefile
+++ b/ice40/benchmark/Makefile
@@ -10,10 +10,10 @@ report_n$1.txt: hx8kdemo_n$1.asc
icetime -m -r report_n$1.txt -d hx8k hx8kdemo_n$1.asc
hx8kdemo_a$1.asc: hx8kdemo.blif
- arachne-pnr -d 8k -p hx8kdemo.pcf -o hx8kdemo_a$1.asc -s $1 hx8kdemo.blif
+ arachne-pnr -d 8k -p hx8kdemo.pcf -o hx8kdemo_a$1.asc -s 1$1 hx8kdemo.blif > hx8kdemo_a$1.log 2>&1
hx8kdemo_n$1.asc: hx8kdemo.json
- ../../nextpnr-ice40 --asc hx8kdemo_n$1.asc --json hx8kdemo.json --pcf hx8kdemo.pcf --hx8k --seed $1
+ ../../nextpnr-ice40 --asc hx8kdemo_n$1.asc --json hx8kdemo.json --pcf hx8kdemo.pcf --hx8k --seed 1$1 > hx8kdemo_n$1.log 2>&1
endef
$(foreach i,0 1 2 3 4 5 6 7 8 9,$(eval $(call mkreport,$(i))))
@@ -21,3 +21,7 @@ $(foreach i,0 1 2 3 4 5 6 7 8 9,$(eval $(call mkreport,$(i))))
hx8kdemo.blif: hx8kdemo.json
hx8kdemo.json: hx8kdemo.v spimemio.v simpleuart.v picosoc.v picorv32.v
yosys -ql hx8kdemo.log -p 'synth_ice40 -top hx8kdemo -blif hx8kdemo.blif -json hx8kdemo.json' $^
+
+clean:
+ rm -f hx8kdemo.log hx8kdemo.blif hx8kdemo.json
+ rm -f hx8kdemo_[an][0-9].asc hx8kdemo_[an][0-9].log report_[an][0-9].txt