So let's suppose I want to do certain action based on certain signal. I have signal "nx"; if it's 1, I want to "NOT" an X input(16bit) and if it isn't, I want the X unchanged.
My idea was to do both and fanout it into MUX and decide which output to use based on the "nx" bit. But I'm not so sure if it would work in real hardware (or even FPGA for that matter), because the lane that doesn't change anything is gonna be carried out faster than the one with "NOT" gates in it.
Is my understanding correct ? And if so, is it problem even on FPGA (do those operations really "eat" clock cycles) ? And if so, how would you go about it to solve this simple problem ?