Xilinx UG492 manual 2Ethernet AVB Endpoint Demonstration Test Bench

Models: UG492

1 172
Download 172 pages 48.02 Kb
Page 156
Image 156

Chapter 15: Detailed Example Design (Standard Format)

Demonstration Test Bench

Figure 15-2illustrates the Ethernet AVB Endpoint demonstration test bench, a simple VHDL or Verilog program for exercising the example design and the core.

Demonstration Test Bench

Clock

and

Reset

generation

Statistic

Gathering

Example Design Top Level

 

 

 

Tx frame

AV traffic

 

 

stimulus

 

 

 

Tx frame

 

 

loopback

 

 

module

stimulus

 

Ethernet

 

legacy

 

AVB

 

traffic

Endpoint

 

 

LogiCORE

Rx frame

legacy

 

 

traffic

 

 

checker

 

 

 

Rx frame

 

 

 

checker

AV traffic

 

 

 

 

 

 

Interrupts

PLB

 

 

 

PLB

 

 

module

Figure 15-2:Ethernet AVB Endpoint Demonstration Test Bench

The following files describe the top level of the demonstration test bench:

VHDL

<project_dir>/<component_name>/simulation/demo_tb.vhd

Verilog

<project_dir>/<component_name>/simulation/demo_tb.v

The top-level test bench entity instantiates the example design for the core, which is the Device Under Test (DUT). The test bench provides clocks and resets, and gathers statistics for the duration of the simulation. A final statistic report is created at the end of the simulation run time that contains the following:

The number of PTP frames transmitted and received

The number of AV frames transmitted and received

The number of legacy frames transmitted and received.

All transmitted frame statistics should exactly match the received frame statistics for each particular frame type; if this is not the case, an error message is issued.

Finally, the test bench estimates the percentage of overall Ethernet line rate consumed by each of the three types. This should illustrate the bandwidth policing functionality of the core, which should only allow the AV frames to consume a maximum of 75% of the overall bandwidth.

156

www.xilinx.com

Ethernet AVB Endpoint User Guide

 

 

UG492 July 23, 2010

Page 156
Image 156
Xilinx UG492 manual 2Ethernet AVB Endpoint Demonstration Test Bench