G
Guest
Hi,
I have just started trying to learn VHDL and I am wondering about the
"event" keyword. If I write:
process(clock)
begin
if clock'event and clock = '1' then
end if
end process;
then I step inside the if statement every rising clock edge. If I do
the opposite:
process(clock)
begin
if clock'event and clock = '0' then
end if
end process;
then do I step inside every falling clock edge? Also, can I do this:
process(clock)
begin
if clock'event and clock = '0' then
elsif clock'event and clock = '1' then
end if
end process;
to do something on the falling and rising clock edges? I remember
seeing a post which said this was bad, but I don't remember why.
Thanks,
David
I have just started trying to learn VHDL and I am wondering about the
"event" keyword. If I write:
process(clock)
begin
if clock'event and clock = '1' then
end if
end process;
then I step inside the if statement every rising clock edge. If I do
the opposite:
process(clock)
begin
if clock'event and clock = '0' then
end if
end process;
then do I step inside every falling clock edge? Also, can I do this:
process(clock)
begin
if clock'event and clock = '0' then
elsif clock'event and clock = '1' then
end if
end process;
to do something on the falling and rising clock edges? I remember
seeing a post which said this was bad, but I don't remember why.
Thanks,
David