general purpose circuit simulator