KR0134461B1 - First-in/first-out memory device - Google Patents

First-in/first-out memory device

Info

Publication number
KR0134461B1
KR0134461B1 KR1019940028260A KR19940028260A KR0134461B1 KR 0134461 B1 KR0134461 B1 KR 0134461B1 KR 1019940028260 A KR1019940028260 A KR 1019940028260A KR 19940028260 A KR19940028260 A KR 19940028260A KR 0134461 B1 KR0134461 B1 KR 0134461B1
Authority
KR
South Korea
Prior art keywords
read
read pointer
stack
signal
pointer
Prior art date
Application number
KR1019940028260A
Other languages
Korean (ko)
Other versions
KR960015574A (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 KR1019940028260A priority Critical patent/KR0134461B1/en
Publication of KR960015574A publication Critical patent/KR960015574A/en
Application granted granted Critical
Publication of KR0134461B1 publication Critical patent/KR0134461B1/en

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C7/00Arrangements for writing information into, or reading information out from, a digital store
    • G11C7/22Read-write [R-W] timing or clocking circuits; Read-write [R-W] control signal generators or management 
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C8/00Arrangements for selecting an address in a digital store
    • G11C8/04Arrangements for selecting an address in a digital store using a sequential addressing device, e.g. shift register, counter

Landscapes

  • Engineering & Computer Science (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Executing Machine-Instructions (AREA)

Abstract

본 발명은 스택 겸용 선입 선출 메모리 장치에 관한 것으로서, 이를 위하여, 데이타를 기억하기 위한 메모리 수단과, 상기 메모리 수단으로 데이타를 입출력하기 위한 임시 저장 수단과, 데이타를 상기 메모리 수단에 쓸 경우 주소가 하나씩 증가되면서 쓸 위치를 지정하는 쓰기 포인터 수단과, 데이타를 상기 메모리 수단에서 읽을 경우 주소가 하나씩 증가되면서 읽을 위치를 지정하기 위한 읽기 포인터 수단을 구비한 선입 선출 메모리 장치에 있어서, 상기 읽기 포인터 수단은, 선입 선출과 겸용으로 후입 선출 입출력 방식으로 상기 메모리 수단을 사용하기 위하여 입출력 방식 선택을 위한 제어 신호에 의해 상기 선입 선출 방식과 후입 선출 방식을 공용할 수 있는 선택적 읽기 포인터 수단인 것을 특징으로 하는 스택 겸용 선입 선출 메모리 장치를 제공한다.BACKGROUND OF THE INVENTION 1. Field of the Invention [0001] The present invention relates to a first-in, first-out memory device for a stack. A first-in, first-out memory device having a write pointer means for designating a position to be written while being increased, and a read pointer means for designating a position to be read as the address is increased by one when reading data from the memory means. Combined with the first-in-first-out, the stack is characterized in that it is an optional read pointer means for sharing the first-in first-out method and the last-in first-out method by the control signal for selecting the input-output method in order to use the memory means as the last-in first-out input / output method. First in, first out memory device The ball.

Description

스택 겸용 선입 선출 메모리 장치Stackable First In First Out Memory Device

제1도는 본 발명에 따른 스택 겸용 선입 선출 메모리 장치에 대한 개념적인 블럭 구성도.1 is a conceptual block diagram of a stack-first-in first-out memory device according to the present invention.

제2도는 본 발명의 바람직한 실시예에 따른 읽기 포인터를 제어하는 스택 겸용 선입 선출 메모리 장치에 대한 블럭 구성도.2 is a block diagram of a stack-first-in first-out memory device controlling a read pointer according to a preferred embodiment of the present invention.

제3도는 종래의 전형적인 선입 선출 메모리 장치에 대한 개념적인 블럭 구성도.3 is a conceptual block diagram of a conventional typical first-in first-out memory device.

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

10 : 제어로직부 20 : 카운터10: control logic 20: counter

30 : 카운터레지스터 40 : 쓰기포인터30: counter register 40: write pointer

50 : 제 2 읽기포인터 60 : 가산기50: second read pointer 60: adder

70 : 제 1 읽기포인터 80 : 멀티플렉서70: first read pointer 80: multiplexer

본 발명은 스택 겸용 선입 선출 메모리 장치에 관한 것으로서, 특히 스택 구조의 후입 선출(LAST IN FIRST OUT)입출력 방식과 선입 선출(FIRST IN FIRST OU T)입출력 방식을 겸용으로 사용할 수 있도록 한 스택 겸용 선입 선출 메모리 장치에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention [0001] The present invention relates to a stack combined first-in first-out memory device. In particular, the stack combined first-in, first-out first-in, first-out and first-in-first (FIRST IN FIRST OU T) input / output system can be used in combination. Relates to a memory device.

일반적으로, 종래의 전형적인 선입 선출 메모리 장치로는 제 3도에 도시된 바와 같은 형태의 것이 있다.In general, a typical first-in, first-out memory device of the type as shown in FIG.

동 도면에 있어서, 쓰기 포인터(10)와 읽기 포인터(20)는 메모리(30)에서 입출력을 하기 위한 데이타의 주소를 갖고 있는 일종의 레지스터로서, 쓰기 포인터(10)는 메모리(30)에 기록할 다음 주소를 갖고 있으며, 읽기 포인터(20)는 메모리(30)에서 읽어 들일 다음 주소를 갖고 있다.In the figure, the write pointer 10 and the read pointer 20 are types of registers having addresses of data for inputting / outputting from the memory 30, and the write pointer 10 writes to the memory 30 next. It has an address, and the read pointer 20 has the next address to read from the memory 30.

또한, 데이타 입력 버퍼(40)와 데이타 출력 버퍼(50)는 메모리(30)에 쓰거나 읽을 데이타를 임시 저장하기 위한 수단이다.The data input buffer 40 and the data output buffer 50 are also means for temporarily storing data to be written to or read from the memory 30.

그러나, ATM(ASYNCHRONOUS TRANSFER MODE : 비동기 전송 모드) 단말기의 구현시 헤더 정보를 메모리에서 처리하기 위해 서는 스택의 입출력 방식인 후입 선출 방식이 필요하기 때문에 상기한 종래의 선입 선출용 메모리 장치로는 스택 기능 즉, 후입 선출 입출력 방식을 자유롭게 사용하기에는 불편한 문제점이 존재하였다.However, in the implementation of an ATM (ASYNCHRONOUS TRANSFER MODE) terminal, in order to process header information in a memory, a last-in-first-out method of input / output of a stack is required. That is, there is a problem that it is inconvenient to freely use the last-in, first-out input / output method.

따라서, 본 발명은 상기한 바와 같은 종래 기술의 문제점을 해소하기 위한 것으로서, 선입 선출과 후입 선출을 겸용할 수 있는 스택 겸용 선입 선출 메모리 장치를 제공하는데, 그 목적이 있다.Accordingly, an object of the present invention is to solve a problem of the prior art as described above, and to provide a stack-first-in first-out memory device capable of combining first-in first-out and last-in first-out.

상기의 목적을 달성하기 위하여 본 발명은, 데이타를 기억하기 위한 메모리 수단과, 상기 메모리 수단으로 데이타를 입출력하기 위한 임시 저장 수단과, 데이타를 상기 메모리 수단에 쓸경우 주소가 하나씩 증가되면서 쓸 위치를 지정하는 쓰기 포인터 수단과, 데이타를 상기 메모리 수단에서 읽을 경우 주소가 하나씩 증가되면서 읽을 위치를 지정하기 위한 읽기 포인터 수단을 구비한 선입 선출 메모리 장치에 있어서, 상기 읽기 포인터 수단은, 선입 선출과 겸용으로 후입 선출 입출력 방식으로 상기 메모리 수단을 사용하기 위하여 입출력 방식 선택을 위한 제어 신호에 의해 상기 선입 선출 방식과 후입 선출방식을 공용할 수 있는 선택적 읽기 포인터 수단인 것을 특징으로 하는 스택 겸용 선입 선출 메모리 장치를 제공한다.In order to achieve the above object, the present invention provides a memory means for storing data, a temporary storage means for inputting and outputting data to and from the memory means, and a position to write with increasing address by one when writing data to the memory means. A first-in, first-out memory device having a write pointer means for designating and a read pointer means for designating a position to be read as the address is increased by one when reading data from the memory means, wherein the read pointer means is used in combination with first-in-first-out. In order to use the memory means as a last-in, first-out input / output method, a stack-first-in first-out first memory device characterized in that it is an optional read pointer means capable of sharing the first-in first-out method and the last-in first-out method by a control signal for selecting an input / output method. to provide.

또한, 상기 선택적 읽기 포인터 수단은, 상기 제어 신호인 읽기 신호와 쓰기 신호와 선택적으로 상기 메모리 장치를 스택으로 사용하기위한 스택 신호를 입력으로 하여 전반적인 상기 선택적 읽기 포인터 수단을 제어하는 제어 로직부와, 상기 제어 로직부로부터의 제어 신호에 기초하여 스택용으로 입력되는 데이타를 카운트 업하고, 스택용으로 읽기 동작을 할 경우에 카운트 다운을 하는 카운터와, 상기 제어 로직부로부터의 제어 신호에 기초하여 상기 카운터에서 다운 카운트하기 전의 상기스택용으로 입력된 데이타의 갯수를 다운받아 기억하는 카운터 레지스터와, 상기 제어 로직부로부터의 제어 신호에 기초하여 상기 쓰기 포인터 수단의 값을 로드받아 기억하고 스택용 읽기 포인터로 주소가 하나씩 감소하면서 수행하는 제 2 읽기 포인터와, 상기 제어 로직부에 상기 읽기 신호가 인가되어 선입 선출 읽기 동작시 상기 제어 로직부로 부터의 제어 신호에 기초하여 주소가 하나씩 증가하여 다음 읽을 주소를 갖는 제 1 읽기 포인터와, 상기 제어 로직부에 상기 읽기 신호가 인가되어 선입 선출 읽기 동작시 상기 제 1 읽기 포인터의 값과 상기 제 2 읽기 포인터의 값이 같을 경우 스택용으로 사용된 메모리 부분에 대한 제 1 읽기 포인터를 조정하기 위하여 상기 카운터 레지스터의 값과 상기 제 1 읽기 포인터의 값을 더하여 상기 제 1 읽기 포인터로 출력하기 위한 가산기와, 상기 제어 로직부로부터의 선택 신호에 따라 상기 제 1 읽기 포인터와 제 2 읽기 포인터를 선택적으로 출력하는 멀티플렉서를 포함한다.The selective read pointer means may further include: a control logic unit configured to control the overall selective read pointer means by inputting a read signal and a write signal as the control signal and a stack signal for selectively using the memory device as a stack; A counter that counts up data input for a stack based on a control signal from the control logic unit, counts down when a read operation is performed for the stack, and the counter based on a control signal from the control logic unit. A counter register which downloads and stores the number of data input for the stack before downcounting the counter, and loads and stores the value of the write pointer means based on a control signal from the control logic section, and reads a stack pointer. A second read pointer that performs address decrement by one, The read signal is applied to the control logic unit so that, in the first-in, first-out read operation, an address is increased by one based on a control signal from the control logic unit, and has a next read address having a next read address; When a signal is applied and the value of the first read pointer and the second read pointer are the same in the first-in first-out read operation, the value of the counter register and the value of the counter register are adjusted to adjust the first read pointer for the memory portion used for the stack. An adder for adding the value of the first read pointer to the first read pointer, and a multiplexer for selectively outputting the first read pointer and the second read pointer according to a selection signal from the control logic unit. .

본 발명의 기타 목적과 여러 가지 장점은 이 기술 분야에 숙련된 사람들에 의해 첨부된 도면을 참조하여 하기에 기술되는 본 발명의 바람직한 실시예로부터 더욱 명확하게 될 것이다.Other objects and various advantages of the present invention will become more apparent from the preferred embodiments of the present invention described below with reference to the accompanying drawings by those skilled in the art.

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

제 1도는 본 발명에 따른 스택 겸용 선입 선출 메모리 장치에 대한 개념적인 블럭 구성도이다. 동 도면에 도시된 바와 같이 본 발명은, 읽기 포인터로 선입 선출 출력 방식을 위한 제 1읽기 포인터(30)와 후입 선출 출력 방식을 위한 제 2 읽기 포인터(40)를 구분하여 관리하는데 그 구성상의 특징이 있는 것으로, 하기에서 보다 상세히 설명한다.1 is a conceptual block diagram of a stack-first-in first-out memory device according to the present invention. As shown in the drawing, the present invention distinguishes and manages the first read pointer 30 for the first in, first out and the second read pointer 40 for the last in, first out as the read pointer. As will be described in more detail below.

제 2 도는 본 발명의 바람직한 실시예에 따른 읽기 포인터를 제어하는 스택 겸용 선입 선출 메모리 장치에 대한 블럭 구성도이다. 동도면에 도시된 바와 같이 본 발명은, 제어 로직부(10), 카운터(20), 카운터 레지스터(30), 쓰기 포인터(40), 제 2읽기 포인터(50), 가산기(60), 제 1읽기 포인터(70), 멀티플렉서(80)를 포함한다.2 is a block diagram of a stack first-in first-out memory device that controls a read pointer according to a preferred embodiment of the present invention. As shown in the drawing, the present invention includes the control logic unit 10, the counter 20, the counter register 30, the write pointer 40, the second read pointer 50, the adder 60, and the first. A read pointer 70 and a multiplexer 80.

동 도면에 있어서, 제어 로직부(10)는 읽기 신호와 쓰기 신호와 선택적으로 메모리 장치를 스택으로 사용하기 위한 스택 신호를 입력으로 하여 메모리를 읽기 위한 포인터를 제어한다.In the figure, the control logic section 10 controls a pointer for reading a memory by inputting a read signal and a write signal and optionally a stack signal for using the memory device as a stack.

그리고, 카운터(20)는 제어 로직부(10)에 쓰기 신호와 스택 신호가 인가되어 스택용으로 입력되는 데이타를 카운트 업하고, 스택용으로 읽기 동작을 할 경우에 즉, 제어 로직부(10)에 읽기 신호와 스택 신호가 인가될 경우에 다시 카운트 다운을 한다.The counter 20 counts up data input for the stack by applying a write signal and a stack signal to the control logic unit 10, that is, when the read operation is performed for the stack, that is, the control logic unit 10. The countdown is performed again when the read signal and the stack signal are applied.

또한, 카운터 레지스터(30)는 선입 선출 방식으로 출력할 경우에 제 1 읽기 포인터를 스택용으로 사용된 데이타의 갯수 만큼 조정하기 위하여 카운터(20)에서 다운 카운트하기 전의 스택용으로 입력된 데이타의 갯수를 다운받아 기억한다.In addition, when outputting in a first-in, first-out manner, the counter register 30 sets the number of data input for the stack before the counter 20 counts down to adjust the first read pointer by the number of data used for the stack. Download and remember.

한편, 쓰기 포인터(40)는 쓰기 동작시 다음에 기억될 메모리내의 주소를 갖고 있는 것으로 한번의 쓰기 동작시 마다 주소가 하나씩 증가하며, 특히 스택용으로 사용할 경우에 즉, 쓰기 신호와 스택 신호가 제어 로직부(10)에 인가될 경우, 제 2 읽기 포인터(50)의 관리를 위해 쓰기 포인터(40)의 값이 제 2읽기 포인터(50)로 로드된다.On the other hand, the write pointer 40 has an address in the memory to be stored next in the write operation. The address is increased by one for each write operation. In particular, the write pointer 40 controls the write signal and the stack signal. When applied to the logic unit 10, the value of the write pointer 40 is loaded into the second read pointer 50 to manage the second read pointer 50.

그리고, 제 2 읽기 포인터(50)는 제어 로직부(10)에 쓰기 신호와 스택 신호가 인가되어 스택용으로 입력 동작시, 쓰기 포인터(40)의 값을 로드받아 기억하며, 제어 로직부(10)에 읽기 신호와 스택 신호가 인가되어 스택용으로 출력 동작시 마다, 연동하여 다운 카운트하는 카운터(20)의 값이 0이 될 때까지 기억된 주소가 하나씩 감소한다.The second read pointer 50 receives a write signal and a stack signal from the control logic unit 10 and loads and stores the value of the write pointer 40 during an input operation for the stack. ), The stored address is decremented one by one until the read signal and the stack signal are applied to the stack for each output operation.

또한, 가산기(60)는 제어 로직부(10)에 읽기 신호가 인가되어 선입 선출 출력 동작시 제 1 읽기 포인터(70)의 값과 제 2 읽기 포인터(50)의 값이 같을 경우 스택용으로 사용된 메모리 부분에 대한 제 1 읽기 포인터(70)를 조정하기 위하여 카운터 레지스터(30)의 값과 상기 제 1 읽기 포인터(70)의 값을 더하여 제 1읽기 포인터(70)로 출력한다.In addition, the adder 60 is used for the stack when a read signal is applied to the control logic unit 10 so that the value of the first read pointer 70 and the second read pointer 50 are the same in the first-in first-out output operation. In order to adjust the first read pointer 70 for the memory part, the value of the counter register 30 and the value of the first read pointer 70 are added and output to the first read pointer 70.

한편, 제 1 읽기 포인터(70)는 제어 로직부(10)에 읽기 신호가 인가되어 선입 선출 읽기 동작시 주소가 하나씩 증가하여 다음 읽을 주소를 갖는다.On the other hand, the first read pointer 70 has a read signal applied to the control logic unit 10 to increase the address one by one in the first-in first-out read operation to have the next read address.

그리고, 멀티플렉서(80)는 제어 로직부(10)로부터의 선택 신호에 따라 제 1읽기 포인터(70)와 제 2읽기 포인터(50)를 선택적으로 출력한다.The multiplexer 80 selectively outputs the first read pointer 70 and the second read pointer 50 according to the selection signal from the control logic unit 10.

다음에, 상기한 바와 같은 구성부재를 구비한 본 발명의 동작 과정을 상세히 설명한다.Next, the operation process of the present invention having the constituent members as described above will be described in detail.

먼저, 제어 로직부(10)에 쓰기 신호(WR)가 인가되어 쓰기 동작이 수행되면 쓰기 포인터(40)가 가리키는 주소에 데이타가 기억되고 쓰기 포인터(40)는 하나 증가한다.First, when a write signal WR is applied to the control logic unit 10 to perform a write operation, data is stored at an address indicated by the write pointer 40 and the write pointer 40 is increased by one.

다음에, 계속 쓰기 동작이 수행된 후 제어 로직부(10)에 스택 신호(STACK)가 인가되면, 스택용 포인터인 제 2 읽기 포인터(50)를 관리하기 위하여 쓰기동작이 수행된 후, 쓰기 포인터(40)의 값이 제 2 읽기 포인터(50)에 로드되고 쓰기 포인터(40)가 증가되며, 아울러, 스택용으로 입력된 데이타의 갯수를 카운트하기 위하여 카운터(20)가 제어 로직부(10)로부터의 제어 신호에 따라 카운트를 시작한다.Next, when the stack signal STACK is applied to the control logic unit 10 after the continuous write operation is performed, after the write operation is performed to manage the second read pointer 50 that is the stack pointer, the write pointer is performed. The value of 40 is loaded into the second read pointer 50, the write pointer 40 is incremented, and the counter 20 is further configured to control the number of data input for the stack. The count starts according to the control signal from the.

따라서, 스택용으로 데이타의 입력이 끝나면, 제 2읽기 포인터(50)는 스택용으로 마지막에 입력된 데이타의 주소값을 갖고 카운터(20)스택용으로 입력된 데이타의 갯수를 갖으며, 카운터 레지스터(30)도 제 1 읽기 포인터의 조정을 위하여 스택용으로 입력된 데이타의 갯수를 갖는다.Therefore, when data is input for the stack, the second read pointer 50 has the address value of the data last input for the stack, the number of data input for the counter 20 stack, and the counter register. 30 also has the number of data input for the stack for the adjustment of the first read pointer.

그리고, 다시 쓰기 신호(WR)만 인가되어 입력 동작이 수행되면, 제 2 읽기 포인터(50)와 카운터(20)의 값은 변함없고 쓰기 포인터(40)만 하나씩 증가되면서 쓰기 동작이 수행된다.When only the write signal WR is applied and the input operation is performed, the values of the second read pointer 50 and the counter 20 are not changed and only the write pointer 40 is incremented one by one to perform the write operation.

다음에, 제어 로직부(10)에 읽기 신호(RD)와 스택 신호(STACK)가 인가되어 출력 동작이 수행되면, 스택의 출력 방식은 후입 선출이므로 현재 제 2 읽기 포인터(50)의 값이 스택용으로 마지막에 입력된 데이타가 위치한 곳의 주소이므로 먼저, 현재 제 2 읽기 포인터(50)가 가리키는 데이타가 출력되고 제 2 읽기 포인터(50)는 하나의 주소만큼 감소하고 동시에, 카운터(20)가 제어 로직부(10)에 의해 동작되어 다운 카운트한다. 다음에, 계속 출력 동작을 수행하다 카운터(20)의 값이 0이 되면 스택용으로 입력된 데이타의 출력이 완료되었음을 의미함으로 후입 선출 방식의 출력을 종료하고, 다시 선입 선출 방식으로 출력한다.Next, when the read signal RD and the stack signal STACK are applied to the control logic unit 10 and the output operation is performed, the output method of the stack is last-in, first-out, so that the value of the current second read pointer 50 is stacked. For example, since the address of the last data input is located, the data indicated by the current second read pointer 50 is output, and the second read pointer 50 decreases by one address, and at the same time, the counter 20 It is operated by the control logic section 10 to count down. Next, if the value of the counter 20 reaches 0, the output of the data input for the stack is completed. The output of the last-in first-out method is terminated, and the first-in-first-out method is output again.

이때, 제 2 읽기 포인터(50)는 스택용으로 입력되기 전에 선입 선출 방식으로 입력된 마지막 데이타의 주소를 갖고 있고, 카운터(20)는 0의 값을 갖고 카운터 레지스터(30)는 스택용으로 입력된 데이타의 갯수를 갖고 있다.At this time, the second read pointer 50 has the address of the last data input in a first-in first-out manner before being input for the stack, the counter 20 has a value of 0 and the counter register 30 is input for the stack. It contains the number of data collected.

다음에, 제어 로직부(10)에 읽기 신호(RD)만 인가되어 선입 선출 방식으로 읽기 동작이 수행되면, 제 1 읽기 포인터(70)가 증가되면서 수행하다 제 1 읽기 포인터(70)와 제 2 읽기 포인터(50)의 값이 같게 되면 스택용으로 사용된 메모리 부분을 건너 뛰어 제 1 읽기 포인터(70)를 조정하기 위하여 하나의 주소 만큼 증가된 제 1 읽기 포인터(70)와 카운터 레지스터(30)의 값을 가산기(60)에서 더하여 제 1 읽기 포인터(70)에 로드하여 읽기 동작을 계속 수행한다.Next, when only the read signal RD is applied to the control logic unit 10 to perform a read operation in a first-in first-out manner, the first read pointer 70 is increased to perform the first read pointer 70 and the second. If the value of the read pointer 50 is the same, the first read pointer 70 and the counter register 30 increased by one address to skip the portion of memory used for the stack and adjust the first read pointer 70. Is added to the adder 60 and loaded into the first read pointer 70 to continue the read operation.

한편, 읽기 동작시, 상술한 바와 같이 제어된 선입 선출용 제 1읽기 포인터(70)와 후입 선출용 제 2읽기 포인터(50)중에서 제어 로직부(10)에서 발생되는 선택 신호에 기초하여 선택적으로 멀티플렉서(80)에서 선택 출력한다.On the other hand, during the read operation, selectively based on the selection signal generated by the control logic unit 10 among the first-in first-out first read pointer 70 and the second-in first-out read pointer 50 controlled as described above. The multiplexer 80 selectively outputs the result.

이상 설명한 바와 같이 본 발명에 따르면, 선입 선출 메모리 장치를 필요에 따라 스택 즉, 후입 선출 방식으로도 사용할 수 있는 효과가있다.As described above, according to the present invention, there is an effect that the first-in, first-out memory device can be used as a stack, that is, the first-in, first-out method as needed.

Claims (2)

데이타를 기억하기 위한 메모리 수단과, 상기 메모리 수단으로 데이타를 입출력하기 위한 임시 저장 수단과, 데이타를 상기 메모리 수단에 쓸 경우 주소가 하나씩 증가되면서 쓸 위치를 지정하는 쓰기 포인터 수단과, 데이타를 상기 메모리 수단에서 읽을 경우 주소가 하나씩 증가되면서 읽을 위치를 지정하기 위한 읽기 포인터 수단을 구비한 선입 선출 메모리 장치에 있어서, 상기 읽기 포인터 수단은, 선입 선출과 겸용으로 후입 선출 입출력 방식으로 상기 메모리 수단을 사용하기 위하여 입출력 방식 선택을 위한 제어 신호에 의해 상기 선입 선출 방식과 후입 선출방식을 공용할 수 있는 선택적 읽기 포인터 수단인 것을 특징으로 하는 스택 겸용 선입 선출 메모리 장치.Memory means for storing data, temporary storage means for inputting and outputting data to and from the memory means, write pointer means for designating a writing position by incrementing an address when data is written to the memory means, and writing data to the memory; In the first-in, first-out memory device having a read pointer means for designating a read position as the address is increased by one when reading from the means, wherein the read pointer means uses the memory means as a last-in first-out input / output method in combination with first-in-first-out. And an optional read pointer means for sharing the first-in first-out method and the last-in first-out method by a control signal for selecting an input / output method. 제 1항에 있어서, 상기 선택적 읽기 포인터 수단은, 상기 제어 신호인 읽기 신호와 쓰기 신호와 선택적으로 상기 메모리 장치를 스택으로 사용하기 위한 스택 신호를 입력으로 하여 전반적이 상기 선택적 읽기 포인터 수단을 제어하는 제어 로직부와; 상기 제어 로직부로부터의 제어 신호에 기초하여 스택용으로 입력되는 데이타를 카운트 업하고, 스택용으로 읽기 동작을 할 경우에 카운트 다운을 하는 카운터와; 상기 제어 로직부로부터의 제어 신호에 기초하여 상기 카운터에서 다운 카운트하기 전의 상기 스택용으로 입력된 데이타의 갯수를 다운받아 기억하는 카운터 레지스터와; 상기 제어 로직부로부터의 제어 신호에 기초하여 상기 쓰기 포인터 수단의 값을 로드받아 기억하고 스택용 읽기 포인터로 주소가 하나씩 감소하면서 수행하는 제 2 읽기 포인터와; 상기 제어 로직부에 상기 읽기 신호가 인가되어 선입 선출 읽기 동작시 상기 제어 로직부로부터의 제어 신호에 기초하여 주소가 하나씩 증가하여 다음 읽을 주소를 갖는 제 1 읽기포인터와; 상기 제어로직부에 상기 읽기 신호가 인가되어 선입 선출 읽기 동작시 상기 제 1 읽기 포인터의 값과 상기 제 2 읽기 포인터의 값이 같을 경우 스택용으로 사용된 메모리 부분에 대한 제 1 읽기 포인터를 조정하기 위하여 상기 카운터 레지스터의 값과 상기 제 1 읽기 포인터의 값을 더하여 상기 제 1 읽기 포인터로 출력하기 위한 가산기와; 상기 제어 로직부로부터의 선택 신호에 따라 상기 제 1 읽기 포인터와 제 2 읽기 포인터를 선택적으로 출력하는 멀티플렉서를 포함하는 것을 특징으로 하는 스택 겸용 선입 선출 메모리 장치.The method of claim 1, wherein the selective read pointer means controls the selective read pointer means as a whole by inputting a read signal, a write signal, which is the control signal, and a stack signal for selectively using the memory device as a stack. A control logic section; A counter for counting up data input for a stack based on a control signal from the control logic unit and counting down when a read operation is performed for the stack; A counter register which downloads and stores the number of data input for the stack before down counting in the counter based on a control signal from the control logic section; A second read pointer configured to receive and store a value of the write pointer means based on a control signal from the control logic unit and to perform an address decrease by one with a stack read pointer; A first read pointer having the next read address by applying the read signal to the control logic unit so that an address is increased by one based on a control signal from the control logic unit during a first-in first-out read operation; When the read signal is applied to the control logic unit and adjusts the first read pointer for the memory portion used for the stack when the value of the first read pointer and the second read pointer are the same in the first-in first-out read operation. An adder for adding the value of the counter register and the value of the first read pointer to output the first read pointer; And a multiplexer for selectively outputting the first read pointer and the second read pointer according to a selection signal from the control logic unit.
KR1019940028260A 1994-10-31 1994-10-31 First-in/first-out memory device KR0134461B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019940028260A KR0134461B1 (en) 1994-10-31 1994-10-31 First-in/first-out memory device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019940028260A KR0134461B1 (en) 1994-10-31 1994-10-31 First-in/first-out memory device

Publications (2)

Publication Number Publication Date
KR960015574A KR960015574A (en) 1996-05-22
KR0134461B1 true KR0134461B1 (en) 1998-04-20

Family

ID=19396592

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019940028260A KR0134461B1 (en) 1994-10-31 1994-10-31 First-in/first-out memory device

Country Status (1)

Country Link
KR (1) KR0134461B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20200046375A (en) * 2018-10-24 2020-05-07 주식회사 조이택스솔루션 Method for providing consulting information for user's stock trading

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20200046375A (en) * 2018-10-24 2020-05-07 주식회사 조이택스솔루션 Method for providing consulting information for user's stock trading

Also Published As

Publication number Publication date
KR960015574A (en) 1996-05-22

Similar Documents

Publication Publication Date Title
US4138732A (en) Data transfer control system
US4486854A (en) First-in, first-out memory system
JPS6155688B2 (en)
US20020078317A1 (en) First-in, first-out (FIFO) memory with moving boundary
EP0167959B1 (en) Computer vector register processing
US6584512B1 (en) Communication DMA device for freeing the data bus from the CPU and outputting divided data
KR0134461B1 (en) First-in/first-out memory device
JPS6211736B2 (en)
JP2595992B2 (en) Electronic musical instrument
JP3371278B2 (en) Shared buffer type switch section
JPH0756804A (en) Data recording and reproducing device
JPH0255821B2 (en)
JPH0535411A (en) Cache memory circuit
JPH0833869B2 (en) Data processing device
JPS60116056A (en) Data transferring system
JPS6124737B2 (en)
JPH0255822B2 (en)
JPH02189627A (en) Access circuit for data memory
JPS6116364A (en) Vector data processor
JPS6242237A (en) Loading system to instruction buffer
JPH02190968A (en) Vector processor
JPH0276071A (en) Data retrieval circuit
JPS62209792A (en) Fifo circuit
JPH06214939A (en) Dma controller
JPH1125009A (en) Data transfer control device

Legal Events

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

Payment date: 20111201

Year of fee payment: 15

FPAY Annual fee payment

Payment date: 20121203

Year of fee payment: 16

LAPS Lapse due to unpaid annual fee