Current detection circuit design