CN101901131A - Audio coding/decoding bit level reading/writing acceleration device and acceleration reading/writing method thereof - Google Patents

Audio coding/decoding bit level reading/writing acceleration device and acceleration reading/writing method thereof Download PDF

Info

Publication number
CN101901131A
CN101901131A CN2010102322798A CN201010232279A CN101901131A CN 101901131 A CN101901131 A CN 101901131A CN 2010102322798 A CN2010102322798 A CN 2010102322798A CN 201010232279 A CN201010232279 A CN 201010232279A CN 101901131 A CN101901131 A CN 101901131A
Authority
CN
China
Prior art keywords
register
bit
read
write
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2010102322798A
Other languages
Chinese (zh)
Other versions
CN101901131B (en
Inventor
潘星光
陈先民
孔吉
刘佩林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Jiaotong University
Fujitsu Ltd
Original Assignee
Shanghai Jiaotong University
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Jiaotong University, Fujitsu Ltd filed Critical Shanghai Jiaotong University
Priority to CN2010102322798A priority Critical patent/CN101901131B/en
Publication of CN101901131A publication Critical patent/CN101901131A/en
Application granted granted Critical
Publication of CN101901131B publication Critical patent/CN101901131B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses an audio coding/decoding bit level reading/writing acceleration device and acceleration reading/writing method thereof, belonging to the technical field of signal processing. The device comprises a bit reading/writing module, a position recording module, a reading/writing direction module and an active register mark module, wherein the reading/writing direction module is connected with the bit reading/writing module and the active register mark module respectively, and outputs reading/writing direction information; the active register mark module is connected with the position recording module and the bit reading/writing module respectively, and outputs a current reading/writing register number; and the position recording module is connected with the bit reading/writing module and outputs reading/writing position information. By adding a special hardware module into an embedded processor or DSP, the invention effectively reduces the number of instructions and the number of clock periods required by bit level reading/writing operation, thereby reducing the time required by the bit level reading/writing operation and improving the speed and the efficiency of audio coding/decoding.

Description

Audio coding/decoding bit level reading/writing acceleration device and acceleration reading/writing method thereof
Technical field
What the present invention relates to is the device in a kind of signal processing technology field, specifically is a kind of audio coding/decoding bit level reading/writing acceleration device and acceleration reading/writing method thereof.
Background technology
In existing audio code decode algorithm, in MP3 standard and AAC standard, usually need data are carried out the read-write operation of bit-level.For example, entropy coding is a kind of undistorted encryption algorithm that often uses in the audio coding process.In the entropy coding algorithm, the code word of compiling out need be generally several bits, be written to destination register from several successive bits that a certain ad-hoc location begins.Similarly, in the entropy decoding algorithm in the audio decoder process, several successive bits in the code stream need be read out and write destination register from several successive bits that lowest order begins.
At present, audio code decode algorithm is realized by flush bonding processor or digital signal processor (DSP) usually.Find in general flush bonding processor or DSP, do not have special bit level reading/writing operational order through retrieval to prior art.Therefore, read operation and the write operation of finishing bit-level need form with some the packings of orders usually.These instructions comprise displacement, logical and, logical OR and move or the like.
Find through retrieval, in " MIPS architecture and programming " book that people such as Liu Peilin write, introduced MIPS32 processor and instruction set thereof prior art.If use this processor to carry out the bit level reading/writing operation, as data (the 2nd bit to the 0 bit of [2:0] expression register with [2:0] bit of a certain register R3, write in [9:7] bit of another register R4 down together), and the direction that writes is a little-endian, and general operating process is as follows:
1. write among the temporary register R5 to R3 7 bit manipulations that move to left, and with the result.
Instruction: DSLL R5, R3, #7
2. R5 is carried out the logical and operation, making R5 all the other bits except that [9:7] bit is 0.
Instruction: DADDI R6,0,0X7
DSLL?R6,R6,#7
ANDI?R5,R5,R6
Wherein: R6 is a temporary register, down together.
3. R4 is carried out the logical and operation, make [9:7] bit of R4 become 0, all the other bits are constant.
Instruction: XORI R6, R6,0XFFFF
ANDI R4,R4,R6
4. R4 and R5 are carried out the logical OR operation, the result is write R4.
Instruction: OR R4, R5, R4
All need computing is followed the tracks of in the bit position during each the operation, with the position of determining to write.A write operation of this example just need be used 7 instructions.In addition, when running into the border of word, general flush bonding processor or DSP need read respectively from two 32 bit registers or write some bits, splice then, the bit level reading/writing operation will become very complicated, thereby need to use more instructions to finish.
Therefore, when using general flush bonding processor or DSP to realize the bit level reading/writing operation, need more instruction number and clock periodicity.The speed of bit level reading/writing operation seriously reduction processor or the encoding and decoding of DSP processing audio.
Summary of the invention
The present invention is directed to the prior art above shortcomings, a kind of audio coding/decoding bit level reading/writing acceleration device and acceleration reading/writing method thereof are provided, by in flush bonding processor or DSP, increasing special hardware module, effectively reduce bit level reading/writing and operate needed instruction number and clock periodicity, operate the needed time thereby reduce bit level reading/writing, improve the speed and the efficient of audio coding decoding.
The present invention is achieved by the following technical solutions:
The present invention relates to a kind of audio coding/decoding bit level reading/writing acceleration device, comprise: bit module for reading and writing, location records module, read-write direction module and enliven the register flag module, wherein: read-write direction module is respectively with bit module for reading and writing, location records with enliven the register flag module and link to each other and export and read and write directional information, location records module and bit module for reading and writing with enliven the register flag module and be connected and export read and write position information, enliven the register flag module and be connected with the bit module for reading and writing and export current read-write register number.
Described read-write direction module is a bit read-write direction register (SDIR), its bit wide is 1 bit, the direction that this bit read-write direction register is used for the control bit read-write and skips, when bit read-write direction register is 1, the direction of the read-write of expression bit is to hang down bit to the higher bit position, otherwise expression read-write direction is that the higher bit position is to low bit.
Described bit module for reading and writing comprises: two bit input-output registers (BITIO1 and BITIO2), its bit wide is 32 bits, wherein: the input end of the first bit input-output register respectively at read-write direction module, enliven register flag module, location records module and be connected with external data bus and transmit and continue direction, current read-write register number, read and write position and read data information, the output terminal of the first bit input-output register is connected with external data bus and transmits write data information; The input end of the second bit input-output register respectively at read-write direction module, enliven register flag module, location records module and be connected with external data bus and transmit and continue direction, current read-write register number, read and write position and read data information, the output terminal of the second bit input-output register is connected with external data bus and transmits write data information.The first bit input-output register and the second bit input-output register are used for serving as the Data Source of bit-level read operation; When carrying out the bit-level write operation, the target that the first bit input-output register and the second bit input-output register are used for serving as the bit-level write operation.
Described location records module comprises: bit position register (SPOS) and position renewal module, wherein: the input end of bit position register links to each other with the position renewal module and transmission of location information, the output terminal of bit position register respectively with the position renewal module, enliven that the register flag module is connected with the bit module for reading and writing and transmission of location information; The input end of position renewal module is respectively at being connected with bit position register with read-write direction module and transmitting read-write direction and positional information, and the output terminal of position renewal module links to each other with bit position register and transmission of location information.Bit position register is 5 bit register, is used to refer to the position of the initial bits of bit-level read operation.After the position renewal module is finished the bit read-write operation, the automatic renewal of bit position register.
The described register flag module of enlivening comprises: enliven register flag (ABITIOR) and sign update module, wherein: the input end that enlivens register flag links to each other with the sign update module and transmits current read-write register information, and the output terminal that enlivens register flag is respectively at being connected with the bit module for reading and writing and transmitting current read-write register information with indicating update module; The input end of sign update module respectively with enliven register flag, read-write direction module links to each other with location records and transmit current read-write register number, read-write direction and read and write position information, the output terminal that indicates update module with enliven register flag and be connected and transmit current read-write register information.Enlivening register flag is 1 bit register, and 0 represents the first bit input-output register for enlivening register, and 1 represents the second bit input-output register for enlivening register.After the sign update module is finished the bit read-write operation, enliven the automatic renewal of register flag.
The read-write acceleration method of the above-mentioned audio bit level reading/writing acceleration device that the present invention relates to comprises read operation stage and write operation stage, wherein:
The described read operation stage may further comprise the steps:
The first step is loaded into data the bit input-output register from external memory or other general-purpose registers.
In second step,, then skip this step if adopt the currency of each register.Otherwise, read read-write directional information, current read-write register number and read and write position information and deposit in the relevant register.
Described read-write directional information, current read-write register number and read and write position information comprise the bit position initial value, the read-write direction.
The 3rd step, bit number (the Length that reads according to value, the value of enlivening register flag and the needs of the value of bit position register, bit read-write direction register, span is 0 to 31), from active bit input-output register, read corresponding value.If all bits that read have exceeded active bit input-output register, then read method and read at inactive input-output register with annular.
Described annular reads method and is meant: read or read to the non-low bit direction of enlivening register from the higher bit of enlivening register to the non-higher bit direction of enlivening register from the lowest bit of enlivening register.
In the 4th step, position renewal module and sign update module are upgraded automatically.
Wherein: the update rule of bit position register is as follows:
SPOS = ( SPOS + Length ) % 32 , IfSDIR = 1 ; ( SPOS - Length + 32 ) % 32 , IfSDIR = 0 .
Wherein: SPOS represents the value of bit position register, the length that the Length representative is read, and SDIR is the value of bit read-write direction register, % represents modulo operation.
The update rule that enlivens register flag is as follows:
If the value of bit read-write direction register is 1,
ABITIR = notABITIR , If ( SPOS + Length ) > 31 ; ABITIR , If ( SPOS + Length ) ≤ 31 .
Otherwise, if the value of bit read-write direction register is 0,
ABITIR = notABITIR , If ( SPOS - Length ) < 0 ; ABITIR , If ( SPOS + Length ) &GreaterEqual; 0 .
Wherein: the ABITIR representative enlivens the value of register flag, and SPOS represents the value of bit position register, the length that the Length representative is read, and not represents inversion operation.
The 5th step repeated above-mentioned second and went on foot for the 4th step, needed the data that read in running through the bit input-output register.
The described write operation stage may further comprise the steps:
Step 1 if adopt the currency of each register, is then skipped this step.Otherwise, read read-write directional information, current read-write register number and read and write position information and deposit in the relevant register.
Described read-write directional information, current read-write register number and read and write position information comprise the bit position initial value, the read-write direction.
Step 2, the bit number (Length, span is 0 to 31) according to value, the value of enlivening register flag and the needs of the value of bit position register, bit read-write direction register write writes data in the active bit input-output register.If all bits that write have exceeded the scope of active bit input-output register, then write in inactive input-output register with annular wrting method.
Described annular wrting method is meant: write or write to the non-low bit direction of enlivening register from the higher bit of enlivening register to the non-higher bit direction of enlivening register from the lowest bit of enlivening register.
Step 3, position renewal module and sign update module are upgraded automatically.
Wherein: the update rule of bit position register is as follows:
SPOS = ( SPOS + Length ) % 32 , IfSDIR = 1 ; ( SPOS - Length + 32 ) % 32 , IfSDIR = 0 .
Wherein: SPOS represents the value of bit position register, the length that the Length representative writes, and SDIR is the value of bit read-write direction register, % represents modulo operation.
The update rule that enlivens register flag is as follows:
If the value of bit read-write direction register is 1,
ABITIR = notABITIR , If ( SPOS + Length ) > 31 ; ABITIR , If ( SPOS + Length ) &le; 31 .
Otherwise, if the value of bit read-write direction register is 0,
ABITIR = notABITIR , If ( SPOS - Length ) < 0 ; ABITIR , If ( SPOS + Length ) &GreaterEqual; 0 .
Wherein: the ABITIR representative enlivens the value of register flag, and SPOS represents the value of bit position register, the length that the Length representative is read, and not represents inversion operation.
Step 4 repeats above-mentioned steps one to step 3, up to having write the data that need write in the bit input-output register.
Step 5 writes external memory or other general-purpose registers with the value of bit input-output register.
The present invention compared with prior art has the following advantages: the invention provides a kind of audio coding/decoding bit level reading/writing acceleration device and acceleration reading/writing method thereof, by in flush bonding processor, increasing special hardware module, from the position of motion tracking bit level reading/writing, saved displacement, logical and, logical OR, moved and operation such as splicing.Therefore, the present invention can effectively reduce bit level reading/writing and operate needed instruction number and clock periodicity, operates the needed time thereby reduce bit level reading/writing, improves the speed and the efficient of audio coding decoding.
Description of drawings
Fig. 1 is that device of the present invention is formed connection diagram.
Fig. 2 is the variation synoptic diagram that automatic update bit reads the position.
Fig. 3 is the synoptic diagram that annular reads wiring method.
Embodiment
Below embodiments of the invention are elaborated, present embodiment is being to implement under the prerequisite with the technical solution of the present invention, provided detailed embodiment and concrete operating process, but protection scope of the present invention is not limited to following embodiment.
The operation of present embodiment is divided into two parts, first reads address A from the 16th to the 23rd data (8 bit) from external memory, and second portion writes a certain data (16 bit) 24 to 31 and the 0th to the 7th of next address (A+4) of address A.
As shown in Figure 1, present embodiment relates to a kind of audio coding/decoding bit level reading/writing acceleration device, comprising: bit module for reading and writing, location records module, read-write direction module and enliven the register flag module.Wherein: read-write direction module is respectively with bit module for reading and writing, location records with enliven the register flag module and link to each other and export and read and write directional information, location records module and bit module for reading and writing with enliven the register flag module and be connected and export read and write position information, enliven the register flag module and be connected with the bit module for reading and writing and export current read-write register number.
Described read-write direction module comprises: bit read-write direction register (SDIR), bit wide is 1 bit.Bit read-write direction register, the direction that is used for the control bit read-write and skips.When bit read-write direction register was 1, the direction of the read-write of expression bit was for hanging down bit to higher bit; When bit read-write direction register was 0, the direction of the read-write of expression bit was that higher bit is to low bit.
Described bit module for reading and writing comprises: two bit input-output registers (BITIO1 and BITIO2), its bit wide is 32 bits.Wherein: the input end of the first bit input-output register respectively at read-write direction module, enliven register flag module, location records module and be connected with external data bus and transmit and continue direction, current read-write register number, read and write position and read data information, the output terminal of the first bit input-output register is connected with external data bus and transmits write data information; The input end of the second bit input-output register respectively at read-write direction module, enliven register flag module, location records module and be connected with external data bus and transmit and continue direction, current read-write register number, read and write position and read data information, the output terminal of the second bit input-output register is connected with external data bus and transmits write data information.The first bit input-output register and the second bit input-output register are used for serving as the Data Source of bit-level read operation; When carrying out the bit-level write operation, the target that the first bit input-output register and the second bit input-output register are used for serving as the bit-level write operation.
Described location records module comprises: bit position register (SPOS) and automatic update module.Wherein: the input end of bit position register links to each other with the position renewal module and transmission of location information, the output terminal of bit position register respectively with the position renewal module, enliven that the register flag module is connected with the bit module for reading and writing and transmission of location information; The input end of position renewal module is respectively at being connected with bit position register with read-write direction module and transmitting read-write direction and positional information, and the output terminal of position renewal module links to each other with bit position register and transmission of location information.Bit position register is 5 bit register, is used to refer to the position of the initial bits of bit-level read operation.After the position renewal module is finished the bit read-write operation, the automatic renewal of bit position register.
The described register flag module of enlivening comprises: enliven register flag (ABITIOR) and automatic update module.Wherein: the input end that enlivens register flag links to each other with the sign update module and transmits current read-write register information, and the output terminal that enlivens register flag is respectively at being connected with the bit module for reading and writing and transmitting current read-write register information with indicating update module; The input end of sign update module respectively with enliven register flag, read-write direction module links to each other with location records and transmit current read-write register number, read-write direction and read and write position information, the output terminal that indicates update module with enliven register flag and be connected and transmit current read-write register information.Enlivening register flag is 1 bit register, and 0 represents the first bit input-output register for enlivening register, and 1 represents the second bit input-output register for enlivening register.After the sign update module is finished the bit read-write operation, enliven the automatic renewal of register flag.
The read-write acceleration method of the above-mentioned audio bit level reading/writing acceleration device of present embodiment may further comprise the steps:
If currently be operating as read operation, i.e. reading of data from the bit input-output register,
The first step is loaded into data the bit input-output register from external memory or general-purpose register.
In second step,, then skip this step if adopt the currency of each register.Otherwise, read read-write directional information, current read-write register number and read and write position information and deposit in the relevant register.
Described read-write directional information, current read-write register number and read and write position information comprise the bit position initial value, the read-write direction.
The 3rd step, bit number (the Length that reads according to value, the value of enlivening register flag and the needs of the value of bit position register, bit read-write direction register, span is 0 to 31), from active bit input-output register, read corresponding value.If all bits that read have exceeded active bit input-output register, then read method and read at inactive input-output register with annular.
Described annular reads method and is meant: read or read to the non-low bit direction of enlivening register from the higher bit of enlivening register to the non-higher bit direction of enlivening register from the lowest bit of enlivening register.
In the 4th step, position renewal module and sign update module are upgraded automatically.
Wherein: the update rule of bit position register is as follows:
SPOS = ( SPOS + Length ) % 32 , IfSDIR = 1 ; ( SPOS - Length + 32 ) % 32 , IfSDIR = 0 .
Wherein: SPOS represents the value of bit position register, the length that the Length representative is read, and SDIR is the value of bit read-write direction register, % represents modulo operation.
The update rule that enlivens register flag is as follows:
If the value of bit read-write direction register is 1,
ABITIR = notABITIR , If ( SPOS + Length ) > 31 ; ABITIR , If ( SPOS + Length ) &le; 31 .
Otherwise, if the value of bit read-write direction register is 0,
ABITIR = notABITIR , If ( SPOS - Length ) < 0 ; ABITIR , If ( SPOS + Length ) &GreaterEqual; 0 .
Wherein: the ABITIR representative enlivens the value of register flag, and SPOS represents the value of bit position register, the length that the Length representative is read, and not represents inversion operation.
The 5th step repeated above-mentioned second and went on foot for the 4th step, needed the data that read in running through the bit input-output register.
The first of present embodiment is read operation.Earlier the data with address A deposit current active bit-level input-output register (being assumed to be the first bit-level input-output register) in, deposit the data of address A+4 in current inactive bit-level input-output register (being assumed to be the second bit-level input-output register).As shown in Figure 2, setting the bit position initial value is 16, and the read-write direction is 1 (from hanging down bit to higher bit).Then from active bit-level input-output register, read 16 bits to 23 bits.At last bit position register is automatically updated into 24, enlivens register flag and remain unchanged.So just finished the read operation of present embodiment first.
Otherwise, if the current write operation that is operating as is about to data and writes in the bit input-output register,
The first step if adopt the currency of each register, is then skipped this step.Otherwise, read read-write directional information, current read-write register number and read and write position information and deposit in the relevant register.
Described read-write directional information, current read-write register number and read and write position information comprise the bit position initial value, the read-write direction.
In second step, the bit number (Length, span is 0 to 31) according to value, the value of enlivening register flag and the needs of the value of bit position register, bit read-write direction register write writes data in the active bit input-output register.If all bits that write have exceeded the scope of active bit input-output register, then write in inactive input-output register with annular wrting method.
Described annular wrting method is meant: write or write to the non-low bit direction of enlivening register from the higher bit of enlivening register to the non-higher bit direction of enlivening register from the lowest bit of enlivening register.
In the 3rd step, position renewal module and sign update module are upgraded automatically.
Wherein: the update rule of bit position register is as follows:
SPOS = ( SPOS + Length ) % 32 , IfSDIR = 1 ; ( SPOS - Length + 32 ) % 32 , IfSDIR = 0 .
Wherein: SPOS represents the value of bit position register, the length that the Length representative writes, and SDIR is the value of bit read-write direction register, % represents modulo operation.
The update rule that enlivens register flag is as follows:
If the value of bit read-write direction register is 1,
ABITIR = notABITIR , If ( SPOS + Length ) > 31 ; ABITIR , If ( SPOS + Length ) &le; 31 .
Otherwise, if the value of bit read-write direction register is 0,
ABITIR = notABITIR , If ( SPOS - Length ) < 0 ; ABITIR , If ( SPOS + Length ) &GreaterEqual; 0 .
Wherein: the ABITIR representative enlivens the value of register flag, and SPOS represents the value of bit position register, the length that the Length representative is read, and not represents inversion operation.
In the 4th step, repeat above-mentioned three steps of the first step to the, up to having write the data that need write in the bit input-output register.
In the 5th step, the value of bit input-output register is write external memory or general-purpose register.
The second portion of present embodiment is a write operation.As shown in Figure 3, use the value after each register automatically upgrades, according to annular wiring method, data write active bit-level input-output register 24 bits to 32 bits and inactive bit-level input-output register 0 bit to 7 bits.Then bit position register is automatically updated into 8, enlivens register flag and be automatically updated into 1.Value with the first bit-level input-output register writes address A at last, and the value of the second bit-level input-output register is write address A+4.
When the method for method that adopts present embodiment respectively and prior art is handled same problem, the present embodiment method is by using the audio bit level reading/writing acceleration device in processor, only need 6 instructions just can finish, and at least 21 instructions of existing Technology Need just can be finished.Therefore, the present embodiment method can significantly reduce bit level reading/writing and operate needed instruction number and clock periodicity, operates the needed time thereby reduce bit level reading/writing, improves the speed and the efficient of audio coding decoding.

Claims (10)

1. audio coding/decoding bit level reading/writing acceleration device, comprise: bit module for reading and writing, location records module, read-write direction module and enliven the register flag module, it is characterized in that: read-write direction module is respectively with bit module for reading and writing, location records with enliven the register flag module and link to each other and export and read and write directional information, location records module and bit module for reading and writing with enliven the register flag module and be connected and export read and write position information, enliven the register flag module and be connected with the bit module for reading and writing and export current read-write register number;
The described register flag module of enlivening comprises: enliven register flag and sign update module, wherein: the input end that enlivens register flag links to each other with the sign update module and transmits current read-write register information, and the output terminal that enlivens register flag is respectively at being connected with the bit module for reading and writing and transmitting current read-write register information with indicating update module; The input end of sign update module respectively with enliven register flag, read-write direction module links to each other with location records and transmit current read-write register number, read-write direction and read and write position information, the output terminal that indicates update module with enliven register flag and be connected and transmit current read-write register information.
2. audio coding/decoding bit level reading/writing acceleration device according to claim 1, it is characterized in that, described read-write direction module is a bit read-write direction register, its bit wide is 1 bit, the direction that this bit read-write direction register is used for the control bit read-write and skips, when bit read-write direction register was 1, the direction of the read-write of expression bit was to hang down bit to the higher bit position, otherwise expression read-write direction is that the higher bit position is to low bit.
3. audio coding/decoding bit level reading/writing acceleration device according to claim 1, it is characterized in that, described bit module for reading and writing comprises: two bit input-output registers, wherein: the input end of the first bit input-output register respectively at read-write direction module, enliven register flag module, location records module and be connected with external data bus and transmit and continue direction, current read-write register number, read and write position and read data information, the output terminal of the first bit input-output register is connected with external data bus and transmits write data information; The input end of the second bit input-output register respectively at read-write direction module, enliven register flag module, location records module and be connected with external data bus and transmit and continue direction, current read-write register number, read and write position and read data information, the output terminal of the second bit input-output register is connected with external data bus and transmits write data information.
4. audio coding/decoding bit level reading/writing acceleration device according to claim 1, it is characterized in that, described location records module comprises: bit position register and position renewal module, wherein: the input end of bit position register links to each other with the position renewal module and transmission of location information, the output terminal of bit position register respectively with the position renewal module, enliven that the register flag module is connected with the bit module for reading and writing and transmission of location information; The input end of position renewal module is respectively at being connected with bit position register with read-write direction module and transmitting read-write direction and positional information, and the output terminal of position renewal module links to each other with bit position register and transmission of location information.
5. audio coding/decoding bit level reading/writing acceleration device according to claim 4 is characterized in that described bit position register is 5 bit register, is used to refer to the position of the initial bits of bit-level read operation.
6. audio coding/decoding bit level reading/writing acceleration device according to claim 1, it is characterized in that, the described register flag of enlivening is 1 bit register, and 0 represents the first bit input-output register for enlivening register, and 1 represents the second bit input-output register for enlivening register.
7. the read-write acceleration method of an audio bit level reading/writing acceleration device according to claim 1 is characterized in that, comprises read operation stage and write operation stage, wherein:
The described read operation stage may further comprise the steps:
The first step is loaded into data the bit input-output register from external memory or other general-purpose registers;
In second step, when the currency that adopts each register, then skip this step, otherwise read read-write directional information, current read-write register number and read and write position information and deposit in the relevant register;
The 3rd step, the bit number that reads according to value, the value of enlivening register flag and the needs of the value of bit position register, bit read-write direction register, from active bit input-output register, read corresponding value, when all bits that read have exceeded active bit input-output register, then read method and read at inactive input-output register with annular;
In the 4th step, position renewal module and sign update module are upgraded automatically;
The 5th step repeated above-mentioned second and went on foot for the 4th step, needed the data that read in running through the bit input-output register;
The described write operation stage may further comprise the steps:
Step 1 when the currency that adopts each register, is then skipped this step, otherwise, read read-write directional information, current read-write register number and read and write position information and deposit in the relevant register;
Step 2, the bit number that writes according to value, the value of enlivening register flag and the needs of the value of bit position register, bit read-write direction register, data are write in the active bit input-output register, when all bits that write have exceeded the scope of active bit input-output register, then write in inactive input-output register with annular wrting method;
Step 3, position renewal module and sign update module are upgraded automatically;
Step 4 repeats above-mentioned steps one to step 3, up to having write the data that need write in the bit input-output register;
Step 5 writes external memory or other general-purpose registers with the value of bit input-output register.
8. the read-write acceleration method of audio bit level reading/writing acceleration device according to claim 7, it is characterized in that described annular reads method and is meant: read or read to the non-low bit direction of enlivening register to the non-higher bit direction of enlivening register from the higher bit of enlivening register from the lowest bit of enlivening register.
9. the read-write acceleration method of audio bit level reading/writing acceleration device according to claim 7, it is characterized in that described annular wrting method is meant: write or write to the non-low bit direction of enlivening register to the non-higher bit direction of enlivening register from the higher bit of enlivening register from the lowest bit of enlivening register.
10. the read-write acceleration method of audio bit level reading/writing acceleration device according to claim 7 is characterized in that, it is as follows that described position renewal module and sign update module are upgraded concrete steps automatically:
1) the automatic renewal of sign update module:
The value of reading and writing the direction register when bit is 1,
ABITIR = notABITIR , If ( SPOS + Length ) > 31 ; ABITIR , If ( SPOS + Length ) &le; 31 .
Otherwise the value of reading and writing the direction register when bit is 0,
ABITIR = notABITIR , If ( SPOS + Length ) < 0 ; ABITIR , If ( SPOS + Length ) &GreaterEqual; 0 .
Wherein: the ABITIR representative enlivens the value of register flag, and SPOS represents the value of bit position register, the length that the Length representative is read, and not represents inversion operation,
2) the automatic renewal of position renewal module:
SPOS = ( SPOS + Length ) % 32 , IfSDIR = 1 ; ( SPOS - Length + 32 ) % 32 , IfSDIR = 0 .
Wherein: SPOS represents the value of bit position register, the length that the Length representative is read, and SDIR is the value of bit read-write direction register, % represents modulo operation.
CN2010102322798A 2010-07-22 2010-07-22 Audio coding/decoding bit level reading/writing acceleration device and acceleration reading/writing method thereof Expired - Fee Related CN101901131B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010102322798A CN101901131B (en) 2010-07-22 2010-07-22 Audio coding/decoding bit level reading/writing acceleration device and acceleration reading/writing method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010102322798A CN101901131B (en) 2010-07-22 2010-07-22 Audio coding/decoding bit level reading/writing acceleration device and acceleration reading/writing method thereof

