aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5/trellis_import.py
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2019-02-25 12:46:06 +0000
committerGitHub <noreply@github.com>2019-02-25 12:46:06 +0000
commit031725c80eb6c2c0f922b6fa5be57c42330a8a3b (patch)
tree49215217265802745407465c41f9b493e74f47b1 /ecp5/trellis_import.py
parente87fb696653262bea08caa100f0a5d4d31d2a310 (diff)
parentdf79d94944b4d92207be7ddedc6424b7c931f313 (diff)
downloadnextpnr-031725c80eb6c2c0f922b6fa5be57c42330a8a3b.tar.gz
nextpnr-031725c80eb6c2c0f922b6fa5be57c42330a8a3b.tar.bz2
nextpnr-031725c80eb6c2c0f922b6fa5be57c42330a8a3b.zip
Merge pull request #242 from YosysHQ/ecp5next
ecp5: Fixes and QoR improvements
Diffstat (limited to 'ecp5/trellis_import.py')
-rwxr-xr-xecp5/trellis_import.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/ecp5/trellis_import.py b/ecp5/trellis_import.py
index 6acc32c5..610bd331 100755
--- a/ecp5/trellis_import.py
+++ b/ecp5/trellis_import.py
@@ -153,7 +153,7 @@ speed_grade_names = ["6", "7", "8", "8_5G"]
speed_grade_cells = {}
speed_grade_pips = {}
-pip_class_to_idx = {"default": 0}
+pip_class_to_idx = {"default": 0, "zero": 1}
timing_port_xform = {
"RAD0": "D0",
@@ -199,7 +199,7 @@ def process_timing_data():
pip_class_delays = []
for i in range(len(pip_class_to_idx)):
pip_class_delays.append((50, 50, 0, 0))
-
+ pip_class_delays[pip_class_to_idx["zero"]] = (0, 0, 0, 0)
with open(timing_dbs.interconnect_db_path("ECP5", grade)) as f:
interconn_data = json.load(f)
for pipclass, pipdata in sorted(interconn_data.items()):
@@ -219,6 +219,12 @@ def process_timing_data():
def get_pip_class(wire_from, wire_to):
+
+ if "FCO" in wire_from or "FCI" in wire_to:
+ return pip_class_to_idx["zero"]
+ if "F5" in wire_from or "FX" in wire_from or "FXA" in wire_to or "FXB" in wire_to:
+ return pip_class_to_idx["zero"]
+
class_name = pip_classes.get_pip_class(wire_from, wire_to)
if class_name is None or class_name not in pip_class_to_idx:
class_name = "default"