Forum Discussion
Altera_Forum
Honored Contributor
14 years agoI'm not familiar with the core, but having written a microprocessor core (the Open8 uRISC), I can tell you that it isn't uncommon to see the compiler do surprising things in the face of "optimization"
I've written fairly simple address decoders in two styles. For some modules, I get lower usage with one style and not the other; and yet for other modules the reverse is true. I am assuming from the mnemonic that JNE is Jump if Not Equal. I would imagine the ALU already creates the logic for equality testing, and the JNE instruction simply examines the status of the flag (probably the Z flag). This would explain the almost infinitesimal change in resource usage. The fact that it slightly increased may also come down to resource sharing that has changed as well.