KR930007326B1 - Variable bit field sign/non-sign abstracting processing circuit - Google Patents

Variable bit field sign/non-sign abstracting processing circuit Download PDF

Info

Publication number
KR930007326B1
KR930007326B1 KR1019900021824A KR900021824A KR930007326B1 KR 930007326 B1 KR930007326 B1 KR 930007326B1 KR 1019900021824 A KR1019900021824 A KR 1019900021824A KR 900021824 A KR900021824 A KR 900021824A KR 930007326 B1 KR930007326 B1 KR 930007326B1
Authority
KR
South Korea
Prior art keywords
data
signal
sign
bit
output
Prior art date
Application number
KR1019900021824A
Other languages
Korean (ko)
Other versions
KR920013091A (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 KR1019900021824A priority Critical patent/KR930007326B1/en
Publication of KR920013091A publication Critical patent/KR920013091A/en
Application granted granted Critical
Publication of KR930007326B1 publication Critical patent/KR930007326B1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F5/00Methods or arrangements for data conversion without changing the order or content of the data handled

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Executing Machine-Instructions (AREA)

Abstract

The circuit comprises the first barrel shifter (1) which obtains original signal data and outputs shifted data according to the offset signal, the 2nd barrel shifter (2) which obtains the above shifted data and outputs SIGN data shifted by the inverting signal of a bit width designating signal, the decoder (4) to decode the above signal.

Description

가변비트 필드부호 및 비부호 추출처리회로Variable bit field coded and unsigned extraction processing circuit

제1도는 본 발명의 회로도.1 is a circuit diagram of the present invention.

제2도는 본 발명의 디코더의 논리표.2 is a logic table of a decoder of the present invention.

제3도는 본 발명 배럴쉬프터의 논리표.3 is a logical table of the barrel shifter of the present invention.

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

1,2 : 배럴쉬프터 4 : 디코더1,2: barrel shifter 4: decoder

3 : 4입력 1출력 멀티플렉서3: 4 input 1 output multiplexer

본 발명은 32비트 마이크로프로세서에서 가변비트 필드(bit field) 부호 및 비부호 추출처리회로에 관한 것으로, 특히 특정하게 지정된 비트 필드를 추출하도로한 가변비트필드 부호 및 비부호 추출처리회로에 관한 것이다.The present invention relates to a variable bit field code and unsigned extraction processing circuit in a 32-bit microprocessor, and more particularly, to a variable bit field code and unsigned extraction processing circuit for extracting a specifically designated bit field. .

일반적으로 컴퓨터의 그래픽 처리는 주로 각 화소당 데이타논리 및 산술가감승제 연삭에 의해 이루어진다는 것은 이미 잘 알려진 사실이다. 그리고 각각의 화소데이타는 메모리의 효율적인 사용을 위해 비트블럭의 데이타로 이루어져 있다.In general, it is well known that computer graphics processing is mainly performed by data logic and arithmetic-sublimation grinding for each pixel. Each pixel data is composed of bit block data for efficient use of memory.

마이크로프로세서에서 이와같은 비트블럭의 데이타를 직접 하드웨어로 처리해 주게되면 그래픽처리 프로그램의 성능이 향상될 수 있게 된다.If the microprocessor processes the data of these bit blocks directly in hardware, the performance of the graphics processing program can be improved.

종래에는 32비트 마이크로프로세서내의 레지스터에서 출력되는 데이타중 어느 비트블럭의 데이타를 일정한 폭 만큼 이동시킨 상태의 데이타만 필요한 경우에 이를 하드웨어로 구성할 수 없으므로 이를 프로그렘에의해 처리하도록 해야만 하였고, 이로인해 여러가지의 복잡한 신호처리단계가 수행되어야 하는 불편이 있었다.Conventionally, if only the data of any bit block of data output from a register in a 32-bit microprocessor is moved by a certain width, it cannot be configured by hardware. Therefore, it has to be processed by a program. There was an inconvenience that the complicated signal processing step must be performed.

이에 따라 본 발명은 픽셀데이타를 추출하여 컴퓨터 시스템의 일반적인 데이타형태로 변형시켜 주도록한 가변비트필드부호 및 비부호 추출처리회로를 제공하는 것을 그 목적으로 한다. 이를 위하여 본 발명은 레지스터로부터 원래 데이타가 입력되는 제1배럴쉬프터에서는 오프세트신호에 의해 결정되는 비트 크기만큼 자리이동시킨 자리이동 데이타를 제2배럴쉬프터와 4입력 1출력멀티플렉서로 출력하고 제2배럴쉬프터에서는 반전된 5비트의 비트폭 지정신호에 의해 부호 데이타를 추출하여 4입력 1출력 멀티플렉서로 출력함으로써 인버터 및 NOR게이트를 경유한 부호 및 비부호 신호와 디코더를 경유한 비트폭지정신호에 의해 4입력 1출력 멀티플렉서에서 부호추출 또는 비부호 추출의 출력을 얻도록 한 것이다.Accordingly, an object of the present invention is to provide a variable bitfield coded and unsigned extraction processing circuit for extracting pixel data and transforming the pixel data into a general data format of a computer system. To this end, in the first barrel shifter in which original data is inputted from a register, the shifting data shifted by a bit size determined by an offset signal is output to a second barrel shifter and a four input one output multiplexer, and a second barrel is shifted. The shifter extracts the code data from the inverted 5-bit bit width designation signal and outputs the code data to the 4-input 1 output multiplexer so that the sign and unsignal signals through the inverter and the NOR gate and the bit width designation signal through the decoder The input or output multiplexer obtains the output of sign extraction or unsigned extraction.

본 발명을 첨부도면에 의거 상세히 기술하여 보면 다음과 같다. 프로세서내의 레지스터로부터 원래 데이타는 입력단(R)으로 입력되면서 5비트의 오프세트 신호가 선택단자(S16), (S8), (S4), (S2), (S1)로 인가되는 제1배럴쉬프터(1)의 출력단(ZN)에서는 제2배럴쉬프터(2)의 입력단(R)과 4입력 출력 멀티플렉서(3)의 입력단(D2), (D3)에 동시에 연결하고, 5비트의 비트폭 지정신호가 인버터(I1)를 거쳐 선택단자(S16), (S8), (S4), (S2), (S1)로 이가되는 제2배럴쉬프터(2)의 출력단자(ZN)에서는 4입력 1출력 멀티플렉서(3)의 입력단(D0)에 연결하고, 비부호 신호(UNSIGN)가 인버터(I2)를 경유한 후 부호신호(SIGN)와 같이 NOR게이트(NR)를 거쳐 선택단자(A)로 인가되면서 5비트의 비트폭지정신호가 디코더(4)에 의해 비트크기만큼 1의 값을 갖는 32비트의 신호로 선택단자(B)로 인가되는 4입력 1출력 멀티플렉서(3)는 입력단(D1)을 0의 값인 그라운드(GND)에 연결하면서 출력단(Z)에서 데이타 출력이 출력되도록한 것이다.Referring to the present invention in detail based on the accompanying drawings as follows. The first barrel shifter (S1), (S8), (S4), (S2), and (S1) to which the original data is input from the register in the processor to the input terminal (R) and are supplied to the selection terminals (S16), (S8), (S4), (S2) and (S1). In the output terminal ZN of 1), the input terminal R of the second barrel shifter 2 and the input terminals D2 and D3 of the four-input multiplexer 3 are simultaneously connected to each other. In the output terminal ZN of the second barrel shifter 2 which is connected to the selection terminals S16, S8, S4, S2, and S1 via the inverter I1, a four input one output multiplexer ( 3), and the unsigned signal (UNSIGN) is applied to the selection terminal (A) through the NOR gate (NR) like the sign signal (SIGN) after passing through the inverter (I2). The four-input one-output multiplexer 3, which is a 32-bit signal having a bit value of 1 by the decoder 4, is applied to the selection terminal B by the decoder 4, and the input terminal D1 has a value of zero. To ground (GND) It will be one output data is output from the output terminal (Z).

