mirror of https://github.com/openXC7/prjxray.git
Removing index_in_site from site_type files.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
This commit is contained in:
parent
c4a62fb315
commit
7adb81b81c
|
|
@ -41,7 +41,6 @@ foreach tile [get_tiles] {
|
||||||
# SPEED_INDEX
|
# SPEED_INDEX
|
||||||
puts $fp "\t\t\t\{"
|
puts $fp "\t\t\t\{"
|
||||||
puts $fp "\t\t\t\t\"site_pin\":\"$site_pin\","
|
puts $fp "\t\t\t\t\"site_pin\":\"$site_pin\","
|
||||||
puts $fp "\t\t\t\t\"index_in_site\":\"[get_property INDEX_IN_SITE $site_pin]\","
|
|
||||||
puts $fp "\t\t\t\t\"direction\":\"[get_property DIRECTION $site_pin]\","
|
puts $fp "\t\t\t\t\"direction\":\"[get_property DIRECTION $site_pin]\","
|
||||||
set site_pin_node [get_nodes -of_objects $site_pin]
|
set site_pin_node [get_nodes -of_objects $site_pin]
|
||||||
if {[llength $site_pin_node] == 0} {
|
if {[llength $site_pin_node] == 0} {
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,10 @@ def main():
|
||||||
with open(os.path.join(args.output_dir, instance)) as f:
|
with open(os.path.join(args.output_dir, instance)) as f:
|
||||||
instance_site_type = json.load(f)
|
instance_site_type = json.load(f)
|
||||||
|
|
||||||
|
for site_pin in instance_site_type['site_pins'].values():
|
||||||
|
if 'index_in_site' in site_pin:
|
||||||
|
del site_pin['index_in_site']
|
||||||
|
|
||||||
if proto_site_type is None:
|
if proto_site_type is None:
|
||||||
proto_site_type = instance_site_type
|
proto_site_type = instance_site_type
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
|
|
@ -131,7 +131,6 @@ def get_prototype_site(site):
|
||||||
|
|
||||||
proto['site_pins'][name] = {
|
proto['site_pins'][name] = {
|
||||||
'direction': site_pin['direction'],
|
'direction': site_pin['direction'],
|
||||||
'index_in_site': site_pin['index_in_site'],
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for site_pip in site['site_pips']:
|
for site_pip in site['site_pips']:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue