tdc simulation