Line 14689... |
Line 14689... |
repeat(15) @(posedge wb_clk);
|
repeat(15) @(posedge wb_clk);
|
check_frame = 1;
|
check_frame = 1;
|
end
|
end
|
join
|
join
|
// check length of a PACKET
|
// check length of a PACKET
|
if ( ((data[31:16] != (i_length + 4)) && (num_of_frames >= 3)) ||
|
tmp_data = data[31:16];
|
|
if ( ((tmp_data != (i_length + 4)) && (num_of_frames >= 3)) ||
|
((data[31:16] != 0) && (num_of_frames < 3)) )
|
((data[31:16] != 0) && (num_of_frames < 3)) )
|
begin
|
begin
|
`TIME; $display("*E Wrong length of the packet out from PHY (%0d instead of %0d)",
|
`TIME; $display("*E Wrong length of the packet out from PHY (%0d instead of %0d)",
|
data[31:16], (i_length + 4));
|
data[31:16], (i_length + 4));
|
test_fail("Wrong length of the packet out from PHY");
|
test_fail("Wrong length of the packet out from PHY");
|
Line 15221... |
Line 15222... |
repeat(15) @(posedge wb_clk);
|
repeat(15) @(posedge wb_clk);
|
check_frame = 1;
|
check_frame = 1;
|
end
|
end
|
join
|
join
|
// check length of a PACKET
|
// check length of a PACKET
|
if ( ((data[31:16] != (i_length + 4)) && (num_of_frames >= 3)) ||
|
tmp_data = data[31:16];
|
|
if ( ((tmp_data != (i_length + 4)) && (num_of_frames >= 3)) ||
|
((data[31:16] != 0) && (num_of_frames < 3)) )
|
((data[31:16] != 0) && (num_of_frames < 3)) )
|
begin
|
begin
|
`TIME; $display("*E Wrong length of the packet out from PHY (%0d instead of %0d)",
|
`TIME; $display("*E Wrong length of the packet out from PHY (%0d instead of %0d)",
|
data[31:16], (i_length + 4));
|
data[31:16], (i_length + 4));
|
test_fail("Wrong length of the packet out from PHY");
|
test_fail("Wrong length of the packet out from PHY");
|