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_rxclk_offset)
|
@(posedge gmii_rxclk_offset)
|
gmii_rxctrl = 1'b0;
|
gmii_rxctrl = 1'b0;
|
gmii_rxdata = 8'h00;
|
gmii_rxdata = 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_rxclk_offset);
|
@(posedge gmii_rxclk_offset);
|
gmii_rxctrl = 1'b1;
|
gmii_rxctrl = 1'b1;
|
gmii_rxdata = 8'h55;
|
gmii_rxdata = 8'h55;
|
end
|
end
|
@(posedge gmii_rxclk_offset)
|
@(posedge gmii_rxclk_offset)
|
gmii_rxctrl = 1'b1;
|
gmii_rxctrl = 1'b1;
|
gmii_rxdata = 8'h5d;
|
gmii_rxdata = 8'hd5;
|
// send frame content
|
// send frame content
|
for (index_rx=0; index_rx<packet_leng_rx; index_rx=index_rx+1)
|
for (index_rx=0; index_rx<packet_leng_rx; index_rx=index_rx+1)
|
begin
|
begin
|
r_rx = $fread(packet_byte_rx, feeder_file_rx);
|
r_rx = $fread(packet_byte_rx, feeder_file_rx);
|
@(posedge gmii_rxclk_offset);
|
@(posedge gmii_rxclk_offset);
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.