KR100338952B1 - Address generating circuit for zig-zag scanning - Google Patents

Address generating circuit for zig-zag scanning Download PDF

Info

Publication number
KR100338952B1
KR100338952B1 KR1019990064694A KR19990064694A KR100338952B1 KR 100338952 B1 KR100338952 B1 KR 100338952B1 KR 1019990064694 A KR1019990064694 A KR 1019990064694A KR 19990064694 A KR19990064694 A KR 19990064694A KR 100338952 B1 KR100338952 B1 KR 100338952B1
Authority
KR
South Korea
Prior art keywords
signal
counter
bit
decrease
output signal
Prior art date
Application number
KR1019990064694A
Other languages
Korean (ko)
Other versions
KR20010064491A (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 KR1019990064694A priority Critical patent/KR100338952B1/en
Publication of KR20010064491A publication Critical patent/KR20010064491A/en
Application granted granted Critical
Publication of KR100338952B1 publication Critical patent/KR100338952B1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/06Addressing a physical block of locations, e.g. base addressing, module addressing, memory dedication
    • G06F12/0646Configuration or reconfiguration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/24Resetting means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/32Address formation of the next instruction, e.g. by incrementing the instruction counter
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C8/00Arrangements for selecting an address in a digital store
    • G11C8/06Address interface arrangements, e.g. address buffers
    • 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

Abstract

본 발명은 지그재그 스캐닝을 위한 어드레스 발생기에 관한 것으로, 종래의 기술에 있어 억세스할 메모리내 블록의 크기가 4, 8, 16등으로 가변적으로 사용하는 경우 어드레스 발생 회로의 호환성이 결여되어 각각에 대한 서로 다른 어드레스를 발생하는 어드레스 발생회로가 요구됨으로써, 전체적인 설계 블록의 크기가 증가함에 따라 지연시간 및 회로의 크기가 급증하게 되는 문제점이 있었다. 따라서, 본 발명은 상기와 같은 종래의 문제점을 해결하기 위하여 창안한 것으로, 억세스할 메모리내 이미지 블록의 크기를 가변적으로 사용하는 경우, 구현하고자 하는 최대 크기로 설계후 사용자의 필요에 따라 가변되는 상기 이미지 블록의 크기에 따라 하나의 어드레스 발생 회로에서 그에 적합한 어드레스를 발생함으로써, 상기 이미지 블록의 크기에 상관없이 어드레스 발생 회로의 수를 최소함에 따라 발생되는 지연 시간 및 회로 면적의 증가를 방지하는 효과가 있다.The present invention relates to an address generator for zigzag scanning. In the prior art, when a variable size of a block in a memory to be accessed is used such as 4, 8, 16, etc., the address generation circuit lacks compatibility and thus, Since an address generating circuit for generating another address is required, there is a problem that the delay time and the circuit size increase rapidly as the size of the overall design block increases. Accordingly, the present invention has been devised to solve the above-mentioned problems. When the size of the image block in the memory to be accessed is variably used, the design variable to the maximum size to be implemented is changed according to the needs of the user. By generating a suitable address in one address generating circuit according to the size of the image block, there is an effect of preventing an increase in delay time and circuit area generated by minimizing the number of address generating circuits regardless of the size of the image block. have.

Description

지그재그 스캐닝을 위한 어드레스 발생기{ADDRESS GENERATING CIRCUIT FOR ZIG-ZAG SCANNING}Address generator for zigzag scanning {ADDRESS GENERATING CIRCUIT FOR ZIG-ZAG SCANNING}

본 발명은 지그재그 스캐닝을 위한 어드레스 발생기에 관한 것으로, 특히 가변 길이 코더/디코더(Variable Length Coder/Decoder)등의 작업이 포함되는 특정 순서에 의한 데이터 억세스가 필요한 이미지 프로세싱 등을 수행하기에 적합하도록 한 지그재그 스캐닝을 위한 어드레스 발생기에 관한 것이다.The present invention relates to an address generator for zigzag scanning, and more particularly, to be suitable for performing image processing requiring data access in a specific order including operations such as a variable length coder / decoder. An address generator for zigzag scanning.

도 1은 종래 어드레스 발생기의 구성을 보인 블록도로서, 이에 도시된 바와 같이 리셋신호에 의해 초기화된 후, 시스템 클럭을 카운팅하여 출력하는 엔비트 카운터(10)와; 상기 엔비트 카운터(10)의 출력신호(ADDR)를 입력받아 원하는 형태의 어드레스 신호(ADDR)로 변환하여 출력하는 어드레스 변환부(20)로 구성되며, 이와 같이 구성된 종래 기술에 따른 동작과정을 첨부한 도 2를 참조하여 상세히 설명한다.1 is a block diagram showing the configuration of a conventional address generator, which is initialized by a reset signal as shown in the figure, and then counts and outputs a system clock counting counter 10; And an address conversion unit 20 which receives the output signal ADDR of the NB counter 10 and converts it into an address signal ADDR of a desired form, and attaches an operation process according to the related art. This will be described in detail with reference to FIG. 2.

우선, 이미지 처리에 사용되는 가변 길이 코더/디코더의 경우 데이터의 처리는 도 2에 도시된 바와 같이 N×N의 블록 형태로 나뉘어 처리되며, 라스트 스캐닝에 따른 어드레스와 지그재그 스캐닝에 따른 어드레스의 발생 순서를 살펴보면, 우선, 라스트 스캐닝은 어드레스 변환부의 구조와 동일한 순서로 어드레스를 발생시켜 데이터를 읽는 방식으로, 즉, 0, 1, 2, 3, 4, 5, …61, 62, 63의 순서로 데이터의 어드레스를 순차적으로 증가시켜 가며 데이터를 처리하게 된다.First, in the case of a variable length coder / decoder used for image processing, data processing is divided into N × N block forms as shown in FIG. 2, and an order of generating an address according to last scanning and an address according to zigzag scanning is shown. First, the last scanning method generates the addresses in the same order as the structure of the address conversion unit and reads data, that is, 0, 1, 2, 3, 4, 5,... The data is sequentially processed by increasing the address of the data in the order of 61, 62, and 63.

그러나, 지그재그 스캐닝은 어드레스 변환부의 구조와는 다르게 0, 1, 8, 16, 9,2, …55, 62, 63의 순서로 데이터를 읽어 들여 처리하게 된다.However, zigzag scanning differs from 0, 1, 8, 16, 9, 2,... The data will be read and processed in the order of 55, 62, and 63.

따라서, 일반적인 엔비트 카운터(10)가 라스트 스캔 방식의 어드레스(ADDR)를 출력하게 되면, 이를 입력받은 어드레스 변환부(20)에서 지그재그 스캔 방식에 적합한 어드레스를 최종 출력 어드레스(ADDR)로 변환하여 출력하였다.Therefore, when the general enbit counter 10 outputs the last scan address ADDR, the address converter 20 receiving the input converts the address suitable for the zigzag scan method into the final output address ADDR. It was.

예를 들어 상기 어드레스 변환부(20)가 롬인 경우, 상기 어드레스 변환부(20)는 상기 엔비트 카운터(10)에서 출력되는 어드레스(ADDR)에 해당하는 최종 어드레스를 테이블의 형태로 저장한 뒤, 상기 엔비트 카운터(10)에서 출력되는 어드레스(ADDR)와 매칭되는 어드레스를 최종 어드레스(ADDR)로 출력하게 된다.For example, when the address conversion unit 20 is a ROM, the address conversion unit 20 stores a final address corresponding to the address ADDR output from the enbit counter 10 in the form of a table. The address matching the address ADDR output from the N-bit counter 10 is output as the final address ADDR.

상기와 같이 종래의 기술에 있어서 억세스할 메모리내 블록의 크기가 4, 8, 16등으로 가변적으로 사용하는 경우 어드레스 발생 회로의 호환성이 결여되어 각각에 대한 서로 다른 어드레스를 발생하는 어드레스 발생회로가 요구됨으로써, 전체적인 설계 블록의 크기가 증가함에 따라 지연시간 및 회로의 크기가 급증하게 되는 문제점이 있었다.As described above, when the size of a block in the memory to be accessed is variablely used such as 4, 8, 16, etc., there is a lack of compatibility of the address generator circuit and an address generator circuit for generating different addresses for each is required. As a result, the delay time and the size of the circuit increase rapidly as the size of the overall design block increases.

따라서, 본 발명은 상기와 같은 종래의 문제점을 해결하기 위하여 창안한 것으로, 구현하고자 하는 최대 크기의 회로를 구현한 후 필요에 따라 상기 이미지 블록의 크기를 가변적으로 지정하여 사용함으로써 이미지 프로세싱 등을 수행하기에 적합하도록 한 지그재그 스캐닝을 위한 어드레스 발생기를 제공함에 그 목적이 있다.Accordingly, the present invention was devised to solve the above-described problems, and implements image processing by implementing a circuit of the maximum size to be implemented and variably designating the size of the image block as necessary. It is an object of the present invention to provide an address generator for zigzag scanning suitable for the following.

도 1은 종래 어드레스 발생기의 구성을 보인 블록도.1 is a block diagram showing the configuration of a conventional address generator.

도 2는 도 1에서 지그재그 스캔 방식에 따른 데이터 처리 순서를 보인 패턴도.FIG. 2 is a pattern diagram illustrating a data processing sequence according to the zigzag scan method in FIG. 1. FIG.

도 3은 본 발명 지그재그 스캐닝을 위한 어드레스 발생기의 구성을 보인 블록도.3 is a block diagram showing the configuration of an address generator for zigzag scanning of the present invention;

도 4는 도 3에서 엔비트 자체 증감 카운터의 구성을 보인 블록도.4 is a block diagram showing the configuration of the n-bit self increment counter in FIG.

도 5는 도 3에서 상태 제어기의 구성을 보인 회로도.5 is a circuit diagram showing the configuration of a state controller in FIG.

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

100 : 엔비트 자체 증감 카운터 101 : 최대 최소 검출부100: Enbit self increase / decrease counter 101: Maximum minimum detector

102 : 알에스 플립플롭 103, 130, 140 : 엔비트 증감 카운터102: flip flip flops 103, 130, 140: Enbit increase and decrease counter

110 : 엔비트 감소 카운터 120 : 상태 제어기110: n-bit decrement counter 120: state controller

OR1 : 논리합게이트 I1∼I4 : 인버터OR1: logical sum gate I1 to I4: inverter

NAND1,NAND2 : 부정곱 게이트 AND1∼AND3 : 논리곱 게이트NAND1, NAND2: Integer gate AND1-AND3: Logic gate

상기와 같은 목적을 달성하기 위한 본 발명의 구성은 리셋신호에 의해 리셋되어 경계 신호에 의해 대각선방향의 길이를 업다운 카운팅한 자체 증감 출력 신호를 출력하는 엔비트 자체 증감 카운터와; 경계 신호에 의해 상기 엔비트 자체 증감 카운터의 자체 증감 출력 신호를 초기값으로 받아들여 매 시스템 클럭마다 '1' 감소하여 자신의 값이 '1' 또는 '0'인지 판단하여 '0'일 경우 상기 엔비트 자체 증감 카운터를 구동함과 아울러 새로운 초기값을 로드하는 엔비트 감소 카운터와; 리셋신호에 의해 리셋되어 시스템 클럭에 의해 입력되는 제1 증가 및 감소 신호에 의해 상위 어드레스를 증감시켜 출력하는 상위 엔비트 증감 카운터와; 리셋신호에 의해 리셋되어 시스템 클럭에 의해 입력되는 제2 증가 및 감소 신호에 의해 하위 어드레스를 증감시켜 출력하는 하위 엔비트 증감 카운터와; 상기 엔비트 자체 증감 카운터 및 엔비트 감소 카운터의 출력신호를 입력받아 상기 상위 및 하위 엔비트 증감 카운터의 최종 어드레스 신호에 의해 상기 상위 및 하위 엔비트 증감 카운터의 업다운 동작을 제어하는 상태 제어기로 구성하여 된 것을 특징으로 한다.The configuration of the present invention for achieving the above object comprises: an Enbit self-decrease counter for outputting a self-decrease output signal which is reset by a reset signal and counts down a diagonal length by a boundary signal; The threshold signal accepts the self-decrease output signal of the N-bit self-deceleration counter as an initial value and decreases it by 1 for every system clock to determine whether its value is '1' or '0'. An n-bit decrement counter for driving the n-bit self-deceleration counter and loading a new initial value; An upper n-bit increase / decrease counter which is reset by a reset signal and increases and decreases an upper address by a first increase and decrease signal input by a system clock; A lower n-bit increase / decrease counter which is reset by a reset signal and increases and decreases a lower address by a second increase and decrease signal input by a system clock; And a state controller that receives the output signals of the n-bit self-decrease counter and the n-bit decrement counter and controls the up-down operation of the upper and lower enbit increase / decrease counters by the final address signals of the upper and lower enbit increase / decrease counters. It is characterized by.

이하, 본 발명에 따른 일실시예에 대한 동작과 작용효과를 첨부한 도면을 참조하여 상세히 설명하면 다음과 같다.Hereinafter, with reference to the accompanying drawings, the operation and effect of an embodiment of the present invention will be described in detail.

도 3은 본 발명 지그재그 스캐닝을 위한 어드레스 발생기의 구성을 보인 블록도로서, 이에 도시한 바와 같이 리셋신호(RESET)에 의해 리셋되어 경계 신호(B)에 의해 대각선방향의 길이를 카운팅하는 엔비트 자체 증감 카운터(100)와; 경계 신호(B)에 의해 상기 엔비트 자체 증감 카운터(100)의 출력신호(LSB)를 초기값으로 받아들여 매 시스템 클럭(SYSTEM CLOCK)마다 '1' 감소하여 자신의 값이 '1' 또는 '0'인지 판단하여 '0'일 경우 상기 엔비트 자체 증감 카운터(100)를 구동함과 아울러 새로운초기값을 로드하는 엔비트 감소 카운터(110)와; 리셋신호(RESET)에 의해 리셋되어 시스템 클럭(SYSTEM CLOCK)에 의해 입력되는 업 또는 다운 신호(UP)(DN)에 의해 상위 어드레스(High_Addr)를 증감시켜 출력하는 엔비트 증감 카운터(130)와; 리셋신호(RESET)에 의해 리셋되어 시스템 클럭(SYSTEM CLOCK)에 의해 입력되는 업 또는 다운 신호(UP)(DN)에 의해 하위 어드레스(Low_Addr)를 증감시켜 출력하는 엔비트 증감 카운터(140)와; 상기 엔비트 자체 증감 카운터(100) 및 엔비트 감소 카운터(110)의 출력신호(LSB)(ONE)를 입력받아 상기 엔비트 증감 카운터(130)(140)의 최종 어드레스 신호(Qmax)에 의해 상기 엔비트 증감 카운터(130)(140)의 업다운 동작을 제어하는 상태 제어기(120)로 구성한다.FIG. 3 is a block diagram showing the configuration of an address generator for zigzag scanning according to the present invention. As shown in FIG. 3, an enbit itself is reset by a reset signal RESET and counts a diagonal length by a boundary signal B. As shown in FIG. Increase and decrease counter 100; The threshold signal B receives the output signal LSB of the n-bit self-deceleration counter 100 as an initial value and decreases' 1 'for every system clock so that its value is' 1' or ' An n-bit decrement counter 110 for driving the n-bit self-increment counter 100 and loading a new initial value when it is determined to be '0'; An n-bit increase / decrease counter 130 which is reset by the reset signal RESET and increases or decreases the upper address High_Addr by the up or down signal UP DN inputted by the system clock SYSTEM CLOCK; An n-bit increase / decrease counter 140 which is reset by the reset signal RESET and increases or decreases the lower address Low_Addr by the up or down signal UP DN inputted by the system clock SYSTEM CLOCK; The output signal LSB (ONE) of the n-bit self-decrease counter 100 and the n-bit decrement counter 110 is received and the final address signal Qmax of the n-bit increase / decrease counters 130 and 140 is used. The state controller 120 controls the up-down operation of the n-bit increase and decrease counters 130 and 140.

그리고, 상기 엔비트 자체 증감 카운터(100)는 도 4에 도시한 바와 같이 출력신호(CNT)를 입력받아 그 출력신호(CNT)의 모든 비트가 '1'인 최대값 및 '0'인 최소값을 검출하는 최대최소 검출부(101)와; 상기 최대 최소 검출부(101)의 최소 검출 신호(ZERO)와 리셋신호(RESET)를 논리합 연산하여 출력하는 논리합 게이트(OR1)와; 상기 최대 최소 검출부(101)의 최대 검출 신호(ONE)와 상기 논리합 게이트(OR1)의 출력신호를 각기 에스단(S)과 알단(R)으로 입력받아 출력단(Q)과 반전출력단(QB)으로 출력하는 알에스 플립플롭(102)과; 상기 리셋신호(RESET)에 의해 리셋되어 클럭단(CK)의 클럭(CLK)에 동기를 맞춰 상기 알에스 플립플롭(102)의 출력신호(Q)(QB)에 의해 상기 출력신호(CNT)를 증감시켜 출력하는 엔비트 증감 카운터(103)로 구성한다.In addition, the N-bit self-deceleration counter 100 receives an output signal CNT as shown in FIG. 4 and outputs a maximum value of '1' and a minimum value of '0' for all bits of the output signal CNT. A maximum minimum detection unit 101 for detecting; A logic sum gate (OR1) for performing a logic sum operation on the minimum detection signal (ZERO) and the reset signal (RESET) of the maximum minimum detection unit (101) and outputting the logical sum gate (OR1); The maximum detection signal ONE of the maximum minimum detection unit 101 and the output signal of the OR gate OR1 are respectively input to the S stage S and the al stage R to the output stage Q and the inverted output stage QB. An RS flip-flop 102 for outputting; The output signal CNT is reset by the output signal Q (QB) of the RS flip-flop 102 in synchronization with the clock CLK of the clock terminal CK by being reset by the reset signal RESET. It consists of the n-bit increase / decrease counter 103 which increases and decreases and outputs.

그리고, 상기 상태 제어기(120)는 도 5에 도시한 바와 같이 각기 상기 엔비트 자체 증감 카운터(100), 엔비트 감소 카운터(110) 및 엔비트 증감 카운터(130)의 출력신호(LSB)(ONE)(Ymax)를 각기 입력받아 반전하는 인버터(I1)(I2)(I3)와; 상기 엔비트 감소카운터(110)의 출력신호(ONE), 증감카운터(140)의 출력신호(Xmax) 및 인버터(I3)의 출력신호를 입력받아 부정곱 연산하는 부정곱 게이트(NAND1)와; 상기 인버터(I1)(I3)의 출력신호를 입력받아 부정곱 연산하는 부정곱 게이트(NAND2)와; 상기 인버터(I1)(I2)의 출력신호를 입력받아 논리곱 연산하는 논리곱 게이트(AND1)와; 상기 엔비트 자체 증감 카운터(100)의 출력신호(LSB) 및 인버터(I2)의 출력신호를 입력받아 논리곱 연산하는 논리곱 게이트(AND2)와; 상기 부정곱 게이트(NAND1)(NAND2)의 출력신호를 논리곱 연산하는 논리곱 게이트(AND3)와; 상기 논리곱 게이트(AND3)의 출력신호를 반전하는 인버터(I4)로 구성하며, 이와 같이 구성한 본 발명에 따른 동작과정을 상세히 설명한다.As shown in FIG. 5, the state controller 120 outputs an output signal LSB (ONE) of the enbit self-decrement counter 100, the enbit decrement counter 110, and the enbit decrement counter 130, respectively. Inverters (I1) (I2) (I3) respectively receiving and inverting (Ymax); A negative gate NAND1 that receives and outputs the output signal ONE of the n-bit reduction counter 110, the output signal Xmax of the increase / decrease counter 140, and the output signal of the inverter I3; A negative gate NAND2 that receives an output signal of the inverters I1 and I3 and performs a multiplication; An AND gate AND1 that receives the output signal of the inverters I1 and I2 and performs an AND operation; An AND gate AND2 for receiving the output signal LSB of the N-bit self-deceleration counter 100 and the output signal of the inverter I2 and performing an AND operation; An AND gate AND3 for performing an AND operation on the output signals of the AND gates NAND1 and NAND2; An inverter I4 for inverting the output signal of the AND gate AND3 will be described in detail.

지그재그 스캐닝의 경우를 하기 표 1과 같이 N×N블록 형태의 이미지 데이터 블록이 N=4일 때로 예를 들어 설명한다.The case of zigzag scanning will be described by way of example when the image data block in the form of an N × N block is N = 4 as shown in Table 1 below.

우선, 리셋신호(RESET)에 의해 엔비트 증감 카운터(130)(140) 및 엔비트 자체 증감 카운터(100)가 리셋되어 각각 출력신호(High_Addr)(Low_Addr)(LSB)를 각기 초기화한다.First, the n-bit increase / decrease counters 130 and 140 and the n-bit self-decrease counter 100 are reset by the reset signal RESET to initialize the output signals High_Addr (Low_Addr) LSB, respectively.

이때, 상기 리셋 신호(RESET)에 의하여 상기 엔비트 자체 증감 카운터(100)내 엔비트 증감 카운터(103)가 '1'로 초기화됨과 아울러 알에스 플립플롭(102)의 출력신호(Q)(QB)가 각기 디스에이블과 인에이블로 셋팅되므로, 상기 엔비트 증감 카운터(103)는 클럭단(CK)으로 입력되는 엔비트 감소 카운터(110)의 출력신호(B)에 의해 '1'씩 증가한다.At this time, the n-bit increase / decrease counter 103 in the n-bit self-deceleration counter 100 is initialized to '1' by the reset signal RESET, and the output signal Q (QB) of the RS flip-flop 102 is reset. ) Is set to disable and enable, respectively, so that the n-bit increase / decrease counter 103 is incremented by '1' by the output signal B of the n-bit decrease counter 110 input to the clock terminal CK. .

