yosys/passes/cmds
junyao 46f9f887f7 setundef: strip init attributes from undriven wires (fixes #5835)
When `setundef -undriven` connects an undriven wire to a replacement
value, the wire's \\init attribute (if present) is now removed. Previously,
the init attribute was left intact, causing downstream passes like
opt_merge to report "Conflicting init values" errors because the init
value contradicted the newly assigned constant.

For wires that are entirely undriven, the init attribute is removed
completely. For partially undriven wires (where only some bits are
undriven), only the corresponding init bits are cleared to x.

Wires driven by flip-flops or other cells are not affected, as they
are excluded from the undriven signal set before this code runs.
2026-05-31 00:18:49 +08:00
..
sdc Refactored uses of log_id() 2026-05-08 20:59:24 -07:00
Makefile.inc Add `linux_perf` command to turn Linux perf recording on and off. 2026-01-23 01:44:57 +00:00
abstract.cc Refactored uses of log_id() 2026-05-08 20:59:24 -07:00
add.cc Remove .c_str() from log_cmd_error() and log_file_error() parameters 2025-09-16 22:59:08 +00:00
autoname.cc Refactored uses of log_id() 2026-05-08 20:59:24 -07:00
blackbox.cc Fixing old e-mail addresses and deadnames 2021-06-08 00:39:36 +02:00
box_derive.cc Refactored uses of log_id() 2026-05-08 20:59:24 -07:00
bugpoint.cc Refactored uses of log_id() 2026-05-08 20:59:24 -07:00
check.cc Refactored uses of log_id() 2026-05-08 20:59:24 -07:00
chformal.cc Refactored uses of log_id() 2026-05-08 20:59:24 -07:00
chtype.cc chtype: replace publish pass with chtype -publish_icells 2025-10-14 15:01:48 +02:00
clean_zerowidth.cc Instead of using builtin_ff_cell_types() directly, go through a method Cell::is_builtin_ff() 2025-09-17 03:24:19 +00:00
connect.cc Refactored uses of log_id() 2026-05-08 20:59:24 -07:00
connwrappers.cc Refactored uses of log_id() 2026-05-08 20:59:24 -07:00
copy.cc Remove .c_str() from log_cmd_error() and log_file_error() parameters 2025-09-16 22:59:08 +00:00
delete.cc rtlil: Make Process handling more uniform with Cell and Wire. 2021-07-12 00:47:34 +02:00
design.cc Fixing couple more conversion errors 2026-05-14 15:58:58 +02:00
design_equal.cc Refactored uses of log_id() 2026-05-08 20:59:24 -07:00
dft_tag.cc Refactored uses of log_id() 2026-05-08 20:59:24 -07:00
edgetypes.cc Refactored uses of log_id() 2026-05-08 20:59:24 -07:00
example_dt.cc Refactored uses of log_id() 2026-05-08 20:59:24 -07:00
exec.cc Remove .c_str() calls from parameters to log_header() 2025-09-16 23:00:42 +00:00
future.cc Refactored uses of log_id() 2026-05-08 20:59:24 -07:00
glift.cc Remove .c_str() from log_cmd_error() and log_file_error() parameters 2025-09-16 22:59:08 +00:00
icell_liberty.cc Convert RTLIL::unescape_id of IdString to unescape() 2026-05-16 19:49:45 +02:00
internal_stats.cc Remove .c_str() calls from log()/log_error() 2025-09-11 20:59:37 +00:00
linecoverage.cc Refactored uses of log_id() 2026-05-08 20:59:24 -07:00
linux_perf.cc linux_perf: only include unistd on Linux 2026-01-28 03:44:33 -08:00
logcmd.cc Remove .c_str() calls from parameters to log_header() 2025-09-16 23:00:42 +00:00
logger.cc Remove .c_str() from log_cmd_error() and log_file_error() parameters 2025-09-16 22:59:08 +00:00
ltp.cc Refactored uses of log_id() 2026-05-08 20:59:24 -07:00
plugin.cc fix dlopen using fs:path with mingw 2025-10-16 08:30:43 +02:00
portarcs.cc Convert RTLIL::unescape_id of IdString to unescape() 2026-05-16 19:49:45 +02:00
portlist.cc Refactored uses of log_id() 2026-05-08 20:59:24 -07:00
printattrs.cc Refactored uses of log_id() 2026-05-08 20:59:24 -07:00
rename.cc Convert RTLIL::unescape_id of IdString to unescape() 2026-05-16 19:49:45 +02:00
scatter.cc Fixing old e-mail addresses and deadnames 2021-06-08 00:39:36 +02:00
scc.cc Remove id2cstr uses in our code base 2026-05-16 19:49:45 +02:00
scratchpad.cc Typo 2026-02-09 09:05:56 -08:00
select.cc Remove id2cstr uses in our code base 2026-05-16 19:49:45 +02:00
setattr.cc Refactored uses of log_id() 2026-05-08 20:59:24 -07:00
setenv.cc Remove .c_str() from log_cmd_error() and log_file_error() parameters 2025-09-16 22:59:08 +00:00
setundef.cc setundef: strip init attributes from undriven wires (fixes #5835) 2026-05-31 00:18:49 +08:00
show.cc Convert RTLIL::unescape_id of IdString to unescape() 2026-05-16 19:49:45 +02:00
sort.cc sort: init 2025-10-13 17:32:26 +02:00
splice.cc Refactored uses of log_id() 2026-05-08 20:59:24 -07:00
splitcells.cc Refactored uses of log_id() 2026-05-08 20:59:24 -07:00
splitnets.cc Update passes/cmds to avoid bits() 2025-09-16 03:17:23 +00:00
sta.cc Refactored uses of log_id() 2026-05-08 20:59:24 -07:00
stat.cc Refactored uses of log_id() 2026-05-08 20:59:24 -07:00
tee.cc Remove .c_str() from log_cmd_error() and log_file_error() parameters 2025-09-16 22:59:08 +00:00
test_select.cc Remove id2cstr uses in our code base 2026-05-16 19:49:45 +02:00
timeest.cc Merge pull request #5882 from YosysHQ/std_cpp20 2026-05-15 13:13:43 +00:00
torder.cc Refactored uses of log_id() 2026-05-08 20:59:24 -07:00
trace.cc Refactored uses of log_id() 2026-05-08 20:59:24 -07:00
viz.cc Fixed log_id instances used with fprintf 2026-05-14 11:28:16 +02:00
wrapcell.cc Convert RTLIL::unescape_id of IdString to unescape() 2026-05-16 19:49:45 +02:00
write_file.cc Reapply "Add groups to command reference" 2025-08-06 13:52:12 +12:00
xprop.cc Refactored uses of log_id() 2026-05-08 20:59:24 -07:00