URL
https://opencores.org/ocsvn/ha1588/ha1588/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 38 |
Rev 52 |
Line 89... |
Line 89... |
begin
|
begin
|
@(posedge gmii_txclk_offset)
|
@(posedge gmii_txclk_offset)
|
gmii_txctrl = 1'b0;
|
gmii_txctrl = 1'b0;
|
gmii_txdata = 8'h00;
|
gmii_txdata = 8'h00;
|
end
|
end
|
// send frame preamble and sfd 5555555d=4*8
|
// send frame preamble and sfd 55555555555555d5=8*8
|
repeat (3)
|
repeat (7)
|
begin
|
begin
|
@(posedge gmii_txclk_offset);
|
@(posedge gmii_txclk_offset);
|
gmii_txctrl = 1'b1;
|
gmii_txctrl = 1'b1;
|
gmii_txdata = 8'h55;
|
gmii_txdata = 8'h55;
|
end
|
end
|
@(posedge gmii_txclk_offset)
|
@(posedge gmii_txclk_offset)
|
gmii_txctrl = 1'b1;
|
gmii_txctrl = 1'b1;
|
gmii_txdata = 8'h5d;
|
gmii_txdata = 8'hd5;
|
// send frame content
|
// send frame content
|
for (index_tx=0; index_tx<packet_leng_tx; index_tx=index_tx+1)
|
for (index_tx=0; index_tx<packet_leng_tx; index_tx=index_tx+1)
|
begin
|
begin
|
r_tx = $fread(packet_byte_tx, feeder_file_tx);
|
r_tx = $fread(packet_byte_tx, feeder_file_tx);
|
@(posedge gmii_txclk_offset);
|
@(posedge gmii_txclk_offset);
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.