The present invention belongs to the technical field of DSP design, and specifically relates to a design and application method of a DSP
instruction set dedicated to
electric power. The design method includes designing a general register, using a
very long instruction word technology to design a scalar instruction into a VILW instruction, and using a single instruction multiple data flow technology to design a vector instruction. The present invention designs a vector instruction, which can optimize a large number of
vector operations in
electric power application algorithms. And using the
very long instruction word (VLIW) technology, the
compiler determines the execution order between instructions, avoiding the design of a complex hardware instruction scheduler, and supports two instruction formats: four-slot VLIW instructions and two-slot immediate instructions; multiple instruction formats can realize more compact instruction encoding, optimize the situation where the encoding space cannot be fully utilized when the
operand is insufficient, and limit the supported type of each operation when the instruction format is defined, rather than supporting all operations, which can reduce the design complexity and fully utilize registers and computing resources.