我尝试在 ModelSim 10.0 中进行编译,但收到一条编译错误,指出:“无法读取输出状态”。
这是代码片段。如果有人能告诉我我做错了什么,那就太好了。
entity controller_entity is
generic( entryCount : positive := 2;
....);
port(
clk : in std_logic;
....
entry_car_entered : out std_logic_vector(0 to entryCount-1)
);
end entity controller_entity;
architecture controller_v1 of controller_entity is
signal cars_entered : std_logic_vector(0 to entryCount-1);
component entry is
port(
clk : in std_logic;
....
car_passed: out std_logic --Output to higher level
);
end component;
begin
CREATE_ENTRANCES: for i in 0 to entryCount-1 generate
entryi : entry port map(clk => clk,
....
car_passed => …Run Code Online (Sandbox Code Playgroud)