According to the lightweight
Hamming code encoding and decoding error correction acceleration method under the RISC architecture, a
Hamming code assembly instruction is defined under the RISC-V architecture, encoding and decoding error correction of the lightweight
Hamming code is executed from an instruction-level error correction primitive, an object needing encoding and decoding error correction can be selected from the register-level
granularity, the object is started from nothing to thing and is started according to needs, overall hard wiring waste is avoided, and the error correction speed of the lightweight Hamming code is increased. The flexibility is high, a
software algorithm is replaced by a special instruction, cycle loss caused by conditional branches,
data dependence,
software circulation, cache and the like is avoided, the method is not limited by processor architecture factors, the number of pipeline cycles is greatly reduced, and the execution efficiency is greatly improved; in a coding and decoding error correction link, a coding and decoding error correction task is distributed to an idle
coprocessor based on a
label, after a packet is matched with the
label, the task is returned to a distribution link according to a first-in first-out principle, coding and decoding error correction is completed by a mechanism of'out-of-order completion and sequential submission ', and high-
throughput parallel processing is realized on the premise of ensuring accuracy and orderliness. And the execution efficiency is further improved.