mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-23 12:21:05 -04:00
Adds description of available test case functions to help dialog; closes #708
This commit is contained in:
parent
c48872d135
commit
ed824cc6db
@ -2329,6 +2329,17 @@ declare Bit = (Bus>>3)&1;
|
||||
</pre>
|
||||
<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>
|
||||
<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>
|
||||
<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.
|
||||
|
@ -2305,6 +2305,18 @@ declare Bit = (Bus>>3)&1;
|
||||
</pre>
|
||||
<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>
|
||||
<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>
|
||||
<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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user