KR0121104B1 - Variable length corder - Google Patents
Variable length corderInfo
- Publication number
- KR0121104B1 KR0121104B1 KR1019940000254A KR19940000254A KR0121104B1 KR 0121104 B1 KR0121104 B1 KR 0121104B1 KR 1019940000254 A KR1019940000254 A KR 1019940000254A KR 19940000254 A KR19940000254 A KR 19940000254A KR 0121104 B1 KR0121104 B1 KR 0121104B1
- Authority
- KR
- South Korea
- Prior art keywords
- signal
- output
- value
- input
- shift
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
- H04N19/1887—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a variable length codeword
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03K—PULSE TECHNIQUE
- H03K19/00—Logic circuits, i.e. having at least two inputs acting on one output; Inverting circuits
- H03K19/20—Logic 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, Expansion, Code Conversion, And Decoders (AREA)
Abstract
Description
제1도는 일반적인 부호화기의 블록도.1 is a block diagram of a general encoder.
제2도는 제1도에 대한 동작 진리표.FIG. 2 is a motion truth table for FIG. 1. FIG.
제3도는 본 발명의 가변길이 코드화기에 대한 일실시 예시 블록도.3 is an exemplary block diagram of a variable length coder of the present invention.
제4도는 제3도에서 입력부에 대한 일실시 예시 블록도.4 is an exemplary block diagram of an input unit in FIG.
제5도는 제3도에서 출력부에 대한 일실시 예시블록도.5 is an exemplary block diagram of an output unit in FIG.
제6도는 제3도에서 제어부에 대한 일실시 예시 블록도.6 is an exemplary block diagram of a control unit in FIG.
제7도는 제6도 및 제8도 각부의 파형도.7 is a waveform diagram of each part of FIG. 6 and FIG.
제9도의 (a) 내지(n)는 본 발명의 동작 타이밍도.9 (a) to 9 (n) are operation timing diagrams of the present invention.
* 도면의 주요부분에 대한 부호의 설명* Explanation of symbols for main parts of the drawings
10 : 입력부 20 : 시프터10: input unit 20: shifter
30 : 출력부 40 : 제어부30: output unit 40: control unit
본 발명은 가변길이 코드화기에 관한 것으로, 특히 좀 더 효과적이고 응용가능성이 넓은 구성의 코드화기를 구현하는데 적당하도록한 가변길이 코드화기에 관한 것이다.FIELD OF THE INVENTION The present invention relates to a variable length coder, and more particularly to a variable length coder that is adapted to implement a coder of a more effective and widely applicable configuration.
일반적인 코드화기의 작용을 제1도 및 제2도를 참조하여 설명하면 다음과 같다.The operation of the general coder will now be described with reference to FIGS. 1 and 2.
런렝스코드데이타 출력인 8비트의 브이엘씨(VLC : Variable Length Coding) 입력데이타(VLCdata in)가 공급되면, 이는 8비트레지스터(D1)와 피엘에이(PLA)를 통해 코드워드와 코드렝스가 16비트의 크기로 출력된다.When 8-bit VLC (VL) input data (VLC data in ), which is a run length code data output, is supplied, it is codeword and code length through 8-bit register (D 1 ) and PLA (PLA). Is output in size of 16 bits.
코드워드는 계속 연결되는 형태로 배럴시프터(BS1)를 통해 16비트레지스터(W1)에 쌓이고, 코드렝스는 16비트레지스터(L0)에 저장되어 배럴시프터(BS1),(BS2)의 시프트값을 결정하게 된다.The codewords are continuously connected to the 16-bit register W1 through the barrel shifter BS 1 , and the code length is stored in the 16-bit register L 0 to store the barrel shifters BS 1 and BS 2 . The shift value is determined.
한편, 16비트레지스터(L1),조합로직(C3)배럴시프터(BS3)등은 하나의 가산기처럼 작용하여 렝스값을 계속 누적시키게 되며, 16이 넘을 때마다 16비트레지스터(W2)값이 외부로 출력되는데, 이의 동작은 제2도에서와 같다.On the other hand, a 16-bit register (L 1), a combination logic (C 3) a barrel shifter (BS 3) and the like to act as a single adder, and thereby continue to accumulate a length value, every time 16 is over 16-bit register (W 2) The value is output externally, the operation of which is the same as in FIG.
조합로직(Combinational Logic)(C3)은 배럴시프터(BS3)의 16번째 비트를 입력하여 그 비트가 1이 될 때 16비트레지스터(W2)에 쌓인 데이터가 출력되도록 제어하는 기능을 수행한다.The Combinational Logic C 3 inputs the 16th bit of the barrel shifter BS 3 to control the output of the data accumulated in the 16-bit register W 2 when the bit becomes 1. .
그러나 이와 같은 부호화기에 있어서는 배럴시프터를 3개나 사용하게 되어 제품의 소형화에 어려움이 따르고, 원가가 상승되는 등의 결함이 있었다.However, in the encoder, three barrel shifters are used, resulting in difficulty in miniaturizing the product and increasing the cost.
따라서, 본 발명의 목적은 이와 같은 제반 결함을 해결하기 위하여 좀 더 간단한 구성의 부호화기를 창안하는데 있는 것으로, 이를 첨부한 도면에 의하여 상세히 설명한다.Accordingly, an object of the present invention is to create an encoder of a simpler configuration in order to solve such a general defect, which will be described in detail with reference to the accompanying drawings.
본 발명의 기본 구성은 외부입력신호를 코딩하여 렝스값으로 출력하고, 다른 한편으로는 엔코딩철하여 시프트수단의 일측입력으로 공급하며, 그 시프터수단으로부터 귀환되는 시프트신호를 이용하여 프리코드신호를 생성하여 시프트수단의 타측입력으로 공급하는 입력수단과, 상기 입력수단으로부터 2N 비트의 데이터를 공급받고, 제어수단으로부터 방향신호 및 시프트신호를 공급받아 입력데이타를 시프트값만큼 시프트시켜 출력하는 시프트수단과, 상기 제어수단으로부터 공급되는 로드신호에 의해 지정되는 소정 시점에서 상기 시프트수단에서 출력되는 데이터 중 하위 n비트데이타를 래치하여 출력하는 출력수단과, 현재 코딩되고 있는 코드의 길이에 따른 방향신호를 생성하고, 로드신호에 따른 N비트의 렝스값, N비트 이전의 한계값, N비트의 합계값을 시프트신호로 출력하는 제어수단으로 구성한다.The basic configuration of the present invention codes an external input signal and outputs it as a length value, and on the other hand, encodes it and supplies it to one side input of the shift means, and generates a precode signal using the shift signal fed back from the shifter means. Input means for supplying to the other side input of the shift means, a shift means for receiving 2N bits of data from the input means, receiving a direction signal and a shift signal from the control means, and shifting the input data by a shift value and outputting the shift data; Generating output means for latching and outputting the lower n-bit data of the data output from the shift means at a predetermined time point designated by the load signal supplied from the control means, and a direction signal according to the length of the code currently being coded; , N bit length according to load signal, limit value before N bit, N bit Constitute a control means for outputting a shift signal to the threshold.
제3도는 본 발명의 가변길이 코드화기에 대한 일실시 예시 블록도로서 이에 도시한 바와 같이, 외부입력신호(EXTin)를 코딩하여 그 코딩된 렝스값(LENG)을 제어부(40)측으로 공급하고, 다른 한편으로는 엔코딩 처리하여 시프터(20)의 일측입력(Code)으로 공급하며, 그 시프터(20)로부터 귀환되는 시프트신호(SHT_Hi)를 클럭신호(CK)에 동기되게 시프트시켜 프리코드신호(Pre_Code)를 생성하고, 이를 그 시프터(20)의 타측입력으로 공급하는 입력부(10)와, 상기 입력부(10)로부터 2N 비트의 데이터를 공급받고, 제어부(40)로부터 방향신호(DIR) 및 시프트신호(Sht)를 공급받아 입력데이타를 시프트값만큼 시프트시켜 출력하는 시프터(20)와, 상기 제어부(40)로부터 공급되는 로드신호(LD)에 의해 지정되는 소정 시점에서 상기 시프터(20)에서 출력되는 데이터 중 하위 n비트데이타를 래치하여 출력하는 출력부(30)와, 현재 코딩되고 있는 코드의 길이(LENG)에 따른 방향신호(Dir)를 생성하고, 로드신호(LD)에 따른 N비트의 렝스값(LENG),N비트 이전의 합계값(N-prev_SUM), N비트의 합계값(SUM)을 시프트신호(Sht)로 출력하는 제어부(40)로 구성한 것으로, 이와 같이 구성한 본 발명의 작용 및 효과를 첨부한 제4도 내지 제9도를 참조하여 상세히 설명하면 다음과 같다.3 is an exemplary block diagram of a variable length coder according to the present invention. As shown therein, an external input signal EXT in is coded, and the coded length LENG is supplied to the controller 40. On the other hand, it is encoded and supplied to the one-side input Code of the shifter 20, and the shift signal SHT_Hi returned from the shifter 20 is shifted in synchronization with the clock signal CK to precode the signal. (Pre_Code) is generated, and the input unit 10 for supplying this to the other input of the shifter 20, the 2N bit data is supplied from the input unit 10, the direction signal DIR and The shifter 20 receives the shift signal Sht and shifts the input data by a shift value, and outputs the shifted signal Sht, and at the predetermined time designated by the load signal LD supplied from the controller 40, the shifter 20 Lowest n bit data among output data An output unit 30 for latching and outputting the signal, and a direction signal Dir according to the length LENG of the code currently being coded, and the N-bit length values LENG and N according to the load signal LD. A fourth configuration is provided by the controller 40 which outputs the sum value N-prev_SUM before the bit and the sum value SUM of the N bits as the shift signal Sht. Referring to Figures 9 to 9 in detail as follows.
입력부(10)는 제3도 및 제4도에서와 같이, 외부입력신호(EXTin)가 입력부(10)에 공급되면, 이는 렝스엔코더(11)를 통해 코딩되어 그 코딩된 렝스값(LENG)이 제어부(40)측으로 곧바로 출력되지만, 다른 한편으로는 코드엔코더(12)를 통해 엔코딩된 다음 레지스터(13)의 입력데이타(D)로 공급되어 클럭신호(CK)의 상승에지신호에 동기하여 시프터(20)의 일측 입력으로 출력되고, 그 시프터(20)로부터 귀환되는 시프트신호(SHT_Hi)는 레지스터(14)에서 클럭신호(CK)에 동기하여 출력되는데, 이 출력신호가 프리코드신호(Pre_Code)로서 이는 시프터(20)의 타측입력으로 공급된다.When the external input signal EXT in is supplied to the input unit 10, as shown in FIGS. 3 and 4, the input unit 10 is coded through the length encoder 11 and its coded length value LENG. The controller 40 is directly output to the control unit 40, but on the other hand, it is encoded through the code encoder 12 and then supplied to the input data D of the register 13 to synchronize with the rising edge signal of the clock signal CK. The shift signal SHT _Hi , which is output to one side of the input 20 and fed back from the shifter 20, is output in synchronization with the clock signal CK in the register 14, and this output signal is precoded. This is fed to the other input of the shifter 20.
상기 시프터(20)는 양방향 배럴시프터로 구성되어 2N 비트의 데이터, 방향신호(DIR), 시프트신호(Sht)를 공급받아 방향신호(DIR)로 출력방향(0 또는 1)을 결정하고, 입력데이타를 시프트값만큼 시프트시켜 출력하게 된다.The shifter 20 is configured as a bidirectional barrel shifter, and receives the 2N bit data, the direction signal DIR, and the shift signal Sht to determine the output direction (0 or 1) using the direction signal DIR, and input data. Is outputted by shifting by the shift value.
한편, 출력부(30)는 제3도 및 제5도에서와 같이, 클럭신호(CK)가 인버터(I31)를 통해 반전된 후 앤드게이트(AD31)에서 로드신호(LD)와 앤드조합되어 레지스터(31)의 클럭신호(CK)로 공급되고, 이 클럭신호(CK)에 동기하여 상기 시프터(20)에서 출력되는 데이터 중에서 하위 n비트데이타를 래치하여 출력하게 되는데, 그 래치 시점은 제어부(40)로부터 입력되는 로드신호(LD)가 하이로 액티브되고, 클럭신호(CK)가 로우로 천이되는 시점이다.Meanwhile, as shown in FIGS. 3 and 5, the output unit 30 performs an AND combination with the load signal LD at the AND gate AD 31 after the clock signal CK is inverted through the inverter I 31 . And supplied to the clock signal CK of the register 31, and latches and outputs the lower n-bit data among the data output from the shifter 20 in synchronization with the clock signal CK. It is a time point when the load signal LD input from 40 is activated high and the clock signal CK transitions low.
제어부(40)는 제3도 및 제6도에서와 같이, 상기 입력부(10)로부터 렝스값(LENG)을 입력받고, 클럭신호(CK)를 입력받아 시프트신호(Sht),로드신호(LD) 및 방향신호(Dir)를 생성하는 블록으로서 이의 작용을 제6도 내지 제8도를 참조하여 설명하면 하기와 같다.As shown in FIGS. 3 and 6, the controller 40 receives the length value LENG from the input unit 10, receives the clock signal CK, and receives the shift signal Sht and the load signal LD. And as a block for generating the direction signal (Dir) will be described with reference to Figures 6 to 8 as follows.
현재 코딩되고 있는 코드의 길이(LENG)를 가산기(41)에서 계속 누산하고 있다가 그 누산된 값이 소정값(N)보다 커지는 순간 앤드게이트(AD43)의 출력이 하이가 되고, 이는 지연기(45)를 통해 소정시간 지연된후 출력되는데, 이 신호가 바로 방향신호(Dir)이다.The length LENG of the code currently being coded is continuously accumulated in the adder 41, and the output of the AND gate AD 43 becomes high as the accumulated value becomes larger than the predetermined value N, which is a delay device. It is output after a predetermined time delay through 45, and this signal is the direction signal Dir.
그리고, 시프트신호(Sht)로는 로드신호(LD)가 로우인 동안에는 N비트의 렝스값(LENG)이 출력되고, 방향신호(Dir)가 하이인 동안 N비트 이전의 합계값(N-prev_SUM)이 출력되며, 로드신호(LD)가 하이이고, 클럭신호(CK)가 로우인 동안에는 N비트의 합계값(Sum)이 출력된다.As the shift signal Sht, the N-bit length value LENG is output while the load signal LD is low, and the sum value N-prev_SUM before N-bit is output while the direction signal Dir is high. The sum value Sum of N bits is output while the load signal LD is high and the clock signal CK is low.
여기서, 미설명된 제9도는 N=8, M=3인 경우를 예로하여 본 발명의 동작과정에 대한 타이밍도를 보인 것이다.Here, FIG. 9 illustrates a timing diagram of an operation process of the present invention, taking the case of N = 8 and M = 3 as an example.
이상에서 상세히 설명한 바와 같이 본 발명은 종래에 비하여 간단한 구성으로 가변길이 코드화기를 구현함으로써 제품의 소형화에 기여하고, 배럴시프터의 사용 갯수를 줄여 원가를 절감할 수 있는 효과가 있다.As described in detail above, the present invention contributes to the miniaturization of a product by implementing a variable length coder with a simple configuration as compared with the conventional art, and has an effect of reducing the cost by reducing the number of barrel shifters.
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019940000254A KR0121104B1 (en) | 1994-01-08 | 1994-01-08 | Variable length corder |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019940000254A KR0121104B1 (en) | 1994-01-08 | 1994-01-08 | Variable length corder |
Publications (2)
Publication Number | Publication Date |
---|---|
KR950024579A KR950024579A (en) | 1995-08-21 |
KR0121104B1 true KR0121104B1 (en) | 1997-11-18 |
Family
ID=19375409
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1019940000254A KR0121104B1 (en) | 1994-01-08 | 1994-01-08 | Variable length corder |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR0121104B1 (en) |
-
1994
- 1994-01-08 KR KR1019940000254A patent/KR0121104B1/en not_active IP Right Cessation
Also Published As
Publication number | Publication date |
---|---|
KR950024579A (en) | 1995-08-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5436626A (en) | Variable-length codeword encoder | |
US4216426A (en) | Self-clocked data transmission system having automatic signal reversing means | |
KR0178201B1 (en) | Variable length decoding apparatus | |
JPH088755A (en) | High-speed variable-length decoder | |
US4282601A (en) | Three level data transmission system having means for seeking a constant average value for the transmitted signals | |
KR0152032B1 (en) | Variable length decoder for image signal | |
GB1462889A (en) | Electrical encoding and decoding apparatus | |
KR960003452B1 (en) | Vlc | |
KR0121104B1 (en) | Variable length corder | |
US5818894A (en) | High speed barrel shifter | |
US7321628B2 (en) | Data transmission system with reduced power consumption | |
KR960036748A (en) | Variable-length decoding device | |
KR100518141B1 (en) | Decode circuit, code conversion circuit and code conversion method | |
KR860001344B1 (en) | Digital data code conversion circuit for variable word-length data code | |
CN1251464C (en) | Information processing system | |
KR960005200B1 (en) | Variable length decoder | |
KR100304868B1 (en) | Variable length decoder | |
JP2728818B2 (en) | Variable length decoder | |
JP2536490B2 (en) | Run-length encoding device | |
KR960013230B1 (en) | Data packing circuit for digital video encoder | |
KR920005244Y1 (en) | Decoding circuit of digital repeated signal | |
KR0118715Y1 (en) | Modulo binary addition circuit | |
KR100321735B1 (en) | Address counter improving high frequency characteristics | |
KR960011111B1 (en) | Variable length decoder of digital image signal | |
JPH08223043A (en) | Manchester coding circuit |
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 | ||
LAPS | Lapse due to unpaid annual fee |