diff options
| author | Clifford Wolf <clifford@clifford.at> | 2016-04-25 16:37:11 +0200 | 
|---|---|---|
| committer | Clifford Wolf <clifford@clifford.at> | 2016-04-25 16:37:11 +0200 | 
| commit | 958fb29c76a13838a922ff8553178d2c31c1ddef (patch) | |
| tree | 9639837f8dbe035c4992c021363167865aeb44ae /passes/tests | |
| parent | 93e107e455b506731d9114e0dc2644f78797cf0f (diff) | |
| download | yosys-958fb29c76a13838a922ff8553178d2c31c1ddef.tar.gz yosys-958fb29c76a13838a922ff8553178d2c31c1ddef.tar.bz2 yosys-958fb29c76a13838a922ff8553178d2c31c1ddef.zip | |
Fixed test_autotb for modules with many cell ports
Diffstat (limited to 'passes/tests')
| -rw-r--r-- | passes/tests/test_autotb.cc | 9 | 
1 files changed, 6 insertions, 3 deletions
| 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"); | 
