An implementation of LZW encoder in SystemC and verified in FPGA