gateware/icE1usb-proto: Initial import
This is the project specific to the PMOD based early prototype.
It was used either with the icebreaker or the icebreaker-bitsy
board as host. Set BOARD variable appropriately during build.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
diff --git a/gateware/icE1usb-proto/Makefile b/gateware/icE1usb-proto/Makefile
new file mode 100644
index 0000000..52f4b5a
--- /dev/null
+++ b/gateware/icE1usb-proto/Makefile
@@ -0,0 +1,43 @@
+# Project config
+PROJ=icE1usb-proto
+
+PROJ_DEPS := no2e1 no2ice40 no2misc no2usb
+PROJ_RTL_SRCS := $(addprefix rtl/, \
+ misc.v \
+ sysmgr.v \
+)
+PROJ_RTL_SRCS += $(addprefix ../common/rtl/, \
+ dfu_helper.v \
+ picorv32.v \
+ soc_base.v \
+ soc_bram.v \
+ soc_iobuf.v \
+ soc_picorv32_bridge.v \
+ soc_spram.v \
+ wb_arbiter.v \
+ wb_dma.v \
+ wb_epbuf.v \
+)
+PROJ_PREREQ = \
+ $(BUILD_TMP)/boot.hex \
+ $(NULL)
+PROJ_TOP_SRC := rtl/top.v
+PROJ_TOP_MOD := top
+
+# Target config
+BOARD ?= icebreaker
+DEVICE = up5k
+PACKAGE = sg48
+
+NEXTPNR_ARGS = --pre-pack data/clocks.py --seed 4
+
+# Include default rules
+NO2BUILD_DIR := ../build
+include $(NO2BUILD_DIR)/project-rules.mk
+
+# Custom rules
+../common/fw/boot.hex:
+ make -C ../common/fw boot.hex
+
+$(BUILD_TMP)/boot.hex: ../common/fw/boot.hex
+ cp $< $@