Skip to content

Commit

Permalink
adrv9009zu11eg_crr: Update spi
Browse files Browse the repository at this point in the history
Add two more CS signals to P25 connector
  • Loading branch information
sarpadi committed Mar 10, 2021
1 parent 3dce87d commit a1773c6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 7 additions & 1 deletion projects/adrv9009zu11eg/adrv2crr_fmc/system_top.v
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,12 @@ module system_top (
inout pmod0_d5,
inout pmod0_d6,
inout pmod0_d7,
output gpio_0_exp_n, //CS
output gpio_0_exp_n, //CS0n
output gpio_0_exp_p, //MOSI
input gpio_1_exp_n, //MISO
output gpio_1_exp_p, //SCK
output gpio_2_exp_n, //CS2n
output gpio_2_exp_p, //CS2p
output led_gpio_0,
output led_gpio_1,
output led_gpio_2,
Expand Down Expand Up @@ -249,6 +251,8 @@ module system_top (
3'h2: spi_3_to_8_csn = 8'b11111011;
3'h3: spi_3_to_8_csn = 8'b11110111;
3'h4: spi_3_to_8_csn = 8'b11101111;
3'h5: spi_3_to_8_csn = 8'b11011111;
3'h6: spi_3_to_8_csn = 8'b10111111;
default: spi_3_to_8_csn = 8'b11111111;
endcase
end
Expand All @@ -261,6 +265,8 @@ module system_top (
assign gpio_1_exp_p = spi_clk;
assign gpio_0_exp_p = spi_3_to_8_csn[4] == 1'b0 ? spi_mosi : 1'bZ;
assign spi_miso_s = spi_3_to_8_csn[4] == 1'b0 ? gpio_1_exp_n : spi_miso;
assign gpio_2_exp_n = spi_3_to_8_csn[5];
assign gpio_2_exp_p = spi_3_to_8_csn[6];

adrv9009zu11eg_spi i_spi (
.spi_csn(spi_3_to_8_csn),
Expand Down
2 changes: 2 additions & 0 deletions projects/adrv9009zu11eg/common/adrv2crr_fmc_constr.xdc
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ set_property -dict {PACKAGE_PIN AM16 IOSTANDARD LVCMOS18} [get_ports gpio_0_exp
set_property -dict {PACKAGE_PIN AL16 IOSTANDARD LVCMOS18} [get_ports gpio_0_exp_p]
set_property -dict {PACKAGE_PIN AK17 IOSTANDARD LVCMOS18} [get_ports gpio_1_exp_n]
set_property -dict {PACKAGE_PIN AJ17 IOSTANDARD LVCMOS18} [get_ports gpio_1_exp_p]
set_property -dict {PACKAGE_PIN AK13 IOSTANDARD LVCMOS18} [get_ports gpio_2_exp_n]
set_property -dict {PACKAGE_PIN AJ14 IOSTANDARD LVCMOS18} [get_ports gpio_2_exp_p]

set_property -dict {PACKAGE_PIN AR19 IOSTANDARD LVCMOS18} [get_ports resetb_ad9545]
set_property -dict {PACKAGE_PIN AP19 IOSTANDARD LVCMOS18} [get_ports hmc7044_car_reset]
Expand Down

0 comments on commit a1773c6

Please sign in to comment.