mirror of
https://github.com/corundum/corundum.git
synced 2025-01-16 08:12:53 +08:00
Fix clock connections
This commit is contained in:
parent
8674bd1e69
commit
089c405c4f
@ -2350,11 +2350,11 @@ generate
|
||||
wire port_tx_clk = tx_clk[n*PORTS_PER_IF+m];
|
||||
wire port_tx_rst = tx_rst[n*PORTS_PER_IF+m];
|
||||
|
||||
wire port_rx_clk = tx_clk[n*PORTS_PER_IF+m];
|
||||
wire port_rx_rst = tx_rst[n*PORTS_PER_IF+m];
|
||||
wire port_rx_clk = rx_clk[n*PORTS_PER_IF+m];
|
||||
wire port_rx_rst = rx_rst[n*PORTS_PER_IF+m];
|
||||
|
||||
wire port_rx_ptp_clk = PTP_SEPARATE_RX_CLOCK ? rx_ptp_clk[n*PORTS_PER_IF+m] : rx_clk[n*PORTS_PER_IF+m];
|
||||
wire port_rx_ptp_rst = PTP_SEPARATE_RX_CLOCK ? rx_ptp_rst[n*PORTS_PER_IF+m] : rx_rst[n*PORTS_PER_IF+m];
|
||||
wire port_rx_ptp_clk = rx_ptp_clk[n*PORTS_PER_IF+m];
|
||||
wire port_rx_ptp_rst = rx_ptp_rst[n*PORTS_PER_IF+m];
|
||||
|
||||
assign app_direct_tx_clk[n*PORTS_PER_IF+m] = port_tx_clk;
|
||||
assign app_direct_tx_rst[n*PORTS_PER_IF+m] = port_tx_rst;
|
||||
@ -2394,8 +2394,8 @@ generate
|
||||
rx_ptp_cdc_inst (
|
||||
.input_clk(clk),
|
||||
.input_rst(rst),
|
||||
.output_clk(port_rx_ptp_clk),
|
||||
.output_rst(port_rx_ptp_rst),
|
||||
.output_clk(PTP_SEPARATE_RX_CLOCK ? port_rx_ptp_clk : port_rx_clk),
|
||||
.output_rst(PTP_SEPARATE_RX_CLOCK ? port_rx_ptp_rst : port_rx_rst),
|
||||
.sample_clk(ptp_sample_clk),
|
||||
.input_ts(ptp_ts_96),
|
||||
.input_ts_step(ptp_ts_step),
|
||||
|
Loading…
x
Reference in New Issue
Block a user