The reg says
-h) Use of full flight simulators or flight training devices. If the instrument time was provided by an authorized instructor in a full flight simulator or flight training device—
(2) A maximum of 20 hours may be performed in that full flight simulator or flight training device if the instrument time was not completed in accordance with part 142