I'm fairly certain the block and heads of the A** engines are the same. The power differnce is in the turbos, pumps, injectors and ECU mapping.
The B** engines I believe have some minor differences, and need a couple of ancilleries to make them fit, but can't remember what.