Re: PLLR is not set in Simulator
Simulator doesn't implement the oscillator. Both because it's not really needed, and because it really seems like every single device has a different oscillator (and we'd spend all of our time implementing oscillators!) :P
And yes, you can use stimulus, or SCL, or simulator plug-ins to manually set PLLR. It's basically impossible for the simulator to handle all the silicon functionality, so we make the simulator very extensible so that users can handle any special situations that their application code needs.