VHDL Sample Routine
Positive Edge Triggered D Flip-Flop
from the Technology Interface

The following is a VHDL listing and simulation of a positive edge triggered d-type flip-flop. This is your first building block to learn when constructing sequential machines.