--- Quote Start ---
Hello
A B C K(A,B,C)
0 0 0 0
0 0 1 1
0 1 0 1
0 1 1 1
1 0 0 1
1 0 1 0
1 1 0 0
1 1 1 1
With the truth table above,how can I make a process?
A,B,C need to be a vector
ABC are the in ports
F is the out port
thanks!
--- Quote End ---
method 1(brute force):
process(A,B,C)
begin
if A = '0' and B = '0' and C = '0' then
F <= '0';
elsif...
....
end if;
end process;
method2:
process(A,B,C)
begin
F <= A or B or C;
if (A = '1' and B = '0' and C = '1') or (A = '1' and B = '1' and C = '0') then
F <= '0';
end if;
end process;
and so on...
end process;