temp = cell[i + 1].translate(digits)
temp = temp.replace(' ', '')
x = dictionary.get(temp)
- if x is None:
- print(
- "ERROR: The signal : " +
- str(cell[i + 1]) +
- " of pinmap.txt isn't present in the current dictionary.\
- \nUpdate dictionary or fix-typo.")
- exit(1)
+ assert x is not None, "ERROR: The signal : " + \
+ str(cell[i + 1]) + \
+ " of pinmap.txt isn't present \nin the current" + \
+ " dictionary. Update dictionary or fix-typo."
if x == "input":
p.pinmux += \
mux_wire.format(cell[0], i, "wr" + cell[i + 1]) + "\n"