mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-25 22:18:48 -04:00
fixed flaky test in VHDLExample.dig
This commit is contained in:
parent
725b5905e1
commit
32f13e4d8d
@ -341,6 +341,10 @@ Single-Cycle CPU.</string>
|
||||
<string>pinNumber</string>
|
||||
<string>U18</string>
|
||||
</entry>
|
||||
<entry>
|
||||
<string>InDefault</string>
|
||||
<value v="1" z="false"/>
|
||||
</entry>
|
||||
</elementAttributes>
|
||||
<pos x="980" y="260"/>
|
||||
</visualElement>
|
||||
@ -360,24 +364,22 @@ Single-Cycle CPU.</string>
|
||||
<entry>
|
||||
<string>Testdata</string>
|
||||
<testData>
|
||||
<dataString> reset Clock U D L R Y15 Y14 Y13 Y12 Y11 Y10 Y9 Y8 Y7 Y6 Y5 Y4 Y3 Y2 Y1 Y0
|
||||
1 0 0 0 0 0 x x x x x x x x x x x x x x x x
|
||||
1 1 0 0 0 0 x x x x x x x x x x x x x x x x
|
||||
0 0 0 0 0 0 x x x x x x x x x x x x x x x x
|
||||
<dataString> reset Clock U D L R Y15 Y14 Y13 Y12 Y11 Y10 Y9 Y8 Y7 Y6 Y5 Y4 Y3 Y2 Y1 Y0
|
||||
1 0 0 0 0 0 x x x x x x x x x x x x x x x x
|
||||
1 1 0 0 0 0 x x x x x x x x x x x x x x x x
|
||||
1 0 0 0 0 0 x x x x x x x x x x x x x x x x
|
||||
0 0 0 0 0 0 x x x x x x x x x x x x x x x x
|
||||
|
||||
repeat(11) 0 C 0 0 0 0 x x x x x x x x x x x x x x x x
|
||||
0 C 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
|
||||
|
||||
loop(i,14)
|
||||
repeat(12) 0 C 0 0 0 0 x x x x x x x x x x x x x x x x
|
||||
0 C 0 0 0 0 bits(16,1<<(i+1))
|
||||
end loop
|
||||
|
||||
repeat(14) 0 C 0 0 0 0 x x x x x x x x x x x x x x x x
|
||||
repeat(12) 0 C 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
|
||||
|
||||
loop(i,15)
|
||||
repeat(11) 0 C 0 0 0 0 x x x x x x x x x x x x x x x x
|
||||
0 C 0 0 0 0 bits(16,1<<(15-i))
|
||||
repeat(13) 0 C 0 0 0 0 bits(16,1<<i)
|
||||
end loop
|
||||
|
||||
repeat(2) 0 C 0 0 0 0 bits(16,1<<14)
|
||||
|
||||
loop(i,15)
|
||||
repeat(12) 0 C 0 0 0 0 bits(16,1<<(15-i))
|
||||
end loop
|
||||
</dataString>
|
||||
</testData>
|
||||
@ -613,14 +615,14 @@ end loop
|
||||
<p1 x="1160" y="440"/>
|
||||
<p2 x="1160" y="460"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1000" y="200"/>
|
||||
<p2 x="1000" y="220"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1000" y="440"/>
|
||||
<p2 x="1000" y="460"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1000" y="200"/>
|
||||
<p2 x="1000" y="220"/>
|
||||
</wire>
|
||||
<wire>
|
||||
<p1 x="1000" y="280"/>
|
||||
<p2 x="1000" y="340"/>
|
||||
|
@ -217,4 +217,27 @@ public class ValueTable extends Observable implements Iterable<Value[]> {
|
||||
this.maxSize = maxSize;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
for (String n : names)
|
||||
sb.append(n).append(" ");
|
||||
sb.append("\n");
|
||||
|
||||
if (tableRowIndex == null)
|
||||
for (Value[] row : values) {
|
||||
for (Value v : row)
|
||||
sb.append(v.toString()).append(" ");
|
||||
sb.append("\n");
|
||||
}
|
||||
else
|
||||
for (int i : tableRowIndex) {
|
||||
for (Value v : values.get(i))
|
||||
sb.append(v.toString()).append(" ");
|
||||
sb.append("\n");
|
||||
}
|
||||
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user