Reputation:
I am getting this error message which i don't understand for this codepiece
Segmentvalue: process(Anode,counter_1r, counter_10r,counter_100r, counter_1000r)
begin
case anode is
when 0 => An <= "1110" && segment <= counter_1r;
when 1 => AN <= "1101" && segment <= counter_10r;
when 2 => An <= "1011" && segment <= counter_100r;
When 3 => An <= "0111" && segment <= counter_1000r;
when others => null;
end case;
end process;
It's likely because of the use of && which usually used in c++ when multiple things have to be done, but how is it vhdl?
Upvotes: 0
Views: 313
Reputation: 2566
Try this
Segmentvalue: process(Anode,counter_1r, counter_10r,counter_100r, counter_1000r)
begin
case anode is
when 0 => An <= "1110"; segment <= counter_1r;
when 1 => AN <= "1101"; segment <= counter_10r;
when 2 => An <= "1011"; segment <= counter_100r;
When 3 => An <= "0111"; segment <= counter_1000r;
when others => null;
end case;
end process;
Upvotes: 2