FPGA Implementation of an Improved Watchdog Timer for Safety-critical Applications