VHDL Programmable Logic 2005 reverse engineer legacy TTL logic into gate array extend machine life by replacing failing circuit card with new functional equivalent