1. A configurable controller of a machine tool based on at least one of a digital signal processor (DSP) or a field programmable gate array (FPGA), comprising: an information processing module implemented by the at least one of the DSP or the FPGA, a data input module, an output execution module and an embedded central processing system module, wherein the information processing module comprises a reconfigurable information sampling unit implemented by hardware, a digital signal processing unit, a reconfigurable algorithm unit implemented by hardware, a reconfigurable control information output execution unit implemented by hardware, and a data storage unit; the data input module is configured to provide a data input interface coupled to the information processing module via the reconfigurable information sampling unit for processing acquired digital signals or analog signals, and sending a digital signal stream to the information processing module; the reconfigurable control information output execution unit is configured to be coupled with the output execution module and to provide control instructions to the output execution module; the output execution module is configured to be coupled with a control actuator of the machine tool to output and execute a control instruction; the central processing embedded system module is configured to be coupled with the information processing module to exchange data information and instructions; when sending a control strategy file created based on control needs to the information processing module, based on the control strategy file, a combination of a hardware information sampling unit, a hardware algorithm unit and a hardware information output execution unit for meeting the control needs is reconfigured and generated by the reconfigurable information sampling unit, the reconfigurable algorithm unit and the reconfigurable control information output execution unit, and a control algorithm is automatically generated; and during the control, the reconfiguration information sampling unit is configured to acquire current state information of the machine tool, fuse the current state information with historical state information to analyze the control algorithm, generate a control instruction, and output the control instruction to the output execution module via the reconfigured and generated hardware information output execution unit.