Altera_Forum
Honored Contributor
14 years agoHardware primitives giving odd behavior
I am a student just starting with Verilog and am trying to create a module to take all the numbers between 0 and 63 and then modulo them by three and five.
I am trying to do it with a pair of hardware primitives, and the modulo three works, but trying to modulo by other numbers mysteriously does not. I tried five, two, and four now and they have all given me very odd output in both the simulator and on the DE2 board I am working with. EDIT: Removed the large output I had posted to post all the outputs and source files for the different modulos I have tried into the expanded zip file I posted below. All the different modulos I have created are just copy pastes from the Mod3 file with which I then alter the outputs.