그리고, 상기 엔비트 증감 카운터(103)의 출력이 'N'이 되면 즉, 출력신호(CNT)의 모든 비트가 '1'이 되면, 최대 최소 검출부(101)는 이를 감지하여 최대 검출 신호(ONE)를 인에이블시켜 상기 알에스 플립플롭(102)을 세트시키고, 이에따라 그 알에스 플립플롭(102)의 출력신호(Q)(QB)가 각기 인에이블과 디스에이블로 셋팅되어 상기 엔비트 증감 카운터(103)를 감소모드로 동작시킨다.When the output of the n-bit increase / decrease counter 103 becomes 'N', that is, when all bits of the output signal CNT become '1', the maximum minimum detector 101 detects the maximum detection signal ONE. Enable the flip-flop (102), and accordingly, the output signal (Q) (QB) of the flip-flop (102) is set to enable and disable, respectively, so that the N-Bit counter Operate 103 in the reduced mode.

그리고, 상기 엔비트 증감 카운터(103)의 출력신호(CNT)를 입력받은 최대 최소 검출부(101)는 그 출력신호(CNT)의 모든 비트가 '0'인 최소값을 감지하여 최소 검출 신호(ZERO)를 상기 논리합 게이트(OR1)로 출력하여 상기 상기 알에스 플립플롭(102)을 리셋시킴으로써 상기 엔비트 증감 카운터(103)를 증가모드로 동작시킨다.In addition, the maximum minimum detector 101 which receives the output signal CNT of the n-bit increase / decrease counter 103 detects the minimum value of all bits of the output signal CNT as '0' and detects the minimum detection signal ZERO. The N-bit increase / decrease counter 103 is operated in the incremental mode by outputting the logic sum gate to the OR1 and resetting the RS flip-flop 102.

