Jump to content
  • 0

GPIO IP outputs


Antonio Fasano

Question

Hi, Guys,

I am using the AXI GPIO (2.0) IP in a ARTY-Z7-20 projetct.  

The output of the GPIO goes to teh shield dp0 dp13 outputs. I would like to attach outputs from dp0 to dp12 only to that IP.

I would like to leave dp13 to another IP in the project. How can I do it ? How can I split DP0-DP12 and link them to the AXI GPIO IP ?

Thanks

Antonio

Link to comment
Share on other sites

13 answers to this question

Recommended Posts

Hi @Antonio Fasano,

What version of Vivado are you using? Make sure  you are still using the Arty-Z7-20 board file for this project because the Arty-Z7-20 board files configures the ZYNQ processor correctly as well.

1) In the Vivado block design add the AXI GPIO IP from the add ip plus sign instead of using the shield 0-13 board file option in the board tab.

2) Now double click into the AXI GPIO IP and select IP Configuration. Next change the width from 32 to 13 and select ok. Then expand the GPIO port and right click on gpio_io_t and select make external.

3) Once you have finish the rest of your block design and have created a wrapper, open the wrapper file. Then create an xdc file as well.      Next, constrain the  gpio_io_t pins in the xdc as they are named in the wrapper. 

4) Copy and past the master XDC here into the xdc file you created in your project. Now un-comment text for the pins you are using. Then, you will need to alter the general pin names like ck_io0 to the names used in the wrapper file.

5) Now save the xdc file and generate a bitstream.

This process will free up the 14th pin to be able to be used in another IP.

thank you,

Jon

Arduino_shield_Arty_Z7_20_1.jpg

Arduino_shield_Arty_Z7_20_2.jpg

Link to comment
Share on other sites

Hi, Jon

I did exactly what you say in your post but I keep getting placement errors:

Portion of the wrapper file:

   SDATSAI2 => SDATSAI2,
      gpio_io_o_0(12 downto 0) => gpio_io_o_0(12 downto 0),                        
      shield_dp26_dp41_tri_i(15) => shield_dp26_dp41_tri_i_15(15),
 

Portion of hte XDC file:

set_property -dict { PACKAGE_PIN T14   IOSTANDARD LVCMOS33 } [get_ports { gpio_io_o_0(0)  }]; 
set_property -dict { PACKAGE_PIN U12   IOSTANDARD LVCMOS33 } [get_ports { gpio_io_o_0(1)  }]; 
set_property -dict { PACKAGE_PIN U13   IOSTANDARD LVCMOS33 } [get_ports { gpio_io_o_0(2)  }]; 
set_property -dict { PACKAGE_PIN V13   IOSTANDARD LVCMOS33 } [get_ports { gpio_io_o_0(3)  }]; 
set_property -dict { PACKAGE_PIN V15   IOSTANDARD LVCMOS33 } [get_ports { gpio_io_o_0(4)  }];
set_property -dict { PACKAGE_PIN T15   IOSTANDARD LVCMOS33 } [get_ports { gpio_io_o_0(5)  }]; 
set_property -dict { PACKAGE_PIN R16   IOSTANDARD LVCMOS33 } [get_ports { gpio_io_o_0(6)  }]; 
set_property -dict { PACKAGE_PIN U17   IOSTANDARD LVCMOS33 } [get_ports { gpio_io_o_0(7)  }]; 
set_property -dict { PACKAGE_PIN V17   IOSTANDARD LVCMOS33 } [get_ports { gpio_io_o_0(8)  }];
set_property -dict { PACKAGE_PIN V18   IOSTANDARD LVCMOS33 } [get_ports { gpio_io_o_0(9)  }]; 
set_property -dict { PACKAGE_PIN T16   IOSTANDARD LVCMOS33 } [get_ports { gpio_io_o_0(10) }]; 
set_property -dict { PACKAGE_PIN R17   IOSTANDARD LVCMOS33 } [get_ports { gpio_io_o_0(11) }];
set_property -dict { PACKAGE_PIN P18   IOSTANDARD LVCMOS33 } [get_ports { gpio_io_o_0(12) }]; 

Errors I get

[Place 30-58] IO placement is infeasible. Number of unplaced terminals (13) is greater than number of available sites (0). The following are banks with available pins: IO Group: 0 with : SioStd: LVCMOS18 VCCO = 1.8 Termination: 0 TermDir: Out RangeId: 1 Drv: 12 has only 0 sites available on device, but needs 13 sites. Term: gpio_io_o_0[0] Term: gpio_io_o_0[1] Term: gpio_io_o_0[2] Term: gpio_io_o_0[3] Term: gpio_io_o_0[4] Term: gpio_io_o_0[5] Term: gpio_io_o_0[6] Term: gpio_io_o_0[7] Term: gpio_io_o_0[8] Term: gpio_io_o_0[9] Term: gpio_io_o_0[10] Term: gpio_io_o_0[11] Term: and gpio_io_o_0[12]

What am I doing wrong ?

Thanks

Antonio
 

Link to comment
Share on other sites

Hi @Antonio Fasano,

Later this week I should have bandwidth to make a project that does this for you.  Can you attach screen shots of your project using the T pins along with the wrapper and xdc file. Also to clarify you have the Arty-Z7-20 and not the Arty-Z7-10 correct? Either you can look on the Zynq/ FPGA  chip on the  board or open up the hardware manager and verify the ZYNQ chip you have on the board.

cheers,

Jon

Link to comment
Share on other sites

Hi, Jon,

