First addition of random VHDL code. Some code is copied from https://code.google.com/p/vhdl-extras/