VHDL and other code examples from CMPE 160 course lectures