summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaptor Engineering Development Team <support@raptorengineering.com>2017-12-30 18:50:30 -0600
committerRaptor Engineering Development Team <support@raptorengineering.com>2017-12-30 18:53:29 -0600
commit17b5d502ad82602118755bc375eaca7bfca03ae8 (patch)
tree93a909bb1e8fcde5bdef737fbd5da9472c7b5428
parentfc6e00ae5e6af2a8a5475cf7e977747003697837 (diff)
downloadtalos-system-fpga-17b5d502ad82602118755bc375eaca7bfca03ae8.tar.gz
talos-system-fpga-17b5d502ad82602118755bc375eaca7bfca03ae8.zip
Properly generate programming file
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 63a0469..086fe8f 100644
--- a/Makefile
+++ b/Makefile
@@ -66,10 +66,10 @@ system_fpga.blif: main.v i2c_slave.v
yosys -l yosys.log -q -p "synth_ice40 -top system_fpga_top -blif system_fpga.blif" main.v i2c_slave.v
system_fpga.bin: system_fpga.int
- cp system_fpga.int system_fpga.bin
+ icepack system_fpga.int system_fpga.bin
blank.rom:
- dd if=/dev/zero ibs=1M count=4 | tr "\000" "\377" > blank.rom
+ dd if=/dev/zero ibs=1k count=256 | tr "\000" "\377" > blank.rom
system_fpga.rom: blank.rom system_fpga.bin
cp blank.rom system_fpga.rom
OpenPOWER on IntegriCloud