mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-27 23:18:02 -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>pinNumber</string>
|
||||||
<string>U18</string>
|
<string>U18</string>
|
||||||
</entry>
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<string>InDefault</string>
|
||||||
|
<value v="1" z="false"/>
|
||||||
|
</entry>
|
||||||
</elementAttributes>
|
</elementAttributes>
|
||||||
<pos x="980" y="260"/>
|
<pos x="980" y="260"/>
|
||||||
</visualElement>
|
</visualElement>
|
||||||
@ -360,24 +364,22 @@ Single-Cycle CPU.</string>
|
|||||||
<entry>
|
<entry>
|
||||||
<string>Testdata</string>
|
<string>Testdata</string>
|
||||||
<testData>
|
<testData>
|
||||||
<dataString> reset Clock U D L R Y15 Y14 Y13 Y12 Y11 Y10 Y9 Y8 Y7 Y6 Y5 Y4 Y3 Y2 Y1 Y0
|
<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 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 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
|
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
|
repeat(12) 0 C 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
|
||||||
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
|
|
||||||
|
|
||||||
loop(i,15)
|
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
|
repeat(13) 0 C 0 0 0 0 bits(16,1<<i)
|
||||||
0 C 0 0 0 0 bits(16,1<<(15-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
|
end loop
|
||||||
</dataString>
|
</dataString>
|
||||||
</testData>
|
</testData>
|
||||||
@ -613,14 +615,14 @@ end loop
|
|||||||
<p1 x="1160" y="440"/>
|
<p1 x="1160" y="440"/>
|
||||||
<p2 x="1160" y="460"/>
|
<p2 x="1160" y="460"/>
|
||||||
</wire>
|
</wire>
|
||||||
<wire>
|
|
||||||
<p1 x="1000" y="200"/>
|
|
||||||
<p2 x="1000" y="220"/>
|
|
||||||
</wire>
|
|
||||||
<wire>
|
<wire>
|
||||||
<p1 x="1000" y="440"/>
|
<p1 x="1000" y="440"/>
|
||||||
<p2 x="1000" y="460"/>
|
<p2 x="1000" y="460"/>
|
||||||
</wire>
|
</wire>
|
||||||
|
<wire>
|
||||||
|
<p1 x="1000" y="200"/>
|
||||||
|
<p2 x="1000" y="220"/>
|
||||||
|
</wire>
|
||||||
<wire>
|
<wire>
|
||||||
<p1 x="1000" y="280"/>
|
<p1 x="1000" y="280"/>
|
||||||
<p2 x="1000" y="340"/>
|
<p2 x="1000" y="340"/>
|
||||||
|
@ -217,4 +217,27 @@ public class ValueTable extends Observable implements Iterable<Value[]> {
|
|||||||
this.maxSize = maxSize;
|
this.maxSize = maxSize;
|
||||||
return this;
|
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