KR200223987Y1 - Flag generation circuit for FIFO memory - Google Patents

Flag generation circuit for FIFO memory Download PDF

Info

Publication number
KR200223987Y1
KR200223987Y1 KR2020000033937U KR20000033937U KR200223987Y1 KR 200223987 Y1 KR200223987 Y1 KR 200223987Y1 KR 2020000033937 U KR2020000033937 U KR 2020000033937U KR 20000033937 U KR20000033937 U KR 20000033937U KR 200223987 Y1 KR200223987 Y1 KR 200223987Y1
Authority
KR
South Korea
Prior art keywords
memory
read
write
signal
enable signal
Prior art date
Application number
KR2020000033937U
Other languages
Korean (ko)
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 KR2020000033937U priority Critical patent/KR200223987Y1/en
Application granted granted Critical
Publication of KR200223987Y1 publication Critical patent/KR200223987Y1/en

Links

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

본 발명에 따른 플래그 발생 회로는 제 1 라이트 메모리 인에이블 신호를 생성하는 제 1 라이트 처리부와, 제 1 리드 메모리 인에이블 신호를 생성하는 제 1 리드 처리부와, 상기 제 1 라이트 메모리 인에이블 신호와 상기 제 1 리드 메모리 인에이블 신호를 입력받아 비교 판단하여 현재 상기 선입선출 메모리의 메모리 영역에 데이터가 엠프티 상태인 경우 엠프티 플래그를 발생하는 엠프티 플래그 발생부를 구비하는 엠프티 플래그 발생 회로와,A flag generation circuit according to the present invention includes a first write processor for generating a first write memory enable signal, a first read processor for generating a first read memory enable signal, the first write memory enable signal and the first write processor. An empty flag generating circuit having an empty flag generating unit configured to receive a first read memory enable signal and compare and determine an empty flag when data is currently empty in a memory area of the first-in first-out memory;

제 2 리드 메모리 인에이블 신호를 생성하는 제 2 리드 처리부와, 제 2 라이트 메모리 인에이블 신호를 생성하는 제 2 라이트 처리부와, 상기 제 2 리드 메모리 인에이블 신호와 상기 제 2 라이트 메모리 인에이블 신호를 입력받아 비교 판단하여 현재 상기 선입선출 메모리의 메모리 영역에 데이터가 풀 상태인 경우 풀 플래그를 발생하는 풀 플래그 발생부를 구비하는 풀 플래그 발생회로를 포함하여 구성되는 것을 특징으로 한다.A second read processor for generating a second read memory enable signal, a second write processor for generating a second write memory enable signal, the second read memory enable signal and the second write memory enable signal; And a full flag generation circuit having a full flag generation unit for generating a full flag when data is in a full state in the first-in first-out memory.

본 고안은 종래의 선입선출 메모리의 플래그 발생 회로에 비해 구성이 간단하고 특히 제 1 클럭과 제 2 클럭의 주기 차이가 많이 날 경우 플래그의 폭을 지정 메모리의 용량만큼 넓힘으로써 플래그의 발생 빈도를 줄여 동작의 안정성을 높일 수 있는 장점이 있다.The present invention is simpler than the flag generation circuit of the conventional first-in-first-out memory, and in particular, when the period difference between the first clock and the second clock is large, the width of the flag is increased by the capacity of the designated memory to reduce the frequency of flag generation. There is an advantage to increase the stability of the operation.

Description

선입선출 메모리의 플래그 발생 회로{Flag generation circuit for FIFO memory}Flag generation circuit for first-in-first-out memory {Flag generation circuit for FIFO memory}

본 발명은 선입선출 메모리의 풀 플래그 및 엠프티 플래그 발생 회로에 관한 것으로서, 보다 상세하게 설명하면 메모리를 이용한 플래그 연산을 하여 플래그의 폭을 넓힘으로써 메모리의 선입선출 동작의 안정성을 보장하는 플래그 발생 회로에 관한 것이다.The present invention relates to a full flag and empty flag generation circuit of a first-in-first-out memory. More specifically, the present invention relates to a flag generation circuit that guarantees stability of a first-in-first-out operation of a memory by widening a flag by performing a flag operation using a memory. It is about.

오늘날, 전자 회로는 높은 속도의 데이터 이동을 필요로 하고 있으며, 따라서 각 기기들간의 고속 데이터 이동을 위하여 선입선출 메모리가 많이 사용되고 있다. 주로 고속으로 처리가 되는 데이터를 다루는 선입선출 메모리는 특히 현재의 자기 상태를 나타낼 필요가 있으며, 이러한 선입선출 메모리의 상태 표시 플래그를 발생하는 장치가 플래그 발생 회로이다.Today, electronic circuits require high speed data movement, and therefore, first-in, first-out memory is frequently used for high speed data movement between devices. The first-in first-out memory, which mainly deals with data that is processed at high speed, needs to indicate the current magnetic state in particular, and a device for generating the status display flag of the first-in first-out memory is a flag generation circuit.

