1 Star 0 Fork 0

zhihua/sled-fpga-hub75

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 897 Bytes
一键复制 编辑 原始数据 按行查看 历史
# Makefile for sled's FPGA HUB75 backend, based on a TinyFPGA BX,
# which got proudly sponsored by the creator, Luke Valenty!
# Many thanks!
PROJ := sled-hub75
FILES :=
all: BX
# Device specific rules.
BX: PIN_DEF := pins/BX.pcf
BX: DEVICE := lp8k
BX: ENTRY := targets/BX
BX: TOP := TinyFPGA_BX
BX: targets/BX.rpt targets/BX.bin
cp targets/BX.bin $(PROJ).bin
# Programming rules
prog-bx: $(PROJ).bin
tinyprog -d 1209:2100 --program $<
prog-ice: $(PROJ).bin
iceprog $<
# Shared targets.
%.blif: %.v
yosys -p 'synth_ice40 -top $(TOP) -blif $@' $< $(FILES)
%.asc: %.blif $(PIN_DEF)
arachne-pnr -d 8k -P cm81 -o $@ -p $(PIN_DEF) $<
%.bin: %.asc
icepack $< $@
# Generative targets
src/pll.v:
icepll -i 16 -o 64 -m -f $@
# Timing analysis.
%.rpt: %.asc
icetime -d $(DEVICE) -mtr $@ $<
# Clean
clean:
rm -f $(PROJ).bin
rm -f targets/*.bin targets/*.asc targets/*.blif targets/*.rpt
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhihuaxie007/sled-fpga-hub75.git
git@gitee.com:zhihuaxie007/sled-fpga-hub75.git
zhihuaxie007
sled-fpga-hub75
sled-fpga-hub75
master

搜索帮助