Altera_Forum
Honored Contributor
16 years agoDemultiplexer with latched value
I am using a demultiplexer with six output registers. The code is pretty simple.
process(X,sel)
begin
case sel is
when "000"=>
A <=X;
when "001" =>
B <=X;
when "010" =>
C <=X;
when "011" =>
D <= X;
when "100" =>
E <= X;
when "101" =>
F <= X;
when others =>null;
end case;
end process; I do not reset output regisers since I want to preserve them. That is why I get the following warnings. --- Quote Start --- Warning (10631): VHDL Process Statement warning at demux.vhd(21): inferring latch(es) for signal or variable "C", which holds its previous value in one or more paths through the process --- Quote End --- --- Quote Start --- Warning: Found 9 node(s) in clock paths which may be acting as ripple and/or gated clocks -- node(s) analyzed as buffer(s) resulting in clock skew --- Quote End --- Why is wrong to have latched output registers? What do I need to do to remove them?