Forum Discussion
Altera_Forum
Honored Contributor
13 years agoYou can also use a loop, and decide where the bits are coming from with an if -elsif - else statement inside that loop.
The code now gets bigger, using 740 LCs. I feel that a solution using barrelshifters and simple logic operators will be a lot smaller, and probably also faster (using less levels of logic)