mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-26 06:22:48 -04:00
improved help text in test case editor
This commit is contained in:
parent
f7b4dc504e
commit
ef4c1e64f6
@ -1101,6 +1101,20 @@ Das Ergebnis (C_i,S_3-S_0) wird ebenfalls durch eine 'bits'-Anweisung erzeugt.
|
||||
Das ganze geschieht einmal mit C_i-1=0 und in der nächsten Zeile mit C_i-1=1.
|
||||
Auf diese Weise werden 512 Testzeilen erzeugt, welche alle möglichen
|
||||
Eingangskonfigurationen abdecken.</p>
|
||||
<p>Sollen mehrere Zeilen wiederholt werden, oder werden geschachtelte Schleifen benötigt,
|
||||
kann die loop-Anweisung verwendet werden. Das obige Beispiel könnte man also
|
||||
auch wie folgt umsetzen:</p>
|
||||
<p>
|
||||
<code>
|
||||
C_i-1 A_3 A_2 A_1 A_0 B_3 B_2 B_1 B_0 C_i S_3 S_2 S_1 S_0<br/>
|
||||
loop(a,16)<br/>
|
||||
loop(b,16)<br/>
|
||||
0 bits(4,a) bits(4,b) bits(5,a+b)<br/>
|
||||
1 bits(4,a) bits(4,b) bits(5,a+b+1)<br/>
|
||||
end loop<br/>
|
||||
end loop
|
||||
</code>
|
||||
</p>
|
||||
</body></html>]]></string>
|
||||
|
||||
</resources>
|
@ -1080,6 +1080,19 @@ The 4 input bits are generated with the 'bits' instruction. The result (C_i, S_3
|
||||
by a 'bits' instruction.
|
||||
This happens once with C_i-1 = 0 and in the next line with C_i-1 = 1.
|
||||
In this way, 512 test rows are generated which cover all possible input configurations.</p>
|
||||
<p>If multiple rows are to be repeated, or if nested loops are required, the loop
|
||||
statement can be used. The above example could also be implemented as follows:</p>
|
||||
<p>
|
||||
<code>
|
||||
C_i-1 A_3 A_2 A_1 A_0 B_3 B_2 B_1 B_0 C_i S_3 S_2 S_1 S_0<br/>
|
||||
loop(a,16)<br/>
|
||||
loop(b,16)<br/>
|
||||
0 bits(4,a) bits(4,b) bits(5,a+b)<br/>
|
||||
1 bits(4,a) bits(4,b) bits(5,a+b+1)<br/>
|
||||
end loop<br/>
|
||||
end loop
|
||||
</code>
|
||||
</p>
|
||||
</body></html>]]></string>
|
||||
|
||||
</resources>
|
Loading…
x
Reference in New Issue
Block a user