• 0
aeon20

How to connect something to multiple inputs on different blocks?

Question

Please consider the following block diagram (from here https://reference.digilentinc.com/vivado/getting-started-with-ipi/start?_ga=2.35038633.906437217.1554114007-924004044.1549634437 but with a utility vector logic block added):

block_diagram3.thumb.jpg.3d62cfb86c6e0836430197e23caeeebd.jpg

 

I want push_buttons_5bits to remain connected to GPIO2, so I can read from them directly, like before.

However, I also want two bits, e.g. bit 0 and bit 1 from push_buttons_5bits to be connected to Op1 and Op2.

This has no purpose whatsoever, I'm just learning and would like to be able to read in my C code the result of the and gate.

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hi @aeon20,

I am not aware of an IP that demux the [0,4] output easily. I would think the easiest way to gain access to the first and second pin of the push_buttons_5bits  would be to write some VHDL/Verilog and demux signal 0 and signal 1 and then use the utility vector to use an and gate with the two signals.

best regards,

Jon 

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now