MAC and PHY implemented together as functions

Running well, but codegen fails on PHYTransmitter