Pattern time optimization. Added comparator simulation with propagation delay