Added Lattice FPGA files.
Fix errors.