Altera_Forum
Honored Contributor
11 years agoTiming and functional simulation results for a ff with asynch set don't match.
Hi
I'm using Quartus 2 13.1 web edition and modelsim altera starter edition 10.1d. I have a terasic D0 board which i run my codes after simulations. My code is like that
library ieee;
use ieee.std_logic_1164.all;
entity DD is
port (clk,X :in std_logic;
asyncset : in std_logic; -- D'den gelen out1 sinyali
Y:out std_logic);
end entity DD;
architecture behav of DD is
begin
process(clk,asyncset) begin
if asyncset = '1' then
Y<='1';
elsif rising_edge (clk) then
Y<= not X;
end if;
end process;
end architecture behav;
After functional simulation every thing seems ok but when i execute timing simulation it works completely opposite. Timing Sim http://www.alteraforum.com/forum/attachment.php?attachmentid=9817&stc=1 Functional Sim http://www.alteraforum.com/forum/attachment.php?attachmentid=9818&stc=1 What tools should i use to fix this situation? And any advice for this problem ? Thanks.