参考资料:
UG1165 chapter7
UG940
PL侧管脚映射
-<part_info part_name="xczu3eg-sfva625-1-i">
-<pins>
<pin loc="R2" iostandard="LVCMOS18" name="CPU_RESET" index="0"/>
<pin loc="P3" iostandard="LVCMOS18" name="GPIO_DIP_SW0" index="1"/>
<pin loc="P2" iostandard="LVCMOS18" name="GPIO_DIP_SW1" index="2"/>
<pin loc="N1" iostandard="LVCMOS18" name="GPIO_DIP_SW2" index="3"/>
<pin loc="P1" iostandard="LVCMOS18" name="GPIO_DIP_SW3" index="4"/>
<pin loc="J7" iostandard="LVCMOS18" name="GPIO_DIP_SW4" index="5"/>
<pin loc="J6" iostandard="LVCMOS18" name="GPIO_DIP_SW5" index="6"/>
<pin loc="L7" iostandard="LVCMOS18" name="GPIO_DIP_SW6" index="7"/>
<pin loc="K7" iostandard="LVCMOS18" name="GPIO_DIP_SW7" index="8"/>
<pin loc="R7" iostandard="LVCMOS18" name="GPIO_LED_0_LS" index="9"/>
<pin loc="T5" iostandard="LVCMOS18" name="GPIO_LED_1_LS" index="10"/>
<pin loc="T7" iostandard="LVCMOS18" name="GPIO_LED_2_LS" index="11"/>
<pin loc="T4" iostandard="LVCMOS18" name="GPIO_LED_3_LS" index="12"/>
<pin loc="T3" iostandard="LVCMOS18" name="GPIO_LED_4_LS" index="13"/>
<pin loc="U2" iostandard="LVCMOS18" name="GPIO_LED_5_LS" index="14"/>
<pin loc="U6" iostandard="LVCMOS18" name="GPIO_LED_6_LS" index="15"/>
<pin loc="U5" iostandard="LVCMOS18" name="GPIO_LED_7_LS" index="16"/>
<pin loc="R1" iostandard="LVCMOS18" name="GPIO_PUSH_SW0" index="17"/>
<pin loc="L2" iostandard="LVCMOS18" name="GPIO_PUSH_SW1" index="18"/>
<pin loc="K2" iostandard="LVCMOS18" name="GPIO_PUSH_SW2" index="19"/>
</pins>
</part_info
约束文件
set_property PACKAGE_PIN W1 [get_ports {gpio_rtl_0_tri_io[0]}]
set_property IOSTANDARD LVCMOS18 [get_ports {gpio_rtl_0_tri_io[0]}]
set_property IOSTANDARD LVCMOS18 [get_ports D5]
set_property IOSTANDARD LVCMOS18 [get_ports SW1]
set_property PACKAGE_PIN T4 [get_ports D5]
set_property PACKAGE_PIN L2 [get_ports SW1]
set_property PACKAGE_PIN R1 [get_ports SW3]