P
Pratip Mukherjee
Guest
process(clock) is
begin
if clock'event and clock = '1'
then
o <= '1';
if (<some conditional>
then
o <= '0';
end if;
end if;
end process;
My question is how to interpret this: is the value of o is first set to
'1' and then set to '0' or is it that o is set to '0' or '1' depending on
whether the condition is true. Is it a good VHDL coding style? If so, why
don't I see a single example/explanation of it in Peter Ashendon's book?
Thanks in advance.
- Pratip.
begin
if clock'event and clock = '1'
then
o <= '1';
if (<some conditional>
then
o <= '0';
end if;
end if;
end process;
My question is how to interpret this: is the value of o is first set to
'1' and then set to '0' or is it that o is set to '0' or '1' depending on
whether the condition is true. Is it a good VHDL coding style? If so, why
don't I see a single example/explanation of it in Peter Ashendon's book?
Thanks in advance.
- Pratip.