도 1은 종래 엠프티 플래그 발생 회로의 블록도이다.1 is a block diagram of a conventional empty flag generation circuit.

도 1을 참조하면, 라이트 인에이블 신호를 입력받고, 제 1 클럭 신호에 동기되어 카운트 하고, 제 2 클럭 신호에 동기되어 제 1 라이트 카운팅 신호를 출력하는 제 1 라이트 감지부(11)와, 리드 인에이블 신호를 입력받고, 상기 제 2 클럭 신호의 입력에 동기되어 카운트 하여 제 1 리드 카운팅 신호 및 넥스트 리드 카운팅 신호를 출력하는 제 1 리드 감지부(12)와, 상기 제 1 라이트 카운팅 신호와 상기 제 1 리드 카운팅 신호 및 넥스트 리드 카운팅 신호를 입력받아 판단하여 현재 상기 선입선출 메모리의 메모리 영역에 데이터가 엠프티 상태인 경우 엠프티 플래그를 발생하는 엠프티 플래그 발생 판단부(13)와, 상기 엠프티 플래그 발생 판단부의 출력을 입력받아 상기 제 2 클럭 신호에 동기하여 상기 엠프티 플래그를 출력하는 엠프티 플래그 출력부(14)로 이루어져 있다.Referring to FIG. 1, a first light detector 11 for receiving a write enable signal, counting in synchronization with a first clock signal, and outputting a first light counting signal in synchronization with a second clock signal, A first read detection unit 12 which receives an enable signal, counts in synchronization with the input of the second clock signal, and outputs a first read count signal and a next read count signal; and the first write count signal and the first read count signal. An empty flag generation determining unit 13 for generating an empty flag when the first read counting signal and the next read counting signal are input and determined and data is currently in an empty state of the first-in first-out memory; An empty flag output unit 14 receiving the output of the tee flag generation determining unit and outputting the empty flag in synchronization with the second clock signal. There is off.

상기 엠프티 플래그 발생 회로는 서로 다른 주기를 갖는 제 1 클럭 신호 (CLK1)와 제 2 클럭 신호(CLK2) 그리고 라이트 인에이블 신호(Wren) 및 리드 인에이블 신호(Rden)를 입력받고, 선입선출 메모리의 소정의 메모리 영역에 데이터가 모두 리드된 경우 엠프티 플래그(EF)를 출력하게 된다.The empty flag generation circuit receives a first clock signal CLK1, a second clock signal CLK2, a write enable signal Wren, and a read enable signal Rden having different periods, and receives a first-in first-out memory. The empty flag EF is output when all the data is read in the predetermined memory area of.

다시 설명하면, 상기 엠프티 플래그 발생 판단부는 상기 라이트 카운터와 상기 리드 카운터의 모든 값이 같은 경우나, 상기 넥스트 리드 카운터와 상기 라이트 카운터의 값이 같고 상기 리드 인에이블 신호(Rden)가 '1'인 경우 상기 제 2 클럭 신호(CLK2)에 동기되어 엠프티 플래그(empty flag, EF)가 출력된다.In other words, the empty flag generation determining unit may be the same as all values of the write counter and the read counter, or the next read counter and the write counter have the same value, and the read enable signal Rden is '1'. In case of, an empty flag EF is output in synchronization with the second clock signal CLK2.

도 2는 종래 풀 플래그 발생 회로의 블록도이다.2 is a block diagram of a conventional full flag generation circuit.

도 2를 참조하면, 상기 리드 인에이블 신호를 입력받고, 상기 제 2 클럭 신호에 동기되어 카운트 하고, 상기 제 1 클럭 신호에 동기되어 제 2 리드 카운팅 신호를 출력하는 제 2 리드 감지부(21)와, 상기 라이트 인에이블 신호를 입력받고, 상기 제 1 클럭 신호의 입력에 동기되어 카운트 하여 제 2 라이트 카운팅 신호 및 넥스트 라이트 카운팅 신호를 출력하는 제 2 라이트 감지부(22)와, 상기 제 2 리드 카운팅 신호와 상기 제 2 라이트 카운팅 신호 및 넥스트 라이트 카운팅 신호를 입력받아 판단하여 현재 상기 선입선출 메모리의 메모리 영역에 데이터가 풀 상태인 경우 풀 플래그를 발생하는 풀 플래그 발생 판단부(23)와, 상기 풀 플래그 발생 판단부의 출력을 입력받아 상기 제 1 클럭 신호에 동기하여 상기 풀 플래그를 출력하는 풀 플래그 출력부(24)로 이루어져 있다.Referring to FIG. 2, a second read detector 21 which receives the read enable signal, counts in synchronization with the second clock signal, and outputs a second read counting signal in synchronization with the first clock signal. And a second write detector 22 receiving the write enable signal and counting in synchronization with the input of the first clock signal to output a second write counting signal and a next write counting signal; A full flag generation determiner 23 which receives a counting signal, the second write counting signal and a next write counting signal, and determines a full flag when data is currently in the memory area of the first-in first-out memory; And a full flag output unit 24 which receives the output of the full flag generation determining unit and outputs the full flag in synchronization with the first clock signal. Lost