이와같이 구성한 본 발명의 부호 및 비부호 추출회로는 마이크로프로세서내의 레지스터로부터 입력되는 32비트의 원래 데이타를 자리이동한 후 자리이동한 데이타 출력이거나 부호추출 또는 비부호추출된 데이타 출력을 출력하도록 한 것으로 예를들어 원래 데이타 1111, 1111, 1010, 1111, 1111, 1010, 1010의 32비트 값을 비트 27로부터 비트 20까지의 8비트를 비부호 또는 부호추출하고자 할 경우에는 5비트의 비트폭 지정신호는 8에 해당하는 01000이고, 오프세트 신호는 20에 해당하는 10100의 데이타값에서 1을 뺀 10011의 데이타 값으로 입력된다.The signed and unsigned extraction circuit of the present invention configured as described above is configured to output 32-bit original data inputted from a register in a microprocessor and then output a shifted data output or a signed or unsigned data output. For example, if you want to unsign or sign 8 bits from bit 27 to bit 20 of the 32-bit value of the original data 1111, 1111, 1010, 1111, 1111, 1010, 1010, the 5-bit bit width designation signal is 8 The offset signal is inputted as a data value of 10011 minus 1 from a data value of 10100 corresponding to 20.

그러므로 원래 데이타(FFAAFFAAH)가 입력단(R)으로 입력되면서 오프세트 신호(13H)기 선택단자(S16), (S8), (S4), (S2), (S1)로 인가되는 제1배럴쉬프터(1)에서는 제3도의 논리표에 도시한 것과 같이 출력단(ZN)에서 1111, 1010, 1010, 1111, 1111, 1010, 1010, 1111의 데이타값을 갖는 자리이동 데이타로 출력되면서 제2배럴쉬프터(2)의 입력단(R)과 4입력 1출력 멀티플렉서(3)의 입력단(D2), (D3)으로 동시에 입력된다. 제2배럴쉬프터(2)는 제1배럴쉬프터(1)의 출력을 입력단(R31~R0)으로 받아들인다. 5비트의 01000인 비트폭 지정신호가 인버터(I1)를 경유하면서 10111로 반전되어 선택단자(S16), (S8), (S4), (S2), (S1)로 인가되는 제2배럴쉬프터(2)의 출력단에서는 제3도의 논리표에 도시된 바와같이 1010, 1111, 1111, 1010, 1010, 1111, 1111, 1010의 데이타값이 출력되고 이를 비트 25의 데이타 값을 부호 데이타 값으로 선택하여 4입력 1출력 멀티플렉서(3)의 입력단(D0)으로 입력시킨다.Therefore, the first barrel shifter applied to the offset signal 13H group selection terminals S16, S8, S4, S2, and S1 while the original data FFAAFFAAH is input to the input terminal R. In 1), as shown in the logic table of FIG. 3, the second barrel shifter 2 is output as the shifting data having data values of 1111, 1010, 1010, 1111, 1111, 1010, 1010, and 1111 from the output terminal ZN. Are simultaneously input to the input terminals R and D3 of the four-input one-output multiplexer 3. The second barrel shifter 2 receives the output of the first barrel shifter 1 as input terminals R31 to R0. A second barrel shifter applied to the selection terminals S16, S8, S4, S2, and S1 is inverted to 10111 while passing through the inverter I1. In the output terminal of 2), as shown in the logical table of FIG. 3, data values of 1010, 1111, 1111, 1010, 1010, 1111, 1111, and 1010 are outputted, and the data value of bit 25 is selected as a sign data value. Input 1 is input to the input terminal D0 of the multiplexer 3.

