reorder wire definitions, add toplevel module and ucf.