M
Mike Treseler
Guest
walala wrote:
It's just style.
It will compile the same either way.
Consider leaving out the
else clause if you're not using it.
-- Mike Treseler
First time I've seen it.I learned from books that I should exhaust all branches of "if"
statement, so I write in the following way:
if rst = '1' then
count <= 0;
elsif clk'event and clk = '1' then
if (INPUTEND = '1') then
...
else
null;
end if;
else
null;
end if;
But I also saw on the Internet sometimes people don't write code in my
cubersome way...
Can anybody clarify a little for me? When I need to write this "else
null", and when I don't need it?
It's just style.
It will compile the same either way.
Consider leaving out the
else clause if you're not using it.
-- Mike Treseler