Electrical – When a VHDL code with a rising edge clock is synthesized, what happens at the falling edge

clockfpgavhdl

I'm a newbie to VHDL and I'd really be grateful if someone could help me solving this question which has been bugging over the last few days. I don't have a code for this. Assuming, if there's a code layout, like below, which does something when it sees rising edge of the clock.

PROCESS(clk)
BEGIN
IF(rising_edge(clk)) THEN
--functionality
END IF;
END PROCESS;

Eventually, at the falling edge of the clock, what would this kind of code do? Will be there any activity? How would the power consumption look like during the falling edge?

Thank you in advance!

Best Answer

You haven't programmed anything to happen on the falling edge, so nothing should happen, no change of logical state, to any of the signals, latches, outputs you have defined.

However, there will still be activity on the clock net, capacitances to charge, so there will be dynamic power consumption.