The invention discloses an RTL model automatic generation method, and belongs to the technical field of digital filters. The method comprises the following steps of reading a filter floating point coefficient and configuration information for normalization check of the filter floating point coefficient, fixed-point check of the filter floating point coefficient and normalization check of the fixed-point coefficient; according to the fixed-point coefficient and the configuration information, analyzing and printing an RTL model of a four-way parallel pipeline structure, and meanwhile, calculating an error between the RTL model and a theoretical model; and capturing an RTL source code, and printing a testbench file. According to the invention, the floating-point number coefficient and the data bit width requirement of the half-band decimation filter are met; four paths of parallel RTL codes and testbench test codes are automatically generated, meanwhile, errors between an RTL model and atheoretical model can be calculated, developers can be assisted in quickly and efficiently designing and verifying the high-speed half-band decimation filter, and the development period is greatly shortened.