Nitrogen-vacancy (NV) centers in diamond are extremely promising solid-state spin quantum sensors for magnetic field in recent years. The rapid development of NV-ensemble magnetometry has put forward higher requirements for high-speed data acquisition, real-time signal processing and analyzing, etc. However, the existing commercial instruments are bulky and expensive, which brings extra complexity to the weak magnetic field detection experiment and hinders the practicality and miniaturization of NV-ensemble magnetometry. Here, we report on an integrated and scalable experimental system based on a field-programmable-gate-array (FPGA) chip assisted with high-speed peripherals for NV-ensemble magnetometry, which presents a compact and compatible design containing high-speed data acquisition, oscilloscopes, signal generator, spectrum analyzer, lock-in amplifier, proportional-integral-derivative feedback controller, etc. To verify its applicability and reliability in experiments, various applications, such as optical magnetic resonance detection, optical cavity locking, and lock-in NV magnetometry, are conducted. We further realize the pump-enhanced magnetometry based on NV center ensembles using the optical cavity. Through the flexible FPGA design approach, this self-developed device can also be conveniently extended into atomic magnetometer and other quantum systems.