KR19980066531A - Method of reading data from processor and its device - Google Patents

Method of reading data from processor and its device Download PDF

Info

Publication number
KR19980066531A
KR19980066531A KR1019970002140A KR19970002140A KR19980066531A KR 19980066531 A KR19980066531 A KR 19980066531A KR 1019970002140 A KR1019970002140 A KR 1019970002140A KR 19970002140 A KR19970002140 A KR 19970002140A KR 19980066531 A KR19980066531 A KR 19980066531A
Authority
KR
South Korea
Prior art keywords
data
processor
data bus
bit
transfer unit
Prior art date
Application number
KR1019970002140A
Other languages
Korean (ko)
Inventor
김민영
Original Assignee
김광호
삼성전자 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 김광호, 삼성전자 주식회사 filed Critical 김광호
Priority to KR1019970002140A priority Critical patent/KR19980066531A/en
Publication of KR19980066531A publication Critical patent/KR19980066531A/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4004Coupling between buses
    • G06F13/4009Coupling between buses with data restructuring
    • G06F13/4018Coupling between buses with data restructuring with data-width conversion

Abstract

개시된 내용은 프로세서 자신의 데이타버스 크기보다 작은 데이타버스를 갖는 소자로부터 대량의 데이타를 보다 효율적으로 읽어들일 수 있도록 한 프로세서의 데이타읽기방법 및 그 장치에 관한 것이다. 본 발명은 소자의 데이타버스와 프로세서의 데이타버스 상위비트부분간의 인터페이스를 통해 데이타를 읽어들이는 제 1단계와, 소자의 데이타버스와 프로세서의 데이타버스 하위비트부분간의 인터페이스를 통해 데이타를 읽어들이는 제 2단계, 및 제 1단계와 제 2단계를 통해 교대로 읽어들이는 데이타를 서로 논리합하여 하나의 데이타로 결합시키는 제 3단계로 이루어진다. 따라서, 본 발명은 보다 간략한 과정을 통해 소자에서 프로세서가 데이타를 읽어들여 하나의 데이타로 만들 수 있는 효과를 제공한다.The present disclosure relates to a method and a device for reading data of a processor for efficiently reading a large amount of data from a device having a data bus smaller than the size of the processor's own data bus. The present invention provides a first step of reading data through an interface between a data bus of a device and a higher bit portion of a processor, and reading data through an interface between a data bus of a device and a lower bit portion of a processor. A second step and a third step of combining the data read alternately through the first step and the second step and combining them into one data. Accordingly, the present invention provides an effect that a processor can read data into a single data in a device through a simpler process.

Description

프로세서의 데이타읽기방법 및 그 장치Method of reading data of processor and its device

본 발명은 프로세서의 데이타 읽기(read)에 관한 것으로, 보다 상세하게는, 프로세서 자신의 데이타버스 크기보다 작은 데이타버스를 갖는 소자로부터 대량의 데이타를 보다 효율적으로 읽어들이기 위한 프로세서의 데이타읽기방법 및 그 장치에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data read of a processor, and more particularly, to a method of reading a data of a processor for more efficiently reading a large amount of data from a device having a data bus smaller than the size of the processor's own data bus and the same. Relates to a device.

마이크로프로세서, 디지탈시그날프로세서 등의 프로세서(processor)에서는 자신의 데이타버스 크기보다 작은 데이타버스를 갖는 소자로부터 데이타를 읽어들일 때 소자의 데이타버스와 프로세서의 데이타버스 하위비트부분간의 인터페이스를 통하여 데이타를 읽어들인 후 내부적으로 처리하여 자신의 데이타버스 크기만큼의 데이타를 만든다. 그 일예를 도 1에 나타낸다.In a processor such as a microprocessor or a digital signal processor, when data is read from a device having a data bus smaller than its own data bus, the data is read through an interface between the data bus of the device and the lower bit portion of the processor. After it is loaded, it is processed internally to produce data the size of its own databus. One example thereof is shown in FIG. 1.

