KR19980023743A - Data Extraction & Fittings - Google Patents

Data Extraction & Fittings Download PDF

Info

Publication number
KR19980023743A
KR19980023743A KR1019960043243A KR19960043243A KR19980023743A KR 19980023743 A KR19980023743 A KR 19980023743A KR 1019960043243 A KR1019960043243 A KR 1019960043243A KR 19960043243 A KR19960043243 A KR 19960043243A KR 19980023743 A KR19980023743 A KR 19980023743A
Authority
KR
South Korea
Prior art keywords
data
bit width
width information
output
fitting
Prior art date
Application number
KR1019960043243A
Other languages
Korean (ko)
Other versions
KR100226689B1 (en
Inventor
이수정
Original Assignee
배순훈
대우전자 주식회사
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 배순훈, 대우전자 주식회사 filed Critical 배순훈
Priority to KR1019960043243A priority Critical patent/KR100226689B1/en
Publication of KR19980023743A publication Critical patent/KR19980023743A/en
Application granted granted Critical
Publication of KR100226689B1 publication Critical patent/KR100226689B1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • H04N19/423Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation characterised by memory arrangements
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K19/00Logic circuits, i.e. having at least two inputs acting on one output; Inverting circuits
    • H03K19/20Logic circuits, i.e. having at least two inputs acting on one output; Inverting circuits characterised by logic function, e.g. AND, OR, NOR, NOT circuits

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

본 발명은 영상 부호화/복화화 시스템에서 다양한 비트폭(bit width)을 갖는 데이터가 일정한 크기의 데이터로 다중화된 것을 다시 적당한 크기를 갖는 각각의 개별 데이터로 변환하는 데이터 추출 및 피팅(fitting) 장치에 관한 것이다. 이러한 본 발명의 장치는 소정 크기의 다중화된 데이터를 저장하고 있는 레지스터(202); 상기 레지스터에 저장된 개별 데이터들에 대한 비트폭정보를 미리 저장하고 있는 비트폭정보 저장부(123); 상기 비트폭정보 저장부에 저장된 비트폭정보를 순차적으로 출력하는 비트폭정보 추출기(210); 상기 비트폭정보 추출기로부터 비트폭정보를 입력받아 자신의 출력과 누산하는 누산기(220); 상기 비트폭정보추출기로부터 비트폭정보를 입력받아 마스크신호를 발생하는 마스크신호 발생부(230); 상기 누산기의 출력에 따라 상기 레지스터에 저장된 데이터를 시프트하여 소정의 데이터를 출력하는 배럴 시프터(203); 및 상기 배럴 시프터의 출력을 상기 마스크신호에 따라 마스크처리하여 데이터를 추출 및 피팅하는 마스크부(204)를 구비하여 다중화된 데이터로부터 개별 데이타를 추출한 후 소정크기의 데이터로 피팅한다.The present invention relates to a data extraction and fitting apparatus for converting data having various bit widths into multiple pieces of data in a video encoding / decoding system and converting the multiplexed data into pieces of individual data having appropriate sizes. It is about. This apparatus of the present invention includes a register 202 for storing multiplexed data of a predetermined size; A bit width information storage unit 123 for storing bit width information of individual data stored in the register in advance; A bit width information extractor 210 for sequentially outputting bit width information stored in the bit width information storage unit; An accumulator 220 which receives bit width information from the bit width information extractor and accumulates its output; A mask signal generator 230 receiving bit width information from the bit width information extractor and generating a mask signal; A barrel shifter (203) for outputting predetermined data by shifting the data stored in the register according to the output of the accumulator; And a mask unit 204 for extracting and fitting data by masking the output of the barrel shifter according to the mask signal, and extracting individual data from the multiplexed data and fitting the data to a predetermined size.

Description

데이터 추출 및 피팅장치( An apparatus for extracting and fitting data from multiplexed data )An apparatus for extracting and fitting data from multiplexed data

본 발명은 영상 부호화/복화화 시스템에서 다양한 비트폭(bit width)을 갖는 데이터가 일정한 크기의 데이터로 다중화된 것을 다시 적당한 크기를 갖는 각각의 개별 데이터로 변환하는 데이터 추출 및 피팅(fitting) 장치에 관한 것이다.The present invention relates to a data extraction and fitting apparatus for converting data having various bit widths into multiple pieces of data in a video encoding / decoding system and converting the multiplexed data into pieces of individual data having appropriate sizes. It is about.

일반적으로 영상부호화분야에서 데이터의 전송시 리던던시를 줄이기 위하여 전송되는 데이터를 컴팩트한 구조로 다중화할 필요가 있다. 예컨대, 전송하기 위한 데이터 버스폭의 크기가 16비트인데 반하여, 실제로 보내고자하는 데이터의 비트폭이 1비트부터 16비트까지 다양할 경우에 다수의 데이터들을 결합하여 하나의 16비트 데이터로 구성한 후, 한 번에 전송하는 것이 효율적일 수 있다. 즉, 다음 표 1은 다양한 비트폭의 데이터를 결합하여 형성한 하나의 다중화된 데이터 포맷의 예이다.In general, in the video encoding field, it is necessary to multiplex the transmitted data in a compact structure in order to reduce redundancy in transmitting data. For example, while the size of the data bus width for transmission is 16 bits, when the bit width of the data actually to be transmitted varies from 1 bit to 16 bits, a plurality of data are combined to form one 16-bit data. It may be efficient to send at once. That is, Table 1 below is an example of one multiplexed data format formed by combining data of various bit widths.

비트beat D15D15 D14D14 D13D13 D12D12 D11D11 D10D10 D9D9 D8D8 D7D7 D6D6 DD5DD5 D4D4 D3D3 D2D2 D1D1 D0D0 데이터data F6F6 F5F5 F4F4 F3F3 F2F2 F1F1 비트폭Bit width 1One 44 1One 55 22 33

상기 표 1에서 다중화된 16비트 데이터(D0∼D15)는 3비트의 비프폭을 갖는 F1 데이터(D0∼D2)와, 2비트의 폭을 갖는 F2 데이터(D3,D4), 5비트의 폭을 갖는 F3 데이터(D5∼D9), 1비트의 폭을 갖는 F4 데이터(D10), 4비트의 폭을 갖는 F5 데이터(D11∼D14), 및 1비트의 폭을 갖는 F6 데이터(D15)의 결합으로 이루어져 있다.The 16-bit data D0 to D15 multiplexed in Table 1 includes F1 data D0 to D2 having a beep width of 3 bits, F2 data D3 and D4 having a width of 2 bits, and a width of 5 bits. Combination of F3 data (D5 to D9), F4 data (D10) having a width of 1 bit, F5 data (D11 to D14) having a width of 4 bits, and F6 data (D15) having a width of 1 bit. consist of.

만일, 상기와 같은 6개의 개별 데이터(F1∼F6)를 다중화하지 않고 16비트 데이터 버스를 이용하여 전송할 경우에는 적어도 6번의 버스 사이클이 요구되나 다중화된 16비트의 데이터는 한번의 버스 사이클로 전송할 수 있다. 따라서 다양한 작은 비트폭을 갖는 데이터들을 결합하여 일정한 크기의 다중화된 데이터로 전송할 경우에는 전송효율을 높일 수 있다.If the six individual data F1 to F6 are transmitted using the 16-bit data bus without multiplexing, at least six bus cycles are required, but the multiplexed 16-bit data can be transmitted in one bus cycle. . Therefore, when combining data having various small bit widths and transmitting them as multiplexed data having a constant size, transmission efficiency can be improved.

한편, 잘 알려진 바와 같이 MPEG2 비트 스트림에서 시퀀스 헤더(sequence header), 픽쳐헤더(picture header) 등과 같은 헤더 들은 다양한 가변길이를 갖는 비트들의 조합으로 정의되어 있으며, 그 크기가 ISO/IEC 규격으로 정의되어 있다. 예컨대, 픽쳐헤더(Picture Header)는 32비트의 픽쳐 스타트 코드(picture_start_code)에 이어 10비트의 템포랄 레퍼런스(temporal_reference)가 따르고 이어서 3비트의 픽쳐 코딩 타입(picture_coding_type), 16비트의 가상 버퍼 지연(vbv_delay) ..... 등으로 이어진다. 이와 같이 가변길이의 정보들이 실제의 시스템( MPEG 부호화기 혹은 복호기 )에서 전송될 경우에는 일정한 고정길이 단위(예컨대, 32비트 혹은 16비트 등)로 묶여서 전송될 것이고, 이와 같이 고정길이로 묶인 데이터는 다양한 비트폭을 갖는 데이터들의 결합으로 이루어질 것이다.Meanwhile, as is well known, headers such as a sequence header, a picture header, etc. in an MPEG2 bit stream are defined as a combination of bits having various variable lengths, and the size is defined in the ISO / IEC standard. have. For example, a picture header has a 32-bit picture start code (picture_start_code) followed by a 10-bit temporal_reference, followed by a 3-bit picture coding type (picture_coding_type), and a 16-bit virtual buffer delay (vbv_delay). ) ..... and so on. As such, when variable length information is transmitted from an actual system (MPEG coder or decoder), the fixed length unit (for example, 32 bits or 16 bits, etc.) will be bundled and transmitted. It will consist of a combination of data having a bit width.

