摘要 |
PROBLEM TO BE SOLVED: To accelerate decoding speed by detecting the head of an input data string by a prescribed length so as to output decoded data corresponding to a variable length code included in the detected part. SOLUTION: A CPU 1 reads 10-bits at a head of a received binary data stream in a RAM 3 and substitutes them to an area of a variable BS of a register 12. Then the CPU 1 reads values OUT, UB and RB from a ROM 2 by using the variable BS as an address. The CPU 1 deletes the UB-bits at the head of the received binary data stream in the RAM 3. When the CPU 1 discriminates the RB-bits to be '0', the CPU 1 provides the output of the read values OUT as decoded data. On the other hand, when the CPU 1 discriminates the RB-bits not to be '0', the CPU 1 reads the RB-bits at the head of the received binary data stream in the RAM 3 and substitutes the RB-bits to the area of the variable BS of the register 12. Then the CPU 1 calculates the sum of the value BS and the OUT-bits and provides the output of the sum as decoded data. |