sally wang
Newbie level 5
Hi, I'm now trying to write a VHDL code for LED controll system. But why there is always an error says: 'Object O6 of mode OUT can not be read'. How to modify that?
entity led1 is
Port ( IO_L1P_D31_LC_1 : in STD_LOGIC;
IO_L1P_D30_LC_1 : in STD_LOGIC;
O6,O4 : out STD_LOGIC);
end;
architecture Behavioral of led1 is
signal I6,I4: STD_LOGIC;
begin
process(IO_L1P_D30_LC_1,IO_L1P_D30_LC_1)
begin
I6 <= IO_L1P_D31_LC_1;
I4 <= IO_L1P_D30_LC_1;
end process;
O6 <= '1' when (O6=I6) else '0';
O4 <= '0' when (O4=I4) else '1';
end;
entity led1 is
Port ( IO_L1P_D31_LC_1 : in STD_LOGIC;
IO_L1P_D30_LC_1 : in STD_LOGIC;
O6,O4 : out STD_LOGIC);
end;
architecture Behavioral of led1 is
signal I6,I4: STD_LOGIC;
begin
process(IO_L1P_D30_LC_1,IO_L1P_D30_LC_1)
begin
I6 <= IO_L1P_D31_LC_1;
I4 <= IO_L1P_D30_LC_1;
end process;
O6 <= '1' when (O6=I6) else '0';
O4 <= '0' when (O4=I4) else '1';
end;