Jump to content
  • 0

How to use the 16-DIP switches twice in Nexys 4 for using it as 32-bit I/O port? Also how to toggle between them using Push buttons?


Sanjay Kumar

Question

1 answer to this question

Recommended Posts

  • 0

Hi @Sanjay Kumar

Welcome to the forums.

You can't directly map two top-level ports to the same FPGA pins, so you need to implement additional hardware in a top module that creates the desired functionality. One way to do it would be to create registers that save the value passed in from the switches whenever one of the buttons is pressed, which then forwards the saved values on to your module's ports.

Thanks,

Arthur

Link to comment
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
×
×
  • Create New...