따라서, 상기 엔비트 자체 증감 카운터(100)는 이미지 블록의 대각선 길이를 카운팅하기 위하여 세번째 파형인 자동 증감 카운터항목으로 '1'의 값에서 시작하여 'M'의 값을 'M'클럭 동안 유지한 후, 1 증가함을 반복하다가 M=N이 된 이후부터 'M'의 값을 'M'클럭동안 유지한 후 1감소함을 반복하다가 M=1에서 정지하고, 이후 다음 블록의 시작에서 다시 앞의 동작을 반복한다.Accordingly, the n-bit self-up and down counter 100 is an auto-up and down counter item which is a third waveform in order to count the diagonal length of the image block, starting from the value of '1' and maintaining the value of 'M' for the 'M' clock. After that, it increments by 1 and keeps the value of 'M' for 'M' clock after M = N, and then decreases by 1 and then stops at M = 1, then goes back to the beginning of the next block. Repeat the operation.

그리고, 상기 엔비트 자체 증감 카운터(100)의 출력신호를 입력받은 엔비트 감소 카운터(110)는 상기 엔비트 자체 증감 카운터(100)의 값을 'M'클럭 동안 유지하는 역할을 담당하는 것으로 로드신호(RD)에 의해 현재 엔비트 자체 증감 카운터(100)의값을 초기값으로 받아들이고, 매 시스템 클럭(SYSTEM CLOCK)마다 '1'감소하여 자신의 값이 '1' 및 '0'일 경우 해당 플래그를 액티브시킨다.In addition, the N-bit decrement counter 110 receiving the output signal of the N-bit self-deceleration counter 100 is responsible for maintaining the value of the N-bit self-deceleration counter 100 during the 'M' clock. Accepts the value of the current Enbit self-deceleration counter 100 as the initial value by the signal RD, and decreases the value of '1' every system clock (SYSTEM CLOCK) so that its value is '1' and '0'. Activate.

