Functional simulation tutorial for Altera VHDL designs using Modelsim.