Altera_Forum
Honored Contributor
11 years agoStrange switch, cant justify this behaviour
Hi,
I made this differentiated switch. But.. upon usage it turns out to be inverted. Contrary to what i deem to be logical behaviour? Any thoughts? else if (switch < register) //* so the result would be like this? begin action <= taken; register <= switch; end else if (switch > register) begin register <= switch; end * There I would expect the switch to be greater than the register when pressed so if (switch > register) the action would be taken at the positive flank of the push button. This is not the case how come?