Adds description of available test case functions to help dialog; closes #708

This commit is contained in:
hneemann 2021-04-19 17:08:27 +02:00
parent c48872d135
commit ed824cc6db
2 changed files with 23 additions and 0 deletions

View File

@ -2329,6 +2329,17 @@ declare Bit = (Bus>>3)&1;
</pre> </pre>
<p>In diesem Beispiel wird aus dem Signal 'Bus' das 3. Bit isoliert und als Signal 'Bit' für den <p>In diesem Beispiel wird aus dem Signal 'Bus' das 3. Bit isoliert und als Signal 'Bit' für den
Test zur Verfügung gestellt. Die Schaltung selbst enthält keinen Ausgang 'Bit'.</p> Test zur Verfügung gestellt. Die Schaltung selbst enthält keinen Ausgang 'Bit'.</p>
<h3>Funktionen</h3>
<p>Unterstützte Funktionen sind:
<dl>
<dt>signExt([bits],[value])</dt>
<dd>Erweitert den Wert [value] unter Erhaltung des Vorzeichens auf [bits] Bits.</dd>
<dt>random([max])</dt>
<dd>Liefert eine ganze Zufallszahl. Mit [max] wird der Maximalwert angegeben.</dd>
<dt>ite([cond],[then],[else])</dt>
<dd>Ist die Bedingung [cond] wahr, wird der Wert [then] zurückgegeben, andernfalls der Wert [else].</dd>
</dl>
</p>
<h3>Prozessoren</h3> <h3>Prozessoren</h3>
<p>Wenn Prozessoren getestet werden sollen, ist in der Regel eine Initialisierung des Prozessors erforderlich. <p>Wenn Prozessoren getestet werden sollen, ist in der Regel eine Initialisierung des Prozessors erforderlich.
Es ist möglich, diese Initialisierung innhalb des Testfalls vorzunehmen. Es ist möglich, diese Initialisierung innhalb des Testfalls vorzunehmen.

View File

@ -2305,6 +2305,18 @@ declare Bit = (Bus>>3)&1;
</pre> </pre>
<p>In this example, the 3rd bit is isolated from the 'Bus' signal and made available as <p>In this example, the 3rd bit is isolated from the 'Bus' signal and made available as
the 'Bit' signal for the test. The circuit itself contains no output 'Bit'.</p> the 'Bit' signal for the test. The circuit itself contains no output 'Bit'.</p>
<h3>Functions</h3>
<p>Available functions are:
<dl>
<dt>signExt([bits],[value])</dt>
<dd>Extends the value [value] while preserving the sign to [bits] bits.</dd>
<dt>random([max])</dt>
<dd>Returns an integer random number. The maximum value is specified with [max].</dd>
<dt>ite([cond],[then],[else])</dt>
<dd>If the condition [cond] is true, the value [then] is returned, otherwise the value [else].</dd>
</dl>
</p>
<h3>Processors</h3> <h3>Processors</h3>
<p>If processors are to be tested, an initialization of the processor is usually required. <p>If processors are to be tested, an initialization of the processor is usually required.
It is possible to perform this initialization within the test case. It is possible to perform this initialization within the test case.