Debian Codegraph @

ice40/smoketest/attosoc/smoketest.sh

raw
1 #!/usr/bin/env bash
2 set -ex
3 yosys -q -p 'synth_ice40 -json attosoc.json -top attosoc' attosoc.v picorv32.v
4 $NEXTPNR --hx8k --json attosoc.json --pcf attosoc.pcf --asc attosoc.asc --freq 50
5 icetime -tmd hx8k -c 50 attosoc.asc
6 icebox_vlog -L -l -p attosoc.pcf -c -n attosoc attosoc.asc > attosoc_pnr.v
7 iverilog -DNO_ICE40_DEFAULT_ASSIGNMENTS -o attosoc_pnr_tb attosoc_pnr.v attosoc_tb.v `yosys-config --datdir/ice40/cells_sim.v`
8 vvp attosoc_pnr_tb
9 diff output.txt golden.txt