JTAGulator: Assisted discovery of on-chip debug interfaces