Skip to content

Commit 2b78124

Browse files
committed
Replace - print() -> raise Exception
Remove - superfluous comment Signed-off-by: louiic <[email protected]>
1 parent 4d1fe73 commit 2b78124

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

flow/designs/asap7/mock-array-big/config.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,11 @@
44
rows = int(os.environ.get("MOCK_ARRAY_HEIGHT", "8"))
55
cols = int(os.environ.get("MOCK_ARRAY_WIDTH", "8"))
66

7-
# must be 8x8
8-
if (rows * cols) < 64:
9-
print("ERROR: number of elements row and columns must add up to 64.")
10-
print(" {} {} revert to 8 x 8".format(rows, cols))
11-
exit
12-
137
# Element placement pitch can be control by user
148
pitch_scale = int(os.environ.get("MOCK_ARRAY_PITCH_SCALE", "2"))
159

16-
# must be > 1
1710
if pitch_scale < 1:
18-
print("ERROR: Element placement pitch must be greater than 1")
19-
exit
11+
raise Exception("Element placement pitch must be greater than 1")
2012

2113
# routing pitch for M4, M5 and M6 tied to placement grid at 2.16
2214
# therefore, the Element size should be multiple of 2.16 and

0 commit comments

Comments
 (0)