k-k Posted January 10, 2022 Share Posted January 10, 2022 Hello, I am an beginner and use a Zybo Z20 Board Vivado and Vitis. I tryed the Tutorial: Getting Started with Vivado and Vitis for Baremetal Software Projects - Digilent Reference (it works) Now i tryed to add a RTL-Block (VHDL) and connect it with the axi-gpio. Then i want to manipulate it using vitis and a c-code, a LED should shine. But it doesn't work. Is there a tutorial how to connect PL and PS? Can someone help me? Thanks Link to comment Share on other sites More sharing options...
0 thinkthinkthink Posted January 10, 2022 Share Posted January 10, 2022 How does your constraints file look like ? Link to comment Share on other sites More sharing options...
0 k-k Posted January 10, 2022 Author Share Posted January 10, 2022 (edited) Edited January 10, 2022 by k-k Link to comment Share on other sites More sharing options...
0 k-k Posted January 12, 2022 Author Share Posted January 12, 2022 could i get help from the digilent-support? Link to comment Share on other sites More sharing options...
0 thinkthinkthink Posted January 12, 2022 Share Posted January 12, 2022 Everything looks good, maybe do some debugging in vivado with an ILA, look at the output of your RTL module. Also, have you simulated it ? Does it work correctly ? It could also be that there's some issues with the physical switches on your board. Link to comment Share on other sites More sharing options...
0 k-k Posted January 12, 2022 Author Share Posted January 12, 2022 (edited) Thanks for your answer. here is the code from the RTL Module: (Its not sensful, i just wanted to make it simple) Edited January 12, 2022 by k-k Link to comment Share on other sites More sharing options...
0 thinkthinkthink Posted January 12, 2022 Share Posted January 12, 2022 But your and gate does not take into consideration the a and b inputs which come from the switches... So no matter what you do to those switches your output will always be the same. y should be equal to a AND b. Link to comment Share on other sites More sharing options...
0 k-k Posted January 12, 2022 Author Share Posted January 12, 2022 at first the code was: y <= a and b; then i changed it, because you wrote, that something with the physical switches could be wrong... When y <= '1'; the led should shine. Or am i wrong? Link to comment Share on other sites More sharing options...
0 thinkthinkthink Posted January 12, 2022 Share Posted January 12, 2022 I can't know for sure if the switches are broken, that's why you gotta find that out by testing them in your design. But yeah, the LED should be on if the value you read on the input of your gpio is '1'. Link to comment Share on other sites More sharing options...
Question
k-k
Hello,
I am an beginner and use a Zybo Z20 Board Vivado and Vitis.
I tryed the Tutorial: Getting Started with Vivado and Vitis for Baremetal Software Projects - Digilent Reference (it works)
Now i tryed to add a RTL-Block (VHDL) and connect it with the axi-gpio.
Then i want to manipulate it using vitis and a c-code, a LED should shine. But it doesn't work.
Is there a tutorial how to connect PL and PS?
Can someone help me?
Thanks
Link to comment
Share on other sites
8 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now