The design of MAC unit for DWT implementation