상기 풀 플래그 발생부는 상기 제 1 및 제 2 클럭신호(CLK1)(CLK2), 라이트 인에이블 신호(Wren) 및 리드 인에이블 신호(Rden)를 입력받고, 선입선출 메모리의 소정의 메모리 영역에 데이터가 모두 라이트된 경우 풀 플래그(FF)를 출력하게 된다.The full flag generator receives the first and second clock signals CLK1 and CLK2, a write enable signal Wren, and a read enable signal Rden, and transmits data to a predetermined memory area of the first-in first-out memory. When all are written, the full flag FF is output.

다시 설명하면, 상기 풀 플래그 발생 판단부는 상기 라이트 카운터와 상기 리드 카운터의 풀(full)조건을 만족하는 경우나, 상기 넥스트 라이트 카운터와 상기 라이트카운터의 값이 풀 조건을 만족하고 상기 라이트 인에이블 신호(Wren)가 '1'인 경우 상기 제 1 클럭 신호(CLK1)에 동기되어 풀 플래그(FF)가 출력된다.In other words, the full flag generation determining unit may satisfy the full conditions of the write counter and the read counter, or the values of the next write counter and the light counter satisfy the full condition and the write enable signal. When Wren is '1', the full flag FF is output in synchronization with the first clock signal CLK1.

상기한 엠프티 플래그 발생 회로와 풀 플래그 발생 회로는 다른 클럭으로 동작하는 블록들간의 동기를 맞추기 위하여 엠프티 플래그 발생 회로에서는 제 1 라이트 감지부에, 풀 플래그 발생 회로에서는 제 2 리드 감지부에 플립플롭을 사용하였다. 그러나, 용량이 작은 플립플롭을 사용함으로써, 제 1 클럭과 제 2 클럭의 주기 차이가 많이 날 때, 메모리가 비어있거나, 꽉 차 있음을 나타내는 플래그의 순환 범위가 좁음으로써 플래그를 인식하지 못할 경우가 있으며, 한 번 플래그가 발생하게 되면 매 클럭마다 플래그가 발생하여 동작의 안정성이 떨어지는 문제점이 있다.The empty flag generator circuit and the full flag generator circuit flip the first light detector in the empty flag generator circuit and the second lead detector in the full flag generator circuit so as to synchronize the blocks operating at different clocks. Flop was used. However, when using a small flip-flop, when the period difference between the first clock and the second clock is large, the flag may not be recognized due to a narrow cycle range of the flag indicating that the memory is empty or full. In addition, if a flag is generated once, a flag is generated every clock, thereby degrading the stability of the operation.

본 고안은 상기와 같은 문제점을 개선하기 위하여 창출된 것으로서, 플래그의 순환 범위를 넓힘으로써 플래그의 발생 빈도를 줄여 동작의 안정성을 높일 수 있는 선입선출 메모리의 플래그 발생 회로를 제공하는 것을 목적으로 한다.An object of the present invention is to provide a flag generation circuit of a first-in, first-out memory that can be improved in order to reduce the frequency of occurrence of a flag and increase the stability of the operation by widening the flag cycle.

도 1은 종래 엠프티 플래그 발생 회로의 블록도.1 is a block diagram of a conventional empty flag generation circuit.

도 2는 종래 풀 플래그 발생 회로의 블록도.2 is a block diagram of a conventional full flag generation circuit.

도 3은 본 고안에 따른 엠프티 플래그 발생 회로의 블록도.3 is a block diagram of an empty flag generation circuit according to the present invention.

도 4는 본 고안에 따른 풀 플래그 발생 회로의 블록도.4 is a block diagram of a full flag generation circuit according to the present invention;

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

11, 22.....라이트 감지부 12, 21.....리드 감지부11, 22 ... light detector 12, 21 ... lead detector

13.........엠프티 플래그 발생 판단부13 ....... Empty flag occurrence determination unit

14.........엠프티 플래그 출력부14 ......... Empty flag output

23.........풀 플래그 발생 판단부 24.........풀 플래그 출력부23 ......... Full flag generation judgment section 24 ......... Full flag output section

31, 42.....라이트 처리부 32, 41.....리드 처리부31, 42 ..... light processing section 32, 41 ..... lead processing section

33.........엠프티 플래그 발생부 43.........풀 플래그 발생부33 ......... Empty flag generator 43 ......... Full flag generator

31a, 42a...라이트 카운터부 32a, 41a...리드 카운터부31a, 42a ... light counter 32a, 41a ... lead counter

31b, 42b...라이트 메모리 선택부 32b, 41b...리드 메모리 선택부31b, 42b ... Write memory selector 32b, 41b ... Lead memory selector

32c, 42c...논리곱 소자 33a, 43a...비교부32c, 42c ... logical elements 33a, 43a ... comparative

