segmaker: fix site_type prefixes for GTP sites

Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
This commit is contained in:
Alessandro Comodi 2021-02-26 11:59:39 +01:00
parent 6867429cc3
commit 13ffbcbf50
2 changed files with 3 additions and 3 deletions

View File

@ -134,7 +134,7 @@ def main():
for i in range(2):
segmk.add_tile_tag(
tile, "IBUFDS_GTE2.%s[%u]" % (param, i), bitstr[i])
tile, "IBUFDS_GTE2.CLKSWING_CFG[%u]" % (i), bitstr[i])
if tile_type.startswith("GTP_COMMON_MID"):
bitfilter = bitfilter_gtp_common_mid

View File

@ -283,7 +283,7 @@ class Segmaker:
segment["tags"][tag] = value
def add_site_tags():
site_prefix = site.split('_')[0]
site_prefix = "_".join(site.split('_')[0:-1])
def name_slice():
'''
@ -331,7 +331,7 @@ class Segmaker:
'IDELAY': name_y0y1,
'ILOGIC': name_y0y1,
'OLOGIC': name_y0y1,
'IBUFDS': name_y0y1,
'IBUFDS_GTE2': name_y0y1,
}.get(site_prefix, name_default)()
self.verbose and print(
'site %s w/ %s prefix => tag %s' %