Publications (2)

Publication Number Publication Date
CN101901131A true CN101901131A (en) 2010-12-01
CN101901131B CN101901131B (en) 2013-08-21

Family

ID=43226688

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010102322798A Expired - Fee Related CN101901131B (en) 2010-07-22 2010-07-22 Audio coding/decoding bit level reading/writing acceleration device and acceleration reading/writing method thereof

Country Status (1)

Country Link
CN (1) CN101901131B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015032341A1 (en) * 2013-09-05 2015-03-12 华为技术有限公司 Write operation method and apparatus

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5095523A (en) * 1989-02-15 1992-03-10 U.S. Philips Corporation Signal processor including programmable logic unit formed of individually controllable output bit producing sections
US5175862A (en) * 1989-12-29 1992-12-29 Supercomputer Systems Limited Partnership Method and apparatus for a special purpose arithmetic boolean unit
US20030154357A1 (en) * 2001-03-22 2003-08-14 Quicksilver Technology, Inc. Adaptive integrated circuitry with heterogeneous and reconfigurable matrices of diverse and adaptive computational units having fixed, application specific computational elements
CN101547368A (en) * 2009-04-24 2009-09-30 炬力集成电路设计有限公司 Device, method and decoder for processing reference frame in image

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5095523A (en) * 1989-02-15 1992-03-10 U.S. Philips Corporation Signal processor including programmable logic unit formed of individually controllable output bit producing sections
US5175862A (en) * 1989-12-29 1992-12-29 Supercomputer Systems Limited Partnership Method and apparatus for a special purpose arithmetic boolean unit
US20030154357A1 (en) * 2001-03-22 2003-08-14 Quicksilver Technology, Inc. Adaptive integrated circuitry with heterogeneous and reconfigurable matrices of diverse and adaptive computational units having fixed, application specific computational elements
CN101547368A (en) * 2009-04-24 2009-09-30 炬力集成电路设计有限公司 Device, method and decoder for processing reference frame in image
CN101547368B (en) * 2009-04-24 2011-03-09 炬力集成电路设计有限公司 Device, method and decoder for processing reference frame in image

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘佩林: "《MIPS体系结构与编程》", 31 December 2008, 科学出版社 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015032341A1 (en) * 2013-09-05 2015-03-12 华为技术有限公司 Write operation method and apparatus

