Commit 0ee1fef
committed
synth: error on typos in SYNTH_KEEP_MODULES
Today a name in SYNTH_KEEP_MODULES that doesn't exist in the elaborated
design (typo, post-refactor rename, wrong-design list) produces only a
yosys warning from `select` -- the whole keep silently turns into a
no-op and the design flattens. Catch this by passing `-assert-any` to
the two-pattern `select` so an empty selection becomes a hard error.
Skip the strict check in partition mode (SYNTH_BLACKBOXES set): the
same SYNTH_KEEP_MODULES list is reused across partitions and other
partitions' kept modules are legitimately absent from this partition's
RTLIL.
Collect all missing names and report them in one error rather than
failing on the first -- much friendlier when several names have
drifted.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>1 parent 74b5f96 commit 0ee1fef
1 file changed
Lines changed: 26 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
76 | 85 | | |
77 | 86 | | |
78 | 87 | | |
| |||
87 | 96 | | |
88 | 97 | | |
89 | 98 | | |
90 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
91 | 111 | | |
92 | 112 | | |
93 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
94 | 119 | | |
95 | 120 | | |
96 | 121 | | |
| |||
0 commit comments