즉, 상기 엔비트 감소 카운터(110)는 자신의 값이 '0'일 때 발생되는 경계신호(B)에 의해 상기 엔비트 자체 증감 카운터(100)를 구동함과 아울러 새로운 초기값을 로드한다.That is, the n-bit decrement counter 110 drives the n-bit self-increment counter 100 by the boundary signal B generated when its value is '0' and loads a new initial value.

따라서, 상기 엔비트 자체 증감 카운터(100)와 엔비트 감소 카운터(110)의 출력신호(LSB)(ONE)를 입력받은 상태 제어기(120)는 어드레스의 발생 순서가 0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15이므로 엔비트 증감 카운터(130)(140)에서 각기 'NUUDDNUUUNDDUUNN'과 'UDNUUUDDDUUUNDUN'순으로 동작하도록 제어한다.Accordingly, the state controller 120 which receives the output signal LSB (ONE) of the n-bit self-deceleration counter 100 and the n-bit decrement counter 110 has an order of generating addresses 0, 1, 4, 8, Since 5,2,3,6,9,12,13,10,7,11,14,15, the n-bit increase and decrease counters 130 and 140 control to operate in the order of 'NUUDDNUUUNDDUUNN' and 'UDNUUUDDDUUUNDUN', respectively.

여기서, 상기 N은 어드레스에 변동이 없는 상태(NO CHANGE)이고, U는 어드레스가 증가하는 상태(UP)이고, D는 어드레스가 감소하는 상태(DOWN)이다.Here, N is a state in which there is no change in the address (NO CHANGE), U is a state in which the address increases (UP), and D is a state in which the address decreases (DOWN).