33b, 43b...논리 회로33b, 43b ... logical circuit

상기한 목적을 달성하기 위하여 본 발명에 따른 플래그 발생 회로는 제 1 라이트 메모리 인에이블 신호를 생성하는 제 1 라이트 처리부와, 제 1 리드 메모리 인에이블 신호를 생성하는 제 1 리드 처리부와, 상기 제 1 라이트 메모리 인에이블 신호와 상기 제 1 리드 메모리 인에이블 신호를 입력받아 비교 판단하여 현재 상기 선입선출 메모리의 메모리 영역에 데이터가 엠프티 상태인 경우 엠프티 플래그를 발생하는 엠프티 플래그 발생부를 구비하는 엠프티 플래그 발생 회로와,In order to achieve the above object, a flag generating circuit according to the present invention includes a first write processor for generating a first write memory enable signal, a first read processor for generating a first read memory enable signal, and the first write processor. An amplifier having an empty flag generator for generating an empty flag when data is currently empty in a memory area of the first-in first-out memory by receiving and comparing a write memory enable signal and the first read memory enable signal. Tee flag generating circuit,

제 2 리드 메모리 인에이블 신호를 생성하는 제 2 리드 처리부와, 제 2 라이트 메모리 인에이블 신호를 생성하는 제 2 라이트 처리부와, 상기 제 2 리드 메모리 인에이블 신호와 상기 제 2 라이트 메모리 인에이블 신호를 입력받아 비교 판단하여 현재 상기 선입선출 메모리의 메모리 영역에 데이터가 풀 상태인 경우 풀 플래그를 발생하는 풀 플래그 발생부를 구비하는 풀 플래그 발생 회로를 포함하여 구성되는 것을 특징으로 한다.A second read processor for generating a second read memory enable signal, a second write processor for generating a second write memory enable signal, the second read memory enable signal and the second write memory enable signal; And a full flag generation circuit including a full flag generator for generating a full flag when data is in a full state in the first-in first-out memory.

도 3은 본 고안에 따른 엠프티 플래그 발생 회로의 블록도이다.3 is a block diagram of an empty flag generation circuit according to the present invention.

도 3을 참조하면, 본 고안에 따른 엠프티 플래그 발생 회로는 라이트 인에이블 신호(Wren)를 입력받고, 제 1 클럭 신호(CLK1)에 동기되어 카운트 하여 제 1 라이트 메모리 선택 신호를 출력하고 제 2 클럭 신호(CLK2)에 동기되어 상기 제 1 라이트 메모리 선택 신호를 제 1 라이트 메모리 인에이블 신호로 변환 출력하는 제 1 라이트 처리부(31)와, 리드 인에이블 신호(Rden)를 입력받고, 상기 제 2 클럭 신호(CLK2)의 입력에 동기되어 카운트 하여 제 1 리드 메모리 선택 신호를 출력하고 제 2 클럭 신호(CLK2)에 동기되어 상기 제 1 리드 메모리 선택 신호를 제 1 리드 메모리 인에이블 신호로 변환 출력하는 제 1 리드 처리부(32)와, 상기 제 1 라이트 메모리 인에이블 신호와 상기 제 1 리드 메모리 인에이블 신호를 입력받아 비교 판단하여 현재 상기 선입선출 메모리의 메모리 영역에 데이터가 엠프티 상태인 경우 엠프티 플래그를 발생하는 엠프티 플래그 발생부(33)로 이루어져 있다.Referring to FIG. 3, the empty flag generation circuit according to the present invention receives a write enable signal Wren, counts in synchronization with the first clock signal CLK1, outputs a first write memory selection signal, and outputs a second write memory selection signal. A first write processor 31 for converting and outputting the first write memory selection signal into a first write memory enable signal and a read enable signal Rden in synchronization with a clock signal CLK2, and receiving the second write signal A first read memory selection signal is output by counting in synchronization with the input of the clock signal CLK2, and the first read memory selection signal is converted into a first read memory enable signal in synchronization with the second clock signal CLK2. The first read processor 32 and the first write memory enable signal and the first read memory enable signal are received and compared to determine the current memory of the first-in first-out memory. An empty flag generation unit 33 for generating an empty flag when data is empty in the area.

상기 라이트 처리부(31)는 라이트 카운터부(31a)와 라이트 메모리 선택부(31b)로 구성된다. 상기 라이트 카운터부(31a)는 상기 라이트 인에이블 신호(Wren)를 입력받고 상기 제 1 클럭 신호(CLK1)에 의해 동기되어 카운트 결과를 라이팅할 메모리를 선택하는 신호로 변환하여 출력한다. 상기 라이트 메모리 선택부(31b)는 상기 제 2 클럭 신호(CLK2)에 동기되어 상기 메모리 선택 신호를 입력받아 디코딩한 후 해당 메모리를 인에이블 시켜주는 라이트 메모리 인에이블 신호를 생성한다.The write processor 31 includes a write counter 31a and a write memory selector 31b. The write counter 31a receives the write enable signal Wren and converts the count result into a signal for selecting a memory to be written in synchronization with the first clock signal CLK1. The write memory selector 31b receives and decodes the memory selection signal in synchronization with the second clock signal CLK2 and generates a write memory enable signal for enabling the corresponding memory.