그런데 이와 같이 다중화된 데이터가 시스템 내에서 처리될 때에는 다시 개별 데이터로 분리되어 일정한 길이로 피팅(fitting)되어 처리된다. 예컨대, 상기 표 1과 같이 6개의 개별 데이터가 다중화된 데이터(D0∼D15)는 전송된 후 시스템내에서는 다시 일정 길이(예컨대, 8비트 혹은 16비트)의 데이터들로 나누어져 각각 처리된다.However, when the multiplexed data is processed in the system, it is separated into individual data and fit and processed to a certain length. For example, as shown in Table 1, the data D0 to D15 multiplexed with six individual data are divided into data of a predetermined length (for example, 8 bits or 16 bits) in the system and processed.

따라서 전송효율상 혹은 규격상 다양한 비트 폭의 데이터들로 다중화된 데이터를 처리하는 영상 부호화 혹은 복호화 시스템에서는 다중화된 데이터를 다시 소정 길이의 개별 데이터로 추출하여 피팅하는 장치가 요구된다.Accordingly, in an image encoding or decoding system that processes multiplexed data having various bit widths in terms of transmission efficiency or standard, an apparatus for extracting and fitting the multiplexed data into individual data having a predetermined length is required.

이에 본 발명은 상기와 같은 필요성을 충족시키기 위하여 영상부호화 혹은 복호화시스템에서 다중화된 데이터로부터 다양한 비트폭의 개별 데이터를 추출하여 피팅하는 장치를 제공하는데 그 목적이 있다.Accordingly, an object of the present invention is to provide an apparatus for extracting and fitting individual data having various bit widths from multiplexed data in an image encoding or decoding system in order to satisfy the above needs.

상기와 같은 목적을 달성하기 위하여 본 발명의 장치는, 적어도 하나 이상의 개별 데이터가 다중화된 데이터를 입력받고, 이 개별 데이타들의 비트폭에 대한 정보가 미리 저장되어 있는 비트폭정보 저장부로부터 비트폭정보를 입력받아 상기 개별 데이터를 추출한 후 소정 길이로 피팅하기 위한 데이터 추출 및 피팅장치에 있어서, 소정 크기의 다중화된 데이터를 래치하여 저장하고 있는 레지스터; 상기 비트폭정보 저장부에 저장된 비트폭정보를 순차적으로 출력하는 비트폭정보 추출수단; 상기 비트폭정보 추출수단으로부터 비트폭정보를 입력받아 자신의 출력과 누산하는 누산기; 상기 비트폭정보 추출수단으로부터 비트폭정보를 입력받아 마스크신호를 발생하는 마스크신호 발생수단; 상기 누산기의 출력에 따라 상기 레지스터에 저장된 데이터를 시프트하여 소정크기의 데이터를 출력하는 배럴 시프터; 및 상기 배럴 시프터의 출력을 상기 마스크신호에 따라 마스크처리하여 데이터를 피팅하는 마스킹수단이 구비된 것을 특징으로 한다.In order to achieve the above object, the apparatus of the present invention receives data obtained by multiplexing at least one or more individual data, and from the bit width information storage unit in which information on the bit width of the individual data is stored in advance. A data extraction and fitting device for fitting a predetermined length after extracting the individual data, comprising: a register for latching and storing multiplexed data having a predetermined size; Bit width information extraction means for sequentially outputting bit width information stored in the bit width information storage unit; An accumulator which receives bit width information from the bit width information extracting means and accumulates the output thereof; Mask signal generating means for receiving bit width information from said bit width information extracting means and generating a mask signal; A barrel shifter configured to output data having a predetermined size by shifting data stored in the register according to the output of the accumulator; And masking means for fitting data by masking the output of the barrel shifter according to the mask signal.

이와 같이 본 발명에 따른 데이터 추출 및 피팅부는 배럴 시프터에 의해 추출하고자하는 데이터를 하위비트 혹은 상위비트 영역으로 이동시키고, 마스크부에서 비트폭정보에 따라 원하는 개별 데이터를 추출함과 아울러 나머지 비트는 0으로 채우므로써 다중화된 데이터로부터 개별 데이타를 용이하게 추출할 수 있다.As described above, the data extracting and fitting unit moves the data to be extracted by the barrel shifter to the lower bit or upper bit area, extracts the desired individual data according to the bit width information from the mask unit, and the remaining bits are 0. By filling in, the individual data can be easily extracted from the multiplexed data.

도 1은 본 발명이 적용되는 일반적인 영상 시스템의 일부를 도시한 예,1 shows an example of a part of a general imaging system to which the present invention is applied;

도 2는 본 발명에 따른 데이터 추출 및 피팅 장치를 도시한 블록도,2 is a block diagram showing a data extraction and fitting apparatus according to the present invention;

도 3은 도 2에 도시된 마스크신호 발생부의 세부 블럭도,3 is a detailed block diagram of a mask signal generator shown in FIG. 2;

도 4는 도 2에 도시된 마스크부의 세부 블럭도,4 is a detailed block diagram of a mask unit shown in FIG. 2;

