Automatic device library generation (incomplete)