URL
https://opencores.org/ocsvn/ha1588/ha1588/trunk
[/] [ha1588/] [tags/] [v1p2/] [rtl/] [tsu/] [tsu.v] - Diff between revs 4 and 5
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 4 |
Rev 5 |
Line 9... |
Line 9... |
|
|
input rtc_timer_clk,
|
input rtc_timer_clk,
|
input [79:0] rtc_timer_in,
|
input [79:0] rtc_timer_in,
|
|
|
input q_rst,
|
input q_rst,
|
input q_clk,
|
input q_rd_clk,
|
input q_rd_en,
|
input q_rd_en,
|
output [ 7:0] q_rd_stat,
|
output [ 7:0] q_rd_stat,
|
output [91:0] q_rd_data
|
output [91:0] q_rd_data
|
);
|
);
|
|
|
Line 175... |
Line 175... |
.ptp_found(ptp_found),
|
.ptp_found(ptp_found),
|
.ptp_infor(ptp_infor)
|
.ptp_infor(ptp_infor)
|
);
|
);
|
|
|
// ptp time stamp dcfifo
|
// ptp time stamp dcfifo
|
|
wire q_wr_clk = gmii_clk;
|
|
wire q_wr_en = ptp_found;
|
|
wire [95:0] q_wr_data = {4'd0, ptp_infor};
|
|
wire [2:0] q_wrusedw;
|
|
wire [2:0] q_rdusedw;
|
|
|
|
ptp_queue queue(
|
|
.aclr(q_rst),
|
|
|
|
.wrclk(q_wr_clk),
|
|
.wrreq(q_wr_en && q_wrusedw<=5),
|
|
.data(q_wr_data),
|
|
.wrusedw(q_wrusedw),
|
|
|
|
.rdclk(q_rd_clk),
|
|
.rdreq(q_rd_en && q_rdusedw>=1),
|
|
.q(q_rd_data),
|
|
.rdusedw(q_rdusedw)
|
|
);
|
|
|
|
assign q_rd_stat = {5'd0, q_rdusedw};
|
|
|
endmodule
|
endmodule
|
|
|
No newline at end of file
|
No newline at end of file
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.