From 4c9f62e1e01484d047abb34334e36adb0edfb0f0 Mon Sep 17 00:00:00 2001 From: Eddie Hung Date: Thu, 27 Dec 2018 23:47:16 -0800 Subject: [PATCH] Add attosoc_sim.sh and fimrware_fast.hex --- xc7/attosoc.sh | 6 ++---- xc7/attosoc_sim.sh | 16 ++++++++++++++++ xc7/firmware_fast.hex | 6 ++++++ xc7/{firmware.hex => firmware_slow.hex} | 0 4 files changed, 24 insertions(+), 4 deletions(-) create mode 100755 xc7/attosoc_sim.sh create mode 100644 xc7/firmware_fast.hex rename xc7/{firmware.hex => firmware_slow.hex} (100%) diff --git a/xc7/attosoc.sh b/xc7/attosoc.sh index 119ed6b9..cb04bda4 100755 --- a/xc7/attosoc.sh +++ b/xc7/attosoc.sh @@ -3,13 +3,11 @@ set -ex rm -f picorv32.v attosoc.v wget https://raw.githubusercontent.com/cliffordwolf/picorv32/master/picorv32.v wget https://raw.githubusercontent.com/SymbiFlow/prjtrellis/master/examples/picorv32_versa5g/attosoc.v +ln -sf firmware_slow.hex firmware.hex yosys attosoc.ys set +e ../nextpnr-xc7 --json attosoc.json --xdl attosoc.xdl --pcf attosoc.pcf --freq 125 set -e xdl -xdl2ncd attosoc.xdl -#bitgen -w attosoc.ncd -g UnconstrainedPins:Allow +bitgen -w attosoc.ncd -g UnconstrainedPins:Allow trce attosoc.ncd -v 10 - -netgen -sim -ofmt vhdl attosoc.ncd -w attosoc_pnr.vhd -ghdl -c -fexplicit --no-vital-checks --ieee=synopsys -Pxilinx-ise attosoc_tb.vhd attosoc_pnr.vhd -r testbench diff --git a/xc7/attosoc_sim.sh b/xc7/attosoc_sim.sh new file mode 100755 index 00000000..61d668af --- /dev/null +++ b/xc7/attosoc_sim.sh @@ -0,0 +1,16 @@ +#!/bin/bash +set -ex +rm -f picorv32.v attosoc.v +wget https://raw.githubusercontent.com/cliffordwolf/picorv32/master/picorv32.v +wget https://raw.githubusercontent.com/SymbiFlow/prjtrellis/master/examples/picorv32_versa5g/attosoc.v +ln -sf firmware_fast.hex firmware.hex +yosys attosoc.ys +set +e +../nextpnr-xc7 --json attosoc.json --xdl attosoc.xdl --pcf attosoc.pcf --freq 125 +set -e +xdl -xdl2ncd attosoc.xdl +#bitgen -w attosoc.ncd -g UnconstrainedPins:Allow +trce attosoc.ncd -v 10 + +netgen -sim -ofmt vhdl attosoc.ncd -w attosoc_pnr.vhd +ghdl -c -fexplicit --no-vital-checks --ieee=synopsys -Pxilinx-ise attosoc_tb.vhd attosoc_pnr.vhd -r testbench diff --git a/xc7/firmware_fast.hex b/xc7/firmware_fast.hex new file mode 100644 index 00000000..bf6fe43c --- /dev/null +++ b/xc7/firmware_fast.hex @@ -0,0 +1,6 @@ +@00000000 +13 04 20 00 B7 04 00 02 13 04 14 00 13 74 F4 0F +13 09 20 00 63 5E 89 00 13 05 04 00 93 05 09 00 +EF 00 80 01 63 08 05 00 13 09 19 00 6F F0 9F FE +23 A0 84 00 6F F0 5F FD 93 02 10 00 33 05 B5 40 +E3 5E 55 FE 67 80 00 00 diff --git a/xc7/firmware.hex b/xc7/firmware_slow.hex similarity index 100% rename from xc7/firmware.hex rename to xc7/firmware_slow.hex