상기 리드 처리부(32)는 리드 카운터부(32a)와 리드 메모리 선택부(32b)와 인버터를 포함한 논리곱 소자(32c)로 구성된다. 상기 리드 카운터부(31a)는 엠프티 플래그 발생부(33)의 결과가 엠프티 플래그 발생 상태가 아닌 경우 상기 리드 인에이블 신호(Rden)를 입력받고 상기 제 2 클럭 신호(CLK2)에 의해 동기되어 카운트 결과를 리딩할 메모리를 선택하는 신호로 변환하여 출력한다. 상기 리드 메모리 선택부(32b)는 상기 제 2 클럭 신호(CLK2)에 동기되어 상기 메모리 선택 신호를 입력받아 디코딩한 후 해당 메모리를 인에이블 시켜주는 리드 메모리 인에이블 신호를 생성한다.The read processing section 32 is composed of a read counter section 32a, a read memory selector 32b, and an AND product 32c including an inverter. The read counter 31a receives the read enable signal Rden when the result of the empty flag generator 33 is not in the empty flag generation state, and is synchronized with the second clock signal CLK2. The count result is converted into a signal for selecting a memory to be read and output. The read memory selector 32b receives and decodes the memory select signal in synchronization with the second clock signal CLK2 and generates a read memory enable signal that enables the corresponding memory.

상기 엠프티 플래그 발생부(33)는 비교부(33a)와 논리 회로(33b)로 구성되는데, 상기 비교부(33a)는 수개의 논리곱 회로로 상기 논리 회로(33b)는 한개의 논리합 회로로 구성될 수 있다.The empty flag generator 33 is composed of a comparator 33a and a logic circuit 33b. The comparator 33a is a logical logic circuit, and the logic circuit 33b is a logical logic circuit. Can be configured.

상기 비교부(33a)는 한개 또는 수개가 될 수 있는 상기 라이트 처리부(31)의 라이트 메모리 인에이블 신호와 상기 리드 처리부(32)의 리드 메모리 인에이블 신호를 각 메모리에 할당된 신호별로 논리곱 하여 비교한 후 해당 결과를 상기 논리 회로(33b)로 출력하고, 상기 논리 회로(33b)는 상기 비교부(33a)에서 보낸 신호를 논리합 연산을 하여 출력한다.The comparator 33a logically multiplies the write memory enable signal of the write processor 31 and the read memory enable signal of the read processor 32 by the signals allocated to each memory. After the comparison, the result is output to the logic circuit 33b, and the logic circuit 33b performs an OR operation on the signal sent from the comparator 33a.

이상과 같이, 상기 라이트 처리부(31)와 상기 리드 처리부(32)의 어느 한 값이 같을 경우에 상기 제 2 클럭 신호(CLK2)에 동기되어 엠프티 플래그(EF)가 출력되며, 상기 엠프티 플래그 발생 회로는 메모리를 사용함으로써 인에이블된 메모리의 용량이 다 찰 때까지는 메모리 인에이블 신호의 변화가 없으므로 메모리 용량만큼 플래그 발생 폭이 넓어지게 된다.As described above, when any one of the write processing unit 31 and the read processing unit 32 is the same, an empty flag EF is output in synchronization with the second clock signal CLK2, and the empty flag is output. Since the generation circuit uses the memory, the flag generation width is widened by the memory capacity since there is no change in the memory enable signal until the capacity of the enabled memory is full.

도 4는 본 고안에 따른 풀 플래그 발생 회로의 블록도이다.4 is a block diagram of a full flag generating circuit according to the present invention.

도 4를 참조하면, 본 고안에 따른 풀 플래그 발생 회로는 리드 인에이블 신호(Rden)를 입력받고, 제 2 클럭 신호(CLK2)에 동기되어 카운트 하여 제 2 리드 메모리 선택 신호를 출력하고 제 1 클럭 신호(CLK1)에 동기되어 상기 제 2 리드 메모리 선택 신호를 제 2 리드 메모리 인에이블 신호로 변환 출력하는 제 2 리드 처리부(41)와, 라이트 인에이블 신호(Wren)를 입력받고, 상기 제 1 클럭 신호(CLK1)의 입력에 동기되어 카운트 하여 제 2 라이트 메모리 선택 신호를 출력하고 제 1 클럭 신호(CLK1)에 동기되어 상기 제 2 라이트 메모리 선택 신호를 제 2 라이트 메모리 인에이블 신호로 변환 출력하는 제 2 라이트 처리부(42)와, 상기 제 2 리드 메모리 인에이블 신호와 상기 제 2 라이트 메모리 인에이블 신호를 입력받아 비교 판단하여 현재 상기 선입선출 메모리의 메모리 영역에 데이터가 풀 상태인 경우 풀 플래그를 발생하는 풀 플래그 발생부(43)로 이루어져 있다.Referring to FIG. 4, the full flag generation circuit according to the present invention receives a read enable signal Rden, counts in synchronization with the second clock signal CLK2, outputs a second read memory selection signal, and outputs a first clock. A second read processor 41 for converting and outputting the second read memory selection signal into a second read memory enable signal and a write enable signal Wren in synchronization with the signal CLK1 to receive the first clock; A second write memory selection signal that is counted in synchronization with the input of the signal CLK1 and outputs a second write memory selection signal, and converts the second write memory selection signal into a second write memory enable signal in synchronization with the first clock signal CLK1; A second write processing unit 42 and the second read memory enable signal and the second write memory enable signal are received and compared to determine the current memory zero of the first-in first-out memory. When the data is a full state it consists of a full flag generating part 43 for generating the full flag.

