You could import the hex file to MPLABX and check for both microcontrollers the configuration bits are properly matches. Create for example two separate projects, one for 16C54 and another for 16F54, then compare them. In MPLABX go to Window, > Pic Memory Views.