请问以下两种编码风格有什么区别?对于我从 XILINX 示例代码中阅读的第一个。第二,我从一本教授 VHDL 的书中读到它。
1. signal: register std_logic;
signal: output std_logic;
process (clk)
begin
if rising_edge(clk) then
register <= outside_signal ;
end if;
end process;
output <= register;
2. signal: register_reg std_logic;
signal: register_next std_logic;
signal: output std_logic;
process (clk)
begin
if rising_edge(clk) then
register_reg <= register_next;
end if;
end process;
register_next<=outside_signal;
output <= register_reg;
非常感谢。