Skip to content

Commit bc77b62

Browse files
KrystalDelusionwidlarizer
authored andcommitted
autoname: Fix selection arg
1 parent fc2cb32 commit bc77b62

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

passes/cmds/autoname.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ struct AutonamePass : public Pass {
127127
// }
128128
break;
129129
}
130+
extra_args(args, argidx, design);
130131

131132
log_header(design, "Executing AUTONAME pass.\n");
132133

tests/various/autoname.ys

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,17 +171,20 @@ module \top
171171
end
172172
end
173173
EOT
174-
# wires all named for being cell outputs
174+
# wires are named for being cell outputs
175175
logger -expect log "Rename wire .d in top to or_Y" 1
176+
logger -expect log "Rename cell .name2 in top to or_Y_.or_B" 1
177+
debug autoname t:$or
178+
logger -check-expected
179+
176180
# $name gets shortest name (otherwise bcd_$__unknown_B)
177181
logger -expect log "Rename cell .name in top to a_.__unknown_A" 1
178-
logger -expect log "Rename cell .name2 in top to or_Y_.or_B" 1
179182
# another output wire
180183
logger -expect log "Rename wire .e in top to or_Y_.or_B_Y" 1
181184
# $name3 named for lowest fanout wire (otherwise a_$__unknown_A_Y_$and_A)
182185
logger -expect log "Rename cell .name3 in top to or_Y_.or_B_Y_.and_B" 1
183186
# $c gets shortest name, since the cell driving it doesn't have known port
184187
# directions
185188
logger -expect log "Rename wire .c in top to or_Y_.or_B_A" 1
186-
debug autoname t:$and
189+
debug autoname
187190
logger -check-expected

0 commit comments

Comments
 (0)