2017-11-08 08:03:21 +01:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
|
2018-01-08 22:57:06 +01:00
|
|
|
import sys, re
|
2017-11-08 08:03:21 +01:00
|
|
|
|
|
|
|
|
sys.path.append("../../../utils/")
|
|
|
|
|
from segmaker import segmaker
|
|
|
|
|
|
|
|
|
|
segmk = segmaker("design.bits")
|
|
|
|
|
|
|
|
|
|
print("Loading tags from design.txt.")
|
|
|
|
|
with open("design.txt", "r") as f:
|
|
|
|
|
for line in f:
|
|
|
|
|
line, active = line.split()
|
|
|
|
|
tile, pip = line.split("/")
|
|
|
|
|
_, pip = pip.split(".")
|
|
|
|
|
|
|
|
|
|
print(tile, pip, active)
|
|
|
|
|
segmk.addtag(tile, pip, int(active))
|
|
|
|
|
|
|
|
|
|
segmk.compile()
|
|
|
|
|
segmk.write()
|