Also Published As

Publication number Publication date
CN101901131B (en) 2013-08-21

Similar Documents

Publication Publication Date Title
CN101809537B (en) Register file system and method for pipelined processing
CN101344840B (en) Microprocessor and method for executing instruction in microprocessor
ATE300784T1 (en) DATA WRITING DEVICE, DATA WRITING METHOD AND PROGRAM
TW200636471A (en) Method of parallel programmable memory and the system thereof
CN101303884A (en) Nand type flash memory controller and read-write control system and method
CN102324246A (en) Indexed register access for memory device
CN101382884B (en) Instruction coding method, instruction coding system and digital signal processor
CN101901131B (en) Audio coding/decoding bit level reading/writing acceleration device and acceleration reading/writing method thereof
CN103748549A (en) Table call instruction for frequently called functions
US7290098B2 (en) Method and apparatus for interleaving data streams
JPH0346028A (en) Instruction processing system
GB0327571D0 (en) A memory dump of a computer system
TW200513886A (en) Data flow transformation method and buffer device
CN1508674A (en) Method for providing width-variable at least six-path addition instruction and apparatus thereof
CN102662847A (en) System and method for program debugging of embedded system based on flash memory application
WO2003023627A1 (en) Method and system for transfer of data between an asic hardware and an embedded microprocessor
TW366473B (en) IC card
CN103268218A (en) Data processor
ATE310276T1 (en) BUS BRIDGE AND SYSTEM FOR MULTI-CHANNEL TRANSMISSION OF DATA AND CONTROL INFORMATION
CN103744642A (en) Method and system for improving direct jump in processor
CN1100291C (en) Data-processing equipment
CN101907999B (en) Binary translation method of super-long instruction word program
CN100492331C (en) Memory access device
CN101794221B (en) Compression method and device of reference types in .net file
CN102193776B (en) Method for processing skip instruction and microcontroller

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130821

Termination date: 20170722