Basic test for open cores 1G eth UDP / IP Stack using,specman for verification.
-
In search for self study projects for this site, I have downloaded from the open cores site, this
UDP project.
-
I decided to build a verification environment for this core using specman, with license that my friend received for teaching and self study.
-
The main
page
of this project was described before.
-
The first test has a simple purpose. To do the sane as the open-core test-bench. Once this is achieved, a more complex set of tests can be considered.
For this case there is no randomization and the scenario is one ARP packet followed by two UDP packets.
The main item, used by the sequence, has default values, which are the same ones used in the open core test bench.
-
The following shows how simple it is to create this test:
- Create packet using sequence item.
- Setup the count for desired number of packets.
- Create the sequence of of ARP packet followed by two UDP packets.
extend udp_ip_sequence {
!pkt : pkt_s;
};
extend MAIN udp_ip_sequence {
keep count == 3;
body() @driver.clock is only {
for i from 1 to count do {
if(i == 1) then {
do pkt keeping {.basic_pkt.kind == ARP};
} else {
do pkt keeping {.basic_pkt.kind == UDP};
};
};--for
};--body
};--extend MAIN uart_tx_sequence
|