상기 리드 처리부(41)는 리드 카운터부(41a)와 리드 메모리 선택부(41b)로 구성된다. 상기 리드 카운터부(41a)는 상기 리드 인에이블 신호(Rden)를 입력받고 상기 제 2 클럭 신호(CLK2)에 의해 동기되어 카운트 결과를 리딩할 메모리를 선택하는 신호로 변환하여 출력한다. 상기 리드 메모리 선택부(41b)는 상기 제 1 클럭 신호(CLK1)에 동기되어 상기 메모리 선택 신호를 입력받아 디코딩한 후 해당 메모리를 인에이블 시켜주는 리드 메모리 인에이블 신호를 생성한다.The read processing section 41 is composed of a read counter section 41a and a read memory selection section 41b. The read counter 41a receives the read enable signal Rden and converts the count result into a signal for selecting a memory to be read in synchronization with the second clock signal CLK2. The read memory selector 41b receives and decodes the memory select signal in synchronization with the first clock signal CLK1 and generates a read memory enable signal that enables the corresponding memory.

상기 라이트 처리부(42)는 라이트 카운터부(42a)와 라이트 메모리 선택부(42b)와 인버터를 포함한 논리곱 소자(42c)로 구성된다. 상기 라이트 카운터부(41a)는 풀 플래그 발생부(43)의 결과가 풀 플래그 발생 상태가 아닌 경우 상기 라이트 인에이블 신호(Wren)를 입력받고 상기 제 1 클럭 신호(CLK1)에 의해 동기되어 카운트 결과를 라이팅할 메모리를 선택하는 신호로 변환하여 출력한다. 상기 라이트 메모리 선택부(42b)는 상기 제 1 클럭 신호(CLK1)에 동기되어 상기 메모리 선택 신호를 입력받아 디코딩한 후 해당 메모리를 인에이블 시켜주는 라이트 메모리 인에이블 신호를 생성한다.The write processing section 42 includes a write counter section 42a, a write memory selector 42b, and an AND product 42c including an inverter. The write counter 41a receives the write enable signal Wren when the result of the full flag generator 43 is not in the full flag generation state, and is synchronized with the first clock signal CLK1 to count the result. Is converted into a signal for selecting the memory to be written and output. The write memory selector 42b receives and decodes the memory select signal in synchronization with the first clock signal CLK1 and generates a write memory enable signal for enabling the corresponding memory.

상기 엠프티 플래그 발생부(43)는 비교부(43a)와 논리 회로(43b)로 구성되는데, 상기 비교부(43a)는 수개의 논리곱 회로로 상기 논리 회로(43b)는 한개의 논리합 회로로 구성될 수 있다.The empty flag generator 43 is composed of a comparator 43a and a logic circuit 43b. The comparator 43a is a logical logic circuit, and the logic circuit 43b is a logical logic circuit. Can be configured.

상기 비교부(43a)는 한개 또는 수개가 될 수 있는 상기 리드 처리부(41)의 리드 메모리 인에이블 신호와 상기 라이트 처리부(42)의 라이트 메모리 인에이블 신호를 각 메모리에 할당된 신호별로 논리곱 하여 비교한 후 해당 결과를 상기 논리 회로(43b)로 출력하고, 상기 논리 회로(43b)는 상기 비교부(43a)에서 보낸 신호를 논리합 연산을 하여 출력한다.The comparator 43a logically multiplies the read memory enable signal of the read processor 41 and the write memory enable signal of the write processor 42 by signals allocated to each memory. After the comparison, the result is output to the logic circuit 43b, and the logic circuit 43b performs an OR operation on the signal sent from the comparator 43a.

이상과 같이, 상기 리드 처리부(41)와 상기 라이트 처리부(42)의 어느 한 값이 같을 경우에 상기 제 1 클럭 신호(CLK1)에 동기되어 풀 플래그(FF)가 출력되며, 상기 풀 플래그 발생 회로는 메모리를 사용함으로써 인에이블된 메모리의 용량이 다 찰 때까지는 메모리 인에이블 신호의 변화가 없으므로 메모리 용량만큼 플래그 발생 폭이 넓어지게 된다.As described above, when any one of the read processor 41 and the write processor 42 is the same, the full flag FF is output in synchronization with the first clock signal CLK1, and the full flag generator circuit Since the memory enable signal remains unchanged until the capacity of the enabled memory is full by using the memory, the flag generation width is widened by the memory capacity.

