vendor.xilinx: fix a SyntaxWarning.
This commit is contained in:
parent
14e73a73de
commit
e3e542afff
|
@ -347,9 +347,9 @@ class XilinxPlatform(TemplatedPlatform):
|
||||||
@property
|
@property
|
||||||
def _symbiflow_part(self):
|
def _symbiflow_part(self):
|
||||||
# drop the trailing speed grade letter(s), if any
|
# drop the trailing speed grade letter(s), if any
|
||||||
part = re.sub("[^\d]+$", "", self._part)
|
part = re.sub(r"[^\d]+$", "", self._part)
|
||||||
# drop temp/speed grade letters after family name, if any
|
# drop temp/speed grade letters after family name, if any
|
||||||
part = re.sub("(.{4}\d+t)[il]", r"\1", part)
|
part = re.sub(r"(.{4}\d+t)[il]", r"\1", part)
|
||||||
return part
|
return part
|
||||||
|
|
||||||
# bitstream device name according to prjxray-db path
|
# bitstream device name according to prjxray-db path
|
||||||
|
|
Loading…
Reference in a new issue