improve codes for pbus mapping & mirroring.