Page History
...
The simulation process (starts at line 79) is generated using the core ESO file. How the simulation process is generated will be schown at the follwing example:
SCL | ESO trace | Testbench | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| perl
| !reset
| A
| (5) C(false)
%Output: D E(3) F(false)
;
|
Line 2 and 3 in the testbench are setting the inpute. All (!) inputs must be set! Signal which are present are set to the according value
...
|
for better unterstanding we use the normal ESO trace
|
|
Set inputs
Line 2 and 3 in the testbench are setting the inpute. All (!) inputs must be set!
- Pure signal which are present are set to the according value, e.g. A<=true;
- Valued signals which are present are set to thier according value e.g. C_value <= false; and set present B<=true;
- ABSENT values (not listed in ESO files inputs) mus be set absent
- pure singals (not listeg) e.g. K <= false
- valued signals e.g. B <= false, only the present value will be set, the valued signal is not touched
Wait for the tick to pass by
The code wait for tick_period; waits for one tick, so the Hardware can compute the output values.
Test Outputs
After the tick has passed by we must check if the hardware computes the correct outputs. This is done by assertions. Every (!) output must tested!
- Pure signals: Test the pure output signal according to the current ESO tick, if listed, e.g. assert( D = true ). If it is not specified in the trace test for absence,
- Valued signals: For valued signals that are specified in the current ESO tick test the present singal and the valued signal, e.g. assert( F = true ) and assert( F_value = false)
- Valued signals which are not listed in the current tick in the ESO file: test only the present flag for absence (We cannot say anything about absent valued signals)
If an assertion failed the corresponding error will be printed to a log file. The severity level tells the simulator to go on with the simulation altough an error acoored.