Updated VHDL and C snippets