Skip to content

Commit

Permalink
Merge pull request #52 from trabucayre/xilinx_device_fix_fabricname
Browse files Browse the repository at this point in the history
xilinx/python/xilinx_device: fix fabricname extraction
  • Loading branch information
gatecat authored Dec 8, 2022
2 parents 74ca026 + 325459f commit 1c0aeba
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion xilinx/python/xilinx_device.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
import os
import re
from tileconn import apply_tileconn
from parse_sdf import parse_sdf_file
# Represents Xilinx device data from PrjXray etc
Expand Down Expand Up @@ -451,7 +452,11 @@ def get_wire_intent(tiletype, wirename):
return ij["intents"][str(ij["tiles"][tiletype][wirename])]

d = Device(name)
fabricname = name.split('t')[0] + "t"
match = re.search("^(xc7[akz]\d+t?)\w+-\d", name)
if not match:
raise RuntimeError("{} is not known device name".format(name))
fabricname = match.groups()[0]

if fabricname == 'xc7a35t':
# https://github.com/gatecat/nextpnr-xilinx/issues/35
# https://github.com/f4pga/prjxray/pull/1889
Expand Down

0 comments on commit 1c0aeba

Please sign in to comment.