In the Verdi opera, "Ernani", there is the role of Don Carlo, later Charles V, Holy Roman Emperor, while in the Verdi opera, "Don Carlos", there is the role of Don Carlo, Infante of Spain, son and heir to the King.
Do these two roles pertain to the same historical figure?