도 1은 일반적인 프로세서와 소자간의 인터페이스의 일예를 나타낸 구성도로서, 32비트 프로세서(10)와 16비트 소자(20)간의 인터페이스 예를 보였다. 여기서, 32비트 프로세서(10)는 32비트 데이타버스중 하위16비트부분과 16비트 소자(20)의 16비트 데이타버스간의 인터페이스를 통해 16비트 데이타를 읽어들인다. 32비트 프로세서(10)는 내부적으로 5단계의 과정을 수행하여 32비트 데이타를 만든다. 즉, 32비트 프로세서(10)는 16비트 소자(20)에서 16비트 데이타를 읽어서 내부레지스터A의 하위비트부분에 저장하는 제 1단계, 내부레지스터A에 저장된 16비트 데이타를 좌로 시프트시켜 상위비트부분으로 이동시키는 제 2단계, 다시 16비트 소자(20)에서 16비트 데이타를 읽어서 내부레지스터B의 하위비트부분에 저장하는 제 3단계, 내부레지스터B의 저장 데이타와 0FFFFH를 비트논리곱(AND)하여 내부레지스터B의 상위비트부분을 마스킹(masking)시키는 제 4단계, 내부레지스터A와 B의 저장 데이타를 비트논리합(OR)하여 내부레지스터A에 저장하는 제 5단계를 통하여 32비트의 워드(word) 데이타를 만든다.FIG. 1 is a configuration diagram illustrating an example of an interface between a general processor and a device, and illustrates an example of an interface between a 32-bit processor 10 and a 16-bit device 20. Here, the 32-bit processor 10 reads 16-bit data through an interface between the lower 16-bit portion of the 32-bit data bus and the 16-bit data bus of the 16-bit device 20. The 32-bit processor 10 internally performs five steps to produce 32-bit data. That is, the 32-bit processor 10 reads 16-bit data from the 16-bit device 20 and stores the 16-bit data in the lower bit portion of the internal register A. The upper bit portion is shifted left by shifting the 16-bit data stored in the internal register A to the left. In the second step of moving to the second step, the 16-bit device 20 reads 16-bit data and stores the 16-bit data in the lower bit portion of the internal register B. Bit-wise ANDs the stored data of the internal register B and 0FFFFH. 32-bit word through the fourth step of masking the upper bit portion of the internal register B, and the fifth step of bit-logically ORing the stored data of the internal registers A and B and storing them in the internal register A. Create data

하지만, 위와 같이 종래 프로세서는 자신의 데이타버스 크기보다 작은 데이타버스를 갖는 소자로부터 데이타를 읽어들여 하나의 워드단위 데이타를 만드는 데 5단계를 거쳐야 하므로 대량의 데이타를 계속 읽어들여야 하는 경우에 비효율적이다.However, as described above, the conventional processor has to go through five steps to read data from a device having a data bus smaller than its own data bus and make one word unit data, which is inefficient when a large amount of data must be continuously read.

따라서, 본 발명의 목적은 프로세서가 자신의 데이타버스의 크기보다 작은 데이타버스를 갖는 소자로부터 대량의 데이타를 보다 효율적으로 읽어들일 수 있는 방법을 제공함에 있다.Accordingly, an object of the present invention is to provide a method for a processor to more efficiently read a large amount of data from a device having a data bus smaller than the size of its data bus.

본 발명의 다른 목적은 전술한 프로세서의 데이타읽기방법을 하드웨어로 구현하기 위한 장치를 제공함에 있다.Another object of the present invention is to provide an apparatus for implementing the above-described method for reading data of a processor in hardware.

도 1은 일반적인 프로세서와 소자간의 인터페이스의 일예를 나타낸 구성도,1 is a configuration diagram showing an example of an interface between a general processor and a device;

도 2는 본 발명의 바람직한 실시예에 따른 프로세서의 데이타읽기장치를 나타내는 구성도.2 is a block diagram showing an apparatus for reading data of a processor according to a preferred embodiment of the present invention.

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

10 : 32비트 프로세서 20 : 16비트 소자10: 32-bit processor 20: 16-bit device

31,32 : 데이타전달부 33 : 인버터31,32: data transmission unit 33: inverter

이와 같은 목적들을 달성하기 위한 본 발명에 따른 프로세서의 데이타읽기방법은, 프로세서 자신의 데이타버스 크기보다 작은 데이타버스를 갖는 소자로부터 데이타를 읽어들이는 방법에 있어서, (1) 상기 소자의 데이타버스에서 상기 프로세서의 데이타버스 상위비트부분으로 데이타를 읽어들이는 단계와, (2) 상기 소자의 데이타버스에서 상기 프로세서의 데이타버스 하위비트부분으로 데이타를 읽어들이는 단계, 및 (3) 상기 프로세서의 데이타버스 상위비트부분과 하위비트부분으로 각각 읽어들인 데이타를 논리합하여 하나의 데이타로 결합시키는 단계를 포함한다.A data reading method of a processor according to the present invention for achieving the above object, in the method of reading data from a device having a data bus smaller than the size of the processor's own data bus, (1) in the data bus of the device Reading data into the upper bit portion of the data bus of the processor; (2) reading data from the data bus of the device into the lower bit portion of the data bus of the processor; and (3) data of the processor. And logically combining the data read into the upper bit portion and the lower bit portion of the bus into a single data.

