Noise Margin and Fan-out of Logic Gate Explained