segmaker: fix bug when try site but not tile tag

Signed-off-by: John McMaster <johndmcmaster@gmail.com>
This commit is contained in:
John McMaster 2018-12-04 20:55:29 -08:00
parent d937e9c049
commit 6ef57ba16c
1 changed files with 2 additions and 1 deletions

View File

@ -271,7 +271,8 @@ class Segmaker:
# XXX: does this come from name?
tag = tag.replace(".SLICEM.", ".")
tag = tag.replace(".SLICEL.", ".")
segments[segname]["tags"][tag] = value
segment = getseg(segname)
segment["tags"][tag] = value
sites_used.add(site)
tile_type = tiledata["type"]