Custom LCD controller code - Verilog