본 발명의 다른 목적을 달성하기 위한 본 발명에 따른 프로세서의 데이타읽기장치는, 프로세서 자신의 데이타버스 크기보다 작은 데이타버스를 갖는 소자로부터 데이타를 읽어들이는 장치에 있어서, 입력되는 선택신호에 따라 상기 소자의 데이타버스로부터 데이타를 읽어들여 상기 프로세서의 데이타버스 상위비트부분에 전달하는 제 1데이타전달부와, 입력되는 선택신호에 따라 상기 소자의 데이타버스로부터 데이타를 읽어들여 상기 프로세서의 데이타버스 하위비트부분에 전달하는 제 2데이타전달부, 및 상기 제 1데이타전달부와 제 2데이타전달부가 교대로 동작하도록 입력되는 선택신호를 상태반전하여 상기 제 2데이타전달부로 인가하는 인버터를 포함한다.A data reading apparatus of a processor according to the present invention for achieving another object of the present invention is a device for reading data from a device having a data bus smaller than the size of the processor's own data bus, according to the selection signal inputted. A first data transfer unit that reads data from the data bus of the device and transfers the data to the upper bit portion of the processor, and reads data from the data bus of the device according to an input selection signal. And a second data transfer unit for transferring the portion to the second data transfer unit by inverting a state of a selection signal input to alternately operate the first data transfer unit and the second data transfer unit.

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

도 2는 본 발명에 따른 프로세서의 데이타읽기장치를 나타내는 구성도이다. 도시된 바와 같이, 본 발명의 장치는 32비트 프로세서(10)의 데이타버스중 상위 16비트부분과 16비트 소자(20)의 16비트 데이타버스 사이에 연결되며, 입력되는 선택신호에 따라 소자(20)로부터 데이타를 읽어내어 32비트 프로세서(10)로 전달하는 제 1데이타전달부(31)를 구비한다. 본 발명의 장치는 또한, 32비트 프로세서(10)의 데이타버스중 하위 16비트부분과 16비트 소자(20)의 16비트 데이타버스 사이에 연결되며, 입력되는 선택신호에 따라 소자(20)로부터 데이타를 읽어내어 32비트 프로세서(10)로 전달하는 제 2데이타전달부(32)를 구비한다. 여기서, 데이타전달부(31,32)는 각각 16개의 논리곱소자(AND)로 이루어진다. 한편, 제 2데이타전달부(32)에는 데이타전달부(31,32)가 교대로 동작하도록 선택신호를 상태반전하는 인버터(33)가 연결되도록 구성된다.2 is a block diagram illustrating a data reading apparatus of a processor according to the present invention. As shown, the apparatus of the present invention is connected between the upper 16-bit portion of the data bus of the 32-bit processor 10 and the 16-bit data bus of the 16-bit device 20, depending on the selection signal being input. A first data transfer unit 31 for reading data from the data transfer unit and transferring the data to the 32-bit processor 10. The apparatus of the present invention is also connected between the lower 16-bit portion of the data bus of the 32-bit processor 10 and the 16-bit data bus of the 16-bit device 20, and the data from the element 20 in accordance with an input selection signal. The second data transfer unit 32 reads the data and delivers it to the 32-bit processor 10. Here, the data transfer units 31 and 32 each consist of 16 logical AND elements. On the other hand, the second data transfer unit 32 is configured such that the inverter 33 for inverting the state of the selection signal so that the data transfer units 31 and 32 alternately operate.

이와 같이 구성된 본 발명에 따른 프로세서의 데이타읽기장치에 대한 동작을 좀더 구체적으로 설명한다.The operation of the data reading apparatus of the processor according to the present invention configured as described above will be described in more detail.

