FPGA_Board/OrangeCrab_r0.2.1: Switched the GPIO 0/1 pins for I2C to the dedicated ones
This commit is contained in:
parent
3e66336456
commit
8281c9a21f
@ -48,8 +48,8 @@ module fpga_top(
|
||||
output wire [5:0] ddram_vccio,
|
||||
output wire ddram_we_n,
|
||||
|
||||
inout gpio_0,/*sda*/
|
||||
output gpio_1 /*scl*/
|
||||
inout i2c_sda,/*sda*/
|
||||
output i2c_scl /*scl*/
|
||||
`else
|
||||
output i2c_dir,
|
||||
output i2c_scl,
|
||||
@ -493,7 +493,7 @@ TRELLIS_IO #(
|
||||
.DIR ("BIDIR")
|
||||
) TRELLIS_IO_00 (
|
||||
// pin
|
||||
.B (gpio_0),
|
||||
.B (i2c_sda),
|
||||
//input
|
||||
.I (1'd0),
|
||||
//Direction
|
||||
@ -502,7 +502,7 @@ TRELLIS_IO #(
|
||||
.O (SDA_input)
|
||||
);
|
||||
|
||||
assign gpio_1=SCL;
|
||||
assign i2c_scl=SCL;
|
||||
|
||||
`else
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
LOCATE COMP "clk48" SITE "A9";
|
||||
IOBUF PORT "clk48" IO_TYPE=LVCMOS33;
|
||||
FREQUENCY PORT "clk48" 48.0 MHz;
|
||||
|
||||
LOCATE COMP "ddram_a[0]" SITE "C4";
|
||||
IOBUF PORT "ddram_a[0]" SLEWRATE=FAST;
|
||||
IOBUF PORT "ddram_a[0]" IO_TYPE=SSTL135_I;
|
||||
@ -252,3 +251,7 @@ LOCATE COMP "usb_d_n" SITE "M2";
|
||||
IOBUF PORT "usb_d_n" IO_TYPE=LVCMOS33;
|
||||
LOCATE COMP "usb_pullup" SITE "N2";
|
||||
IOBUF PORT "usb_pullup" IO_TYPE=LVCMOS33;
|
||||
LOCATE COMP "i2c_sda" SITE "C10";
|
||||
IOBUF PORT "i2c_sda" IO_TYPE=LVCMOS33;
|
||||
LOCATE COMP "i2c_scl" SITE "C9";
|
||||
IOBUF PORT "i2c_scl" IO_TYPE=LVCMOS33;
|
||||
|
Loading…
Reference in New Issue
Block a user