KR0145893B1 - The apparatus of preventing overflow - Google Patents

The apparatus of preventing overflow

Info

Publication number
KR0145893B1
KR0145893B1 KR1019950017546A KR19950017546A KR0145893B1 KR 0145893 B1 KR0145893 B1 KR 0145893B1 KR 1019950017546 A KR1019950017546 A KR 1019950017546A KR 19950017546 A KR19950017546 A KR 19950017546A KR 0145893 B1 KR0145893 B1 KR 0145893B1
Authority
KR
South Korea
Prior art keywords
condition
overflow
register
decoder
flag
Prior art date
Application number
KR1019950017546A
Other languages
Korean (ko)
Other versions
KR970002612A (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 KR1019950017546A priority Critical patent/KR0145893B1/en
Publication of KR970002612A publication Critical patent/KR970002612A/en
Application granted granted Critical
Publication of KR0145893B1 publication Critical patent/KR0145893B1/en

Links

Classifications

    • 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/30003Arrangements for executing specific machine instructions
    • G06F9/30072Arrangements for executing specific machine instructions to perform conditional operations, e.g. using predicates or guards
    • 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/30094Condition code generation, e.g. Carry, Zero flag
    • 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/30098Register arrangements

Abstract

이 발명은 오버플로 방지 장치에 관한 것으로서, 네거티브 플래그, 오버플로 플래그, 캐리 플래그등을 입력으로 하여 누산기에 오버플로가 발생한 조건을 검출하는 숫자의 조건 검출 회로, 상기 숫자의 조건 검출 회로의 출력으로 라이트 기능이 수행될 디코더를 인에이블 또는 디스에이블하는 레지스터 라이트 기능 선택 회로로 구성되어, 누산을 할 때 상태 레지스터의 네거티브, 오버플로, 캐리 비트를 이용하여 크거나 같은 조건, 작은 조건등을 검출하여 그 검출된 조건에 의해 레지스터 라이트 기능을 선택하여 오버플로가 발생을 하면 누산기로 지정된 레지스터를 업데이트 하지않고 오버플로가 발생하지 않으면 그 결과를 목적 레지스터에 저장하는 명령을 제공하기 위한 오버플로 방지 장치에 관한 것이다.The present invention relates to an overflow prevention device, comprising: a numerical condition detection circuit for detecting a condition in which an overflow occurs in an accumulator by inputting a negative flag, an overflow flag, a carry flag, and the like, and an output of the condition detection circuit of the number. It is composed of register write function selection circuit that enables or disables the decoder to be written. When accumulating, it detects large or equal condition and small condition by using negative, overflow and carry bit of status register. If the overflow occurs by selecting the register write function according to the detected condition, the overflow prevention device is provided to provide an instruction to store the result in the destination register if the overflow does not occur without updating the register designated by the accumulator. It is about.

Description

오버 플로 방지 장치Overflow protection device

제1도는 종래의 일반적인 연산을 수행하는 마이크로 코드의 순서도이고,1 is a flowchart of microcode for performing a conventional general operation,

제2도는 종래의 오버플로가 발생한 경우의 시간과 누산기 값 사이의 그래프이고,2 is a graph between the time when a conventional overflow occurred and the accumulator value,

제3도는 이 발명의 실시예에 따른 오버플로 방지 장치의 구성 회로도이고,3 is a configuration circuit diagram of an overflow prevention apparatus according to an embodiment of the present invention,

제4도는 이 발명의 실시예에 따른 오버플로를 방지하는 명령을 수행하는 마이크로 코드의 순서도이고,4 is a flowchart of microcode for performing an instruction for preventing overflow according to an embodiment of the present invention.

제5도는 이 발명의 실시예에 따른 오버플로가 방지된 경우의 시간과 누산기값 사이의 그래프이다.5 is a graph between time and accumulator value when overflow is prevented according to an embodiment of the present invention.

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

10 : 숫자의 조건 검출 회로 11 : 부호있는 숫자의 조건 검출 회로10: condition detection circuit of numbers 11: condition detection circuit of signed numbers

12 : 숫자의 상하한 검출 회로 13 : 디코더12: upper and lower limit detection circuit of the number 13: decoder

14 : 4-입력 NAND 게이트 20 : 레지스터 라이트 기능 선택 회로14: 4-input NAND gate 20: resistor write function selection circuit

21 : 디코더 22 : 인에이블 신호 공급 회로21: decoder 22: enable signal supply circuit

23 : 디코더23: decoder

이 발명은 오버플로 방지 장치에 관한 것으로서, 더욱 상세하게 말하자면 누산을 할 때 상태 레지스터의 네거티브, 오버플로, 캐리 비트를 이용하여 크거나 같은 조건, 작은 조건등을 검출하여 그 검출된 조건에 의해 레지스터 라이트 기능을 선택하여 오버플로가 발생하면 누산기로 지정된 레지스터를 업데이트(update)하지 않는 오버플로 방지 장치에 관한 것이다.The present invention relates to an overflow prevention device. More specifically, when accumulating, a negative or overflow condition of a status register is detected using a negative, overflow or carry bit. An overflow prevention device that does not update a register designated by an accumulator when an overflow occurs by selecting a write function.

이하, 첨부된 도면을 참조로 하여 종래의 오버플로 방지 방법에 대하여 설명한다.Hereinafter, a conventional overflow prevention method will be described with reference to the accompanying drawings.

제1도는 종래의 일반적인 연산을 수행하는 마이크로 코드의 순서도이며, 제2도는 종래의 오버플로가 발생한 경우의 시간과 누산기 값 사이의 그래프이다.FIG. 1 is a flow chart of a microcode performing a conventional general operation, and FIG. 2 is a graph between time and accumulator values when a conventional overflow occurs.

제1도에 나타낸 바와 같이, 먼저 프로그램 카운터(PC, Program Counter)를 증가시키고, 목적 레지스터(destination register)의 값을 산술논리연산장치(ALU, Arithmatic Logic Unit)로 입력시킨다. 또한 즉시 데이터(immediate data)를 산술논리연산장치로 입력시킨다. 산술논리연산장치에서의 연산 결과를 목적 레지스터로 입력시킨다.As shown in FIG. 1, a program counter (PC) is first increased, and a value of a destination register is input to an arithmetic logic unit (ALU). In addition, immediate data is input to the arithmetic logic unit. The operation result of the arithmetic logic unit is input to the destination register.

이 과정에서 발생되는 오버플로를 제2도에서 보여준다.The overflow that occurs during this process is shown in Figure 2.

이처럼 오버플로를 방지하지 못했을 때 누산기의 값이 레지스터의 비트 범위를 초과하여 갑작스런 값의 변화가 나타나 있다.This failure to prevent overflow results in a sudden change in the accumulator value beyond the register's bit range.

종래의 마이크로프로세서등을 이용하여 하나의 레지스터를 누산기로 지정하여 어떠한 알고리즘을 수행할 때, 불특정 다수의 데이타를 입력으로 받아들이다보면 누산기에서는 오버플로가 발생하게 되며 이 오버플로는 누산기의 부호비트를 토글(Toggle)시켜 누산기의 값을 한순간에 의미없게 만들어 버리고 알고리즘 자체를 오동작하게 만드는 경우가 있다.When performing a certain algorithm by designating one register as an accumulator using a conventional microprocessor, the accumulator overflows, and this overflow causes the accumulator to overflow the sign bit. Toggles can sometimes make the value of an accumulator meaningless and cause the algorithm itself to malfunction.

이러한 경우 일반적인 마이크로프로세서등에서는 입력 데이타를 사전에 잘 검색하여 오버플로가 발생하지 않도록 하거나, 누산을 하기전에 오버플로를 검사하여 미연에 방지하는 등의 방법으로 문제를 해결했다.In this case, the general microprocessor has solved the problem by retrieving the input data well so that no overflow occurs, or by checking the overflow before accumulating.

그러나 상기한 종래의 기술에서 입력 데이타를 사전에 검색하여 오버플로가 발생하지 않도록 하는 방법은, 어떠한 상태가 발생할지 모르는 상황에서 모든 입력 데이타를 검색하기는 어려우며, 또한 누산을 하기전에 오버플로를 검사하는 방법은 누산 알고리즘을 2번 반복하는 것과 같으므로 알고리즘의 수행시간과 코드의 크기, 하드웨어 부담등이 더 요구된다는 문제점이 있다.However, in the above-described conventional technique, a method of preventing the occurrence of overflow by searching the input data in advance is difficult to retrieve all the input data in a situation where it may not occur, and also checks the overflow before accumulating. Since the method is the same as repeating the accumulation algorithm twice, there is a problem in that the execution time of the algorithm, the size of the code, and the hardware burden are required.

따라서 이 발명의 목적은 상기한 종래의 문제점을 해결하기 위한 것으로서, 누산을 할 때 오버플로가 발생을 하면 누산기로 지정된 레지스터를 업데이트(update)하지않는 오버플로 방지 장치를 제공하기 위한 것이다.Accordingly, an object of the present invention is to solve the above-mentioned conventional problem, and to provide an overflow prevention device that does not update a register designated as an accumulator when an overflow occurs when accumulating.

상기한 목적을 달성하기 위한 수단으로서 이 발명의 구성은, 네거티브 플래그, 오버플로 플래그, 캐리 플래그등을 입력으로 하여 누산기에 오버플로가 발생한 조건을 검출하는 숫자의 조건 검출 회로, 상기 숫자의 조건 검출 회로의 출력과 마이크로 코드에 의해 선택된 라이트 모드를 이용하여 라이트 기능이 수행될 디코더를 인에이블 또는 디스에이블하는 레지스터 라이트 기능 선택 회로로 이루어진다.As a means for achieving the above object, the constitution of the present invention is a numerical condition detection circuit which detects a condition in which an overflow occurs in an accumulator by inputting a negative flag, an overflow flag, a carry flag, or the like, and detecting the condition of the number. And a register write function selection circuit for enabling or disabling the decoder on which the write function is to be performed using the output of the circuit and the write mode selected by the microcode.

상기한 구성에 의하여, 이 발명이 속하는 기술분야에서 통상의 지식을 가진자가 이 발명을 용이하게 실시할 수 있는 가장 바람직한 실시예를 첨부된 도면을 참조로 하여 상세히 설명한다.With the above configuration, the most preferred embodiment which can be easily carried out by those skilled in the art with reference to the present invention will be described in detail with reference to the accompanying drawings.

제3도는 이 발명의 실시에 따른 오버플로 방지 장치의 구성 회로도이다. 제3도에 나타낸 바와같이 이 발명의 실시예에 따른 오버플로 방지 장치의 구성은, 네거티브 플래그, 오버플로 플래그, 캐리 플래그등을 입력으로 하여 누산기에 오버플로가 발생한 조건을 검출하는 숫자의 조건 검출 회로(10)와, 상기 숫자의 조건 검출 회로(10)에 의해 검출된 조건과 마이크로 코드에 의해 선택된 라이트 모드를 이용하여 라이트 기능이 수행될 디코더를 인에이블 또는 디스에이블하는 레지스터 라이트 기능 선택 회로(20)로 이루어진다.3 is a configuration circuit diagram of an overflow prevention apparatus according to an embodiment of the present invention. As shown in FIG. 3, the configuration of the overflow prevention apparatus according to the embodiment of the present invention is a numerical condition detection for detecting a condition in which an overflow occurs in the accumulator by inputting a negative flag, an overflow flag, a carry flag, and the like. A register write function selection circuit for enabling or disabling the decoder on which the write function is to be performed using the circuit 10 and the write mode selected by the microcode and the condition detected by the numerical condition detecting circuit 10 ( 20).

상기 네거티브 플래그, 오버플로 플래그, 캐리 플래그등을 입력으로 하여 누산기에 오버플로가 발생한 조건을 검출하는 숫자의 조건 검출 회로(10)는 부호있는 숫자의 조건 검출 회로(11), 숫자의 상하한 검출 회로(12), 명령 레지스터에 할당된 2비트에 의해 숫자의 상하한 검출 회로(12)를 선택하는 기능을 하는 디코더(13), 상기 숫자의 상하한 검출 회로(12)의 출력을 입력으로 공급받아 그 출력을 레지스터 라이트 기능 선택 회로(20)로 공급하는 4-입력 NAND 게이트(14)로 구성된다.Numerical condition detection circuit 10 for detecting a condition in which an overflow occurs in an accumulator by inputting the negative flag, overflow flag, carry flag, and the like is performed. The circuit 12, a decoder 13 having a function of selecting the upper and lower detection circuits 12 of the numbers by two bits allocated to the command register, and supplying the outputs of the upper and lower detection circuits 12 of the numbers as inputs. And a four-input NAND gate 14 that receives the output to the register write function selection circuit 20.

상기 부호있는 숫자의 조건 검출 회로(11)는 네거티브 플래그와 오버플로 플래그를 입력으로 받아들여 부호있는 숫자의 크거나 같은 조건을 검출하는 XOR 게이트(111), 역시 네거티브 플래그와 오버플로 플래그를 입력으로 받아들여 부호있는 숫자의 작은 조건을 검출하는 XNOR 게이트(112)로 구성된다.The signed number condition detecting circuit 11 receives a negative flag and an overflow flag as inputs, and detects a condition equal to or greater than the signed number, and also receives a negative flag and an overflow flag as inputs. It consists of an XNOR gate 112 that accepts and detects a small condition of a signed number.

상기 숫자의 상하한 검출 회로(12)는 부호있는 숫자의 하한(low limit)조건을 검출하는 NAND 게이트(121), 부호있는 숫자의 상한(high limit) 조건을 검출하는 NAND 게이트(122), 부호없는 숫자의 하한 조건을 검출하는 NAND 게이트(123), 부호없는 숫자의 상한 조건을 검출하는 NAND 게이트(124)로 구성된다.The upper and lower limit detection circuit 12 of the number includes a NAND gate 121 for detecting a low limit condition of a signed number, a NAND gate 122 for detecting a high limit condition of a signed number, and a sign. NAND gate 123 for detecting the lower limit condition of an unsigned number, and NAND gate 124 for detecting the upper limit condition of an unsigned number.

상기 숫자의 조건 검출 회로(10)에 의해 검출된 조건을 이용하여 레지스터 라이트 기능을 선택하는 레지스터 라이트 기능 선택 회로(20)는 오버플로 방지 명령에서 마이크로 코드에 의해 라이트 모드를 선택하는 디코더(21), 상기 크거나 같은 조건, 작은 조건 검출 회로(10)에 의하여 검출된 조건과 어떤 다른 상태로부터의 입력과 상기 디코더(21)의 출력을 공급받아 레지스터를 선택하는 디코더에 인에이블 신호를 공급하는 인에이블 신호 공급 회로(22), 상기 인에이블 신호 공급 회로(22)의 출력 반전 신호를 인에이블 신호로 받고 마이크로 코드에 의해 레지스터 선택 기능을 하는 디코더(23)로 이루어진다.The register write function selection circuit 20 for selecting the register write function using the conditions detected by the numerical condition detection circuit 10 is a decoder 21 for selecting the write mode by the micro code in the overflow prevention instruction. And an input for supplying an enable signal to a decoder for selecting a register by receiving an input from an output of the decoder 21 and an output from a condition different from the condition detected by the large or small condition detecting circuit 10. The enable signal supply circuit 22 and the decoder 23 for receiving the output inverted signal of the enable signal supply circuit 22 as an enable signal and performing a register selection function by a micro code.

상기 인에이블 신호 공급 회로(22)는 어떤 다른 상태(AnyOtherCondition)와 디코더(21)로 부터 입력을 공급받는 NAND 게이트(221), 4-입력 NAND 게이트(14)와 디코더(21)의 출력을 입력으로 받아들이는 NAND 게이트(222), 상기 두 NAND 게이트(221)(222)의 출력을 입력으로 공급받는 NOR 게이트(223)로 구성된다.The enable signal supply circuit 22 inputs an output of the NAND gate 221, the four-input NAND gate 14, and the decoder 21, which are input from some other state (AnyOtherCondition) and the decoder 21. NAND gate 222 to be received as, and the NOR gate 223 receives the output of the two NAND gates 221, 222 as an input.

상기한 구성에 의한, 이 발명의 실시예에 따른 오버플로 방지 장치의 작용은 다음과 같다.The operation of the overflow prevention device according to the embodiment of the present invention by the above configuration is as follows.

XOR 게이트(111)는 상태 레지스터의 네거티브 플래그와 오버플로 플래그를 입력으로 하여 부호가 있는 숫자의 크거나 같은 조건을 검출하고, 역시 XOR 게이트(11)과 같은 입력을 가지는 XOR 게이트(12)는 부호가 있는 숫자의 작은 조건을 검출한다.The XOR gate 111 detects a condition equal to or greater than the signed number by inputting the negative flag and the overflow flag of the status register, and the XOR gate 12 having the same input as the XOR gate 11 is also a sign. Detects a small condition of a number.

그래서 NAND 게이트(121)는 부호있는 숫자의 하한 조건을, NAND 게이트(122)는 부호있는 숫자의 상한을, NAND 게이트(123)는 부호없는 숫자의 하한을, NAND 게이트(124)는 부호없는 숫자의 상한을 검출하게 되며, 그 선택은 명령레지스터로부터 할당된 2비트에 의해서 디코더(13)에서 이루어진다.Thus, NAND gate 121 is the lower limit of signed numbers, NAND gate 122 is the upper limit of signed numbers, NAND gate 123 is the lower limit of unsigned numbers, and NAND gate 124 is an unsigned number. The upper limit of is detected, and the selection is made in the decoder 13 by two bits allocated from the instruction register.

오버플로 방지 명령에 대해서 설명하면, 제3도의 NAND게이트(121)(122)(123)(124)를 선택하는 신호가 명령 레지스터의 할당된 2비트에 의해서 이루어진다고 설명한 것으로 보아 4종류의 오버플로 방지 명령이 고안되고 있음을 알 수 있다.Referring to the overflow prevention instruction, four types of overflows are described as the signal for selecting the NAND gates 121, 122, 123, and 124 of FIG. 3 is made by the allocated two bits of the instruction register. It can be seen that a prevention order is being devised.

하나의 부호있는 숫자를 계속 더할 때, 둘은 부호있는 숫자를 계속 뺄 때, 셋은 부호없는 숫자를 계속 더할 때, 넷은 부호없는 숫자를 계속 뺄 때 적용된다.When adding one signed number, two continue to subtract a signed number, three continue to add an unsigned number, and four continue to subtract an unsigned number.

그리고 페치(fetch) 사이클에서 오버플로 방지명령이 명령 레지스터에 들어오면 해당 마이트로 코드가 실행되는데 내부 레지스터와 즉시 데이터를 더하는 경우 이 발명의 실시예에 따른 오버플로 방지 명령의 마이크로 코드의 진행순서는 제4도에 나타나 있다.When the overflow prevention instruction enters the instruction register in the fetch cycle, the code is executed as the corresponding mite. When the internal register and the data are added immediately, the procedure of the microcode of the overflow prevention instruction according to the embodiment of the present invention is performed. It is shown in FIG.

제4도에서는 산술논리연산장치에서의 연산 결과 나타난 조건에 의해서 오버플로가 발생했는지 안했는지를 판별하여 오버플로가 발생했으면 그 결과를 목적 레지스터에 저장하지 않으며, 오버플로가 발생하지 않으면 그 결과를 목적 레지스터에 저장한다.In Fig. 4, it is determined whether or not overflow has occurred according to the condition indicated by the operation result of the arithmetic logic unit. If overflow occurs, the result is not stored in the destination register. Store in the destination register.

이 발명의 실시예에 따라 오버플로가 방지된 경우의 시간과 누산기 값 사이의 그래프는 제5도에 나타나 있다.A graph between time and accumulator value when overflow is prevented in accordance with an embodiment of the invention is shown in FIG.

예를 들자면, 오버플로 방지 명령의 표현을 CLIPHS #10, RD라고 한다면, RD의 값과 즉시 데이타 10과 뺄셈을 통하여 비교하여 상태 레지스터의 값을 가지고 크거나 같은 조건, 작은 조건 검출 회로(10)에 의해서 조건이 발생했는가를 판별하고, 레지스터 라이트 기능 선택 회로(20)는 오버플로 방지명령에서 마이크로 코드에 의해서 선택되는 라이트 모드의 출력으로 라이트 기능이 수행될 디코더를 인에이블 또는 디스에이블 하게 된다.For example, if the expression of the overflow prevention instruction is CLIPHS # 10, RD, the condition detection circuit 10 for the condition equal or small with the value of the status register is compared with the value of RD through subtraction with data 10 immediately. By determining whether a condition has occurred, the register write function selection circuit 20 enables or disables the decoder on which the write function is to be performed with the output of the write mode selected by the micro code in the overflow prevention instruction.

즉 CLIPHS #10, RD에서 RD가 10보다 크게되면 크거나 같은 조건, 작은 조건검출 회로(10)의 NAND 게이트(122)에 의해서 발생된 신호가 레지스터 라이트 기능 선택 회로(20)의 디코더(23)를 디스에이블 시켜서 라이트 기능이 수행안되게 된다.That is, when RD is greater than 10 in CLIPHS # 10, RD, a signal generated by the NAND gate 122 of the condition detection circuit 10 that is greater or equal to or smaller than that of the condition detection circuit 10 is decoded by the decoder 23 of the register write function selection circuit 20. Disable disables the write function.

반대로 RD가 10보다 작게 되면 레지스터 라이트 기능 선택 회로(20)의 디코더(23)는 인에이블 되어 해당되는 레지스터로 라이트 기능이 수행되어 누산이 되는 것이다.On the contrary, when RD is smaller than 10, the decoder 23 of the register write function selection circuit 20 is enabled and the write function is performed to the corresponding register to accumulate.

이상에서와 같이 이 발명의 실시예에서, 이 발명의 목적을 제5도에 나타내면 이것을 오버플로를 방지하지 못했을 때는 누산기의 값이 레지스터의 비트 범위를 초과하여 갑작스런 값의 변화가 나타나 있으나 본 발명을 사용했을 경우 제5도에 도시되어 있듯이 레지스터의 비트 범위를 초과하는 경우가 발생하더라도 정해진 상한값 또는 하한값에서 그 값이 유지되는 효과를 가진 오버플로 방지장치를 제공할 수 있다.As described above, in the embodiment of the present invention, when the purpose of the present invention is shown in FIG. 5, when the overflow is not prevented, the value of the accumulator exceeds the bit range of the register, but there is a sudden change in the value. When used, as shown in FIG. 5, an overflow prevention device having an effect of maintaining the value at a predetermined upper limit or lower limit even when a bit range of a register is exceeded may occur.

이 발명의 이러한 효과는 16비트 중앙처리장치분야의 기능을 가진 마이컴 분야에서 이용될 수 있다.This effect of the present invention can be used in the microcomputer field with the function of the 16-bit CPU.

Claims (3)

네거티브 플래그, 오버플로 플래그, 캐리 플래그 낫캐리 플래그를 입력으로 하여 누산기에 오버플로가 발생한 조건을 검출하는 숫자의 조건 검출회로, 상기 숫자의 조건 검출 회로의 출력과 마이크로 코드에 의해 선택된 라이트 모드를 이용하여 라이트 기능이 수행될 디코더를 인에이블 또는 디스에이블하는 레지스터 라이트 기능 선택 회로로 이루어지는 것을 특징으로 하는 오버플로 방지 장치.Negative flag, overflow flag, carry flag Null carry flag is used as input to detect condition where overflow occurs in accumulator, output of the condition detection circuit of number and write mode selected by micro code And a register write function selection circuit for enabling or disabling the decoder on which the write function is to be performed. 제1항에 있어서, 상기한 숫자의 조건 검출 회로는, 상태 레지스터의 값으로 조건을 판별하여 부호있는 숫자의 크거나 같은 조건, 작은 조건등을 검출하는 부호있는 숫자의 조건 검출 회로, 훗자의 하한과 상한을 검출하는 숫자의 상하한 검출 회로, 상기 숫자의 상하한 검출 회로를 선택하는 기능을 하는 디코더, 상기 디코더에 의해 선택된 조건을 레지스터 라이트 기능 선택 회로에 공급하는 4-입력 NAND 게이트로 이루어지는 것을 특징으로 하는 오버플로 방지 장치.2. A signed number condition detecting circuit according to claim 1, wherein said condition detecting circuit of said number is a condition of a signed number which detects a condition by a value of a status register and detects a condition equal to or less than a signed number, and a lower limit of the latter. And a four-input NAND gate for supplying the upper and lower limit detection circuits for detecting the upper and upper limits, the decoder functioning to select the upper and lower limit detection circuits for the number, and supplying a condition selected by the decoder to the register write function selection circuit. An overflow prevention device. 제1항에 있어서, 상기한 레지스터 라이트 기능 선택 회로는, 마이크로 코드로부터 라이트 모드를 선택하는 디코더, 상기 디코더에 의해 인에이블 신호를 공급하는 인에이블 신호 공급 회로, 마이크로 코드에 의해 레지스터를 선택하는 디코더로 이루어지는 것을 특징으로 하는 오버플로 방지 장치.The decoder of claim 1, wherein the register write function selection circuit includes a decoder for selecting a write mode from a micro code, an enable signal supply circuit for supplying an enable signal by the decoder, and a decoder for selecting a register by a micro code. Overflow prevention device, characterized in that consisting of.
KR1019950017546A 1995-06-26 1995-06-26 The apparatus of preventing overflow KR0145893B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019950017546A KR0145893B1 (en) 1995-06-26 1995-06-26 The apparatus of preventing overflow

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019950017546A KR0145893B1 (en) 1995-06-26 1995-06-26 The apparatus of preventing overflow

Publications (2)

Publication Number Publication Date
KR970002612A KR970002612A (en) 1997-01-28
KR0145893B1 true KR0145893B1 (en) 1998-09-15

Family

ID=19418365

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019950017546A KR0145893B1 (en) 1995-06-26 1995-06-26 The apparatus of preventing overflow

Country Status (1)

Country Link
KR (1) KR0145893B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100929843B1 (en) * 2007-09-28 2009-12-04 주식회사 하이닉스반도체 Counters that do not overflow

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100929843B1 (en) * 2007-09-28 2009-12-04 주식회사 하이닉스반도체 Counters that do not overflow
US7738621B2 (en) 2007-09-28 2010-06-15 Hynix Semiconductor Inc. Counter with overflow prevention capability

Also Published As

Publication number Publication date
KR970002612A (en) 1997-01-28

Similar Documents

Publication Publication Date Title
US4434464A (en) Memory protection system for effecting alteration of protection information without intervention of control program
US7752427B2 (en) Stack underflow debug with sticky base
EP0702297B1 (en) A data processor with breakpoint circuit
US4199810A (en) Radiation hardened register file
CA1216070A (en) Enhanced alu test hardware
CA1085517A (en) Hardware control storage area protection method and means
US5140684A (en) Access privilege-checking apparatus and method
US4878189A (en) Microcomputer having Z-flag capable of detecting coincidence at high speed
KR0145893B1 (en) The apparatus of preventing overflow
US20030084272A1 (en) Handling problematic events in a data processing apparatus
US7467178B2 (en) Dual mode arithmetic saturation processing
CN107817966B (en) Comparator and memory region detection circuit and method
KR100239438B1 (en) Cpu having function for preventing malfuction
JPH05216721A (en) Electronic computer
US4649478A (en) Operation code selected overflow interrupts
JPS62106552A (en) Loop detector
JPH0293734A (en) Error detecting method in information processor
JP3585940B2 (en) calculator
JP2658342B2 (en) Data processing device
JPH0352092B2 (en)
US7293258B1 (en) Data processor and method for using a data processor with debug circuit
JPH04195629A (en) Arithmetic flag generation device
JPS5939777B2 (en) control storage
JP2001188688A (en) Runaway detecting circuit
JPH0651955A (en) Information processor with floating point arithmetic function

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

Year of fee payment: 13

LAPS Lapse due to unpaid annual fee