The invention discloses a multi-path frequency-adjustable
signal generation
system based on an FPGA (
Field Programmable Gate Array), and belongs to the technical field of
signal generation. The
system comprises an adjustable frequency
signal generation module, an FPGA register read-write control module, an SPI communication module and a top layer module. The top layer module adopts a generate block statement to realize batch instantiation of a multi-path signal output module, a positioning register mechanism is introduced, and a group of register resources are used for controlling a multi-path output channel, so that the problem of register resource waste caused by repeated instantiation of the module in the traditional design is effectively solved. According to the
system, remote configuration of an FPGA internal register by a CPU is achieved through an SPI
communication interface, and the frequency-adjustable signal generation module supports independent adjustment of parameters such as frequency, high pulse width and low pulse width. And when the positioning register is matched with a specific output channel and the data updating flag bit is valid, the system accurately sends the characteristic parameters to the corresponding channel, so that the accuracy of each path of signal parameters is ensured. According to the method, the
code redundancy and the development time are remarkably reduced, and the system
maintainability is improved.