hardware: Refactored EMAC as Chisel black box