【发布时间】:2016-01-11 10:39:09
【问题描述】:
请参阅下面的 vhdl 代码。
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity newtestcpu is
port( reset :in std_logic;
PC :out std_logic_vector(15 downto 0);
IR :out std_logic_vector(15 downto 0)
);
end newtestcpu;
architecture CPUArch of newtestcpu is
BEGIN
process(reset) begin
case reset is
when '1' => PC<=x"FF87";
when others => IR<=x"aa01";
end case;
end process;
end architecture ;
我在 Quartus II 中 Start Compilation & Simulation。
我在 vwf 文件中给出reset in node Value Forcing Low(0),Simulation Report 告诉PC out node Value 1111111110000111 (x"FF87"),并且IR out node Value 1010101000000001(x"aa01"),搞糊涂了!
看来reset 已经是1 了!我想知道为什么。
【问题讨论】: