14 lines
410 B
Bash
Executable File
14 lines
410 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# Generate Verilog source for Manta
|
|
python3 -m manta gen manta.yaml manta.v
|
|
|
|
# Clean build/ directory, and run tools from within it
|
|
rm -rf build/
|
|
mkdir -p build/
|
|
cd build
|
|
$YOSYS -p 'synth_ice40 -top top_level -json top_level.json' ../top_level.sv
|
|
$NEXTPNR_ICE40 --hx1k --json top_level.json --pcf ../top_level.pcf --asc top_level.asc
|
|
$ICEPACK top_level.asc top_level.bin
|