Formal Verification and Fault Mitigation for Small Avionics Platforms using Programmable Logic