먼저, 입력되는 일정주기의 클럭펄스 선택신호는 제 1데이타전달부(31)를 이루는 논리곱소자(AND)들로 바로 입력된다. 선택신호는 인버터(33)로도 입력되어 제 1데이타전달부(31)와 제 2데이타전달부(32)가 교대로 동작할 수 있도록 한다. 인버터(33)는 입력되는 일정주기 클럭펄스의 선택신호를 상태반전하여 제 2데이타전달부(32)를 이루는 논리곱소자(AND)들로 입력한다. 제 1데이타전달부(31)는 선택신호가 하이(High; H)레벨인 구간동안 16비트 소자(20)에서 데이타를 읽어들여 32비트 프로세서(10)의 상위데이타버스부분으로 전달한다. 32비트 프로세서(10)는 내부레지스터A의 상위비트부분에 상위데이타버스로 전달된 16비트 데이타를 저장한다. 이때, 제 2데이타전달부(32)는 인버터(33)를 통해 로우(Low; L)레벨의 선택신호를 입력받아 동작하지 않는다. 한편, 제 1데이타전달부(31)는 선택신호가 로우(L)레벨인 구간동안 동작하지 않으며, 이때 제 2데이타전달부(32)는 인버터(33)에 의해 하이(H)레벨의 선택신호를 입력받아 동작한다. 제 2데이타전달부(32)는 선택신호가 하이(H)레벨인 구간동안 16비트 소자(20)에서 데이타를 읽어들여 32비트 프로세서(10)의 하위데이타버스부분으로 전달한다. 32비트 프로세서(10)는 내부레지스터B의 하위비트부분에 하위데이타버스로 전달된 16비트 데이타를 저장한다. 그런 다음, 32비트 프로세서(10)는 내부레지스터A와 내부레지스터B를 논리합연산하여 내부레지스터A의 상위비트부분과 내부레지스터B의 하위비트부분에 저장된 데이타를 결합하여 32비트 데이타를 만든다.First, the input clock pulse selection signal of a predetermined period is directly input to the AND products forming the first data transfer unit 31. The selection signal is also input to the inverter 33 to allow the first data transfer unit 31 and the second data transfer unit 32 to operate alternately. The inverter 33 inverts the selection signal of the predetermined periodic clock pulse and inputs the same to the AND products constituting the second data transfer unit 32. The first data transfer unit 31 reads data from the 16-bit device 20 and transmits the data to the upper data bus portion of the 32-bit processor 10 during the period in which the selection signal is at a high (H) level. The 32-bit processor 10 stores 16-bit data transferred to the upper data bus in the upper bit portion of the internal register A. At this time, the second data transfer unit 32 does not operate by receiving a selection signal of a low level through the inverter 33. On the other hand, the first data transfer unit 31 does not operate during the period in which the selection signal is at the low (L) level, and at this time, the second data transfer unit 32 is selected by the inverter 33 at the high (H) level. It operates by inputting. The second data transfer unit 32 reads data from the 16-bit device 20 and transfers the data to the lower data bus portion of the 32-bit processor 10 during the period in which the selection signal is at the high (H) level. The 32-bit processor 10 stores 16-bit data transferred to the lower data bus in the lower bit portion of the internal register B. Thereafter, the 32-bit processor 10 logically operates the internal register A and the internal register B to combine the data stored in the upper bit portion of the internal register A and the lower bit portion of the internal register B to form 32-bit data.

상술한 바와 같이, 본 발명은 프로세서의 데이타읽기방법 및 그 장치에 관한 것으로 프로세서 자신의 데이타버스 크기보다 작은 데이타버스를 갖는 소자에서 데이타를 읽어들일 때 5단계를 거쳐 하나의 워드 데이타를 만들던 종래에 비해서 2번의 읽기동작과 읽어들인 데이타를 논리합하는 동작의 3단계를 거쳐 하나의 워드 데이타를 만들 수 있으므로 대량의 데이타를 보다 효율적으로 읽어들일 수 있는 효과를 갖는다.As described above, the present invention relates to a method and a device for reading a data of a processor. In the related art, when a data is read from a device having a data bus smaller than the size of the processor's own data bus, a single word data is created in five steps. Compared to this, one word data can be generated through three steps of two read operations and an operation of logical sum of read data, so that a large amount of data can be read more efficiently.

Claims (4)

