aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/smoketest/attosoc/smoketest.sh
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-12-08 14:37:12 +0000
committerDavid Shah <davey1576@gmail.com>2018-12-08 17:09:27 +0000
commit51155ec6a76617bcd1b96c242879e6c75ce5d78b (patch)
treea25af6d06641a736147972c8a9afa83bfe42a397 /ice40/smoketest/attosoc/smoketest.sh
parent98d2fc6b101c8f8e4e3404cd083243da7bf2dfb2 (diff)
downloadnextpnr-51155ec6a76617bcd1b96c242879e6c75ce5d78b.tar.gz
nextpnr-51155ec6a76617bcd1b96c242879e6c75ce5d78b.tar.bz2
nextpnr-51155ec6a76617bcd1b96c242879e6c75ce5d78b.zip
ci: Add attosoc smoketest for ice40
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ice40/smoketest/attosoc/smoketest.sh')
-rwxr-xr-xice40/smoketest/attosoc/smoketest.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/ice40/smoketest/attosoc/smoketest.sh b/ice40/smoketest/attosoc/smoketest.sh
new file mode 100755
index 00000000..05408ab1
--- /dev/null
+++ b/ice40/smoketest/attosoc/smoketest.sh
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+set -ex
+yosys -q -p 'synth_ice40 -json attosoc.json -top attosoc' attosoc.v picorv32.v
+$NEXTPNR --hx8k --json attosoc.json --pcf attosoc.pcf --asc attosoc.asc --freq 50
+icetime -tmd hx8k -c 50 attosoc.asc
+icebox_vlog -L -l -p attosoc.pcf -c -n attosoc attosoc.asc > attosoc_pnr.v
+iverilog -o attosoc_pnr_tb attosoc_pnr.v attosoc_tb.v `yosys-config --datdir/ice40/cells_sim.v`
+vvp attosoc_pnr_tb
+diff output.txt golden.txt