mirror of https://github.com/openXC7/prjxray.git
segmaker: fix site_type prefixes for GTP sites
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
This commit is contained in:
parent
6867429cc3
commit
13ffbcbf50
|
|
@ -134,7 +134,7 @@ def main():
|
||||||
|
|
||||||
for i in range(2):
|
for i in range(2):
|
||||||
segmk.add_tile_tag(
|
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"):
|
if tile_type.startswith("GTP_COMMON_MID"):
|
||||||
bitfilter = bitfilter_gtp_common_mid
|
bitfilter = bitfilter_gtp_common_mid
|
||||||
|
|
|
||||||
|
|
@ -283,7 +283,7 @@ class Segmaker:
|
||||||
segment["tags"][tag] = value
|
segment["tags"][tag] = value
|
||||||
|
|
||||||
def add_site_tags():
|
def add_site_tags():
|
||||||
site_prefix = site.split('_')[0]
|
site_prefix = "_".join(site.split('_')[0:-1])
|
||||||
|
|
||||||
def name_slice():
|
def name_slice():
|
||||||
'''
|
'''
|
||||||
|
|
@ -331,7 +331,7 @@ class Segmaker:
|
||||||
'IDELAY': name_y0y1,
|
'IDELAY': name_y0y1,
|
||||||
'ILOGIC': name_y0y1,
|
'ILOGIC': name_y0y1,
|
||||||
'OLOGIC': name_y0y1,
|
'OLOGIC': name_y0y1,
|
||||||
'IBUFDS': name_y0y1,
|
'IBUFDS_GTE2': name_y0y1,
|
||||||
}.get(site_prefix, name_default)()
|
}.get(site_prefix, name_default)()
|
||||||
self.verbose and print(
|
self.verbose and print(
|
||||||
'site %s w/ %s prefix => tag %s' %
|
'site %s w/ %s prefix => tag %s' %
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue