From: Clifford Wolf Date: Mon, 25 Apr 2016 14:37:11 +0000 (+0200) Subject: Fixed test_autotb for modules with many cell ports X-Git-Tag: yosys-0.7~241 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=958fb29c76a13838a922ff8553178d2c31c1ddef;p=yosys.git Fixed test_autotb for modules with many cell ports --- diff --git a/passes/tests/test_autotb.cc b/passes/tests/test_autotb.cc index f42a58af5..7e6804fc2 100644 --- a/passes/tests/test_autotb.cc +++ b/passes/tests/test_autotb.cc @@ -218,7 +218,8 @@ static void autotest(std::ostream &f, RTLIL::Design *design, int num_iter) if (len > 0) header2 += shorthand, len--; header1.push_back(" " + it->first); - header1.back()[0] = shorthand++; + header1.back()[0] = shorthand; + shorthand = shorthand == 'Z' ? 'A' : shorthand+1; } else { f << stringf(" 1'bx"); @@ -237,7 +238,8 @@ static void autotest(std::ostream &f, RTLIL::Design *design, int num_iter) if (len > 0) header2 += shorthand, len--; header1.push_back(" " + it->first); - header1.back()[0] = shorthand++; + header1.back()[0] = shorthand; + shorthand = shorthand == 'Z' ? 'A' : shorthand+1; } } else { f << stringf(" 1'bx"); @@ -256,7 +258,8 @@ static void autotest(std::ostream &f, RTLIL::Design *design, int num_iter) if (len > 0) header2 += shorthand, len--; header1.push_back(" " + it->first); - header1.back()[0] = shorthand++; + header1.back()[0] = shorthand; + shorthand = shorthand == 'Z' ? 'A' : shorthand+1; } } else { f << stringf(" 1'bx");