add decoder do file and fix compile errors of .v file.