The present invention discloses a low-power cryptographic
algorithm processor micro-architecture and a working method thereof, wherein the processor micro-architecture is a BNPU micro-architecture, and works under a self-defined BNPU
instruction set architecture; supports
dynamic switching of asymmetric
cryptography, as well as a BNPU assembler and BNPU
algorithm running
software; the BNPU micro-architecture adopts a three-level pipeline design to complete instruction fetching, decoding, execution,
branch prediction and instruction write-back operations; the BNPU
instruction set includes basic arithmetic and logic instructions,
branch instructions, CSR instructions, large number operations and logic instructions, and large number loading and storage instructions; the BNPU assembler is used to translate the BNPU instructions into correct
machine codes; the BNPU running
software adopts the assembler of the BNPU
instruction set to realize the functions of various asymmetric cryptographic algorithms. The invention provides an efficient and flexible solution for real-
time switching of asymmetric algorithms by integrating RISC architecture and pipeline operations, and can realize efficient operation of these algorithms while maintaining low
power consumption, providing secure and reliable data protection.