도 5는 본 발명에 따른 동작의 예를 설명하기 위한 도면,5 is a view for explaining an example of the operation according to the present invention;

도 6은 도 5에 도시된 예에서 데이터 추출 동작 결과에 따라 형성된 데이터 포맷의 예,6 is an example of a data format formed according to a data extraction operation result in the example shown in FIG. 5;

도 7은 본 발명에 따른 동작의 예를 도시한 타이밍도이다.7 is a timing diagram illustrating an example of operation according to the present invention.

*도면의 주요부분에 대한 부호의 설명* Explanation of symbols for main parts of the drawings

100: 호스트 제어기120: 영상 부호화부100: host controller 120: image encoder

121: 버스정합부122: 데이터 추출 및 피팅부121: bus matching unit 122: data extraction and fitting unit

123: 비트폭 정보저장부(ROM)124: 램123: Bit width information storage unit (ROM) 124: RAM

125: 램제어기201,205: 버퍼125: RAM controller 201, 205: buffer

202: 래지스터203: 배럴 시프터202: register 203: barrel shifter

204: 마스크부210: 비트폭정보 추출기204: mask unit 210: bit width information extractor

220: 누산기230: 마스크신호발생부220: accumulator 230: mask signal generator

이하, 첨부된 도면을 참조하여 본 발명의 바람직한 실시예를 자세히 설명하기로 한다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.

도 1은 본 발명이 적용되는 일반적인 영상 부호화 시스템의 예이고, 도 2는 본 발명에 따른 데이터 추출 및 피팅 장치를 도시한 블록도이며, 도 3은 도 2에 도시된 마스크신호 발생부의 세부 블록도이고, 도 4는 도 2에 도시된 마스크부의 세부 블록도이다.1 is an example of a general video encoding system to which the present invention is applied, FIG. 2 is a block diagram illustrating a data extraction and fitting apparatus according to the present invention, and FIG. 3 is a detailed block diagram of a mask signal generator shown in FIG. 2. 4 is a detailed block diagram of the mask unit illustrated in FIG. 2.

본 발명이 적용되는 영상 부호화 시스템은 호스트 제어기(100)로부터 16비트의 데이터를 데이터 버스를 통해 입력받아 부호화하는 부호기(120)로 구성되고, 부호기(120)는 버스정합부(121), 데이터 추출부(122), 비트폭 정보 저장부(123), 램(124), 램 제어기(125)를 포함하고 있다.The video encoding system to which the present invention is applied is composed of an encoder 120 which receives 16 bits of data from the host controller 100 through a data bus and encodes the encoded data. The encoder 120 includes a bus matching unit 121 and data extraction. The unit 122 includes a bit width information storage unit 123, a RAM 124, and a RAM controller 125.

도 1에서 버스정합부(121)는 호스트 버스와 정합하여 호스트 제어기(100)가 출력하는 각종 어드레스 및 데이터 등을 부호기(120)에 연결하고, 비트폭 정보 저장부(123)는 롬(ROM)과 같은 메모리로 구현되어 데이터 버스를 통해 입력된 데이터에 포함된 각 개별 데이타의 비트폭에 대한 정보를 미리 저장하고 있다.In FIG. 1, the bus matching unit 121 matches the host bus with various addresses and data output from the host controller 100 to the encoder 120, and the bit width information storage unit 123 is a ROM. Implemented in the same memory, and stores the information about the bit width of each individual data contained in the data input through the data bus in advance.

또한 본 발명의 데이터 추출부 및 피팅부(122)는 버스 정합부(121)로부터 입력되는 데이터를 래치한 후 비트폭 정보 저장부(123)로부터 비트폭 정보를 입력받아 개별 데이터를 추출한 후 피팅하여 고정 길이의 데이터들로 나누어 출력하고, 램(124)은 램제어기(125)의 어드레스(add) 및 제어신호(r/w)에 따라 데이터 추출부 및 피팅부(122)가 출력하는 데이터를 저장한다. 이때 램제어기(125)는 버스정합부(121)로부터 추출완료신호가 입력되면 데이터 저장 동작을 정지한다.In addition, the data extracting unit and the fitting unit 122 of the present invention latch the data input from the bus matching unit 121 and then receive the bit width information from the bit width information storage unit 123 to extract individual data, and then fit the same. The RAM 124 stores data output by the data extractor and the fitting unit 122 according to the address (add) and the control signal (r / w) of the RAM controller 125. do. At this time, when the extraction completion signal is input from the bus matching unit 121, the RAM controller 125 stops the data storage operation.

따라서 본 발명에 따른 데이터 추출 및 피팅부(122)에 의해 데이터 버스를 통해 입력된 다중화된 데이터가 개별 데이터로 분할된 후 램(124)에 저장되고, 부호화기 (120)는 이 램(124)에 저장된 데이터를 도시되지 않은 기능블럭들에 의해 처리하여 영상 부호화를 수행한다. 본 발명은 영상 복호화기에서도 부호화기에서와 동일한 방식으로 적용될 수 있다.Therefore, the multiplexed data inputted through the data bus by the data extraction and fitting unit 122 according to the present invention is divided into individual data and then stored in the RAM 124, and the encoder 120 is stored in the RAM 124. The stored data is processed by functional blocks (not shown) to perform image encoding. The present invention can be applied to an image decoder in the same manner as that of the encoder.

본 발명에 따른 데이터 추출 및 피팅장치는 도 2에 도시된 바와 같이, 버퍼(201), 레지스터(202), 배럴 시프터(203), 마스크부(204), 버퍼(205), 비트폭정보 저장부(123), 비트폭정보 추출기(210), 누산기(220), 마스크신호 발생부(230)등으로 구성되어 데이터 버스를 통해 입력된 데이터를 버퍼(201)에 저장하고, 버퍼(201)에 저장된 데이터를 레지스터(202)로 래치한 후 비프폭 정보 저장부(123)에 저장된 비트폭 정보에 따라 해당 비트폭의 데이터를 추출한 후 피팅하여 램(124)에 저장한다.As shown in FIG. 2, the data extraction and fitting apparatus according to the present invention includes a buffer 201, a register 202, a barrel shifter 203, a mask unit 204, a buffer 205, and a bit width information storage unit. 123, a bit width information extractor 210, an accumulator 220, a mask signal generator 230, and the like, store data input through the data bus in the buffer 201 and store the data in the buffer 201. After latching the data into the register 202, the data of the corresponding bit width is extracted according to the bit width information stored in the beep width information storage unit 123, and then fitted and stored in the RAM 124.

도 2에서 버퍼(201)는 호스트 버스를 통해 전달된 데이터의 전송속도가 데이터 추출 및 피팅속도보다 빠를 경우 데이터 손실을 방지하기 위하여 입력된 데이터를 순차적으로 저장한 후 순차적으로 출력하는 선입선출(FIFO)버퍼이고, 레지스터(202)는 16비트의 다중화된 데이터를 래치하여 추출 동작이 완료될 때까지 저장하고 있다.In FIG. 2, the buffer 201 is a first-in, first-out (FIFO) that sequentially stores and sequentially outputs input data in order to prevent data loss when a data transfer rate transmitted through the host bus is faster than a data extraction and fitting rate. Buffer, and the register 202 latches 16-bit multiplexed data and stores it until the extraction operation is completed.

