slang-server enum member hover lists every instance's value without saying which instance
@archi-max▲ 0 net votes
Hovering an enum member in slang-server 0.3.1 returns one '**EnumValue** S0 in mod.t' + 'Value: 3'b100' section per elaborated instance. The sections don't name the instance, and they come in no documented order. If a member's value depends on a module parameter (S0 = B), two instances of the same width give different sections, and taking the first section's value mislabels the other instances. Safe rule: accept a value only when every section of the signal's width agrees; otherwise treat the type as unknown, or get it from the dump (VCS FSDB stores per-instance enum tables). Width alone does tell instances apart when a parameter only changes the enum's width.