본 고안은 종래의 선입선출 메모리의 플래그 발생 회로에 비해 구성이 간단하고, 특히 제 1 클럭과 제 2 클럭의 주기 차이가 많이 날 경우 플래그의 폭을 지정 메모리의 용량만큼 넓힘으로써 플래그의 발생 빈도를 줄여 동작의 안정성을 높일 수 있는 장점이 있다.The present invention is simpler than the flag generation circuit of the conventional first-in-first-out memory, and especially when the period difference between the first clock and the second clock is large, the width of the flag is increased by the capacity of the designated memory, thereby increasing the frequency of flag generation. There is an advantage to increase the stability of the operation.

Claims (7)

제 1 라이트 메모리 인에이블 신호를 생성하는 제 1 라이트 처리부와,A first write processor configured to generate a first write memory enable signal; 제 1 리드 메모리 인에이블 신호를 생성하는 제 1 리드 처리부와,A first read processor configured to generate a first read memory enable signal; 상기 제 1 라이트 메모리 인에이블 신호와 상기 제 1 리드 메모리 인에이블 신호를 입력받아 비교 판단하여 현재 상기 선입선출 메모리의 메모리 영역에 데이터가 엠프티 상태인 경우 엠프티 플래그를 발생하는 엠프티 플래그 발생부를 구비하는 엠프티 플래그 발생 회로와;An empty flag generator configured to receive and compare the first write memory enable signal and the first read memory enable signal and generate an empty flag when data is currently in an empty state of the first-in first-out memory; An empty flag generation circuit provided; 제 2 리드 메모리 인에이블 신호를 생성하는 제 2 리드 처리부와,A second read processor configured to generate a second read memory enable signal; 제 2 라이트 메모리 인에이블 신호를 생성하는 제 2 라이트 처리부와,A second write processor configured to generate a second write memory enable signal; 상기 제 2 리드 메모리 인에이블 신호와 상기 제 2 라이트 메모리 인에이블 신호를 입력받아 비교 판단하여 현재 상기 선입선출 메모리의 메모리 영역에 데이터가 풀 상태인 경우 풀 플래그를 발생하는 풀 플래그 발생부를 구비하는 풀 플래그 발생회로를 포함하여 구성되는 것을 특징으로 하는 선입선출 메모리의 플래그 발생 회로.A full flag generator configured to receive and compare the second read memory enable signal and the second write memory enable signal and generate a full flag when data is currently in the memory area of the first-in first-out memory; A flag generation circuit of a first-in first-out memory, comprising a flag generation circuit. 제 1 항에 있어서,The method of claim 1, 상기 제 1 라이트 처리부는 상기 제 1 클럭 신호에 동기되어 카운트 하여 제 1 라이트 메모리 선택 신호로 변환하여 출력하기 위한 라이트 카운터부와,The first write processing unit includes a write counter unit for counting and converting the first write signal into a first write memory selection signal in synchronization with the first clock signal; 상기 제 1 라이트 메모리 선택 신호를 상기 제 2 클럭 신호에 동기하여 상기 제 1 라이트 메모리 인에이블 신호로 변환 출력하기 위한 라이트 메모리 선택부를 포함하는 것을 특징으로 하는 선입선출 메모리의 플래그 발생 회로.And a write memory selector for converting and outputting the first write memory selection signal to the first write memory enable signal in synchronization with the second clock signal. 제 1 항에 있어서,The method of claim 1, 상기 제 1 리드 처리부는 상기 제 2 클럭 신호에 동기되어 카운트 하여 제 1 리드 메모리 선택 신호로 변환하여 출력하기 위한 리드 카운터부와,The first read processing unit may be synchronized with the second clock signal and counted to read and convert the first read memory selection signal into a read counter unit; 상기 제 1 리드 메모리 선택 신호를 상기 제 2 클럭 신호에 동기하여 상기 제 1 리드 메모리 인에이블 신호로 변환 출력하기 위한 리드 메모리 선택부를 포함하는 것을 특징으로 하는 선입선출 메모리의 플래그 발생 회로.And a read memory selector for converting the first read memory selection signal into the first read memory enable signal in synchronization with the second clock signal. 제 1 항에 있어서,The method of claim 1, 상기 엠프티 플래그 발생부는 수개의 논리곱 회로로 구성되는 비교부와,The empty flag generator is a comparison unit consisting of several logical AND circuits, 한개의 논리합 회로로 구성되는 논리 회로로 이루어지는 것을 특징으로 하는 선입선출 메모리의 플래그 발생 회로.A flag generation circuit of a first-in first-out memory, comprising a logic circuit composed of one logical sum circuit. 제 1 항에 있어서,The method of claim 1, 상기 제 2 리드 처리부는 상기 제 2 클럭 신호에 동기되어 카운트 하여 제 2 리드 메모리 선택 신호로 변환하여 출력하기 위한 리드 카운터부와,The second read processing unit includes a read counter unit for counting and converting a second read memory signal into a second read memory selection signal in synchronization with the second clock signal; 상기 제 2 리드 메모리 선택 신호를 상기 제 1 클럭 신호에 동기하여 상기 제 2 리드 메모리 인에이블 신호로 변환 출력하기 위한 리드 메모리 선택부를 포함하는 것을 특징으로 하는 선입선출 메모리의 플래그 발생 회로.And a read memory selector for converting the second read memory selection signal into the second read memory enable signal in synchronization with the first clock signal. 제 1 항에 있어서,The method of claim 1, 상기 제 2 라이트 처리부는 상기 제 1 클럭 신호에 동기되어 카운트 하여 제 2 라이트 메모리 선택 신호로 변환하여 출력하기 위한 라이트 카운터부와,The second write processing unit includes a write counter unit for counting and converting the second write memory selection signal into a second write memory selection signal in synchronization with the first clock signal; 상기 제 2 라이트 메모리 선택 신호를 상기 제 1 클럭 신호에 동기하여 상기 제 2 라이트 메모리 인에이블 신호로 변환 출력하기 위한 라이트 메모리 선택부를 포함하는 것을 특징으로 하는 선입선출 메모리의 플래그 발생 회로.And a write memory selection unit for converting and outputting the second write memory selection signal to the second write memory enable signal in synchronization with the first clock signal. 제 1 항에 있어서,The method of claim 1, 상기 풀 플래그 발생부는 수개의 논리곱 회로로 구성되는 비교부와,The full flag generator comprises a comparison unit consisting of several logical AND circuits, 한개의 논리합 회로로 구성되는 논리 회로로 이루어지는 것을 특징으로 하는 선입선출 메모리의 플래그 발생 회로.A flag generation circuit of a first-in first-out memory, comprising a logic circuit composed of one logical sum circuit.
KR2020000033937U 2000-12-04 2000-12-04 Flag generation circuit for FIFO memory KR200223987Y1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR2020000033937U KR200223987Y1 (en) 2000-12-04 2000-12-04 Flag generation circuit for FIFO memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR2020000033937U KR200223987Y1 (en) 2000-12-04 2000-12-04 Flag generation circuit for FIFO memory

