还是说,在VHDL语言中,多条语句的合并机制已经包含在语法中了?
LIBRARY IEEE;
USE IEEE.STD_LOGIC_1164.ALL;
ENtiTY tt IS
PORT(col_reg,col_2_reg:inout STD_LOGIC;
clk,row_reg:in std_logic
);
END tt;
architecture tt of tt is
process(clk)
begin
if clk'event and clk='1'
then
col_reg<=col_reg+1;
col_2_reg<=col_2_reg+1;
if col_reg=0
then row_reg<=row_reg+1;
end if;
end if;
end process;
end architecture;