그리고 비트폭 지정신호는 디코더(4)에 의해 해당하는 비트 크기만큼 1의 값을 갖는 0000, 0000, 0000, 0000, 0000, 0000, 1111, 1111의 값(제2도의 논리표 참조)으로 해독되고 이 해독된 신호가 4입력 1출력 멀티플렉서(3)의 선택단자(B)로 인가되도록 하는 한편 부호추출인 경우에는 부호신호(SIGN)를 1로 비부호신호(ONSIGN)를 0으로 각각 입력하면 인버터(I2) NOR게이트(NR)를 경유하여 0이 4입력 1출력 멀티플렉서(3)의 선택단자(A)로 입력되어 디코더(4)를 경유한 비트폭지정신호가 0일때에는 입력단(D0)을 선택하여 부호데이타값인 1을 출력하는 한편 1일 때에는 입력단(D3)을 선택하여 제1배럴쉬프터(1)의 출력을 선택하게 된다. 즉, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1010의 데이타출력이 출력된다.The bit width designation signal is decoded by the decoder 4 into values of 0000, 0000, 0000, 0000, 0000, 0000, 1111, and 1111 (see the logical table in FIG. 2) having a value of 1 by the corresponding bit size. When the decoded signal is applied to the selection terminal B of the 4-input 1-output multiplexer 3, and in the case of sign extraction, the input signal is set to 1 and the unsigned signal ONSIGN is set to 0. (I2) When 0 is input to the selection terminal A of the 4 input 1 output multiplexer 3 via the NOR gate NR and the bit width designation signal via the decoder 4 is 0, the input terminal D0 is turned off. In the case of 1, the output of the first barrel shifter 1 is selected by selecting the input terminal D3. That is, data output of 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1010 is output.