Publications (1)

Publication Number Publication Date
KR200223987Y1 true KR200223987Y1 (en) 2001-05-15

Family

ID=73060985

Family Applications (1)

Application Number Title Priority Date Filing Date
KR2020000033937U KR200223987Y1 (en) 2000-12-04 2000-12-04 Flag generation circuit for FIFO memory

Country Status (1)

Country Link
KR (1) KR200223987Y1 (en)

Similar Documents

Publication Publication Date Title
US6263410B1 (en) Apparatus and method for asynchronous dual port FIFO
US5555524A (en) Semi-synchronous dual port FIFO
US6845414B2 (en) Apparatus and method of asynchronous FIFO control
KR900014984A (en) Circuit element and method for providing output signal representation of time delay between two asynchronous clock signals
US8713221B1 (en) Rate controlled first in first out (FIFO) queues for clock domain crossing
US6639437B2 (en) Method and apparatus for data sampling
KR960014169B1 (en) Circuit for detecting input/output status of memory data
JP2004062630A (en) Fifo memory and semiconductor device
US6816979B1 (en) Configurable fast clock detection logic with programmable resolution
KR200223987Y1 (en) Flag generation circuit for FIFO memory
US6525980B1 (en) High speed FIFO synchronous programmable full and empty flag generation
US6137851A (en) System and method for synchronizing a signal with respect to another signal
KR102530884B1 (en) Semiconductor memory device and the method for operating the same
US20030023787A1 (en) Glitch suppression circuit and method
CN111399802A (en) Multi-power-domain multi-clock-domain first-in first-out queue, integrated circuit chip and computer equipment
KR100226025B1 (en) Plag generation circuit of nonsynchronous fifo memory
CN108318809B (en) Built-in self-test circuit for frequency jitter
US6201487B1 (en) Error detecting circuit in a line length decoding system
US7116599B1 (en) High speed FIFO synchronous programmable full and empty flag generation
JP4189729B2 (en) Asynchronous readout method of timer count value and timer
KR0179903B1 (en) First in first out memory
JP2005321933A (en) Data input and output device and data input and output method
JP2009239954A (en) Cycle shift detection device between serial data
JP2002026704A (en) Clock fault detector and its method
CN117406954A (en) Asynchronous FIFO circuit

Legal Events

Date Code Title Description
REGI Registration of establishment
FPAY Annual fee payment

Payment date: 20080218

Year of fee payment: 8

LAPS Lapse due to unpaid annual fee