The Chelsea and England left-back will be a free agent at the end of this season.
A Bernabeu source told The Sun: "Ashley is a world class player and Madrid have wanted to sign him for some time.
"It is now the perfect opportunity as he is free."
Real boss Carlo Ancelotti previously worked with Cole, 33, when he managed the Blues between 2009 and 2011.
For breaking stories and all the great banter like us on Facebook: facebook.com/tribalfootball