그리고 비부호추출인 경우에는 부호신호(SIGN)와 비부호신호(UNSIGN)와, 0, 1로 각각 입력되면서 선택단자(A)로 1이 입력되면서 입력단(D1)과 입력단(D3)만을 선택하면서 0000, 0000, 0000, 0000, 0000, 0000, 1111, 1010의 데이타 출력이 출력되는 것이다.In the case of unsigned extraction, the sign signal (SIGN) and the unsigned signal (UNSIGN) and 0 and 1 are respectively inputted, and 1 is input to the selection terminal A while only the input terminal D1 and the input terminal D3 are selected. The data output of 0000, 0000, 0000, 0000, 0000, 0000, 1111, 1010 is outputted.

따라서 본 발명의 가변비트필드부호 및 비부호 추출처리회로에 의하여서는 제1배럴쉬프터(1)에 의하여서는 입력되는 원래 데이타를 오프세트신호에 의해 지정된 만큼 자리이동시킨 자리이동 데이타를 출력하고 상기의 자리이동 데이타를 입력받는 제2배럴쉬프터(2)에 의해서는 비트폭 지정신호만큼 자리이동시켜 부호 데이타를 추출하도록 하여 4입력 1출력 멀티플렉서(3)의 입력단(D0)에 인가하고 상기 제1배럴쉬프터(1)의 자리이동 데이타를 입력단(D2), (D3)으로 입력받으면서 비트폭 지정신호와 부호신호 또는 비부호 신호의 입력에 따라 자리 이동데이타와 부호신호 또는 비부호신호로 이루어진 데이타 출력을 출력하도록 한 것이다.Therefore, the variable bit field coded and unsigned extraction processing circuit of the present invention outputs the shifted data in which the original data input by the first barrel shifter 1 is shifted by the offset signal. The second barrel shifter (2) receiving the shift data is shifted by the bit width designation signal to extract the sign data and applied to the input terminal (D0) of the 4-input 1 output multiplexer (3). While receiving the shift data of the shifter 1 through the input terminals D2 and D3, a data output consisting of the shift data and the sign signal or the unsigned signal is generated according to the input of the bit width designation signal and the sign signal or the unsigned signal. To output it.

Claims (1)

