Altera SerialLite II IP Core User Manual
Page 99

Chapter 5: Testbench
5–13
Testbench Components Description
January 2014
Altera Corporation
SerialLite II MegaCore Function
User Guide
■
Start or end of packet checking: checks Atlantic packets for missing SOP and EOP
signals
The module operates in one of two modes: data port or priority port. When in priority
port mode, the dav signal is ignored for all but the first transfer of a packet.
There can be multiple AMON instantiations (for data and priority port, DUT and
SISTER), depending on the DUT’s chosen parameters.
AMON Tasks
– data_checking(bit_value)
This task enables or disables the data checking.
– id_checking(bit_value)
This task enables or disables the packet id checking.
– wait_all_packets(number[31:0])
This task waits until all packets (when in packet mode) or streaming bytes (when in
streaming mode) are received.
– mp_checking(bit_value)
Table 5–5. data_checking Task Field Description
Field Location
in Task
Field
Valid Values
Description
1
bit_value
1'b0 or 1'b1
Setting bit_value to 1, enables the data checking (default).
Setting bit_value to 0, disables the data checking.
Table 5–6. id_checking Task Field Description
Field Location
in Task
Field
Valid Values
Description
1
bit_value
1'b0 or 1'b1
Setting bit_value to 1, enables the packet id checking
(default).
Setting bit_value to 0, disables the packet id checking.
Table 5–7. wait_all_packets Task Field Description
Field
Location in
Task
Field
Valid Values
Description
1
number
0 to 0xFFFF_FFFF
If in packet mode, this field sets the expected number of packets
to be received. The task waits until all number of packets are
received.
If in streaming mode, this field sets the expected number of
streaming bytes to be received. The task waits until all number of
streaming bytes are received.