Forum Discussion
Altera_Forum
Honored Contributor
13 years agoThe function you are using seems to be reasonable. There are many possibilities to your problem.
Make sure: 1. The physical pin is assigned properly in your Quartus project (correct location, voltage standard). 2. The pin assignment in your top level design is connected to the proper path to your SOPC or Q-SYS instantiation. 3. The base address (IN_PIO_BASE) directly corresponds to the expected value in SOPC or Q-SYS. If you have looked at all of these and you are 100% sure they are correct, begin testing at the firmware level to make sure your pin is behaving properly. (tie it to an LED or use signaltap to monitor). Also, you can try hard-coding the input to SOPC/Q-SYS to a '1' or '0' and make sure software reads the proper value.