3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-07-15 11:45:41 +00:00
This commit is contained in:
Stan Lee 2026-04-30 10:47:23 -07:00
parent 6aab520cad
commit f3c3eceedf

View file

@ -216,7 +216,7 @@ struct SplitcellsWorker
// Concatenate struct attribute or wire index (ex: \Memory[0] -> [0]) to the bit offset
size_t bracket_pos = wire_name.find_first_of("[.");
if (bracket_pos != std::string::npos) {
wire_indices = wire_name.substr(bracket_pos) + (strip_reg ? "" : "_reg") + stringf(
wire_indices = wire_name.substr(bracket_pos) + (strip_reg ? "_reg" : "") + stringf(
"%c%d%c", format[0], bit_offset, format[1]);
} else { // no '[' or '.', so no concatenation using wire, use slice_lsb + name_lsb offset instead
wire_indices = stringf(