Yeah, They wanted to export their retardness(revolution) to all the world, starting Iraq. There were mullahs who were dreaming of capturing USSR, and USA
I can mention hundreds of their speeches.
But, as they say in farsi, "they finally realized that they have pissed on a hard ground"
Finally, in the end of the war, Iraq got the upper hand again, and pushed them back, and captured a couple of cities like Mehran and Dehloran in Iran. Then, mullahs understood that they would lose the war in upcoming years, hence agreed to UN resolution.