KR19980084669A - counter - Google Patents

counter Download PDF

Info

Publication number
KR19980084669A
KR19980084669A KR1019970020515A KR19970020515A KR19980084669A KR 19980084669 A KR19980084669 A KR 19980084669A KR 1019970020515 A KR1019970020515 A KR 1019970020515A KR 19970020515 A KR19970020515 A KR 19970020515A KR 19980084669 A KR19980084669 A KR 19980084669A
Authority
KR
South Korea
Prior art keywords
signal
logic gate
output
logic
input
Prior art date
Application number
KR1019970020515A
Other languages
Korean (ko)
Other versions
KR100236331B1 (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 KR1019970020515A priority Critical patent/KR100236331B1/en
Publication of KR19980084669A publication Critical patent/KR19980084669A/en
Application granted granted Critical
Publication of KR100236331B1 publication Critical patent/KR100236331B1/en

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K21/00Details of pulse counters or frequency dividers
    • H03K21/38Starting, stopping or resetting the counter
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K21/00Details of pulse counters or frequency dividers
    • H03K21/02Input circuits
    • H03K21/026Input circuits comprising logic circuits

Landscapes

  • Logic Circuits (AREA)

Abstract

클럭신호와 피드백신호를 입력하여 논리연산하는 제 1 논리게이트, 피드백신호와 리세트신호를 입력하여 논리연산하는 제 2 논리게이트, 리세트신호와 제 1 논리게이트의 출력을 입력하여 논리연산하는 제 3 논리게이트, 제 2, 제 3 논리게이트의 출력을 입력하여 논리연산하는 제 4 논리게이트, 상기 제 3 논리게이트의 출력을 반전시키는 인버터, 그리고 유저에 의해 설정된 입력값에 따라 제 4 논리게이트의 출력값과 항상 하이레벨을 유지하는 고정신호를 선택적으로 출력하여 셋트신호를 출력하는 제 1, 제 2 트랜스퍼 게이트, 유저에 의해 설정된 입력값에 따라 상기 인버터의 출력값과 고정신호를 선택적으로 출력하여 리세트신호를 출력하는 제 3, 제 4 트랜스퍼 게이트로 구성되는 셋-입력단과, 상기 셋-입력단으로부터 출력되는 셋트신호 또는 리세트신호와 클럭신호에 의해 동작되고 상기 셋-입력단으로 피드백신호를 출력하는 플립플롭을 포함하여 구성된다.A first logic gate for inputting a clock signal and a feedback signal to perform logic operation, a second logic gate for inputting a feedback signal and a reset signal for logic operation, a logic gate for inputting the output of the reset signal and the first logic gate, A third logic gate for inputting the outputs of the third logic gate, the third logic gate, and an inverter for inverting an output of the third logic gate; First and second transfer gates for selectively outputting a fixed signal for maintaining the output value and a high level at all times to output a set signal, and selectively outputting an output value and a fixed signal of the inverter according to an input value set by the user, A set-input terminal configured by third and fourth transfer gates for outputting a set signal and a set signal outputted from the set- Is activated by a signal and the clock signal, the set-is configured to include a flip-flop for outputting a feedback signal to the input stage.

Description

카운터counter

본 발명은 카운터에 관한 것으로, 특히 사이즈를 최소화하고 입력 셋팅(setting)에 따라 카운터의 입력(카운팅이 시작되는 시점)이 시작되는 카운터에 관한 것이다.The present invention relates to a counter, and more particularly to a counter that minimizes size and begins inputting a counter (the start of counting) according to an input setting.

이하, 종래 카운터를 첨부된 도면을 참조하여 설명하기로 한다.Hereinafter, conventional counters will be described with reference to the accompanying drawings.

도 1은 종래 4bits 카운터의 내부구성을 디지탈로직(digital logic)으로 나타낸 것이다.FIG. 1 shows the internal configuration of a conventional 4-bit counter in digital logic.

도 1에 도시한 바와같이 종래 카운터는 복수개의 논리게이트들과 플립플롭(flip-flop)으로 구성된다.As shown in FIG. 1, the conventional counter is composed of a plurality of logic gates and a flip-flop.

여기서 플립플롭은 J-K플립플롭을 사용한다.Here, the flip-flop uses a J-K flip-flop.

종래의 카운터는 제 1, 제 2, 제 3, 제 4 플립플롭(11,13,15,17)과, 입력값과 로드신호와의 논리연산에 의해 4개의 플립플롭으로 인가되는 입력값을 1차적으로 결정하는 제 1 로직부(19)와, 제 1 로직부(19)의 출력중 최상위비트의 출력값과 카운트값을 논리연산하여 제 1 플립플롭(11)의 입력값을 결정하는 제 2 로직부(21), 제 1 플립플롭(11)의 출력값과 제 1 로직부(19)의 출력중 차상위비트의 출력값 그리고 카운트값을 논리연산하여 제 2 플립플롭(13)의 입력값을 결정하는 제 3 로직부(23), 제 2 플립플롭(13)의 출력값과 제 1 로직부(19)의 출력중 다음 차상위비트의 출력값 그리고 카운트값을 논리연산하여 제 3 플립플롭(15)의 입력값을 결정하는 제 4 로직부(25), 제 3 플립플롭(15)의 출력값과 제 1 로직부(19)의 출력중 최하위비트의 출력값 그리고 카운트값을 논리연산하여 제 4 플립플롭(17)의 입력값을 결정하는 제 5 로직부(27)로 구성된다.The conventional counter includes first, second, third, and fourth flip-flops 11, 13, 15, and 17, and an input value applied to the four flip-flops by logical operation of the input value and the load signal is set to 1 A first logic unit 19 for determining the input value of the first flip-flop 11 by logic operation of the output value and the count value of the most significant bit among the outputs of the first logic unit 19, A first flip-flop 11, a second flip-flop 13, and a third flip-flop 13. The first flip-flop 11 and the second flip- 3 logic part 23 and the second flip flop 13 and the output value and the count value of the next higher bit among the output of the first logic part 19 and outputs the input value of the third flip- The output of the third logic unit 25, the third flip-flop 15 and the output of the least significant bit of the output of the first logic unit 19, and the count value The fourth consists of a fifth logic unit 27, which determines the input to the flip-flop 17.

여기서, 각각의 플립플롭에는 클리어(clear)신호와 클럭(clock)신호가 인가되고 상기 카운트신호와 제 1, 제 2, 제 3, 제 4 플립플롭(11,13,15,17)의 출력을 캐리아웃(carry out)으로 하는 앤드게이트(29)가 더 구성된다.Here, a clear signal and a clock signal are applied to each flip-flop, and the count signal and the outputs of the first, second, third, and fourth flip-flops 11, 13, 15, And an AND gate 29 which carries out carry out is further constructed.

또한 제 1 로직부(19)에는 로드(load)신호가 인가되어 해당 입력비트와 논리연산된다.In addition, a load signal is applied to the first logic unit 19 to perform a logic operation on the input bit.

그리고 상기 제 3, 제 4, 제 5 로직부(23,25,27)는 전단 플립플롭의 출력값과 상기 카운트값을 논리연산하는 낸드게이트(23a,25a,27a)들과, 해당 낸드게이트의 출력값과 제 1 로직부(19)에서 출력하는 해당 입력비트의 값을 입력하여 논리연산하는 두 개의 OR게이트(23b,25b,27b)들로 구성된다.The third, fourth and fifth logic units 23, 25 and 27 include NAND gates 23a, 25a and 27a for logically calculating an output value of the front end flip-flop and the count value, And two OR gates 23b, 25b and 27b for inputting a value of a corresponding input bit output from the first logic unit 19 and performing a logical operation.

이와같이 구성된 종래 카운터의 동작설명은 다음과 같다.The operation of the conventional counter configured as described above is as follows.

도 1에 도시된 바와같이 입력비트인 I1, I2, I3, I4은 유저(user)가 특정한 입력값을 설정하고 카운트와 로드신호, 그리고 클리어신호에 의해 상기 제 1, 제 2, 제 3, 제 4 플립플롭(11,13,15,17)의 출력(A1, A2, A3, A4)이 결정된다.As shown in FIG. 1, input bits I 1 , I 2 , I 3 , and I 4 are set by a user to a specific input value, and the first, second, The outputs (A 1 , A 2 , A 3 and A 4 ) of the third and fourth flip-flops 11, 13, 15 and 17 are determined.

일반적으로 카운터는 적용분야에 따라 카운터의 로직을 변경하여야 한다.Generally, the counter should change the logic of the counter depending on the application.

즉, 카운터의 로직을 어떻게 변경하느냐에 따라 사용되는 분야가 다르게 된다.That is, the fields used vary depending on how you change the logic of the counter.

이러한 번거로움을 해소하기 위해 착안된 것이 종래기술에 따른 카운터이다.To solve this hassle, a counter according to the prior art is focused.

종래기술에 따른 카운터는 적용분야가 서로 다르더라도 카운터의 로직을 변겨할 필요없이 카운터의 입력값을 유저가 설정하므로서 가능하다.The counter according to the prior art is possible by setting the input value of the counter without changing the logic of the counter even if the application fields are different from each other.

여기서 유저가 설정한 입력값이란, 카운터가 카운팅하는 시점을 가르키는 값을 말한다.Here, the input value set by the user is a value indicating the time at which the counter counts.

이러한 동작을 간단한 테이블로 구성하여 설명하면 아래와 같다.This operation will be described as a simple table.

여기서 기호 X는 돈캐어(don't care)를 나타낸 것이고 기호 ↑는 값의 변동이 없음을 표시한다.Here, the symbol X indicates do not care and the symbol ↑ indicates that there is no change in value.

상기 테이블에서 보여지듯이 클리어신호가 1이고 클럭신호가 변화가 없고 또한 로드신호가 0이고 카운트신호가1이면 상기 카운터는 카운팅을 시작하게 된다.As shown in the table, when the clear signal is 1, the clock signal is unchanged, the load signal is 0, and the count signal is 1, the counter starts counting.

그리고 클리어신호가 1이고 클럭신호가 don't care이고 로드신호가 0 그리고 카운트신호가 0이면 상기 카운터는 카운팅을 하지 않는다. 즉, 아무런동작을 수행하지 않는다.If the clear signal is 1, the clock signal is do not care, the load signal is 0, and the count signal is 0, the counter does not count. That is, no operation is performed.

물론 상기와 같은 테이블을 구현하기 위한 조건으로서는 입력비트 즉, 카운터의 시작시점을 알리는 입력값을 유저가 설정하여야 한다.Of course, as a condition for implementing the above table, the user has to set the input bit, that is, the input value informing the start time of the counter.

따라서 카운터가 카운트를 시작한다는 것은 전술한 바와같이 유저가 설정한 입력값에 따라 카운팅동작을 시작한다는 것을 의미한다.Therefore, the fact that the counter starts counting means that the counting operation is started according to the input value set by the user as described above.

이와같이 카운터의 적용분야에 관계없이 유저가 카운터의 초기값만을 설정해 놓으면 되므로 구지 카운터의 로직을 변경하지 않아도 된다.In this way, regardless of the application field of the counter, since the user only needs to set the initial value of the counter, it is not necessary to change the logic of the counter.

그러나 상기와 같은 종래 카운터는 비트수가 제 3, 제 4, 제 5 로직부의 입력단자수와 비례하기 때문에 비트수가 증가하면 그에따라 각 입력단자수에 증가하게 되어 면적이 증가되고 결과적으로 소자의 사이즈를 증가시키는 문제점이 있었다.However, since the number of bits in the conventional counter is proportional to the number of input stages of the third, fourth, and fifth logic units, the number of input stages increases as the number of bits increases. As a result, There was a problem.

본 발명은 상기한 문제점을 해결하기 위해 안출한 것으로서 비트수의 증가와 관계없이 간단한 논리게이트만을 추가하여 면적을 최소화하는데 적당한 카운터를 제공하는데 그 목적이 있다.It is an object of the present invention to provide a counter suitable for minimizing an area by adding only a simple logic gate regardless of an increase in the number of bits.

도 1은 종래기술에 따른 카운터의 내부구성도1 is a block diagram of an internal configuration of a counter according to the prior art.

도 2는 본 발명에 따른 카운터의 개략적 구성도2 is a schematic diagram of a counter according to the present invention;

도 3은 본 발명의 카운터에 따른 부분적 상세도3 is a partial detail view according to the counter of the present invention

도 4는 본 발명의 일실시예에 따른 카운터의 구성도4 is a block diagram of a counter according to an embodiment of the present invention.

도 5는 도 4의 일실시예에 따른 파형도Figure 5 is a waveform diagram according to one embodiment of Figure 4;

도면의 주요부분에 대한 부호의 설명DESCRIPTION OF THE REFERENCE NUMERALS

31 : 셋-입력단33 : 플립플롭31: Set-input stage 33: Flip-flop

31a : 제 1 논리게이트31b : 제 2 논리게이트31a: first logic gate 31b: second logic gate

31c : 제 3 논리게이트31d : 제 4 논리게이트31c: third logic gate 31d: fourth logic gate

31e : 제 1 인버터31f,31g,:제 1, 제 2 트랜스퍼 게이트31e: first inverters 31f, 31g: first and second transfer gates

31h,31i : 제 3, 제 4 트랜스퍼 게이트31h and 31i: third and fourth transfer gates

상기의 목적을 달성하기 위한 본 발명의 카운터는 클럭신호와 피드백신호를 입력하여 논리연산하는 제 1 논리게이트, 피드백신호와 리세트신호를 입력하여 논리연산하는 제 2 논리게이트, 리세트신호와 제 1 논리게이트의 출력을 입력하여 논리연산하는 제 3 논리게이트, 제 2, 제 3 논리게이트의 출력을 입력하여 논리연산하는 제 4 논리게이트, 상기 제 3 논리게이트의 출력을 반전시키는 인버터, 그리고 유저에 의해 설정된 입력값에 따라 제 4 논리게이트의 출력값과 항상 하이레벨을 유지하는 고정신호를 선택적으로 출력하여 셋트신호를 출력하는 제 1, 제 2 트랜스퍼 게이트, 유저에 의해 설정된 입력값에 따라 상기 인버터의 출력값과 고정신호를 선택적으로 출력하여 리세트신호를 출력하는 제 3, 제 4 트랜스퍼 게이트로 구성되는 셋-입력단과, 상기 셋-입력단으로부터 출력되는 셋트신호 또는 리세트신호와 클럭신호에 의해 동작되고 상기 셋-입력단으로 피드백신호를 출력하는 플립플롭을 포함하여 구성된다.According to an aspect of the present invention, there is provided a counter comprising a first logic gate for inputting a clock signal and a feedback signal to perform logic operation, a second logic gate for inputting a feedback signal and a reset signal to perform logic operation, A third logic gate for receiving the output of the first logic gate and performing a logic operation, a fourth logic gate for receiving the outputs of the second and third logic gates for logic operation, an inverter for inverting the output of the third logic gate, First and second transfer gates for selectively outputting a fixed signal which always maintains a high level and an output value of the fourth logic gate in accordance with an input value set by the inverter, And a third and a fourth transfer gate for selectively outputting a fixed signal and outputting a reset signal, And a flip-flop which is operated by a set signal or a reset signal and a clock signal output from the set-input terminal and outputs a feedback signal to the set-input terminal.

이하, 본 발명의 카운터를 첨부된 도면을 참조하여 설명하면 다음과 같다.Hereinafter, a counter according to the present invention will be described with reference to the accompanying drawings.

도 2는 본 발명에 따른 카운터의 블록구성도이다.2 is a block diagram of a counter according to the present invention.

도 2에 도시한 바와같이 본 발명의 카운터는 유저가 카운터의 카운팅 시점을 나타내는 값을 설정하는 셋-입력단(31)과, 셋-입력단의 셋트 또는 리세트단자와 연결되는 플립플롭(33)으로 구성된다.2, the counter of the present invention includes a set-input 31 for setting a value indicating a counting time of a counter and a flip-flop 33 connected to a set or reset terminal of the set- .

여기서, 셋-입력단(31)은 플립플롭(33)의 출력값이 피드백되어 입력된다.Here, the set-input terminal 31 is fed back with the output value of the flip-flop 33.

그리고 셋-입력단(31)에는 항상 하이레벨로 고정된 고정신호(UP)와, 리세트 또는 셋트신호가 인가된다.A fixed signal UP fixed at a high level and a reset or set signal are applied to the set-input terminal 31 at all times.

상기 플립플롭(33)은 셋-입력단(31)에서 선택적으로 출력되는 리세트 또는 셋트신호중 하나를 입력으로 하여 동작한다.The flip-flop 33 operates by inputting one of the reset or set signals selectively output from the set-input terminal 31.

이와같이 구성된 본 발명의 카운터에 따른 셋-입력단을 보다 상세히 설명하기로 한다.The set-input stage according to the thus configured counter of the present invention will be described in more detail.

도 3은 본 발명의 카운터에 따른 셋-입력단의 상세구성도이다.3 is a detailed configuration diagram of a set-input terminal according to the present invention.

도 3에 도시한 바와같이 본 발명의 셋-입력단(31)은 4개의 트랜스퍼 게이트와 2개의 OR게이트와, 한 개의 낸드 및 앤드게이트, 그리고 한 개의 인버터로 구성된다.As shown in FIG. 3, the set-input stage 31 of the present invention is composed of four transfer gates, two OR gates, one NAND and AND gate, and one inverter.

즉, 클럭신호와, 상기 플립플롭으로부터 피드백되어 입력되는 신호와, 리세스 또는 셋트신호를 입력하여 논리연산하는 제 1 논리게이트(31a)와, 상기 플립플롭(33)으로부터 피드백되는 신호와 상기 리세트 또는 셋트신호를 입력하여 논리연산하는 제 2 논리게이트(31b)와, 상기 제 1 논리게이트(31a)의 출력과 리셋트 또는 셋트신호를 입력하여 논리연산하는 제 3 논리게이트(31c)와, 상기 제 2 논리게이트(31b)의 출력과 제 3 논리게이트(31c)의 출력을 입력하여 논리연산하는 제 4 논리게이트(31d)와, 상기 제 3 논리게이트(31c)의 출력을 반전시키는 제 1 인버터(31e)와, 유저가 설정된 입력값과 상기 고정신호(UP)에 따라 제 4 논리게이트(31d)의 출력과 상기 제 1 인버터(31e)의 출력을 선택적으로 출력시키는 4개의 트랜스미션 게이트(31f,31g,31h,31i)들을 포함하여 구성된다.A first logic gate 31a for inputting a clock signal, a signal fed back from the flip-flop, and a reset or set signal to perform logic operation; and a second logic gate 31a for receiving a signal fed back from the flip- A third logic gate 31c for inputting the output of the first logic gate 31a and a reset or set signal for logical operation, A fourth logic gate 31d for inputting the output of the second logic gate 31b and the output of the third logic gate 31c and performing a logic operation on the output of the third logic gate 31c, An inverter 31e and four transmission gates 31f for selectively outputting the output of the fourth logic gate 31d and the output of the first inverter 31e according to the input value set by the user and the fixed signal UP , 31g, 31h, 31i.

여기서, 유저가 설정한 입력값이 비반전단자로 입력되고 반전단자는 상기 유저가 설정한 입력값의 반전된 값이 입력되는 제 1 트랜스퍼 게이트(31f)와, 상기 유저가 설정한 입력값이 비반전단자로 입력되고 상기 유저가 설정한 입력값의 반전된 값이 반전단자로 입력되는 제 2 트랜스퍼 게이트(31g)와, 상기 제 1, 제 2 트랜스퍼 게이트(31f,31g)와 마찬가지로 상기 유저가 설정한 입력값이 비반전단자로 입력되고 상기 유저가 설정한 입력값의 반전된 값이 반전단자로 입력되는 제 3, 제 4 트랜스퍼 게이트(31h,31i)로 구성된다.Here, the input value set by the user is input to the non-inverting terminal and the inverting terminal is connected to the first transfer gate 31f to which the inverted value of the input value set by the user is inputted, A second transfer gate 31g which is input to the inverting terminal and to which the inverted value of the input value set by the user is input to the inverting terminal; and a second transfer gate 31g, And third and fourth transfer gates 31h and 31i into which one input value is input to the non-inverting terminal and the inverted value of the input value set by the user is input to the inverting terminal.

그리고 상기 유저가 설정한 입력값의 반전은 도 3에 도시한 바와같이 제 2 인버터(31j)에 의해 이루어진다.The inversion of the input value set by the user is performed by the second inverter 31j as shown in Fig.

상기와 같이 구성된 본 발명에 따른 카운터의 동작을 설명하면 다음과 같다.The operation of the counter according to the present invention will now be described.

먼저, 도 2에 따르면 플립플롭(33)을 구동시키는 셋-입력단(31)은 셋팅된 입력값 즉, S1, S2, S3에 의해서 카운터의 시작시점을 설정한다.First, according to FIG. 2, the set-input terminal 31 for driving the flip-flop 33 sets the start time of the counter by the set input values S 1 , S 2 , S 3 .

셋-입력단(31)의 고정신호는 항상 하이 레벨을 유지하고 있고 플립플롭(33)은 그 출력이 하이신호일 때만 하이레벨의 신호를 셋-입력단(31)으로 피드백 시킨다.The fixed signal of the set-input 31 always maintains a high level, and the flip-flop 33 feeds a high-level signal back to the set-input 31 only when its output is high.

이러한 피드백신호는 로드신호의 역할을 한다.This feedback signal serves as a load signal.

상기와 같은 개략적인 설명을 염두하여 이를 보다 상세히 설명하기로 한다.This will be described in more detail with the above-described schematic description in mind.

도 3에 도시한 바와같이 클럭과 피드백신호가 제 1 논리게이트(31a)를 거쳐 클럭신호의 반주기만큼의 하이신호를 출력한다.As shown in FIG. 3, a clock and a feedback signal output a high signal through the first logic gate 31a by a half period of the clock signal.

제 1 논리게이트(31a)에서 출력되는 신호는 리세트신호 또는 셋트신호와 함께 제 3 논리게이트(31c)로 입력되어 실제적인 로드신호를 만들게 된다.The signal output from the first logic gate 31a is input to the third logic gate 31c together with the reset signal or the set signal to generate an actual load signal.

이어 상기 실제적인 로드신호 즉, 제 3 논리게이트(31c)의 출력신호는 제 1 인버터(31e)에 의해 반전되어 셋트신호로 사용된다.The actual load signal, that is, the output signal of the third logic gate 31c is inverted by the first inverter 31e and used as a set signal.

또한 플립플롭(33)으로부터 입력되는 피드백신호와 리세트 또는 셋트신호는 제 2 논리게이트(31b)를 거쳐 클럭신호의 한 주기 만큼의 하이신호로 출력된다.The feedback signal input from the flip-flop 33 and the reset or set signal are output as a high signal of one period of the clock signal through the second logic gate 31b.

따라서 제 2 논리게이트(31b)에서 출력되는 신호와 제 3 논리게이트(31c)에서 출력되는 신호는 제 4 논리게이트(31d)로 입력된다.Therefore, the signal output from the second logic gate 31b and the signal output from the third logic gate 31c are input to the fourth logic gate 31d.

이때 제 4 논리게이트(31d)는 클럭신호의 반주기 만큼의 로우신호를 출력한다.At this time, the fourth logic gate 31d outputs a low signal equivalent to half a period of the clock signal.

상기 제 4 논리게이트(31d)를 통과한 신호는 리세트신호로 사용된다.The signal that has passed through the fourth logic gate 31d is used as a reset signal.

여기서 유저가 설정한 입력값중 S1에 의해 셋트신호를 사용할 것인지 아니면 리세트신호를 사용할 것인지를 결정하게 된다.Here, S 1 of the input values set by the user determines whether to use the set signal or the reset signal.

만일, S1이 하이신호일 경우, 제 1 인버터(31e)의 출력값이 플립플롭(33)의 셋트값으로 전달되고 S1이 로우신호일 경우에는 제 4 논리게이트(31d)의 출력값이 플립플롭(33)의 리세트값으로 전달된다.Ten thousand and one, S 1 In this case, a high signal, in the case where the output value of the first inverter (31e) transmitted to the set value of the flip-flop 33 and the S 1 is Righteous foil, the fourth flip-flop output of the logic gate (31d) (33 ) As a reset value.

여기서 S1이 하이신호임에 따라 제 1 인버터(31e)의 출력신호가 플립플롭(33)의 세트로 전달될 때 리세트에는 항상 하이레벨을 유지하는 고정신호가 전달된다.When the output signal of the first inverter 31e is transmitted to the set of the flip-flop 33 as S 1 is a high signal, a fixed signal that always maintains a high level is transmitted to the reset.

따라서 리세트는 실제적으로 동작하지 않고 셋트만 동작하게 된다.Therefore, the reset does not actually operate but only operates the set.

이러한 방법을 통해 유저는 S2, S3를 셋팅하면 된다.With this method, the user sets S 2 and S 3 .

여기서 제 1 인버터(31e)의 출력신호와 상기 제 4 논리게이트(31d)의 출력신호가 플립플롭(33)의 셋트 또는 리세트로 전달되는 과정을 4개의 트랜스퍼 게이트(31f,31g,31h,31i)를 통해 설명하기로 한다.Here, the process of transferring the output signal of the first inverter 31e and the output signal of the fourth logic gate 31d to the set or reset of the flip-flop 33 is referred to as four transfer gates 31f, 31g, 31h, 31i ).

전술한 바와같이 S1이 하이신호일 경우, 제 4 트랜스퍼 게이트(31d)가 턴-온되어 제 1 인버터(31e)의 출력값이 제 4 트랜스퍼 게이트(31d)를 통해 셋트로 전달된다.As described above, when S 1 is a high signal, the fourth transfer gate 31d is turned on and the output value of the first inverter 31e is transferred to the set through the fourth transfer gate 31d.

상기 S1이 로우신호이면 제 1 트랜스퍼 게이트(31a)가 턴-온되어 제 4 논리게이트(31d)의 출력값이 제 1 트랜스퍼 게이트(31a)를 통해 리세트로 전달된다.If S 1 is a low signal, the first transfer gate 31a is turned on and the output value of the fourth logic gate 31d is transferred to the reset via the first transfer gate 31a.

이러한 방법으로 S2, S3를 유저가 원하는 값으로 세팅하면 된다.In this way, S 2 and S 3 can be set to values desired by the user.

한편 도 4는 본 발명의 카운터를 이용한 일실시예에 따른 구성도이다.Meanwhile, FIG. 4 is a configuration diagram according to an embodiment using the counter of the present invention.

도 4에 도시한 바와같이 본 발명의 실시예에 따르면 셋-입력단의 수를 비트수에 맞게 연결하였다.As shown in FIG. 4, according to the embodiment of the present invention, the number of set-inputs is connected to the number of bits.

본 발명의 실시예는 3비트 동기카운터를 예로 한 것으로서 클럭신호와, 상기 플립플롭으로부터 피드백되어 입력되는 신호와, 리세스 또는 셋트신호를 입력하여 논리연산하는 제 1 논리게이트(31a)와, 상기 플립플롭으로부터 피드백되는 신호와 상기 리세트 또는 셋트신호를 입력하여 논리연산하는 제 2 논리게이트(31b)와, 상기 제 1 논리게이트(31a)의 출력과 리셋트 또는 셋트신호를 입력하여 논리연산하는 제 3 논리게이트(31c)와, 상기 제 2 논리게이트(31b)의 출력과 제 3 논리게이트(31c)의 출력을 입력하여 논리연산하는 제 4 논리게이트(31d)와, 상기 제 3 논리게이트(31c)의 출력을 반전시키는 제 1 인버터(31e)와, 유저가 설정한 입력값과 상기 고정신호(UP)에 따라 제 4 논리게이트(31e)의 출력과 상기 제 1 인버터(31e)의 출력을 선택적으로 출력시키는 제 1 셋-입력단(41)과, 제 1 셋-입력단(41)에서 출력되는 셋트신호 또는 리세트신호 그리고 클럭신호에 의해 동작하는 제 1 플립플롭(41a)과, 제 1 셋-입력단(41)에 병렬적으로 구성되어 제 1 인버터(31e)의 출력과 제 4 논리게이트(31d)의 출력을 선택적으로 출력시키는 제 2 셋-입력단(43)과, 상기 제 2 셋-입력단(43)에서 출력되는 셋트신호 또는 리세트신호 및 제 1 플립플롭(41a)에서 출력되는 클럭신호에 의해 동작하는 제 2 플립플롭(43a)과, 상기 제 2 셋-입력단에 병렬적으로 구성되어 제 1 인버터(31e)의 출력과 제 4 논리게이트(31d)의 출력을 선택적으로 출력시키는 제 3 셋-입력단(45)과, 제 3 셋-입력단(45)에서 출력되는 셋트신호 또는 리세트신호 및 제 2 플립플롭(43a)에서 출력되는 클럭신호에 의해 동작하는 제 3 플립플롭(45a)을 포함하여 구성된다.The embodiment of the present invention exemplifies a 3-bit synchronous counter, and includes a first logic gate 31a for inputting a clock signal, a signal fed back from the flip-flop, and a reset or set signal, A second logic gate 31b for receiving a signal fed back from the flip-flop and the reset or set signal for logical operation, and a second logic gate 31b for inputting the output of the first logic gate 31a and a reset or set signal, A third logic gate 31c for inputting an output of the second logic gate 31b and an output of the third logic gate 31c and performing a logic operation on the output of the third logic gate 31c, 31e and an output of the first inverter 31e according to the input value set by the user and the fixed signal UP, A first set-input for selectively outputting A first flip-flop 41a operated by a set signal or a reset signal output from the first set-input terminal 41 and a clock signal, and a second flip- A second set-input 43 configured to selectively output the output of the first inverter 31e and the output of the fourth logic gate 31d, and a second set- A second flip-flop 43a that operates in response to a reset signal and a clock signal output from the first flip-flop 41a, and a second flip-flop 43a that is formed in parallel with the second set- A third set-input terminal 45 for selectively outputting the output of the fourth logic gate 31d and the set signal or reset signal output from the third set-input terminal 45, And a third flip-flop 45a operated by a clock signal output from the third flip-flop 45a.

여기서, 상기 각각의 제 1, 제 2, 제 3 셋-입력단(41,43,45)에는 유저에 의해 입력값(S1,S2,S3)이 설정된다.The input values S 1 , S 2 , and S 3 are set by the user at the first, second, and third set-inputs 41, 43, and 45, respectively.

그리고 각각의 제 1, 제 2, 제 3 플립플롭(41a,43a,45a)의 비반전출력단에서 출력되는 신호를 논리연산하는 제 5 논리게이트(47)가 더 구성된다.And a fifth logic gate 47 for logic operation of the signals output from the non-inverting output terminals of the first, second and third flip-flops 41a, 43a and 45a.

또한 제 1 플립플롭(41a)으로부터 3비트출력중 최상위비트의 출력(Out 1)이 얻어지고 마찬가지로 제 2, 제 3 플립플롭(43a,45a)으로부터 Out 2와 Out 3가 얻어진다.In addition, the most significant bit output Out 1 of the 3-bit output is obtained from the first flip flop 41a, and Out 2 and Out 3 are similarly obtained from the second and third flip flops 43a and 45a.

도 5는 도 4의 3비트 동기카운터에 따른 파형도이다.5 is a waveform diagram according to the 3-bit synchronization counter of FIG.

도 5에 도시한 바와같이 리세트신호가 하이에서 로우레벨로 변화하고 이때 고정신호는 항상 하이신호이다.The reset signal changes from high to low level as shown in Fig. 5, and the fixed signal is always a high signal at this time.

유저에 의해서 입력값 S1의 값이 1로,S2의 값이 0으로 그리고 S3의 값을 0으로 설정되면 상기 출력단 Out 1, Out 2, Out 3의 값이 얻어진다.When the value of the input value S 1 is set to 1, the value of S 2 is set to 0, and the value of S 3 is set to 0 by the user, the values of the outputs Out 1, Out 2, and Out 3 are obtained.

다시말해서 S1,S2,S3의 값을 100으로 설정하면 도 5에 도시한 바와같이 변화되는 출력값을 얻게된다.In other words, the output value is obtained which is changed as shown in Fig. 5 Setting the value of S 1, S 2, S 3 to 100.

여기서 변화된다는 것은 카운트를 한다는 것을 의미한다.To be changed here means to count.

이상 상술한 바와같이 본 발명의 카운터는 다음과 같은 효과가 있다.As described above, the counter of the present invention has the following effects.

종래 비트수에 따라 논리게이트가 증가하게 되는 반면에 본 발명은 셋-입력단을 사용하므로서 비트당 4개의 트랜스퍼 게이트만을 추가하면 되므로 사이즈를 최소화할 수 있다.The number of logic gates increases according to the number of bits in the related art. On the other hand, since the present invention uses a set-input stage, only four transfer gates per bit need be added, so that the size can be minimized.

즉, 비트수의 증가에 따른 입력단자수의 증가 또는 논리게이트수의 증가없이 1비트당 4개의 트랜스퍼 게이트만을 추가하면 되므로 면적을 최소화할 수 있다.That is, the area can be minimized since only four transfer gates need to be added per bit without increasing the number of inputs or increasing the number of logic gates as the number of bits increases.

Claims (5)

클럭신호와 피드백신호를 입력하여 논리연산하는 제 1 논리게이트, 피드백신호와 리세트신호를 입력하여 논리연산하는 제 2 논리게이트, 리세트신호와 제 1 논리게이트의 출력을 입력하여 논리연산하는 제 3 논리게이트, 제 2, 제 3 논리게이트의 출력을 입력하여 논리연산하는 제 4 논리게이트, 상기 제 3 논리게이트의 출력을 반전시키는 인버터, 그리고 유저에 의해 설정된 입력값에 따라 제 4 논리게이트의 출력값과 항상 하이레벨을 유지하는 고정신호를 선택적으로 출력하여 셋트신호를 출력하는 제 1, 제 2 트랜스퍼 게이트, 유저에 의해 설정된 입력값에 따라 상기 인버터의 출력값과 고정신호를 선택적으로 출력하여 리세트신호를 출력하는 제 3, 제 4 트랜스퍼 게이트로 구성되는 셋-입력단과,A first logic gate for inputting a clock signal and a feedback signal to perform logic operation, a second logic gate for inputting a feedback signal and a reset signal for logic operation, a logic gate for inputting the output of the reset signal and the first logic gate, A third logic gate for inputting the outputs of the third logic gate, the third logic gate, and an inverter for inverting an output of the third logic gate; First and second transfer gates for selectively outputting a fixed signal for maintaining the output value and a high level at all times to output a set signal, and selectively outputting an output value and a fixed signal of the inverter according to an input value set by the user, A third-input terminal having a third and a fourth transfer gate for outputting a signal, 상기 셋-입력단으로부터 출력되는 셋트신호 또는 리세트신호와 클럭신호에 의해 동작되고 상기 셋-입력단으로 피드백신호를 출력하는 플립플롭을 포함하여 구성되는 것을 특징으로 하는 카운터.And a flip-flop which is operated by a set signal or a reset signal and a clock signal output from the set-input terminal and outputs a feedback signal to the set-input terminal. 제 1 항에 있어서, 상기 제 1 트랜스퍼 게이트는 유저가 설정한 입력값이 반전단자로 인가되고 상기 입력값이 인버터를 통해 비반전단로 인가되고, 제 2 트랜스퍼 게이트는 상기 입력값이 비반전단자로 인가되고 반전단자에는 인버터를 통과한 입력값이 인가되는 것을 특징으로 하는 카운터.2. The nonvolatile semiconductor memory device according to claim 1, wherein the first transfer gate is applied with an input value set by the user to the inverting terminal, the input value is applied to the non-inverting terminal through the inverter, And an input value passed through the inverter is applied to the inverting terminal. 제 1 항에 있어서, 상기 제 3 트랜스퍼 게이트는 유저가 설정한 입력값이 반전단자로 인가되고 상기 입력값이 인버터를 통해 비반전단자로 인가되고, 제 4 트랜스퍼 게이트는 상기 입력값이 비반전단자로 인가되고 상기 입력값이 인버터를 통해 반전단자로 인가되는 것을 특징으로 하는 카운터.2. The nonvolatile memory device according to claim 1, wherein the third transfer gate is configured such that an input value set by a user is applied to an inverting terminal and the input value is applied to a non-inverting terminal through an inverter, And the input value is applied to the inverting terminal through the inverter. 제 1 항에 있어서, 상기 플립플롭은 R-S플립플롭인 것을 특징으로 하는 카운터.2. The counter of claim 1, wherein the flip-flop is an R-S flip-flop. 제 1 항에 있어서, 상기 제 1 논리게이트는 앤드게이트이고, 제 2, 제 3 논리게이트는 오아게이트이며, 제 4 논리게이트는 낸드게이트인 것을 특징으로 하는 카운터.2. The counter according to claim 1, wherein the first logic gate is an AND gate, the second and third logic gates are an OR gate, and the fourth logic gate is a NAND gate.
KR1019970020515A 1997-05-24 1997-05-24 Counter KR100236331B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019970020515A KR100236331B1 (en) 1997-05-24 1997-05-24 Counter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019970020515A KR100236331B1 (en) 1997-05-24 1997-05-24 Counter

Publications (2)

Publication Number Publication Date
KR19980084669A true KR19980084669A (en) 1998-12-05
KR100236331B1 KR100236331B1 (en) 1999-12-15

Family

ID=19507003

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019970020515A KR100236331B1 (en) 1997-05-24 1997-05-24 Counter

Country Status (1)

Country Link
KR (1) KR100236331B1 (en)

Also Published As

Publication number Publication date
KR100236331B1 (en) 1999-12-15

Similar Documents

Publication Publication Date Title
US5327019A (en) Double edge single data flip-flop circuitry
US4618849A (en) Gray code counter
JPH1117531A (en) Digital delay circuit and digital pll circuit
US5561423A (en) Serial to parallel conversion circuit
EP1078464A1 (en) Low power counters
KR19980084669A (en) counter
KR100313945B1 (en) Multi-interrupt controller
US5937024A (en) Counter for counting high frequency
US4669101A (en) High speed counter with decoding means and means for selecting second and higher order counter stages to be toggled
US6735270B1 (en) Asynchronous up-down counter and method for operating the same
KR19990080027A (en) counter
KR970003646Y1 (en) High count circuit
JPS62233931A (en) Parallel serial converter
KR100418574B1 (en) Loadable up/down counter circuit
EP0173570A2 (en) Shift register circuit
JPH0815392A (en) Test mode setting circuit
JP2591210B2 (en) Signal detection circuit
US3423577A (en) Full adder stage utilizing dual-threshold logic
JPH02201538A (en) Counter
KR870000723Y1 (en) Serial transmition and recovery circuit of parallel signal in display device
KR100199190B1 (en) Data acquisition logic
SU1238098A1 (en) Polyfunctional module
JP3070014B2 (en) Shift circuit
KR930004269B1 (en) 4-bit counter having serial input
KR0169607B1 (en) Interface

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

Year of fee payment: 7

LAPS Lapse due to unpaid annual fee