Adding test ports and debugged after synthesis.