Professional Documents
Culture Documents
T Estcase: Testcase (User Interface) Environment Agent Driver DUT Sequence - Item Sequence Sequencer Driver
T Estcase: Testcase (User Interface) Environment Agent Driver DUT Sequence - Item Sequence Sequencer Driver
Select a sequence with pause frame of a random rate, type & size
(or)
Traffic
Patter
Injectio
n Type
Bit
Rate
Select a sequence with pause frame with a fixed rate, type & size
TYPE_OF_TRAFFIC
BIT RATE
INJECTION_TYPE
TYPE_OF_PACKET
TOTAL_TIME_PERIOD(125k ns)
T
ESTCASE
TYPE_OF_TRAFFIC(peak)
BIT RATE(40G)
INJECTION_TYPE(burst)
TYPE_OF_PACKET(vlan)
TOTAL_TIME_PERIOD(125k ns)
Packe
t Size
ENV
Packe
t Type
Env
Rx_Agent
Tx_Agent
Rx_Scorebo
Tx_Scorebo
Monitor
Environment
Agent for Tx
Agent for Rx
Connect Tx Agent Monitor on scoreboard
Connect Rx Agent Monitor on scoreboard
Configure lower level components
Agent for Tx
Driver
Monitor
Sequencer
Sequencer is connected to Driver through Tlm port
Tx_Agent
Driver
Once the reset is done
Gets the transaction from sequencer
Checks the for vlan type or non vlan ype
Frames the packet accordingly
Sends the Frame to DUT in terms of 16 byte chunks
After eop is send, wait for idle clk cycles specified for the packet
Driver
DUT
Transactio
n
Sequencer
Transactio
n
Injection
Sequencer
Type
Traffic
Start the generation of stimulus
Routes sequence_items from sequence where they are generatedPattern
to the driver
Sequence
Pkt_Size
Sequence
Calculates the total no.of bytes w.r.t RATE ,TYPE_OF_TRAFFIC &
TOTAL_TIME_PERIOD
Distribution of rates for each queue w.r.t RATE
Calculate total no. of packets w.r.t to SIZE_OF_PACKET & total no.of bytes for each queue
No. of Idle_Clks for each queue
transaction items(Sequence_item class) are randomized w.r.t to the constraints & user inputs
and each packet generated is sent to driver along with Idle_Clks.
Sequence_item class
Transaction Item
Description
Values
length
Rat
e
Pkt_typ
e
Mac_Source
Mac_Dest
Vlan_Type
Vlantag_Priority
Vlantag_ID
Vlantag_Length
Payload
Idle_Clks
Types_Injection
Pfc_xoff
Selection of
type of packet
Selection of
queue priority
It gives info
of what id a
packet carries
It gives info
of length of
payload
Random
Payload
generation
w.r.t to size
No.of Idle
clks inserted
after each
packet
Pattern of
injection of a
packet
For Injecton
of pause
frame
covered
random
random
Vlan or
non-vlan
packet
random
48 bit
48 bit
2 bytes
3 bit
random
12 bits
Fixed by
sequence
16 bits
random
variable
Fixed by
sequence
Integer
Burst ,
ramp,
linear
0 or 1
enum
bit