下面是D触发器程序,不能再简单了,奇怪的是在ISE中不能进行“Generate Expected Simulation Results”和“Simulate Behavioral Model”仿真,输出q始终没变化。而对其他程序,比如FIFO,都可以正常进行仿真,所以ISE和Modelsim看来是没问题的。那是为什么呢?请求帮助!<br /><br />entity dff1 is<br /> Port ( d : in STD_LOGIC;<br /> clk : in STD_LOGIC;<br /> q : out STD_LOGIC);<br />end dff1;<br /><br />architecture Behavioral of dff1 is<br /> signal q_temp : std_logic := '0';<br />begin<br /> p1:process(clk,d,q_temp)<br /> begin<br /> if clk'event and clk='1' then<br /> q_temp<=d;<br /> end if;<br /> end process;<br /> <br /> q<=q_temp;<br />end Behavioral; |
|