uoficowboy
Full Member level 3
- Joined
- Apr 4, 2009
- Messages
- 169
- Helped
- 6
- Reputation
- 12
- Reaction score
- 5
- Trophy points
- 1,298
- Location
- Seattle, Wa, USA
- Activity points
- 2,964
Hi - I have a vague memory from when I did some FPGA work years and years ago that you cannot use both edges of a clock. In other words, something like:
It seems like perfectly valid VHDL, but is there something inherent in an FPGA that doesn't allow this for some reason? Or is my memory wrong and it is perfectly fine to do this?
Thanks!
Code:
process (Clk) begin
if (Clk'Event and Clk = '1') then
A <= '1';
elsif (Clk'Event and Clk = '0') then
A <= '0';
end if;
end process;
Thanks!