Brief introduction to circuit simulation using logic-sim