DSF: Device Simulation Framework