As explained in #4405, having outputs or inputs aliased causes a loss of information in debug_info.
To prevent this behavior, we stop assigning debug information at the beginning of the debug_alias option corresponding logic if the wire is an input and/or an output.
One implementation choice here was to choose, for an input that is tied to a constant, whether we should generate:
This patch is an implementation for the first one, because we can still query the constant later in the first whereas we would loose the INPUT and DRIVEN_COMB flags in the second one.
As explained in #4405, having outputs or inputs aliased causes a loss of information in
debug_info
.To prevent this behavior, we stop assigning debug information at the beginning of the
debug_alias
option corresponding logic if the wire is an input and/or an output.One implementation choice here was to choose, for an input that is tied to a constant, whether we should generate:
or
This patch is an implementation for the first one, because we can still query the constant later in the first whereas we would loose the
INPUT
andDRIVEN_COMB
flags in the second one.