US 12,293,083 B2
Writing and reading method, processor chip, storage medium and electronic device
Yijun Zhou, Guangdong (CN); Hengqi Liu, Guangdong (CN); Jinlin Xu, Guangdong (CN); and Feng Zhou, Guangdong (CN)
Assigned to SANECHIPS TECHNOLOGY CO., LTD., Guangdong (CN)
Appl. No. 18/018,566
Filed by SANECHIPS TECHNOLOGY CO., LTD., Guangdong (CN)
PCT Filed Jul. 5, 2021, PCT No. PCT/CN2021/104489
§ 371(c)(1), (2) Date Jan. 29, 2023,
PCT Pub. No. WO2022/022231, PCT Pub. Date Feb. 3, 2022.
Claims priority of application No. 202010762798.9 (CN), filed on Jul. 31, 2020.
Prior Publication US 2023/0305710 A1, Sep. 28, 2023
Int. Cl. G06F 3/06 (2006.01)
CPC G06F 3/0613 (2013.01) [G06F 3/0631 (2013.01); G06F 3/0673 (2013.01)] 17 Claims
OG exemplary drawing
 
1. A writing method for writing data into a storage device, the storage device comprises a plurality of storage modules comprising multiple main storage modules and at least one auxiliary storage module, the main storage modules comprise at least one target main storage module and at least one other main storage module, the at least one target main storage module corresponds to the at least one auxiliary storage module, and the method comprises:
writing writing-table data, to be written, into each one of the multiple main storage modules corresponding to the writing-table data;
performing a calculation by using a first predetermined algorithm on writing-table data in the at least one target main storage module to obtain at least one auxiliary value, wherein, for the at least one target main storage module, the first predetermined algorithm being used for performing a calculation on writing-table data stored in the at least one target main storage module and writing-table data stored in the at least one other main storage module, an inverse operation of the first predetermined algorithm being used for performing a calculation on the at least one auxiliary value to obtain writing-table data participating in the calculation of the at least one auxiliary value; and
storing the at least one auxiliary value into the at least one auxiliary storage module corresponding thereto,
wherein the at least one target storage module comprises more than one target storage modules, after all target main storage modules are subjected to the calculation by using the first predetermined algorithm, all data stored in all the main storage modules participate in the calculation,
wherein the storage modules are formed as an N×N array, and for the storage modules in previous (N−1) rows, the (N−1) rows are previous to row N, the storage modules in each row comprises N−1 main storage modules and one auxiliary storage module, the storage modules in Nth row comprises N auxiliary storage modules, N is a positive integer not less than 3, and the at least one auxiliary value comprises a first auxiliary value, a second auxiliary value and a third auxiliary value,
performing the calculation by using the first predetermined algorithm on writing-table data in the at least one target main storage module to obtain the at least one auxiliary value, comprises:
performing a calculation by using the first predetermined algorithm on writing-table data stored in one of a plurality of addresses in one of the target main storage modules and writing-table data stored in corresponding addresses in all other main storage modules located in the same row as the one target main storage module, so as to obtain the first auxiliary value;
performing a calculation by using the first predetermined algorithm on the writing-table data stored in the one address in the one target main storage module and writing-table data stored in corresponding addresses in all other main storage modules located in the same column as the one target main storage module, so as to obtain the second auxiliary value; and
performing a calculation by using the first predetermined algorithm on the writing-table data stored in the one address in the one target main storage module, writing-table data stored in corresponding addresses in all main storage modules other than the one target main storage module, and writing-table data stored in corresponding addresses in all auxiliary storage modules other than the auxiliary storage module corresponding to the one target main storage module, so as to obtain the third auxiliary value,
wherein the first auxiliary value is stored in the auxiliary storage module located in the same row as the current target main storage module, and the second auxiliary value is stored in the auxiliary storage module located in the same column as the current target main storage module, the third auxiliary value is stored in the storage module in Nth row and Nth column.