Add attosoc_sim.sh and fimrware_fast.hex
This commit is contained in:
parent
592022c180
commit
4c9f62e1e0
@ -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
|
||||
|
16
xc7/attosoc_sim.sh
Executable file
16
xc7/attosoc_sim.sh
Executable file
@ -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
|
6
xc7/firmware_fast.hex
Normal file
6
xc7/firmware_fast.hex
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user