따라서, 상기 상태 제어기(120)는 상기 출력신호(LSB)를 통해 현재 스캔 방향이 좌하에서 우상으로 이동하는지 또는 우상에서 좌하로 이동하는지를 결정하며, 상기 출력신호(ONE)에 의해 대각선 방향에서의 마지막 셀인지를 결정한다.Accordingly, the state controller 120 determines whether the current scan direction moves from the bottom left to the top right or from the top right to the bottom left through the output signal LSB, and the last state in the diagonal direction is determined by the output signal ONE. Determine if it is a cell

여기서, 상기 출력신호(LSB)가 저전위인 경우, 이를 입력받은 상태 제어기(120)는 업 신호(XU) 및 다운 신호(XD)를 각기 고전위와 저전위로 출력하여 상기 엔비트 증감 카운터(140)를 통해 하위 어드레스(Low_Addr)를 증가시키고, 업 신호(YU) 및 다운 신호(YD)를 각기 저전위와 고전위로 출력하여 상기 엔비트 증감 카운터(130)를 통해 상위 어드레스(High_Addr)를 감소시킨다.In this case, when the output signal LSB has a low potential, the state controller 120 which receives the output signal LSB outputs the up signal XU and the down signal XD at high potential and low potential, respectively, to output the enbit increase / decrease counter 140. The lower address Low_Addr is increased, and the up signal YU and the down signal YD are output at low potential and high potential, respectively, and the upper address High_Addr is decreased through the n-bit increase / decrease counter 130.

