int_maketodo: only count resolved tags

Signed-off-by: John McMaster <johndmcmaster@gmail.com>
This commit is contained in:
John McMaster 2018-12-12 12:30:44 -08:00
parent 010edc4829
commit 97fed169f7
1 changed files with 6 additions and 2 deletions

View File

@ -2,6 +2,7 @@
import os, re
import sys
from prjxray import util
def noprefix(tag):
@ -23,8 +24,11 @@ def load_pipfile(pipfile):
with open(pipfile, "r") as f:
# INT_L.WW2BEG0.SR1BEG_S0
for line in f:
line = line.split()
tag = line[0]
tag, _bits, mode = util.parse_db_line(line)
# Only count resolved entries
if mode:
continue
prefix_line = getprefix(tag)
if tile_type is None:
tile_type = prefix_line