Using Duplication with Compare for On-line Error Detection in FPGA-based Designs