I inspected both the older wrapper file and the neweer (After I made the customs 13 outputs external instead of the shield pins..

The older file shows a lot of references to the shield pins, including i / o and t sufixes (See below)

      shield_dp0_dp13_tri_i(13) => shield_dp0_dp13_tri_i_13(13),
      shield_dp0_dp13_tri_i(12) => shield_dp0_dp13_tri_i_12(12),
      shield_dp0_dp13_tri_i(11) => shield_dp0_dp13_tri_i_11(11),
      shield_dp0_dp13_tri_i(10) => shield_dp0_dp13_tri_i_10(10),
      shield_dp0_dp13_tri_i(9) => shield_dp0_dp13_tri_i_9(9),
      shield_dp0_dp13_tri_i(8) => shield_dp0_dp13_tri_i_8(8),
      shield_dp0_dp13_tri_i(7) => shield_dp0_dp13_tri_i_7(7),
      shield_dp0_dp13_tri_i(6) => shield_dp0_dp13_tri_i_6(6),
      shield_dp0_dp13_tri_i(5) => shield_dp0_dp13_tri_i_5(5),
      shield_dp0_dp13_tri_i(4) => shield_dp0_dp13_tri_i_4(4),
      shield_dp0_dp13_tri_i(3) => shield_dp0_dp13_tri_i_3(3),
      shield_dp0_dp13_tri_i(2) => shield_dp0_dp13_tri_i_2(2),
      shield_dp0_dp13_tri_i(1) => shield_dp0_dp13_tri_i_1(1),
      shield_dp0_dp13_tri_i(0) => shield_dp0_dp13_tri_i_0(0),
      shield_dp0_dp13_tri_o(13) => shield_dp0_dp13_tri_o_13(13),
      shield_dp0_dp13_tri_o(12) => shield_dp0_dp13_tri_o_12(12),
      shield_dp0_dp13_tri_o(11) => shield_dp0_dp13_tri_o_11(11),
      shield_dp0_dp13_tri_o(10) => shield_dp0_dp13_tri_o_10(10),
      shield_dp0_dp13_tri_o(9) => shield_dp0_dp13_tri_o_9(9),
      shield_dp0_dp13_tri_o(8) => shield_dp0_dp13_tri_o_8(8),
      shield_dp0_dp13_tri_o(7) => shield_dp0_dp13_tri_o_7(7),
      shield_dp0_dp13_tri_o(6) => shield_dp0_dp13_tri_o_6(6),
      shield_dp0_dp13_tri_o(5) => shield_dp0_dp13_tri_o_5(5),
      shield_dp0_dp13_tri_o(4) => shield_dp0_dp13_tri_o_4(4),
      shield_dp0_dp13_tri_o(3) => shield_dp0_dp13_tri_o_3(3),
      shield_dp0_dp13_tri_o(2) => shield_dp0_dp13_tri_o_2(2),
      shield_dp0_dp13_tri_o(1) => shield_dp0_dp13_tri_o_1(1),
      shield_dp0_dp13_tri_o(0) => shield_dp0_dp13_tri_o_0(0),
      shield_dp0_dp13_tri_t(13) => shield_dp0_dp13_tri_t_13(13),
      shield_dp0_dp13_tri_t(12) => shield_dp0_dp13_tri_t_12(12),
      shield_dp0_dp13_tri_t(11) => shield_dp0_dp13_tri_t_11(11),
      shield_dp0_dp13_tri_t(10) => shield_dp0_dp13_tri_t_10(10),
      shield_dp0_dp13_tri_t(9) => shield_dp0_dp13_tri_t_9(9),
      shield_dp0_dp13_tri_t(8) => shield_dp0_dp13_tri_t_8(8),
      shield_dp0_dp13_tri_t(7) => shield_dp0_dp13_tri_t_7(7),
      shield_dp0_dp13_tri_t(6) => shield_dp0_dp13_tri_t_6(6),
      shield_dp0_dp13_tri_t(5) => shield_dp0_dp13_tri_t_5(5),
      shield_dp0_dp13_tri_t(4) => shield_dp0_dp13_tri_t_4(4),
      shield_dp0_dp13_tri_t(3) => shield_dp0_dp13_tri_t_3(3),
      shield_dp0_dp13_tri_t(2) => shield_dp0_dp13_tri_t_2(2),
      shield_dp0_dp13_tri_t(1) => shield_dp0_dp13_tri_t_1(1),
      shield_dp0_dp13_tri_t(0) => shield_dp0_dp13_tri_t_0(0),
      

 

while the new wrapper file only shows some _t ocurrences of the gpio_io_t_0 signals

That´s all that appears in the new wrapper.

gpio_io_t_0(12 downto 0) => gpio_io_t_0(12 downto 0),

 

There are several IOBUF  components that do not appear in the new wrapper also.

Perhaps instead of re-generating the wrapper I should keep the older wrapper and only change the signals, right ?  But what about the other _o  _i  signals ?

 

Thanks

Antonio

 

Link to comment
Share on other sites

Hi, Jon

I tried to make external the while GPIO output and not only the _t signals.

The new wrapper file becomes much similar to the one that works, but the  placement error continues to appear.

This is the link to the project archive that is working:

https://www.dropbox.com/s/f4w9mpa2lgwoj2s/X4000Board.xpr.zip?dl=0

 

This is the link to the modified project  that is not working

https://www.dropbox.com/s/f7ovtbijw3zzv7i/X4000Board.xpr MODIFIED.zip?dl=0

 

The zynq chip is

XC72020

CLG400ABX1701

D5348119A

Thank you for your support.

Antonio

Link to comment
Share on other sites

HI, Jon

Thank you very much. Now I know what went wrong. In the constraints file I was writing gpio(0), gpio(1), etc. 

By looking at your example, I noticed that the correct spelling is gpio[0], gpio[1], etc. 

I changed it in my project and it ran fine.

Once again thank you very much for your time and for your guidance.

I owe you another one !!!

Regards,

Antonio

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...