Altera_Forum
Honored Contributor
17 years agoError during compilation when using 'Process'
Hi,
I have written a code that can compile when not using Process but gave error during compilation when process is used. I am not sure how to solve it. The stucture of the code is similar to the one I got from a book. Here is the code:library IEEE;
use IEEE.STD_LOGIC_1164.all;
Entity Adder4 is
port( C : in std_logic;
X, Y, clock : in std_logic_vector (1 downto 0);
R : out std_logic_vector (2 downto 0));
end Adder4;
Architecture Version1 of Adder4 is
signal Carry : std_logic;
component FullAdd3_B
port ( A, B, Cin, clk : in std_logic;
Sum, Cout : out std_logic);
end component;
begin
Process (clock)
begin
UO1: FullAdd3_B PORT MAP (X(0), Y(0), C, clock(0), R(0), Carry);
UO2: FullAdd3_B PORT MAP (X(1), Y(1), Carry, clock(1), R(2), R(1));
end process;
end Version1;Here are the error messages: Error (10500): VHDL syntax error at Adder4.vhd(21) near text "PORT"; expecting "(", or "'", or "."
Error (10500): VHDL syntax error at Adder4.vhd(21) near text ";"; expecting ":=", or "<="
Error (10500): VHDL syntax error at Adder4.vhd(22) near text "PORT"; expecting "(", or "'", or "."
Error (10500): VHDL syntax error at Adder4.vhd(22) near text ";"; expecting ":=", or "<="Pls double check to see if I have missed anything. I cannot spot any error. I just don't understand why the code can work without using process but refuse to cimpile when using it. Thanks..