52 lines
2.9 KiB
Tcl
52 lines
2.9 KiB
Tcl
|
|
# Instances and instance parameters
|
|
|
|
set_instance_parameter_value sys_hps {CLK_EMACB_SOURCE} {1}
|
|
set_instance_parameter_value sys_hps {CLK_EMAC_PTP_SOURCE} {1}
|
|
set_instance_parameter_value sys_hps {EMAC_PTP_REF_CLK} {100}
|
|
set_instance_parameter_value sys_hps {EMAC1_CLK} {250}
|
|
set_instance_parameter_value sys_hps {EMAC1_Mode} {RGMII_with_MDIO}
|
|
set_instance_parameter_value sys_hps {EMAC1_PTP} {0}
|
|
set_instance_parameter_value sys_hps {EMAC1_PinMuxing} {FPGA}
|
|
set_instance_parameter_value sys_hps {EMAC1_SWITCH_Enable} {0}
|
|
set_instance_parameter_value sys_hps {EMAC2_CLK} {250}
|
|
set_instance_parameter_value sys_hps {EMAC2_Mode} {RGMII_with_MDIO}
|
|
set_instance_parameter_value sys_hps {EMAC2_PTP} {0}
|
|
set_instance_parameter_value sys_hps {EMAC2_PinMuxing} {FPGA}
|
|
set_instance_parameter_value sys_hps {EMAC2_SWITCH_Enable} {0}
|
|
set_instance_parameter_value sys_hps {FPGA_PERIPHERAL_OUTPUT_CLOCK_FREQ_EMAC1_GTX_CLK} {125}
|
|
set_instance_parameter_value sys_hps {FPGA_PERIPHERAL_OUTPUT_CLOCK_FREQ_EMAC1_MD_CLK} {2.5}
|
|
set_instance_parameter_value sys_hps {FPGA_PERIPHERAL_OUTPUT_CLOCK_FREQ_EMAC2_GTX_CLK} {125}
|
|
set_instance_parameter_value sys_hps {FPGA_PERIPHERAL_OUTPUT_CLOCK_FREQ_EMAC2_MD_CLK} {2.5}
|
|
set_instance_parameter_value sys_hps {FPGA_PERIPHERAL_OUTPUT_CLOCK_FREQ_I2C0_CLK} {100}
|
|
set_instance_parameter_value sys_hps {FPGA_PERIPHERAL_OUTPUT_CLOCK_FREQ_I2C1_CLK} {100}
|
|
set_instance_parameter_value sys_hps {FPGA_PERIPHERAL_OUTPUT_CLOCK_FREQ_I2CEMAC1_CLK} {100}
|
|
set_instance_parameter_value sys_hps {FPGA_PERIPHERAL_OUTPUT_CLOCK_FREQ_I2CEMAC2_CLK} {100}
|
|
set_instance_parameter_value sys_hps {FPGA_PERIPHERAL_OUTPUT_CLOCK_FREQ_QSPI_SCLK_OUT} {100}
|
|
set_instance_parameter_value sys_hps {FPGA_PERIPHERAL_OUTPUT_CLOCK_FREQ_SDMMC_CCLK} {100}
|
|
set_instance_parameter_value sys_hps {FPGA_PERIPHERAL_OUTPUT_CLOCK_FREQ_SPIM0_SCLK_OUT} {100}
|
|
set_instance_parameter_value sys_hps {FPGA_PERIPHERAL_OUTPUT_CLOCK_FREQ_SPIM1_SCLK_OUT} {100}
|
|
|
|
|
|
# exported interfaces
|
|
add_interface sys_hps_emac1 conduit end
|
|
set_interface_property sys_hps_emac1 EXPORT_OF sys_hps.emac1
|
|
add_interface sys_hps_emac1_md_clk clock source
|
|
set_interface_property sys_hps_emac1_md_clk EXPORT_OF sys_hps.emac1_md_clk
|
|
add_interface sys_hps_emac1_rx_clk_in clock sink
|
|
set_interface_property sys_hps_emac1_rx_clk_in EXPORT_OF sys_hps.emac1_rx_clk_in
|
|
add_interface sys_hps_emac1_tx_clk_in clock sink
|
|
set_interface_property sys_hps_emac1_tx_clk_in EXPORT_OF sys_hps.emac1_tx_clk_in
|
|
add_interface sys_hps_emac2 conduit end
|
|
set_interface_property sys_hps_emac2 EXPORT_OF sys_hps.emac2
|
|
add_interface sys_hps_emac2_md_clk clock source
|
|
set_interface_property sys_hps_emac2_md_clk EXPORT_OF sys_hps.emac2_md_clk
|
|
add_interface sys_hps_emac2_rx_clk_in clock sink
|
|
set_interface_property sys_hps_emac2_rx_clk_in EXPORT_OF sys_hps.emac2_rx_clk_in
|
|
add_interface sys_hps_emac2_tx_clk_in clock sink
|
|
set_interface_property sys_hps_emac2_tx_clk_in EXPORT_OF sys_hps.emac2_tx_clk_in
|
|
|
|
# internal connections
|
|
add_connection sys_clk.clk sys_hps.emac_ptp_ref_clock
|
|
|