비트폭정보 저장부(123)에는 데이터 버스를 통해 입력되는 다중화된 데이터에 실린 개별 데이터들의 비트폭에 대한 정보가 미리 저장되어 있으며, 비트폭 정보 추출기(210)에 의해 이 정보가 추출되어 누산기(220)와 마스크신호 발생부(230)로 출력된다.The bit width information storage unit 123 stores information on the bit widths of the individual data contained in the multiplexed data input through the data bus in advance, and the information is extracted by the bit width information extractor 210 to accumulate ( 220 and the mask signal generator 230 is output.

배럴 시프터(203)는 8비트의 윈도우 크기를 가지고 있으며, 누산기(220)로부터 입력되는 비트만큼 레지스터의 출력을 우로 시프트하여 추출하고자 하는 데이터를 항시 우측에 위치하게 한다.The barrel shifter 203 has a window size of 8 bits and shifts the output of the register to the right by the bit input from the accumulator 220 so that the data to be extracted is always located on the right side.

이때 본 발명의 실시예에서는 다중화된 비트의 크기를 16비트로 하고 개별 데이터의 비트폭은 1비트에서 8비트까지로 한정하며, 시스템내에서 처리되는 비트의 단위도 8비트로 한다. 따라서 개별 데이터의 최대 비트는 8 비트이므로 8 비트의 비트폭을 표현하기 위해서 3비트의 비트정보가 요구되고, 배럴 시프터(203), 마스트부(204), 버퍼(205)등은 8비트를 처리할 수 있으면 충분하다. 만일 개별 데이터의 최대 비트폭이 다중화된 비트폭과 같이 16비트일 경우에는 배럴 시프터의 윈도우도 16비트이고, 비트폭정보를 표현하기 위해서는 4비트가 요구될 것이다.At this time, in the embodiment of the present invention, the size of the multiplexed bit is 16 bits, the bit width of the individual data is limited to 1 to 8 bits, and the unit of bits processed in the system is 8 bits. Therefore, since the maximum bit of the individual data is 8 bits, 3 bits of bit information are required in order to express the bit width of 8 bits, and the barrel shifter 203, the mast unit 204, the buffer 205, and the like process 8 bits. It's enough if you can. If the maximum bit width of the individual data is 16 bits like the multiplexed bit width, the window of the barrel shifter is also 16 bits, and 4 bits are required to express the bit width information.

이와 같이 본 발명의 기술적 사상은 임의의 비트길이를 갖는 데이터에 대해서도 그대로 적용될 수 있으므로 본 발명의 실시예에 한정 해석되어서는 안될 것이다.As described above, the technical idea of the present invention may be applied to data having an arbitrary bit length as it is, and therefore should not be construed as limited to the embodiments of the present invention.

누산기(220)는 도 2에 도시된 바와 같이, 가산기(221)와 누산기 레지스터(222)로 구성되는데, 누산기 레지스터(222)의 값은 리셋(Reset)신호에 의해 0으로 클리어되고, 이어 다음 사이클부터는 가산기(221)의 출력을 일시 저장한다. 가산기(221)는 비트폭정보 추출기(210)의 출력과 누산기 레지스터의 이전값을 가산한 후 그 결과를 누산기 레지스터(222)로 출력한다.The accumulator 220 is composed of an adder 221 and an accumulator register 222, as shown in FIG. 2, where the value of the accumulator register 222 is cleared to zero by a reset signal, and then the next cycle. From here, the output of the adder 221 is temporarily stored. The adder 221 adds the output of the bit width information extractor 210 and the previous value of the accumulator register and outputs the result to the accumulator register 222.

따라서 배럴 시프터(203)는 누산기(220)의 출력만큼 레지스터(202)의 출력을 우로 시프트하는데, 첫번째 사이클에서는 0이 입력되므로 레지스터(202)의 출력에서 하위 8비트를 그대로 출력하고, 이어서 누산기로부터 입력되는 값만큼 레지스터의 출력을 우로 시프트한 후 하위 8비트를 출력한다.Accordingly, the barrel shifter 203 shifts the output of the register 202 to the right by the output of the accumulator 220. In the first cycle, since 0 is input, the barrel shifter 203 outputs the lower 8 bits as it is from the output of the register 202, and then from the accumulator. After shifting the register output to the right as much as the input value, the lower 8 bits are output.

마스크신호 발생부(230)는 도 3에 도시된 바와 같이, 비트폭 정보 추출기(210)가 출력하는 비트정보를 입력받아 디코딩하는 디코더(232)와, 이 디코더의 출력을 입력받아 하위비트부터 디코더의 출력비트까지를 1로 하고, 나머지는 비트는 0으로 하는 마스크신호(m0∼m7)를 발생하는 마스크신호 발생로직(234)로 구성된다. 즉, 디코더(232)는 3비트의 비트폭정보를 입력받아 비트폭의 크기를 산출하고, 마스크신호 발생로직(234)은 비트폭의 크기만큼 하위비트부터 1을 출력하고 나머지는 0을 출력한다.As shown in FIG. 3, the mask signal generator 230 receives a decoder 232 for receiving and decoding bit information output from the bit width information extractor 210, and receives the output of the decoder and then decodes the lower bits. Is composed of a mask signal generation logic 234 for generating mask signals m0 to m7 with the output bits of 1 being 1 and the rest being 0. That is, the decoder 232 receives the bit width information of 3 bits to calculate the size of the bit width, and the mask signal generation logic 234 outputs 1 from the lower bits by the size of the bit width, and outputs 0 from the rest. .

본 발명의 실시예에서는 개별 데이터를 8비트로 피팅함에 있어서 하위비트에 데이터비트를 삽입하고, 나머지 상위비트를 0으로 채우도록 하였으나 배럴 시프터의 출력과 마스크부의 간단한 수정으로 데이터를 상위비트에 위치시키고 하위비트를 0으로 채우도록 할 수도 있다. 이와 같이 피팅결과 데이터를 어느쪽으로 정렬하는가 하는 것은 당업계에서 통상의 기술자라면 본 발명의 실시예로부터 용이하게 설계할 수 있을 것이다.In the embodiment of the present invention, when fitting individual data into 8 bits, data bits are inserted into the lower bits and the remaining upper bits are filled with 0. However, the output of the barrel shifter and the simple modification of the mask part place the data in the upper bits and lower You can also make the bit fill with zeros. As described above, the fitting result data is sorted by which one of ordinary skill in the art can easily design from an embodiment of the present invention.

그리고 마스크부(204)는 도 4에 도시된 바와 같이, 8개의 앤드게이트(204-1∼204-8)로 구현되어 배럴 시프터(203)가 출력하는 8비트의 데이터에서 상기 마스크신호 발생부(230)가 출력하는 마스크신호(m0∼m7)에 따라 해당되는 비트는 그대로 출력하고, 나머지 비트는 0으로 피팅한다.As illustrated in FIG. 4, the mask unit 204 is implemented by eight end gates 204-1 through 204-8, and the mask signal generator (8) is output from 8-bit data output from the barrel shifter 203. According to the mask signals m0 to m7 output by the 230, the corresponding bits are output as they are, and the remaining bits are fitted to zero.

즉, 마스크부(204)의 제1 엔드게이트(204-1)로 입력되는 마스크신호(m0)가 1이면 배럴 시프터의 출력을 그대로 통과( 즉, D0=D0')시키나 마스크신호(m0)가 0이면 배럴 시프터의 출력에 관계없이 0이 출력( 즉, D0'=0)되고, 제2 엔드게이트(204-2)로 입력되는 마스크신호(m1)가 1이면 배럴 시프터의 출력을 그대로 통과( 즉, D1=D1')시키나 마스크신호(m1)가 0이면 배럴 시프터의 출력에 관계없이 0이 출력( 즉, D1'=0)된다. 또한, 제3 엔드게이트(204-3)로 입력되는 마스크신호(m2)가 1이면 배럴 시프터의 출력을 그대로 통과( 즉, D2=D2')시키나 마스크신호(m2)가 0이면 배럴 시프터의 출력에 관계없이 0이 출력( 즉, D2'=0)되고, 제4 엔드게이트(204-4)로 입력되는 마스크신호(m3)가 1이면 배럴 시프터의 출력을 그대로 통과( 즉, D3=D3')시키나 마스크신호(m3)가 0이면 배럴 시프터의 출력에 관계없이 0이 출력( 즉, D3'=0)된다.That is, when the mask signal m0 input to the first end gate 204-1 of the mask unit 204 is 1, the output of the barrel shifter is passed as it is (ie, D0 = D0 ′), but the mask signal m0 is If 0, 0 is output regardless of the output of the barrel shifter (i.e., D0 '= 0), and if the mask signal m1 input to the second end gate 204-2 is 1, the output of the barrel shifter is passed as it is ( That is, when D1 = D1 ') but the mask signal m1 is 0, 0 is output (i.e., D1' = 0) regardless of the output of the barrel shifter. If the mask signal m2 input to the third end gate 204-3 is 1, the output of the barrel shifter passes through as it is (i.e., D2 = D2 '), but if the mask signal m2 is 0, the barrel shifter outputs. Regardless, 0 is output (i.e., D2 '= 0), and when the mask signal m3 input to the fourth end gate 204-4 is 1, the output of the barrel shifter is passed as it is (i.e., D3 = D3' However, if the mask signal m3 is 0, 0 is output (ie, D3 '= 0) regardless of the output of the barrel shifter.

그리고, 마스크부(204)의 제5 엔드게이트(204-5)로 입력되는 마스크신호(m4)가 1이면 배럴 시프터의 출력을 그대로 통과( 즉, D4=D4')시키나 마스크신호(m4)가 0이면 배럴 시프터의 출력에 관계없이 0이 출력( 즉, D4'=0)되고, 제6 엔드게이트(204-6)로 입력되는 마스크신호(m5)가 1이면 배럴 시프터의 출력을 그대로 통과( 즉, D5=D5')시키나 마스크신호(m5)가 0이면 배럴 시프터의 출력에 관계없이 0이 출력( 즉, D5'=0)된다. 또한, 제7 엔드게이트(204-7)로 입력되는 마스크신호(m6)가 1이면 배럴 시프터의 출력을 그대로 통과( 즉, D6=D6')시키나 마스크신호(m6)가 0이면 배럴 시프터의 출력에 관계없이 0이 출력( 즉, D6'=0)되고, 제8 엔드게이트(204-8)로 입력되는 마스크신호(m7)가 1이면 배럴 시프터의 출력을 그대로 통과( 즉, D7=D7')시키나 마스크신호(m7)가 0이면 배럴 시프터의 출력에 관계없이 0이 출력( 즉, D7'=0)된다.When the mask signal m4 input to the fifth end gate 204-5 of the mask unit 204 is 1, the output of the barrel shifter is passed as it is (that is, D4 = D4 '), but the mask signal m4 is If 0, 0 is output regardless of the output of the barrel shifter (i.e., D4 '= 0), and if the mask signal m5 input to the sixth end gate 204-6 is 1, the output of the barrel shifter is passed as it is ( That is, if D5 = D5 ') but the mask signal m5 is 0, 0 is output (i.e., D5' = 0) regardless of the output of the barrel shifter. If the mask signal m6 input to the seventh end gate 204-7 is 1, the output of the barrel shifter is passed as it is (ie, D6 = D6 '), but if the mask signal m6 is 0, the barrel shifter outputs. Regardless of whether 0 is output (ie, D6 '= 0) and the mask signal m7 input to the eighth end gate 204-8 is 1, the output of the barrel shifter is passed as it is (ie, D7 = D7' However, if the mask signal m7 is 0, 0 is output (ie, D7 '= 0) regardless of the output of the barrel shifter.

버퍼(205)는 마스크부(204)가 출력하는 추출 및 피팅된 데이터를 일시 저장한 후 램(124)으로 출력하고, 램(124)은 램제어기(125)의 제어신호에 따라 버퍼(205)의 출력을 저장한다.The buffer 205 temporarily stores the extracted and fitted data output by the mask unit 204 and outputs the data to the RAM 124. The RAM 124 is configured to buffer 205 according to a control signal of the RAM controller 125. Save the output of

이어서, 상기와 같은 실시예의 동작을 도 5 내지 도 7을 참조하여 자세히 설명한다.Next, the operation of the above embodiment will be described in detail with reference to FIGS. 5 to 7.

도 5는 본 발명에 따른 동작의 예를 설명하기 위한 도면이고, 도 6은 도 5에 도시된 예에서 데이터 추출 동작 결과에 따라 형성된 데이터 포맷의 예이며, 도 7은 본 발명에 따른 동작 타이밍의 예를 도시한 타이밍도이다.5 is a view for explaining an example of the operation according to the present invention, Figure 6 is an example of a data format formed according to the data extraction operation result in the example shown in Figure 5, Figure 7 is an operation timing according to the present invention A timing diagram showing an example.

먼저, 본 발명의 실시예에서 입력되는 16비트의 다중화 데이터가 앞서 설명한 표 1과 같이, F1, F2, F3, F4, F5, F6으로 결합되어 있다고 하자.First, suppose that the 16-bit multiplexed data input in the embodiment of the present invention is combined into F1, F2, F3, F4, F5, and F6, as shown in Table 1 described above.

그러면 비트폭정보 저장부(123)에는 다중화된 16비트 데이터의 각 개별 데이터들에 대한 비트폭정보가 저장되어 있다. 즉, F1 데이터부터 F6 데이터까지 비트폭이 3, 2, 5, 1, 4, 1이므로 이들 값이 비트폭정보 저장부(123)에 저장되어 있다.Then, the bit width information storage unit 123 stores bit width information for each individual data of the multiplexed 16 bit data. That is, since the bit widths from the F1 data to the F6 data are 3, 2, 5, 1, 4, 1, these values are stored in the bit width information storage unit 123.

도 7에 도시된 바와 같이, 래치 클럭에 의해 레지스터(202)에 16비트의 다중화된 데이터가 저장되고, 리셋(Reset)신호에 의해 누산기 레지스터(222)가 클리어되어 누산기(220)의 출력은 0이 된다. 비트폭정보 추출기(210)는 비트폭정보 저장부(123)에 저장된 F1 데이터의 비트폭값(310)을 추출하여 누산기(220)와 마스크신호 발생부(230)로 출력한다. 이때 누산기(220)로는 310이 입력되나 첫번째 사이클에서는 누산기의 레지스터(222)에 저장된 0이 출력되고, 다음 사이클에서는 누산기의 레지스터(222)에 저장된 0과 누산기로 입력된 3이 가산된 결과 3(=3+0)이 레지스터(222)에 저장됨과 아울러 이 값이 출력된다.As shown in FIG. 7, 16-bit multiplexed data is stored in the register 202 by the latch clock, and the accumulator register 222 is cleared by the reset signal so that the output of the accumulator 220 is zero. Becomes The bit width information extractor 210 extracts the bit width value 3 10 of the F1 data stored in the bit width information storage unit 123 and outputs the bit width value 3 10 to the accumulator 220 and the mask signal generator 230. At this time, 3 10 is input to the accumulator 220, but 0 stored in the register 222 of the accumulator is output in the first cycle, and 0 stored in the register 222 of the accumulator and 3 input to the accumulator are added in the next cycle. (= 3 + 0) is stored in register 222 and this value is output.

마스크신호 발생부(230)는 비트폭정보 추출기(210)로부터 310을 입력받아 디코더(232)에서 디코딩한 후 마스크신호 발생로직(234)에서 그 값만큼 하위비트부터 1로 하고 나머지는 0으로 하는 마스크신호(m0∼m7)를 발생한다. 예컨대, 3이 입력되면 m0=1, m1=1, m2=1, m3=0, m4=0, m5=0, m6=0, m7=0인 마스크신호를 발생하여 출력한다.The mask signal generator 230 receives 3 10 from the bit width information extractor 210 and decodes the decoder 232, and then sets the mask signal generation logic 234 to 1 from the lower bits, and the rest to 0. The mask signals m0 to m7 are generated. For example, when 3 is input, a mask signal of m0 = 1, m1 = 1, m2 = 1, m3 = 0, m4 = 0, m5 = 0, m6 = 0, m7 = 0 is generated and output.

배럴 시프터(203)는 레지스터(202)에 저장된 16비트 데이터를 '누산기의 레지스터(222)가 출력하는 0'만큼 시프트한 후 하위 8비트(즉, F1 3비트, F2 2비트, F3의 3비트)를 출력한다.The barrel shifter 203 shifts 16-bit data stored in the register 202 by '0' outputted by the register 222 of the accumulator, and then lower 8 bits (that is, 3 bits of F1, 2 bits of F2, and 3 bits of F3). )

마스크부(204)는 배럴 시프터(203)의 8비트 출력에서 마스크신호(m0∼m7)에 따라 3비트의 F1 데이터를 그대로 출력하고, 나머지 5비트는 0으로 피팅하여 출력한다.The mask unit 204 outputs 3 bits of F1 data as it is from the 8-bit output of the barrel shifter 203 according to the mask signals m0 to m7, and fits the remaining 5 bits to zero.

이와 같이 하여 F1 데이터에 대한 추출 및 피팅이 완료되면, 이어서 F2 데이터에 대한 추출 및 피팅을 수행한다.After the extraction and fitting of the F1 data is completed in this manner, the extraction and fitting of the F2 data are performed.

즉, 비트폭정보 추출기(210)는 3에 이어 F2 데이터의 비트폭값인 2를 추출하여 누산기(220)와 마스크신호 발생부(230)로 출력하고, 누산기(220)는 앞서 입력된 3과 0이 가산된 결과가 저장된 레지스터의 값(즉, 3)을 출력함과 아울러 2를 입력받는다. 마스크신호 발생부(230)는 2를 입력받아 디코딩한 후 m0=1, m1=1, m2=0, m3=0, m4=0, m5=0, m6=0, m7=0인 마스크신호를 발생하여 출력한다.That is, the bit width information extractor 210 extracts 2, which is the bit width value of the F2 data after 3, and outputs the result to the accumulator 220 and the mask signal generator 230, and the accumulator 220 receives 3 and 0 previously input. This added result prints the value of the stored register (that is, 3) and receives 2. The mask signal generator 230 receives and decodes 2, and then decodes a mask signal having m0 = 1, m1 = 1, m2 = 0, m3 = 0, m4 = 0, m5 = 0, m6 = 0, and m7 = 0. Generate and print.

배럴 시프터(203)는 레지스터(202)에 저장된 16비트 데이터를 '누산기의 레지스터가 출력하는 3비트'만큼 우로 시프트한 후 하위 8비트(즉, F2 2비트, F3의 5비트, F4 1비트)를 출력한다.The barrel shifter 203 shifts the 16-bit data stored in the register 202 right by '3 bits outputted by the register of the accumulator' and then lower 8 bits (that is, 2 bits of F2, 5 bits of F3, and 1 bit of F4). Outputs

마스크부(204)는 배럴 시프터의 8비트 출력에서 마스크신호(m0∼m7)에 따라 2비트의 F2 데이터를 그대로 출력하고, 나머지 6비트는 0으로 피팅(fitting)하여 출력한다.The mask unit 204 outputs two bits of F2 data as it is in accordance with the mask signals m0 to m7 from the eight-bit output of the barrel shifter, and fits the remaining six bits to zero.

이와 같이 하여 F2 데이터에 대한 추출 및 피팅이 완료되면, 이어서 F3 데이터에 대한 추출 및 피팅을 수행한다.After the extraction and fitting of the F2 data is completed in this manner, the extraction and fitting of the F3 data are performed.

즉, 비트폭정보 추출기(210)는 2에 이어 F3 데이터의 비트폭값인 5를 추출하여 누산기(220)와 마스크신호 발생부(230)로 출력하고, 누산기(220)는 앞서 입력된 2와 3이 가산된 결과 5가 저장된 레지스터의 값을 출력함과 아울러 F3 비트폭정보 5를 입력받는다. 마스크신호 발생부(230)는 5를 입력받아 디코딩한 후 m0=1, m1=1, m2=1, m3=1, m4=1, m5=0, m6=0, m7=0인 마스크신호를 발생하여 출력한다.That is, the bit width information extractor 210 extracts 5, which is a bit width value of F3 data after 2, and outputs the result to the accumulator 220 and the mask signal generator 230, and the accumulator 220 is 2 and 3 previously input. The added result 5 outputs the value of the stored register and receives F3 bit width information 5. The mask signal generator 230 receives and decodes 5 and decodes a mask signal having m0 = 1, m1 = 1, m2 = 1, m3 = 1, m4 = 1, m5 = 0, m6 = 0, m7 = 0. Generate and print.

배럴 시프터(203)는 레지스터(202)에 저장된 16비트 데이터를 '누산기의 레지스터가 출력하는 5비트'만큼 우로 시프트한 후 하위 8비트(즉, F3 5비트, F4 1비트, F5 2비트)를 출력한다.The barrel shifter 203 shifts the 16-bit data stored in the register 202 right by '5 bits outputted by the accumulator' and then shifts the lower 8 bits (that is, F3 5 bits, F4 1 bit, and F5 2 bits). Output

마스크부(204)는 배럴 시프터(203)의 8비트 출력에서 마스크신호(m0∼m7)에 따라 5비트의 F3 데이터를 그대로 출력하고, 나머지 3비트는 0으로 피팅하여 출력한다.The mask unit 204 outputs 5 bits of F3 data as it is from the 8-bit output of the barrel shifter 203, in accordance with the mask signals m0 to m7, and fits the remaining 3 bits to zero.

이와 같이 하여 F3 데이터에 대한 추출 및 피팅이 완료되면, 이어서 F4 데이터에 대한 추출 및 피팅을 수행한다.In this way, when extraction and fitting of the F3 data is completed, extraction and fitting of the F4 data are then performed.

즉, 비트폭정보 추출기(210)는 5에 이어 F4 데이터의 비트폭값인 1을 추출하여 누산기(220)와 마스크신호 발생부(230)로 출력하고, 누산기(220)는 앞서 입력된 5와 누산된 5를 가산한 결과 1010이 저장된 레지스터(222)의 값을 출력함과 아울러 F4 비트폭정보 1을 입력받는다. 마스크신호 발생부(230)는 1을 입력받아 디코딩한 후 m0=1, m1=0, m2=0, m3=0, m4=0, m5=0, m6=0, m7=0인 마스크신호를 발생하여 출력한다.That is, the bit width information extractor 210 extracts 1, which is a bit width value of F4 data after 5, and outputs the result to the accumulator 220 and the mask signal generator 230, and the accumulator 220 accumulates 5 previously inputted. As a result of adding 5, 10 10 outputs the value of the stored register 222 and receives F4 bit width information 1. The mask signal generator 230 receives and decodes 1, and then decodes a mask signal having m0 = 1, m1 = 0, m2 = 0, m3 = 0, m4 = 0, m5 = 0, m6 = 0, and m7 = 0. Generate and print.

배럴 시프터(203)는 레지스터(202)에 저장된 16비트 데이터를 '누산기의 레지스터가 출력하는 10비트'만큼 우로 시프트한 후 하위 8비트(즉, F4 1비트, F5 4비트, F6 1비트, 0 2비트)를 출력한다. 여기서 배럴 시프터가 링구조인 경우에는 우로 시프트 동작시 F6 데이타에 이어 F1 데이터가 다시 연결되나 본 발명의 실시예에서는 F6 데이타에 이어 빈공간은 0으로 채워지는 것으로 한다.The barrel shifter 203 shifts the 16-bit data stored in the register 202 right by '10 bits outputted by the accumulator 'and then lower 8 bits (ie, F4 1 bit, F5 4 bit, F6 1 bit, 0). 2 bits). In the case where the barrel shifter has a ring structure, F1 data is reconnected after F6 data during the right shift operation. However, in the embodiment of the present invention, the empty space is filled with zero after F6 data.

마스크부(204)는 배럴 시프터의 8비트 출력에서 마스크신호(m0∼m7)에 따라 1비트의 F4 데이터를 그대로 출력하고, 나머지 7비트는 0으로 피팅하여 출력한다.The mask unit 204 outputs one bit of F4 data as it is in accordance with the mask signals m0 to m7 from the eight-bit output of the barrel shifter, and fits the remaining seven bits to zero.

이어서, F4 데이터에 대한 추출 및 피팅이 완료되면 F5, F6 데이터에 대한 추출 및 피팅을 앞서 설명한 바와 같이 동일하게 수행한다.Subsequently, when extraction and fitting of the F4 data are completed, extraction and fitting of the F5 and F6 data are performed in the same manner as described above.

이와 같이 하여 다중화된 16비트 데이터에 대한 추출 및 피팅이 모두 수행되면 도 6에 도시된 바와 같이, F1∼F6 데이터를 포함하는 8개의 바이트의 데이터가 형성되고, 이 결과는 램제어기(125)의 제어에 따라 램(124)에 저장되어 처리된다.When both extraction and fitting of the multiplexed 16-bit data are performed in this manner, as shown in FIG. 6, eight bytes of data including F1 to F6 data are formed, and the result is the result of the RAM controller 125. It is stored in the RAM 124 and processed according to the control.

도 7은 본 발명에 따른 실시예의 동작 타이밍도인데, 래치클럭에 따라 16비트의 다중화된 데이터가 래치된 후, 비트폭정보(3, 2, 5, 1, 4, 1)에 따라 순차적으로 처리되어 개별 데이터(F1, F2, F3, F4, F5, F6)가 출력되는 것을 보여준다.7 is an operation timing diagram of an embodiment according to the present invention. After 16-bit multiplexed data is latched according to a latch clock, processing is performed sequentially according to bit width information (3, 2, 5, 1, 4, 1). To show that individual data (F1, F2, F3, F4, F5, F6) is output.

이와 같이 16비트 다중화된 데이터에 대한 추출 및 피팅 동작이 완료되면, 이어서 다음 다중화된 16비트 데이터를 래치하여 앞서 설명한 바와 동일한 방식으로 처리한다.After the extraction and fitting operations for the 16-bit multiplexed data are completed, the next multiplexed 16-bit data is latched and processed in the same manner as described above.

이상에서 살펴본 바와 같이 본 발명은 미리 저장된 비트폭정보를 입력받아 배럴시프터를 이용하여 다중화된 데이터로부터 해당 데이터부분을 소정 길이로 추출한 후 마스크부에서 피팅하여 개별 데이터를 형상하므로써 용이하게 데이터를 처리할 수 있다.As described above, the present invention can easily process data by inputting the bit width information stored in advance, extracting a corresponding data portion from the multiplexed data using a barrel shifter to a predetermined length, and fitting the mask portion to form individual data. Can be.

Claims (6)

적어도 하나 이상의 개별 데이터가 다중화된 데이터를 입력받고, 이 개별 데이타들의 비트폭에 대한 정보가 미리 저장되어 있는 비트폭정보 저장부로부터 비트폭정보를 입력받아 상기 개별 데이터를 추출한 후 소정 길이로 피팅하기 위한 데이터 추출 및 피팅장치에 있어서,Receiving data obtained by multiplexing at least one individual data, receiving bit width information from a bit width information storage unit in which information on the bit width of the individual data is stored in advance, extracting the individual data, and fitting the predetermined length In the data extraction and fitting apparatus for 소정 크기의 다중화된 데이터를 래치하여 저장하고 있는 레지스터(202);A register 202 for latching and storing multiplexed data of a predetermined size; 상기 비트폭정보 저장부에 저장된 비트폭정보를 순차적으로 출력하는 비트폭정보 추출수단(210);Bit width information extracting means (210) for sequentially outputting bit width information stored in the bit width information storage unit; 상기 비트폭정보 추출수단으로부터 비트폭정보를 입력받아 자신의 출력과 누산하는 누산기(220);An accumulator 220 which receives bit width information from the bit width information extracting means and accumulates its output; 상기 비트폭정보 추출수단으로부터 비트폭정보를 입력받아 마스크신호를 발생하는 마스크신호 발생수단(230);Mask signal generating means (230) for receiving bit width information from said bit width information extracting means and generating a mask signal; 상기 누산기의 출력에 따라 상기 레지스터에 저장된 데이터를 시프트하여 소정크기의 데이터를 출력하는 배럴 시프터(203); 및A barrel shifter (203) for outputting data of a predetermined size by shifting data stored in the register according to the output of the accumulator; And 상기 배럴 시프터의 출력을 상기 마스크신호에 따라 마스크처리하여 데이터를 피팅하는 마스킹수단(204)이 구비된 데이터 추출 및 피팅장치.And masking means (204) for fitting data by masking the output of the barrel shifter according to the mask signal. 제1항에 있어서, 상기 데이터 추출 및 피팅장치는 다중화된 데이터의 입력속도가 추출 및 피팅 처리속도보다 빠를 경우 다중화된 데이터의 손실을 방지하기 위한 버퍼를 더 구비한 것을 특징으로 하는 데이터 추출 및 피팅장치.The data extraction and fitting apparatus of claim 1, wherein the data extraction and fitting apparatus further comprises a buffer for preventing loss of the multiplexed data when the input speed of the multiplexed data is faster than the extraction and fitting processing speed. Device. 제1항에 있어서, 상기 누산기(220)는 가산기(221)와, 리셋신호에 따라 클리어되며 가산기의 출력을 저장하는 누산기 레지스터(222)로 구성된 것을 특징으로 하는 데이터 추출 및 피팅장치.2. The apparatus of claim 1, wherein the accumulator (220) comprises an adder (221) and an accumulator register (222) for clearing according to a reset signal and storing the output of the adder. 제1항에 있어서, 상기 마스크신호 발생수단은 상기 비트폭정보를 입력받아 디코딩하는 디코더와, 상기 디코더의 출력에 따라 마스크신호를 발생하는 마스크신호 발생로직으로 구성된 것을 특징으로 하는 데이터 추출 및 피팅장치.2. The apparatus of claim 1, wherein the mask signal generating means comprises a decoder for receiving and decoding the bit width information, and a mask signal generation logic for generating a mask signal according to the output of the decoder. . 제1항에 있어서, 상기 마스킹수단은 상기 마스크신호가 1이면 상기 배럴 시프터의 출력을 그대로 출력하고, 상기 마스크신호가 0이면 0을 출력하는 복수개의 엔드게이트로 이루어지는 것을 특징으로 하는 데이터 추출 및 피팅장치.The data extracting and fitting of claim 1, wherein the masking means comprises a plurality of end gates that output the barrel shifter as it is when the mask signal is 1 and output 0 when the mask signal is 0. Device. 호스트제어기와 영상부호화장치가 호스트버스에 의해 접속되며 호스트 버스상의 데이터 버스를 통해 입력된 데이터를 호스트제어기의 제어에 따라 영상 부호화하는 영상 부호화/복호화 시스템에 있어서,In a video encoding / decoding system wherein a host controller and an image encoding device are connected by a host bus and image-code the data input through a data bus on the host bus under the control of the host controller. 상기 영상부호화장치가The video encoding apparatus 상기 호스트버스를 통해 입력되는 가상어드레스를 물리적인 어드레스로 변환하고 데이터를 연결하여 주기 위한 버스정합부;A bus matching unit for converting a virtual address input through the host bus into a physical address and connecting data; 다중화되어 입력되는 데이터에 포함되는 개별 데이터들에 대한 비트폭정보를 미리 저장하고 있는 비트폭정보 저장부;A bit width information storage unit which stores bit width information of individual data included in the multiplexed and input data in advance; 상기 버스정합부를 통해 입력되는 다중화된 데이터를 입력받아 상기 비트폭 정보 저장부가 출력하는 비트폭정보에 따라 해당 개별데이타를 추출한 후 소정크기의 고정길이 데이터로 피팅하여 정렬하는 데이터 추출 및 피팅부; 및A data extraction and fitting unit which receives the multiplexed data input through the bus matching unit, extracts the individual data according to the bit width information output by the bit width information storage unit, and then fits and fits the fixed length data of a predetermined size; And 상기 데이터 추출 및 피팅부의 출력을 램제어기의 제어에 따라 저장하는 램을 포함하는 영상 부호화시스템의 데이터 추출 및 피팅장치.And a RAM configured to store an output of the data extraction and fitting unit under control of a RAM controller.
KR1019960043243A 1996-09-30 1996-09-30 Apparatus for extracting and fitting data from multiplexed data KR100226689B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019960043243A KR100226689B1 (en) 1996-09-30 1996-09-30 Apparatus for extracting and fitting data from multiplexed data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019960043243A KR100226689B1 (en) 1996-09-30 1996-09-30 Apparatus for extracting and fitting data from multiplexed data

Publications (2)

Publication Number Publication Date
KR19980023743A true KR19980023743A (en) 1998-07-06
KR100226689B1 KR100226689B1 (en) 1999-10-15

Family

ID=19475764

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019960043243A KR100226689B1 (en) 1996-09-30 1996-09-30 Apparatus for extracting and fitting data from multiplexed data

Country Status (1)

Country Link
KR (1) KR100226689B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100770448B1 (en) * 2001-06-07 2007-10-26 어보브반도체 주식회사 Bit extracting device and microprocessor using this bit extracting device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06225166A (en) * 1993-01-26 1994-08-12 Ricoh Co Ltd Coding and decoding device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100770448B1 (en) * 2001-06-07 2007-10-26 어보브반도체 주식회사 Bit extracting device and microprocessor using this bit extracting device

Also Published As

Publication number Publication date
KR100226689B1 (en) 1999-10-15

Similar Documents

Publication Publication Date Title
US5428356A (en) Variable length code decoder utilizing a predetermined prioritized decoding arrangement
KR101208233B1 (en) Two step arithmetic decoding with conversion into an intermediate format
CA2091815C (en) Variable length code word decoder for use in digital communication systems
US6008745A (en) Variable length decoding using lookup tables
US5220325A (en) Hierarchical variable length decoder for digital video data
US6954555B2 (en) Variable length coding unit and variable length decoding unit
EP2257069A2 (en) Encoding apparatus and encoding method, and decoding apparatus and decoding method
JP2002330410A (en) Signal processing unit and signal processing method
EP0745289A1 (en) Syntax-based arithmetic coding for low bit rate videophone
EP1014589A2 (en) A variable length codeword decoder
JPH08505513A (en) Two-step synchronization scheme for digital video decoder
US6054942A (en) System and method for scaleable encoding and decoding of variable bit frames
EP0878055A2 (en) Variable length decoding
KR100601602B1 (en) Bitstream decoding apparatus
JP3341781B2 (en) Image decoding device and image encoding device
US5067023A (en) Image data coding apparatus
JP4406481B2 (en) Graphic data compression
KR0180164B1 (en) A variable length decoder
KR100226689B1 (en) Apparatus for extracting and fitting data from multiplexed data
US5432512A (en) Apparatus for decoding variable length codes
JP3853439B2 (en) High speed variable length code decoding apparatus and high speed variable length code decoding method
JPH0316812B2 (en)
US5652582A (en) Method of high speed Huffman coding and decoding of lab color images
KR100219233B1 (en) Apparatus for parallel extracting and fitting data from multiplexed data
EP0553837B1 (en) Moving-image signal encoding apparatus

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20120702

Year of fee payment: 14

LAPS Lapse due to unpaid annual fee