summarylogtreecommitdiffstats
path: root/0001-fix-xilinx_device-patch-export-for-xc7a35t-fabric.patch
blob: 56794b6b829e3c606053a35afc002c46fe2a390a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From f6a9f2a2fc300b4f72bb3740020ad5911578d17f Mon Sep 17 00:00:00 2001
From: Xiretza <xiretza@xiretza.xyz>
Date: Fri, 3 Jun 2022 23:32:46 +0200
Subject: [PATCH] fix(xilinx_device): patch export for xc7a35t fabric

---
 xilinx/python/xilinx_device.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/xilinx/python/xilinx_device.py b/xilinx/python/xilinx_device.py
index 39b14a5e..d51159cc 100644
--- a/xilinx/python/xilinx_device.py
+++ b/xilinx/python/xilinx_device.py
@@ -452,6 +452,10 @@ def import_device(name, prjxray_root, metadata_root):
 
 	d = Device(name)
 	fabricname = name.split('t')[0] + "t"
+	if fabricname == 'xc7a35t':
+		# https://github.com/gatecat/nextpnr-xilinx/issues/35
+		# https://github.com/f4pga/prjxray/pull/1889
+		fabricname = 'xc7a50t'
 	# Load intent JSON
 	with open(metadata_root + "/wire_intents.json", "r") as ijf:
 		ij = json.load(ijf)
-- 
2.36.1