fmcomms2/rfsom: Add GPIO control for the RF card

main
Istvan Csomortani 2015-07-14 13:11:05 +03:00
parent ba2029a6e8
commit a38339a3ec
2 changed files with 21 additions and 5 deletions

View File

@ -54,6 +54,10 @@ set_property -dict {PACKAGE_PIN G15 IOSTANDARD LVCMOS18} [get_ports gpio_sync
set_property -dict {PACKAGE_PIN H16 IOSTANDARD LVCMOS18} [get_ports gpio_resetb] ; ## IO_0_VRN_35 set_property -dict {PACKAGE_PIN H16 IOSTANDARD LVCMOS18} [get_ports gpio_resetb] ; ## IO_0_VRN_35
set_property -dict {PACKAGE_PIN K11 IOSTANDARD LVCMOS18} [get_ports gpio_clksel] ; ## IO_0_VRN_34 set_property -dict {PACKAGE_PIN K11 IOSTANDARD LVCMOS18} [get_ports gpio_clksel] ; ## IO_0_VRN_34
set_property -dict {PACKAGE_PIN K10 IOSTANDARD LVCMOS18} [get_ports gpio_rfpwr_enable] ; ## IO_25_VRP_34 set_property -dict {PACKAGE_PIN K10 IOSTANDARD LVCMOS18} [get_ports gpio_rfpwr_enable] ; ## IO_25_VRP_34
set_property -dict {PACKAGE_PIN AA20 IOSTANDARD LVCMOS25} [get_ports gpio_rf0] ; ## IO_L20_13_JX2_P
set_property -dict {PACKAGE_PIN AB20 IOSTANDARD LVCMOS25} [get_ports gpio_rf1] ; ## IO_L20_13_JX2_N
set_property -dict {PACKAGE_PIN AA14 IOSTANDARD LVCMOS25} [get_ports gpio_rf2] ; ## IO_L22_12_JX2_N
set_property -dict {PACKAGE_PIN J9 IOSTANDARD LVCMOS18} [get_ports gpio_rf3] ; ## IO_L05_34_JX4_N
set_property -dict {PACKAGE_PIN C11 IOSTANDARD LVCMOS18 PULLTYPE PULLUP} [get_ports spi_csn] ; ## IO_L23P_T3_35 set_property -dict {PACKAGE_PIN C11 IOSTANDARD LVCMOS18 PULLTYPE PULLUP} [get_ports spi_csn] ; ## IO_L23P_T3_35
set_property -dict {PACKAGE_PIN B11 IOSTANDARD LVCMOS18} [get_ports spi_clk] ; ## IO_L23N_T3_35 set_property -dict {PACKAGE_PIN B11 IOSTANDARD LVCMOS18} [get_ports spi_clk] ; ## IO_L23N_T3_35

View File

@ -110,6 +110,10 @@ module system_top (
enable, enable,
txnrx, txnrx,
gpio_rf0,
gpio_rf1,
gpio_rf2,
gpio_rf3,
gpio_rfpwr_enable, gpio_rfpwr_enable,
gpio_clksel, gpio_clksel,
gpio_resetb, gpio_resetb,
@ -193,6 +197,10 @@ module system_top (
output enable; output enable;
output txnrx; output txnrx;
inout gpio_rf0;
inout gpio_rf1;
inout gpio_rf2;
inout gpio_rf3;
inout gpio_rfpwr_enable; inout gpio_rfpwr_enable;
inout gpio_clksel; inout gpio_clksel;
inout gpio_resetb; inout gpio_resetb;
@ -227,11 +235,15 @@ module system_top (
// instantiations // instantiations
ad_iobuf #(.DATA_WIDTH(19)) i_iobuf ( ad_iobuf #(.DATA_WIDTH(23)) i_iobuf (
.dio_t ({gpio_t[52:51], gpio_t[48:32]}), .dio_t ({gpio_t[56:51], gpio_t[48:32]}),
.dio_i ({gpio_o[52:51], gpio_o[48:32]}), .dio_i ({gpio_o[56:51], gpio_o[48:32]}),
.dio_o ({gpio_i[52:51], gpio_i[48:32]}), .dio_o ({gpio_i[56:51], gpio_i[48:32]}),
.dio_p ({ gpio_rfpwr_enable, .dio_p ({ gpio_rf0,
gpio_rf1,
gpio_rf2,
gpio_rf3,
gpio_rfpwr_enable,
gpio_clksel, gpio_clksel,
gpio_txnrx, gpio_txnrx,
gpio_enable, gpio_enable,