프로세서 자신의 데이타버스 크기보다 작은 데이타버스를 갖는 소자로부터 데이타를 읽어들이는 방법에 있어서,In a method of reading data from a device having a data bus smaller than the processor's own data bus, (1) 상기 소자의 데이타버스에서 상기 프로세서의 데이타버스 상위비트부분으로 데이타를 읽어들이는 단계;(1) reading data from the data bus of the device into the upper bit portion of the data bus of the processor; (2) 상기 소자의 데이타버스에서 상기 프로세서의 데이타버스 하위비트부분으로 데이타를 읽어들이는 단계; 및(2) reading data from the data bus of the device into the lower bit portion of the data bus of the processor; And (3) 상기 프로세서의 데이타버스 상위비트부분과 하위비트부분으로 각각 읽어들인 데이타를 논리합하여 하나의 데이타로 결합시키는 단계를 포함하는 프로세서의 데이타읽기방법.And (3) combining the data read into the upper bit portion and the lower bit portion of the data bus of the processor and combining the data into one data. 제 1항에 있어서, 상기 제 (1) 단계와 제 (2) 단계는 교대로 이루어지는 것을 특징으로 하는 프로세서의 데이타읽기방법.The method of claim 1, wherein the steps (1) and (2) are alternately performed. 프로세서 자신의 데이타버스 크기보다 작은 데이타버스를 갖는 소자로부터 데이타를 읽어들이는 장치에 있어서,In an apparatus for reading data from a device having a data bus smaller than the processor's own data bus, 입력되는 선택신호에 따라 상기 소자의 데이타버스로부터 데이타를 읽어들여 상기 프로세서의 데이타버스 상위비트부분에 전달하는 제 1데이타전달부;A first data transfer unit which reads data from the data bus of the device according to an input selection signal and transfers the data to an upper bit portion of the data bus of the processor; 입력되는 선택신호에 따라 상기 소자의 데이타버스로부터 데이타를 읽어들여 상기 프로세서의 데이타버스 하위비트부분에 전달하는 제 2데이타전달부; 및A second data transfer unit which reads data from the data bus of the device according to an input selection signal and transfers the data to a lower bit portion of the data bus of the processor; And 상기 제 1데이타전달부와 제 2데이타전달부가 교대로 동작하도록 입력되는 선택신호를 상태반전하여 상기 제 2데이타전달부로 인가하는 인버터를 포함하는 프로세서의 데이타읽기장치.And an inverter configured to invert a state of a selection signal input to alternately operate the first data transfer unit and the second data transfer unit, and apply the state to the second data transfer unit. 제 3항에 있어서, 상기 제 1데이타전달부와 제 2데이타전달부는 각각 상기 소자의 데이타버스 크기만큼의 논리곱소자(AND)로 이루어진 것을 특징으로 하는 프로세서의 데이타읽기장치.4. The data reading apparatus of claim 3, wherein the first data transfer unit and the second data transfer unit are each formed of a logical AND device equal to the size of the data bus of the device.
KR1019970002140A 1997-01-25 1997-01-25 Method of reading data from processor and its device KR19980066531A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019970002140A KR19980066531A (en) 1997-01-25 1997-01-25 Method of reading data from processor and its device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019970002140A KR19980066531A (en) 1997-01-25 1997-01-25 Method of reading data from processor and its device

Publications (1)

Publication Number Publication Date
KR19980066531A true KR19980066531A (en) 1998-10-15

Family

ID=65953302

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019970002140A KR19980066531A (en) 1997-01-25 1997-01-25 Method of reading data from processor and its device

Country Status (1)

Country Link
KR (1) KR19980066531A (en)

Similar Documents

Publication Publication Date Title
US5535362A (en) Data transfer control apparatus wherein a time value is compared to a clocked timer value with a comparison of the values causing the transfer of bus use right
US4884192A (en) Information processor capable of data transfer among plural digital data processing units by using an active transmission line having locally controlled storage of data
NL8900608A (en) PROGRAMMABLE PROCESSING DEVICE FOR LARGE-SCALE INTEGRATION.
US4503511A (en) Computing system with multifunctional arithmetic logic unit in single integrated circuit
US7051194B2 (en) Self-synchronous transfer control circuit and data driven information processing device using the same
US5446848A (en) Entry level data processing system which is expandable by a factor of two to a partitionable upgraded system with low overhead
JP2937326B2 (en) Test circuit for logic circuits
KR19980066531A (en) Method of reading data from processor and its device
EP0136699A2 (en) Programmable controller
TW369769B (en) Method and apparatus for split shift register addressing
JPH0267665A (en) Interface circuit
KR910006684Y1 (en) Cpu signal controlling circuit
KR200142909Y1 (en) Input/output interface apparatus
US5191654A (en) Microprocessor for high speed data processing
JP2692469B2 (en) Data controller
JP2004362262A (en) Semiconductor integrated circuit
JP3473746B2 (en) Data transmission / reception circuit
SU1336105A1 (en) Domain storage unit
JP2814543B2 (en) Signal selection transmission circuit and its task processing method
JPS59191647A (en) Serial i/o of data processing system
JP2508322B2 (en) Serial I / O circuit built-in micro computer
JPH01205279A (en) Signal processing circuit
KR100420477B1 (en) Method for transmitting data by using preset mode register
JPS61153770A (en) Image processor
JPH11120114A (en) Data transfer device

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E601 Decision to refuse application