따라서, 현재 스캔 방향이 좌하에서 우상으로 이동한다.Thus, the current scan direction moves from bottom left to top right.

이때, 대각선 방향으로 마지막 셀에서는 한쪽 방향으로만 증가가 발생하므로 상기 엔비트 감소 카운터(110)의 출력신호(ONE)에 의해 상기 상태 제어기(120)는 상기 엔비트 증감 카운터(130)(140)중 하나의 카운터만 어드레스를 증가시키도록 제어한다.In this case, since the increase occurs only in one direction in the last cell in the diagonal direction, the state controller 120 causes the n-bit increase / decrease counters 130 and 140 by the output signal ONE of the n-bit decrease counter 110. Only one counter controls to increment the address.

여기서, 상기 출력신호(ONE)(LSB)가 각각 고전위와 자전위이므로 상기 상태 제어기(120)는 상기 엔비트 증감 카운터(130)를 통해 상위 어드레스(High_Addr)만 증가시킨다.Here, since the output signal ONE (LSB) is a high potential and a magnetization potential, respectively, the state controller 120 increments only an upper address High_Addr through the n-bit increment counter 130.

또한, 상기 출력신호(LSB)가 고전위인 경우, 이를 입력받은 상기 상태 제어기(120)는 업 신호(XU) 및 다운 신호(XD)를 각기 저전위와 고전위로 출력하여 상기 엔비트 증감 카운터(140)를 통해 하위 어드레스(Low_Addr)를 감소시키고, 업 신호(YU) 및 다운 신호(YD)를 각기 고전위와 저전위로 출력하여 상기 엔비트 증감 카운터(130)를 통해 상위 어드레스(High_Addr)를 증가시킨다.In addition, when the output signal LSB has a high potential, the state controller 120 which receives the output signal LSB outputs the up signal XU and the down signal XD at low potential and high potential, respectively. The lower address Low_Addr is decreased, and the up signal YU and the down signal YD are output at high potential and low potential, respectively, and the upper address High_Addr is increased through the n-bit increase / decrease counter 130.

따라서, 현재 스캔 방향이 우상에서 좌하로 이동한다.Thus, the current scan direction moves from the upper right to the lower left.

