![]() |
Network Wizard for VHDL Test Benches
|
Functions | |
| t_slv_arr | f_udpv4_create_pkt ( ipv4_header: in t_ipv4_header udp_header: in t_udp_header payload: in t_slv_arr add_chksum: in boolean true get_length: in boolean false ) |
| t_slv_arr | f_udpv4_create_pkt ( ipv4_header: in t_ipv4_header udp_header: in t_udp_header payload: in t_slv_arr add_chksum: in boolean true ) |
| Create UDP for IPv4 packet. | |
| t_slv_arr | f_udpv4_create_pkt ( udp_header: in t_udp_header , payload: in t_slv_arr ) |
| Create UDP for IPv4 packet (no checksum) | |
| natural | f_udpv4_create_pkt_len ( udp_header: in t_udp_header , payload: in t_slv_arr ) |
| Return length of UDP packet. | |
| natural | f_udpv4_create_pkt_len ( ipv4_header: in t_ipv4_header udp_header: in t_udp_header payload: in t_slv_arr add_chksum: in boolean true ) |
| Return length of UDP packet. | |
| t_udp_header | f_udpv4_get_header ( udp_pkt: in t_slv_arr ) |
| Get UDP header. | |
| t_slv_arr | f_udpv4_get_payload ( udp_pkt: in t_slv_arr , get_length: in boolean false ) |
| t_slv_arr | f_udpv4_get_payload ( udp_pkt: in t_slv_arr ) |
| Get UDP payload. | |
| natural | f_udpv4_get_payload_len ( udp_pkt: in t_slv_arr ) |
| Get UDP payload length. | |
| boolean | f_udpv4_chksum_ok ( ipv4_header: in t_ipv4_header , udp_pkt: in t_slv_arr ) |
| Check UDP checksum. | |
|
Function |
Create UDP for IPv4 packet.
| ipv4_header | IPv4 header (required for checksum calculation) |
| udp_header | UDP header |
| payload | UDP payload |
| add_chksum | Add checksum (default true) |
Create UDP for IPv4 packet. Payload must be 8bit data array. A pseudo-header is generated from the IPv4 header which is included in the checksum calculation.
Example use
|
Function |
Create UDP for IPv4 packet (no checksum)
| udp_header | UDP header |
| payload | UDP payload |
Create UDP packet, set checksum field to x"0000". Payload must be 8bit data array.
Example use
|
Function |
Return length of UDP packet.
| udp_header | UDP header |
| payload | UDP payload |
Return the length of the created UDP packet.
Example use
|
Function |
Return length of UDP packet.
| ipv4_header | IPv4 header (required for checksum calculation) |
| udp_header | UDP header |
| payload | UDP payload |
| add_chksum | Add checksum (default true) |
Return the length of the created UDP packet.
Example use
|
Function |
Get UDP header.
| udp_pkt | UDP packet (8bit) |
Extract UDP header from UDP packet.
Example use
|
Function |
Get UDP payload.
| udp_pkt | UDP packet (8bit) |
Extract UDP payload from UDP packet.
Example use
|
Function |
Get UDP payload length.
| udp_pkt | UDP packet (8bit) |
Get UDP payload length from UDP packet.
Example use
|
Function |
Check UDP checksum.
| ipv4_header | IPv4 header |
| udp_pkt | UDP packet (8bit) |
Check checksum of UDP packet. The IPv4 header is required for the pseudo-header fields.
Example use