Using AI to reverse engineer hardware