You can file an application to the police at the place of your residence or turn to the immigration authorities in Madrid in order to get a residence permit. You can do it within a year from the date of your investor visa issuance or within half a year if you have invested in real property but your purchase has not been completed yet. Besides, in accordance with the Spanish law, you will have at least 90 days after your Golden Visa expires to obtain your residence permit.