Forum Discussion
Altera_Forum
Honored Contributor
16 years agoFrom looking at the code you have posted, they are not the same thing.
The second example sets every bit to '0', and the selected address to '1' every time the address changes. The first (non working) example is making latches. You may be inititialising all the results to '0' but you are latching a '1' into them when the address is set, and then they will stay at '1' for ever.