aboutsummaryrefslogtreecommitdiffstats
path: root/icefuzz
diff options
context:
space:
mode:
authorAndrew Wygle <awygle@gmail.com>2018-05-06 14:00:36 -0700
committerAndrew Wygle <awygle@gmail.com>2018-05-12 21:47:09 -0700
commite4d502e76ce3ec6cb659368c00111afdb5b6b4e0 (patch)
tree46723c19210d3ccaa9e59cbf018a68b20689060f /icefuzz
parent3c6a4dc517514999dffa3f10585a06f1ea223bae (diff)
downloadicestorm-e4d502e76ce3ec6cb659368c00111afdb5b6b4e0.tar.gz
icestorm-e4d502e76ce3ec6cb659368c00111afdb5b6b4e0.tar.bz2
icestorm-e4d502e76ce3ec6cb659368c00111afdb5b6b4e0.zip
Add LM4K to icefuzz Makefile and fuzzconfig.py.
Diffstat (limited to 'icefuzz')
-rw-r--r--icefuzz/Makefile5
-rw-r--r--icefuzz/fuzzconfig.py19
2 files changed, 24 insertions, 0 deletions
diff --git a/icefuzz/Makefile b/icefuzz/Makefile
index a2a40b4..ea9f3e0 100644
--- a/icefuzz/Makefile
+++ b/icefuzz/Makefile
@@ -18,6 +18,11 @@ ifeq ($(DEVICECLASS), 5k)
RAM_SUFFIX := _8k
endif
+ifeq ($(DEVICECLASS), 4k)
+ DEVICE := lm4k-cm49
+ RAM_SUFFIX := _8k
+endif
+
ifeq ($(DEVICECLASS), 8k)
DEVICE := hx8k-ct256
RAM_SUFFIX = _8k
diff --git a/icefuzz/fuzzconfig.py b/icefuzz/fuzzconfig.py
index a50cce5..f03c815 100644
--- a/icefuzz/fuzzconfig.py
+++ b/icefuzz/fuzzconfig.py
@@ -60,6 +60,25 @@ elif device_class == "1k":
""".split()
gpins = "20 21 49 50 93 94 128 129".split()
+
+elif device_class == "4k":
+ num_ramb40 = 20
+ num_iobanks = 2
+ num_dsp = 0
+
+ # TODO(awygle) add F5 G6 F6 E6 which are constrained to (config) SPI.
+ pins = """
+ A1 A2 A3 A4 A5 A6 A7
+ B1 B2 B4 B6 B7
+ C1 C3 C4 C6 C7
+ D1 D2 D3 D6 D7
+ E1 E2 E3 E4 E5 E7
+ F2 F3 F4 F7
+ G3
+ """.split()
+
+ gpins = "A3 A4 D2 E2 E5 G3".split()
+
elif device_class == "5k":
num_ramb40 = 30
num_iobanks = 2