ebus拉到顶层
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
|
||||
module do16_top(
|
||||
|
||||
|
||||
input clock,
|
||||
input clock,
|
||||
input resetn,
|
||||
|
||||
input lvds_up_din_p,
|
||||
input lvds_up_din_n,
|
||||
@@ -17,7 +17,7 @@ module do16_top(
|
||||
|
||||
output isOnline,
|
||||
input isLast,
|
||||
input DCIn,
|
||||
|
||||
|
||||
output LED_PR,
|
||||
output [15:0] out,
|
||||
@@ -26,7 +26,7 @@ module do16_top(
|
||||
|
||||
);
|
||||
|
||||
wire resetn = 1'b1;
|
||||
wire DCIn = 1'b0;
|
||||
|
||||
wire clk_400m;
|
||||
wire clk_400m_a;
|
||||
@@ -134,19 +134,64 @@ CLKDIV Inst5_CLKDIVC(
|
||||
.CLKOUT (clk_10m_a)
|
||||
);
|
||||
|
||||
wire [7:0] downstream_rx_data_out;
|
||||
wire downstream_rx_data_valid;
|
||||
wire downstream_rx_crc_valid;
|
||||
wire downstream_rx_crc_err;
|
||||
wire upstream_tx_data_ready;
|
||||
wire [7:0] upstream_tx_data_in;
|
||||
|
||||
wire downstream_rx_cdr_err;
|
||||
wire upstream_rx_cdr_err;
|
||||
|
||||
lvds_bus_slave_top i_lvds_bus_slave(
|
||||
.rst_n(rst_n),
|
||||
.reset_calib(reset_calib),
|
||||
.oser_pclk(clk_10m_a),
|
||||
.oser_fclk(clk_50m_a),
|
||||
.ides_pclk(clk_100m_a),
|
||||
.ides_fclk(clk_400m_a),
|
||||
|
||||
.lvds_down_din(lvds_down_din),
|
||||
.lvds_down_dout(lvds_down_dout),
|
||||
.lvds_up_din(lvds_up_din),
|
||||
.lvds_up_dout(lvds_up_dout),
|
||||
|
||||
.downstream_rx_data_valid(downstream_rx_data_valid),
|
||||
.downstream_rx_unicast_pkg_valid(),
|
||||
.downstream_rx_data_out(downstream_rx_data_out),
|
||||
.downstream_rx_crc_valid(downstream_rx_crc_valid),
|
||||
.downstream_rx_crc_err(downstream_rx_crc_err),
|
||||
.downstream_rx_crc_err_counter(),
|
||||
.downstream_rx_cdr_err(downstream_rx_cdr_err),
|
||||
.downstream_sync(),
|
||||
.upstream_tx_data_ready(upstream_tx_data_ready),
|
||||
.upstream_tx_unicast_pkg_ready(),
|
||||
.upstream_tx_data_in(upstream_tx_data_in),
|
||||
.upstream_rx_crc_valid(),
|
||||
.upstream_rx_crc_err(),
|
||||
.upstream_rx_crc_err_counter(),
|
||||
.upstream_rx_cdr_err(upstream_rx_cdr_err),
|
||||
|
||||
.local_slave_id(),
|
||||
.test_downstream_rx_10b_data(),
|
||||
.test_downstream_rx_8b_data(),
|
||||
.test_downstream_rx_state_machine(),
|
||||
.test_downstream_tx_en(),
|
||||
.test_downstream_tx_8b_data(),
|
||||
.test_downstream_tx_10b_data(),
|
||||
.test_upstream_rx_10b_data(),
|
||||
.test_upstream_rx_8b_data(),
|
||||
.test_upstream_rx_state_machine(),
|
||||
.test_upstream_tx_en(),
|
||||
.test_upstream_tx_8b_data(),
|
||||
.test_upstream_tx_10b_data()
|
||||
);
|
||||
|
||||
|
||||
DOut16 i_dout16(
|
||||
.reset(~rst_n),
|
||||
.clock(clk_10m_a),
|
||||
.io_reset_calib(reset_calib),
|
||||
.io_oser_pclk(clk_10m_a),
|
||||
.io_oser_fclk(clk_50m_a),
|
||||
.io_ides_pclk(clk_100m_a),
|
||||
.io_ides_fclk(clk_400m_a),
|
||||
|
||||
.io_lvds_down_din(lvds_down_din),
|
||||
.io_lvds_down_dout(lvds_down_dout),
|
||||
.io_lvds_up_din(lvds_up_din),
|
||||
.io_lvds_up_dout(lvds_up_dout),
|
||||
|
||||
.io_isOnline(isOnline),
|
||||
.io_isLast(isLast),
|
||||
@@ -161,7 +206,16 @@ DOut16 i_dout16(
|
||||
.LED_PR(LED_PR),
|
||||
.out(out),
|
||||
.flt_0(flt_0),
|
||||
.flt_1(flt_1)
|
||||
.flt_1(flt_1),
|
||||
|
||||
.io_lvdsSlv_downstream_rx_data_out(downstream_rx_data_out),
|
||||
.io_lvdsSlv_downstream_rx_data_valid(downstream_rx_data_valid),
|
||||
.io_lvdsSlv_downstream_rx_crc_valid(downstream_rx_crc_valid),
|
||||
.io_lvdsSlv_downstream_rx_crc_err(downstream_rx_crc_err),
|
||||
.io_lvdsSlv_upstream_tx_data_ready(upstream_tx_data_ready),
|
||||
.io_lvdsSlv_upstream_tx_data_in(upstream_tx_data_in),
|
||||
.io_lvdsSlv_downstream_rx_cdr_err(downstream_rx_cdr_err),
|
||||
.io_lvdsSlv_upstream_rx_cdr_err(upstream_rx_cdr_err)
|
||||
);
|
||||
|
||||
endmodule
|
||||
|
||||
Reference in New Issue
Block a user