circuit design and simulation