前仿真的结果与后仿真的结果差别很大,有点无所适从。例如
entity test is
port
(
clk:in std_logic;
x:in std_logic;
yut std_logic
)
end;
architectur rtl of test is
begin
process(clk)
begin
if clk'event and clk = '1' then
y <= x;
end if;
end process;
end;
前仿真时,y在时钟上沿随 x改变,但在后仿真时却要等一个时钟才有变化。我应该如何看待或处理这个问题?