Forum Discussion
Altera_Forum
Honored Contributor
12 years agoYou code is rather confusing. Instead of using the <= operator I think it would be a lot easier to check individual bits of A_bus in your ifs. It would make the priority order more visible.
What do you call "first switch"? Is it the one connected to A_bus(0) or A_bus(2)? Did you check the polarity of the switch and led signals?