D | C | Q(t+1) |
---|---|---|
1 | ↑ | 1 |
0 | ↑ | 0 |
↑ = rising edge of clock
Positive edge: Q = D standard FF in CMOS-ASIC design!!
D_FF: process (CLK) begin if CLK'event and CLK='1' then Q <= D; end if; end process;
D_LATCH: process (CLK, D) begin if CLK='1' then Q <= D; end if; end process;
Here, a D-flip-flop controlled by a clock pulse edge is described. If an event occurs at the clock signal and this event has the value ONE, the value of the pin D will be transferred to the pin Q. (You could also await the negative clock pulse edge, then must be: CLK='0').