--- Quote Start ---
I want to ask question. Is it possible if I still want used this code "LEDR <= (NOT (s) AND SWX) OR (s AND SWY);" in my architecture? Is there any method to use it. Or is not possible?
--- Quote End ---
The above code is asking the synthesis tool to do that for you. What the tool will do is essentially what you have written, but it needs to happen on a per bit basis, eg.,
process(s,SWX,SWY)
begin
for i in 0 to 7 loop
LEDR(i) <= (SWX(i) and (not s)) or (SWY(i) and s);
end loop;
end process;
Note how this code loops over each bit in the 8-bit word.
Cheers,
Dave