이때, 대각선 방향으로 마지막 셀에서는 한쪽 방향으로만 증가하기 위하여 상기 엔비트 감소 카운터(110)의 출력신호(ONE)가 고전위로 인가되는 경우, 상기 상태 제어기(120)는 상기 엔비트 증감 카운터(130)를 통해 상위 어드레스(High_Addr)만 증가시킨다.In this case, when the output signal ONE of the n-bit decrement counter 110 is applied at high potential in order to increase only in one direction in the last cell in the diagonal direction, the state controller 120 performs the n-bit increase / decrease counter 130. Increase only the upper address (High_Addr).

그리고, 상위 어드레스(High_Addr) 및 하위 어드레스(Low_Addr)의 끝을 알리는 상기 엔비트 증감 카운터(130)(140)에서 출력되는 최종 어드레스 신호(Qmax)가 동시에 고전위로 입력되면, 상기 상태 제어기(120)는 마지막 어드레스가 출력되었음을 판단한다.When the final address signal Qmax output from the n-bit increase / decrease counters 130 and 140 indicating the end of the high address High_Addr and the low address Low_Addr is simultaneously input at high potential, the state controller 120 Determines that the last address has been output.

상기에서 상세히 설명한 바와 같이, 본 발명은 구현하고자 하는 최대 크기로 설계후 사용자의 필요에 따라 가변되는 상기 이미지 블록의 크기에 따라 하나의 어드레스 발생 회로에서 그에 적합한 어드레스를 발생함으로써, 상기 이미지 블록의 크기에 상관없이 어드레스 발생 회로의 수를 최소화함에 따라 발생되는 지연 시간 및 회로 면적의 증가를 방지시키는 효과가 있다.As described in detail above, the present invention is designed to the maximum size to be implemented, the size of the image block by generating a suitable address in one address generating circuit according to the size of the image block which is variable according to the needs of the user Regardless, the number of address generation circuits can be minimized, thereby preventing an increase in delay time and circuit area.

Claims (3)

리셋신호에 의해 리셋되고 경계 신호에 의해 대각선방향의 길이를 업다운 카운팅한 자체 증감 출력 신호를 출력하는 엔비트 자체 증감 카운터와; 경계 신호에 의해 상기 엔비트 자체 증감 카운터의 자체 증감 출력 신호를 초기값으로 받아들여 매 시스템 클럭마다 '1' 감소하여 자신의 값이 '1' 또는 '0'인지 판단하여 '0'일 경우 상기 엔비트 자체 증감 카운터를 구동함과 아울러 새로운 초기값을 로드하는 엔비트 감소 카운터와; 리셋신호에 의해 리셋되고 시스템 클럭에 의해 입력되는 제1 증가 및 감소 신호에 의해 상위 어드레스를 증감시켜 출력하는 상위 엔비트 증감 카운터와; 리셋신호에 의해 리셋되고 시스템 클럭에 의해 입력되는 제2 증가 및 감소 신호에 의해 하위 어드레스를 증감시켜 출력하는 하위 엔비트 증감 카운터와; 상기 엔비트 자체 증감 카운터 및 엔비트 감소 카운터의 출력신호를 입력받아 상기 상위 및 하위 엔비트 증감 카운터의 최종 어드레스 신호에 의해 상기 상위 및 하위 엔비트 증감 카운터의 업다운 동작을 제어하는 상태 제어기로 구성하여 된 것을 특징으로 하는 지그재그 스캐닝을 위한 어드레스 발생기.An n-bit self-decrease counter for resetting by a reset signal and outputting a self-decreasing output signal in which the length of the diagonal direction is counted down by a boundary signal; When the self-deceleration output signal of the N-bit self-deceleration counter is received as an initial value by a boundary signal, it decreases by '1' every system clock to determine whether its value is '1' or '0'. An n-bit decrement counter for driving the n-bit self-deceleration counter and loading a new initial value; An upper n-bit increase and decrease counter for increasing and decreasing an upper address by a first increment and decrease signal inputted by a system clock and reset by a reset signal; A lower n-bit increase and decrease counter which is reset by the reset signal and increases and decreases the lower address by the second increase and decrease signals input by the system clock; And a state controller that receives the output signals of the n-bit self-decrease counter and the n-bit decrement counter and controls the up-down operation of the upper and lower enbit increase / decrease counters by the final address signals of the upper and lower enbit increase / decrease counters. Address generator for zigzag scanning. 제1항에 있어서, 상기 엔비트 자체 증감 카운터는 자체 증감 출력 신호를 입력받아 그의 최대값 및 최소값을 검출하는 최대최소 검출부와; 상기 최대 최소 검출부의 최소 검출 신호와 리셋신호를 논리합 연산하여 출력하는 논리합 게이트와; 에스단과 알단으로 입력되는 상기 최대 최소 검출부의 최대 검출 신호와 논리합 게이트의 출력신호에 의해 알에스 플립플롭 동작하는 알에스 플립플롭과; 상기 리셋신호에 의해 리셋되어 클럭단의 클럭에 동기를 맞춰 상기 알에스 플립플롭의 출력신호에 의해 출력신호를 업다운 카운팅하여 자체 증감 출력 신호로 출력하는 엔비트 증감 카운터로 구성하여 된 것을 특징으로 하는 지그재그 스캐닝을 위한 어드레스 발생기.2. The apparatus of claim 1, wherein the n-bit self-decrease counter comprises: a maximum minimum detector which receives a self-decrease output signal and detects maximum and minimum values thereof; A logic sum gate for performing an OR operation on the minimum detection signal and the reset signal of the maximum minimum detection unit and outputting the logic sum; An RS flip-flop that operates an flip-flop by a maximum detection signal of the maximum minimum detection part and an output signal of a logic sum gate input to an S-end and an al-end; And an n-bit increase / decrease counter which is reset by the reset signal and up-counts the output signal by the output signal of the flip-flop in synchronism with the clock of the clock stage, and outputs the self-increase / decrease output signal. Address generator for zigzag scanning. 제1항에 있어서, 상기 상태 제어기는 각기 엔비트 자체 증감 카운터, 엔비트 감소 카운터 및 상위 엔비트 증감 카운터의 출력신호를 각기 입력받아 반전하는 제1,제2,제3 인버터와; 상기 제3 인버터의 출력신호와 상기 엔비트 감소 카운터 및 하위 엔비트 증감 카운터의 출력신호를 입력받아 부정곱 연산하는 제1 부정곱 게이트와; 상기 제1,제3 인버터의 출력신호를 입력받아 부정곱 연산하는 제2 부정곱 게이트와; 상기 제1,제2 인버터의 출력신호를 입력받아 논리곱 연산하여 제2 감소 신호로 출력하는 제1 논리곱 게이트와; 상기 제2 인버터의 출력신호와 엔비트 자체 증감 카운터의 출력신호를 입력받아 논리곱 연산하여 제1 감소 신호로 출력하는 제2 논리곱 게이트와; 상기 제1,제2 부정곱 게이트의 출력신호를 논리곱 연산하여 제2 증가 신호로 출력하는 제3 논리곱 게이트와; 상기 제3 논리곱 게이트의 출력신호를 반전하여 제1 증가 신호로 출력하는 제4 인버터로 구성하여 된 것을 특징으로 하는 지그재그 스캐닝을 위한 어드레스 발생기.2. The apparatus of claim 1, wherein the state controller comprises: first, second, and third inverters which respectively receive and invert output signals of an enbit self-decrement counter, an enbit decrement counter, and an upper enbit decrement counter; A first negative gate that receives an output signal of the third inverter and an output signal of the n-bit decrement counter and the lower n-bit increase / decrease counter; A second negative gate that receives an output signal of the first and third inverters and performs a multiplication; A first AND gate receiving the output signal of the first and second inverters and performing an AND operation to output the second reduced signal; A second AND gate that receives the output signal of the second inverter and the output signal of the N-bit self-incrementation counter, performs an AND operation on the output signal, and outputs the first decrease signal; A third AND gate for performing an AND operation on the output signals of the first and second odd gates and outputting the second AND signal; And a fourth inverter configured to invert the output signal of the third AND gate and output the inverted signal as a first incremental signal.
KR1019990064694A 1999-12-29 1999-12-29 Address generating circuit for zig-zag scanning KR100338952B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019990064694A KR100338952B1 (en) 1999-12-29 1999-12-29 Address generating circuit for zig-zag scanning

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019990064694A KR100338952B1 (en) 1999-12-29 1999-12-29 Address generating circuit for zig-zag scanning