원래 데이타를 받아들여 오프세트 신호에 의해 지정되는 비트만큼 자리이동시킨 자리이동 데이타를 출력하는 제1배럴쉬프터(1)와, 상기 제1배럴쉬프터(1)로부터 제공되는 상기 자리이동 데이타를 받아들여서 비트폭 지정신호의 반전신호에 의해 정해지는 비트만큼 자리이동시켜 부호데이타를 출력하는 제2배럴쉬프터(2)와, 상기 비트폭 지정신호를 해독하는 디코더(4)와, 상기 디코더(4)의 출력신호와 부호신호(SIGN)또는 비부호신호(UNSIGN)에 의해 제어되어 상기 원래 데이타의 자리이동 데이타 또는 0 또는 상기 부호 데이타중 어느하나를 선택적으로 출력하는 4입력 1출력 멀티플렉서(3)를 포함하는 가면비트 필드부호 및 비부호 추출처리회로.A first barrel shifter (1) for receiving original data and outputting shift data shifted by a bit specified by an offset signal; and receiving the shift data provided from the first barrel shifter (1). A second barrel shifter 2 for shifting the bit width by a bit determined by the inversion signal of the bit width designation signal and outputting code data, a decoder 4 for decoding the bit width designation signal, and a decoder of the decoder 4 A four-input one-output multiplexer (3) which is controlled by an output signal and a sign signal (SIGN) or an unsigned signal (UNSIGN) to selectively output either the shifting data of the original data or zero or the sign data. And a mask bit field code and unsigned extraction processing circuit.
KR1019900021824A 1990-12-26 1990-12-26 Variable bit field sign/non-sign abstracting processing circuit KR930007326B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019900021824A KR930007326B1 (en) 1990-12-26 1990-12-26 Variable bit field sign/non-sign abstracting processing circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019900021824A KR930007326B1 (en) 1990-12-26 1990-12-26 Variable bit field sign/non-sign abstracting processing circuit

Publications (2)

Publication Number Publication Date
KR920013091A KR920013091A (en) 1992-07-28
KR930007326B1 true KR930007326B1 (en) 1993-08-05

Family

ID=19308490

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019900021824A KR930007326B1 (en) 1990-12-26 1990-12-26 Variable bit field sign/non-sign abstracting processing circuit

Country Status (1)

Country Link
KR (1) KR930007326B1 (en)

Also Published As

Publication number Publication date
KR920013091A (en) 1992-07-28

Similar Documents

Publication Publication Date Title
KR100348951B1 (en) Memory store from a register pair conditional
JPH087084A (en) Three-input arithmetic and logic unit for formation of sum of first boolean combination of first, second and third inputs plus second boolean combination of first, second and third inputs
JPH087083A (en) Three-input arithmetic and logic unit for formation of arithmetic and logic mixed combination
EP0657803A2 (en) Three input arithmetic logic unit forming the sum of a first input added with a first boolean combination of a second input and third input plus a second boolean combination of the second and third inputs
EP0655680A1 (en) Arithmetic logic unit having plural independent sections and register storing resultant indicator bit from every section
KR850002374A (en) Binary signal cutting devices
JPH086544A (en) Rotary register for orthogonal data conversion
KR20010042931A (en) Method and apparatus for performing shift operations on packed data
US20070088772A1 (en) Fast rotator with embedded masking and method therefor
US20040044716A1 (en) Self-timed transmission system and method for processing multiple data sets
KR930007326B1 (en) Variable bit field sign/non-sign abstracting processing circuit
US5081607A (en) Arithmetic logic unit
US5729725A (en) Mask data generator and bit field operation circuit
US6934729B2 (en) Method and system for performing shift operations
US20050256996A1 (en) Register read circuit using the remainders of modulo of a register number by the number of register sub-banks
KR940009819A (en) Offset Value Calculation Circuit and Method of Data Processing System
KR930007012B1 (en) Circuit for set/clear processing of the variable bit field
JPH11215008A (en) Decoding circuit
KR930002850B1 (en) Variable bit field making processor circuit
US6167418A (en) Byte-switching arithmetic unit
US5233695A (en) Microprocessor with a reduced size microprogram
SU1605935A3 (en) Method and apparatus for recoding m-digit coded words
KR100770448B1 (en) Bit extracting device and microprocessor using this bit extracting device
KR930002789B1 (en) Code extending circuit in 32-bit micro processor
EP1761845B1 (en) Bit-plane extraction operation

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
G160 Decision to publish patent application
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 19970605

Year of fee payment: 5

LAPS Lapse due to unpaid annual fee