Forum Discussion
Altera_Forum
Honored Contributor
9 years agoNew Guy Needs Help with vectors
I have a code for a MUX whereby I have an input named SW which comprises of SW (0 through 3). I am using case statement for a seven segment display. This is just to show 0 all the way to F. I copied ...
Altera_Forum
Honored Contributor
9 years ago --- Quote Start --- There isn't a single pin for turning the whole 7seg off. You can use another bit (switch) as part of the select to determine if each segment should be on or off. --- Quote End --- So then I can omit the SEL declaration and switch statement at the bottom altogether? This would mean that I only use the display on that one display I chose. Is that correct? Also, if I wanted to switch between one display or another, then would have to declare a_to_g1 and a_to_g2. In this manner, I would be able to declare the something to the effect of the following? if SEL <= '1', then (a_to_g1 and not a_to_g2) if SEL <= '0', then (not a_to_g1 and a_to_g2)