gayathri90 Posted January 16, 2015 Share Posted January 16, 2015 Hi.. I have been trying to use the GPIOs in Vivado 2014.1 Since, the Zybo board is not mentioned in the supported boards while creating the project, i have mentioned the package. I just want to read the switch value and print it in the console window in SDK. I had made the model, added the required constraints in the xdc file, generated the bitstream and then exported it to SDK. It worked fine. Next, i changed my design to read the status of the push button. Accordingly i changed the xdc file, generated the bitstream and exported to SDK. Now, after running the elf file, still the program is taking the values of switches and not the push buttons, I have tried cleaning up the project in SDK, resetting the runs in Vivado and generating the bitstream. But, still the values are read from switches. What would be the problem?? Can anyone help me at the earliest?? Thanks in advance Link to comment Share on other sites More sharing options...
cristian.ignat Posted February 15, 2016 Share Posted February 15, 2016 Hello, Check the xdc file. For the buttons, you should have the following lines: set_property PACKAGE_PIN R18 [get_ports {"btn<0>" }]; #IO_L20N_T3_34 set_property IOSTANDARD | IOSTANDARD=LVCMOS33 [get_ports {"btn<0>" }] set_property PACKAGE_PIN P16 [get_ports {"btn<1>" }]; #IO_L24N_T3_34 set_property IOSTANDARD | IOSTANDARD=LVCMOS33 [get_ports {"btn<1>" }] set_property PACKAGE_PIN V16 [get_ports {"btn<2>" }]; #IO_L18P_T2_34 set_property IOSTANDARD | IOSTANDARD=LVCMOS33 [get_ports {"btn<2>" }] set_property PACKAGE_PIN Y16 [get_ports {"btn<3>" }]; #IO_L7P_T1_34 set_property IOSTANDARD | IOSTANDARD=LVCMOS33 [get_ports {"btn<3>" }] Also you should check (in sdk) that the button GPIO address is ok. Please attach the project if you want to help you more. Regards, Cristian Link to comment Share on other sites More sharing options...
Question
gayathri90
Hi..
I have been trying to use the GPIOs in Vivado 2014.1
Since, the Zybo board is not mentioned in the supported boards while creating the project, i have mentioned the package.
I just want to read the switch value and print it in the console window in SDK.
I had made the model, added the required constraints in the xdc file, generated the bitstream and then exported it to SDK.
It worked fine.
Next, i changed my design to read the status of the push button. Accordingly i changed the xdc file, generated the bitstream and
exported to SDK. Now, after running the elf file, still the program is taking the values of switches and not the push buttons,
I have tried cleaning up the project in SDK, resetting the runs in Vivado and generating the bitstream. But, still the values are read
from switches. What would be the problem??
Can anyone help me at the earliest??
Thanks in advance
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.