Publications (2)

Publication Number Publication Date
KR20010064491A KR20010064491A (en) 2001-07-09
KR100338952B1 true KR100338952B1 (en) 2002-05-31

Family

ID=19631963

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019990064694A KR100338952B1 (en) 1999-12-29 1999-12-29 Address generating circuit for zig-zag scanning

Country Status (1)

Country Link
KR (1) KR100338952B1 (en)

Also Published As

Publication number Publication date
KR20010064491A (en) 2001-07-09

Similar Documents

Publication Publication Date Title
EP0208049A2 (en) Timing generating device
US5459855A (en) Frequency ratio detector for determining fixed frequency ratios in a computer system
US7843743B2 (en) Data output circuit for semiconductor memory apparatus
KR19980082198A (en) Semiconductor device and its power-on reset circuit
KR100338952B1 (en) Address generating circuit for zig-zag scanning
US7061272B2 (en) Finite state machine circuit
JP3714875B2 (en) Gray code counter
US6107846A (en) Frequency multiplication circuit
US7259634B2 (en) Arrangement and method for digital delay line
US6639963B2 (en) Up/down gray code counter and solid-state image sensor provided with such a counter
KR100282446B1 (en) Address generation circuit for zigzag scanning
JP3170961B2 (en) Pulse phase difference encoding circuit
US5822572A (en) Electronic equipment that changes active time of signals for a peripheral circuit from a microprocessor that switches its operating clock frequency
JP2002279792A (en) Semiconductor integrated circuit device
JPH11509658A (en) Extended chip select reset device and method
US5719644A (en) Data collision avoidance circuit used in an image processing FIFO memory
KR100250147B1 (en) Screen divide signal generator
KR100657162B1 (en) Programmable pulse width modulation circuit
JPH0749428Y2 (en) Photoelectric switch circuit
JP2757714B2 (en) Frame pulse generation circuit
KR100206152B1 (en) Control method for phase difference for compensating average phase difference
JP3326890B2 (en) Pulse width modulation circuit
KR0167893B1 (en) Scan transformation apparatus of image impression/reconstruction device
JPS6116377A (en) Memory scanner
SU1367017A1 (en) Device for selecting replaced element

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: 20050422

Year of fee payment: 4

LAPS Lapse due to unpaid annual fee