Forum Discussion
Altera_Forum
Honored Contributor
9 years agoHelp with Shifting !
Hi everyone, I am trying to write a vhdl program that takes a input R and a shifted version of it and adds them, then adds the result to a 2nd shifted version of R and then AND's it with a mas...
Altera_Forum
Honored Contributor
9 years agoAre you aware of the 'mod' operator in VHDL?
Have a look at: http://stackoverflow.com/questions/25848879/difference-between-mod-and-rem-operators-in-vhdl then have a play with the operator. I think it'll allow you to clean up your code a little... or maybe quite a bit. Cheers, Alex