From cd9e219d1bfd46677c6be8a47fb457bdc9c56cf1 Mon Sep 17 00:00:00 2001 From: liangkangnan Date: Thu, 19 Aug 2021 09:44:36 +0800 Subject: [PATCH] fpga:xilinx:constrs: add i2c pin Signed-off-by: liangkangnan --- fpga/xilinx/constrs/tinyriscv.xdc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/fpga/xilinx/constrs/tinyriscv.xdc b/fpga/xilinx/constrs/tinyriscv.xdc index 561a773..cd4206f 100644 --- a/fpga/xilinx/constrs/tinyriscv.xdc +++ b/fpga/xilinx/constrs/tinyriscv.xdc @@ -22,6 +22,14 @@ set_property PACKAGE_PIN M6 [get_ports uart_tx_pin] set_property IOSTANDARD LVCMOS33 [get_ports uart_rx_pin] set_property PACKAGE_PIN N6 [get_ports uart_rx_pin] +# I2C0 SCL引脚 +set_property IOSTANDARD LVCMOS33 [get_ports i2c_scl_pin] +set_property PACKAGE_PIN R10 [get_ports i2c_scl_pin] + +# I2C0 SDA引脚 +set_property IOSTANDARD LVCMOS33 [get_ports i2c_sda_pin] +set_property PACKAGE_PIN R11 [get_ports i2c_sda_pin] + # GPIO0引脚 set_property IOSTANDARD LVCMOS33 [get_ports {gpio_pins[0]}] set_property PACKAGE_PIN P16 [get_ports {gpio_pins[0]}]