JPH0991244A - Data transfer device - Google Patents

Data transfer device

Info

Publication number
JPH0991244A
JPH0991244A JP24218295A JP24218295A JPH0991244A JP H0991244 A JPH0991244 A JP H0991244A JP 24218295 A JP24218295 A JP 24218295A JP 24218295 A JP24218295 A JP 24218295A JP H0991244 A JPH0991244 A JP H0991244A
Authority
JP
Japan
Prior art keywords
data
dma
transfer
buffer
access clock
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
JP24218295A
Other languages
Japanese (ja)
Inventor
Tomoaki Minamida
田 智 昭 南
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP24218295A priority Critical patent/JPH0991244A/en
Publication of JPH0991244A publication Critical patent/JPH0991244A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PROBLEM TO BE SOLVED: To effectively use a memory and to reduce the area occupied by the memory within a chip. SOLUTION: The data are transferred to a receiving buffer 5 from a sending buffer 4 via a data input/output means 6. Then the buffer 4 becomes empty and the buffer 5 is filled with data. Under such conditions, a DMA(direct memory access) request is sent to a DMA controller 8 from the means 6. At the same time, a full double transfer start signal is sent to a DMA transfer RAM control part 7 by the operation of a full double mode that is previously set. The data on the address shown by an address generation part 3 is fetched by the buffer 4 via a data bus 1 and stored in a data RAM 2, so that the sending transfer surely occurs earlier than the receiving transfer. Then the buffer 5 reads the value out of the bus 1 in the address shown by the part 3.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、全2重のDMA(Dire
ct Memory Access) 転送を用いて、外部機器とデータの
入出力を行なうデータ転送装置に関するものである。
BACKGROUND OF THE INVENTION The present invention relates to a full-duplex DMA (Dire
ct Memory Access) The present invention relates to a data transfer device that inputs and outputs data to and from an external device using transfer.

【0002】[0002]

【従来の技術】近年、ディジタル信号処理には、より高
度な技術が導入され、そこに使われる機器の一つである
データ転送装置に対しては、より転送ワードの多いも
の、より占有面積の小さいもの、より低消費電力である
ものが求められている。
2. Description of the Related Art In recent years, more advanced techniques have been introduced for digital signal processing, and a data transfer device, which is one of the devices used therein, has more transfer words and a larger occupied area. There is a demand for smaller devices and those with lower power consumption.

【0003】以下、従来のデータ転送装置について図面
を参照しながら説明する。図5は従来のデータ転送装置
の一例を示すものである。図5において、101はAL
U等の演算装置に対してデータの受け渡しを行なうデー
タバス、102はデータバス101に対して読み書きを
行ない、データを保持するデータRAM、103はデー
タRAM102のアクセスする番地を発生するアドレス
発生部、104はデータRAM102から出力されて外
部機器に送信されるデータを保持する送信バッファ、1
05は外部機器から受信したデータを保持する受信バッ
ファ、106は送信バッファ104のデータを外部機器
に送信したり、受信したデータを受信バッファ105に
格納するデータ入出力手段、107はデータRAM10
2、アドレス発生部103、送信バッファ104、受信
バッファ105、データ入出力手段106を制御するD
MAコントローラ、108はDMA機能を全2重転送で
使用するのか、半2重で使用するのかの制御信号を、D
MAコントローラ107に与えるDMA制御レジスタ、
109はデータ入出力手段106とデータの受け渡しを
する外部機器である。
A conventional data transfer apparatus will be described below with reference to the drawings. FIG. 5 shows an example of a conventional data transfer device. In FIG. 5, 101 is AL
A data bus for transferring data to an arithmetic unit such as U; 102, a data RAM for reading and writing data from the data bus 101; and a data RAM for holding data; and 103, an address generation unit for generating an address to be accessed by the data RAM 102, Reference numeral 104 denotes a transmission buffer that holds data output from the data RAM 102 and transmitted to an external device, 1
Reference numeral 05 is a reception buffer that holds data received from an external device, 106 is a data input / output unit that transmits the data in the transmission buffer 104 to the external device, and stores the received data in the reception buffer 105, and 107 is the data RAM 10
2, D for controlling the address generation unit 103, the transmission buffer 104, the reception buffer 105, and the data input / output unit 106
The MA controller 108 sends a control signal D which indicates whether the DMA function is used for full duplex transfer or half duplex transfer.
DMA control register provided to the MA controller 107,
An external device 109 exchanges data with the data input / output unit 106.

【0004】以上のように構成されたデータ転送装置に
ついて、以下その全2重DMA動作の1回の転送動作に
ついて説明する。従来のデータ転送装置においては、デ
ータRAM102中のDMAに用いるメモリ領域で、全
2重DMAで送信データを保持してある領域と、受信さ
れるデータの領域は図6のように孤立して扱われる。
With respect to the data transfer device configured as described above, one transfer operation of the full-duplex DMA operation will be described below. In the conventional data transfer apparatus, in the memory area used for the DMA in the data RAM 102, the area in which the transmission data is held by the full-duplex DMA and the area of the received data are treated separately as shown in FIG. Be seen.

【0005】全2重DMAでデータ授受を行なう場合、
送・受信を始める前にデータバス101を経由して、D
MA制御レジスタ108に全2重DMAモードの信号が
伝えられ、DMA制御レジスタ108は、全2重DMA
モード信号により、DMAコントローラ107のDMA
モード全2重にセットする。
When data is transmitted / received by full-duplex DMA,
Before starting transmission / reception, via the data bus 101, D
A signal of the full-duplex DMA mode is transmitted to the MA control register 108, and the DMA control register 108 receives the full-duplex DMA mode.
The DMA of the DMA controller 107 depends on the mode signal.
Set in full mode.

【0006】従来の全2重DMA転送でのメモリアクセ
スタイミングの一例を図7に示す。図7における外部機
器/データ入出力手段転送シリアルクロックは、データ
転送装置が駆動されるインストラクションクロックに対
して3倍以上の周期を持つと仮定する。
FIG. 7 shows an example of memory access timing in conventional full-duplex DMA transfer. It is assumed that the external device / data input / output means transfer serial clock in FIG. 7 has a cycle three times or more as long as the instruction clock for driving the data transfer device.

【0007】以下図7をタイムチャートとして全2重D
MA動作について述べる。図7のタイミングaの直前
で、外部機器109とデータ入出力手段106との間で
データが1ワード分受け渡しされた後、送信バッファ1
04からデータ入出力手段106にデータが渡され、送
信バッファ104が空状態になり、データ入出力106
から受信バッファ105にデータが渡され、受信バッフ
ァ105がフル状態になる。すると図7のタイミングa
の時点でDMAの要求がデータ入出力手段106からD
MAコントローラ107に送られる。
The full-duplex D is shown in FIG. 7 as a time chart below.
The MA operation will be described. Immediately before the timing a in FIG. 7, one word of data is transferred between the external device 109 and the data input / output unit 106, and then the transmission buffer 1
The data is transferred from 04 to the data input / output means 106, the transmission buffer 104 becomes empty, and the data input / output 106
The data is passed from the receiving buffer 105 to the receiving buffer 105, and the receiving buffer 105 becomes full. Then, timing a in FIG.
At this time, a DMA request is issued from the data input / output means 106
It is sent to the MA controller 107.

【0008】DMAコントローラ107は、DMAの要
求により、あらかじめセットされた全2重モードの動作
により、まず図7のタイミングbの時点において、全2
重DMAのうちの送信DMAの動作を行なう。
The DMA controller 107 operates in the full-duplex mode set in advance in response to a request from the DMA, so that at the timing b in FIG.
The operation of the transmission DMA of the heavy DMA is performed.

【0009】送信DMAの動作は、DMAコントローラ
107がアドレス発生部103に対して、送信のデータ
が存在するメモリの番地を発生させ、データRAM10
2にアドレス発生部103の示す番地のデータをデータ
バス101に出力させ、次に送信バッファ104に対し
て、データバス101の値を取り込むように指示して完
了する。
In the operation of the transmission DMA, the DMA controller 107 causes the address generator 103 to generate the address of the memory in which the transmission data exists, and the data RAM 10
2 causes the data at the address indicated by the address generation unit 103 to be output to the data bus 101, and then the transmission buffer 104 is instructed to fetch the value of the data bus 101, and the processing is completed.

【0010】送信DMA後に、図7のタイミングcの時
点において、全2重DMAのうちの送信DMAの動作を
行なう。送信DMAの動作は、DMAコントローラ10
7が受信バッファ105に対して、その保持するデータ
をデータバス101に出力するように指示し、次にアド
レス発生部103に対して、送信のデータが存在する番
地とは異なる、たとえば1024ワードのオフセットを
持った受信のデータが存在するメモリの番地を発生さ
せ、データRAM102にアドレス発生部103の示す
番地にデータバス101から値を読み込むように指示を
出して、受信DMA並びに全2重DMAの1回の転送が
終了する。
After the transmission DMA, at the timing c in FIG. 7, the operation of the transmission DMA of the full-duplex DMA is performed. The operation of the transmission DMA is performed by the DMA controller 10
7 instructs the reception buffer 105 to output the held data to the data bus 101, and then instructs the address generation unit 103 to change the address, for example, 1024 words, which is different from the address where the transmission data exists. An address of a memory in which reception data having an offset is present is generated, and an instruction is issued to the data RAM 102 to read a value from the data bus 101 at an address indicated by the address generation unit 103, thereby performing reception DMA and full-duplex DMA. One transfer ends.

【0011】このように、従来のデータ転送装置でも、
全2重DMA転送を用いて外部機器とデータの入出力を
行なうことができる。
As described above, even in the conventional data transfer device,
It is possible to input / output data to / from an external device using full-duplex DMA transfer.

【0012】[0012]

【発明が解決しようとする課題】しかしながら、上記従
来のデータ転送装置では、全2重のモードで転送するバ
ッファと受信するバッファは、メモリの離れた場所に存
在している必要があり、送信済みのデータでもメモリに
保持し続けており、全2重のモードで転送するデータが
占めるメモリのワード数は、単純に、送信バッファと受
信バッファの和、つまり全2重で転送するワード数の2
倍である。
However, in the above-mentioned conventional data transfer apparatus, the buffer for transferring in the full-duplex mode and the buffer for receiving must be located in separate places in the memory, and the buffer must be transmitted. Data is continuously held in the memory, and the number of words in the memory occupied by the data transferred in the full-duplex mode is simply the sum of the transmission buffer and the reception buffer, that is, the number of words transferred in the full-duplex mode is 2
It is twice.

【0013】さらに、使用するメモリは、データバスで
ALU等の演算装置につながっており、高速なアクセス
クロックでアクセスされ、DMAの低速アクセスでよい
場合もそのアクセス速度を変えないものである。つまり
入出力にのみ用いるメモリは、必要以上に、集積回路チ
ップ内の占有面積が大きく、消費電力が大きく、高性能
であるという問題を有していた。
Further, the memory used is connected to an arithmetic unit such as an ALU via a data bus, is accessed by a high-speed access clock, and does not change the access speed even when the DMA low-speed access is sufficient. That is, the memory used only for input / output has a problem that the area occupied in the integrated circuit chip is larger than necessary, the power consumption is large, and the performance is high.

【0014】本発明は、このような従来の問題を解決す
るものであり、送信済みのデータは保持しておく必要が
ないこと、DMAを行なう際のメモリアクセスには高速
なメモリアクセスが必要ないことに注目し、入出力に用
いるメモリの消費電力を小さく、またチップ内の占有面
積を少なくできる優れたデータ転送装置を提供すること
を目的とする。
The present invention solves such a conventional problem. It is not necessary to retain transmitted data, and high-speed memory access is not required for memory access during DMA. It is an object of the present invention to provide an excellent data transfer device that can reduce the power consumption of the memory used for input / output and the occupied area in the chip.

【0015】[0015]

【課題を解決するための手段】上記目的を達成するため
に、本発明の第1の構成は、ALU等の演算装置に対し
てデータの受け渡しを行なうデータバスと、データバス
に対して読み書きを行ないデータを保持するデータRA
Mと、このデータRAMのアクセスする番地を発生する
アドレス発生部と、このデータRAMから出力されて外
部機器に送信されるデータを保持する送信バッファと、
外部機器から受信したデータを保持する受信バッファ
と、送信バッファのデータを外部機器に送信したり、受
信したデータを受信バッファに格納するデータ入出力手
段と、DMA転送時にデータRAMからデータバスにデ
ータを読み出すタイミングと、データバスからデータを
書き込むタイミングを制御するDMA転送RAM制御部
と、データRAM、アドレス発生部、送信バッファ、受
信バッファ、データ入出力手段、DMA転送等制御部を
制御するDMAコントローラと、DMA機能を全2重転
送で使用するのか、半2重で使用するのかの制御信号を
DMAコントローラに与えるDMA制御レジスタとを備
えたものである。
In order to achieve the above object, the first configuration of the present invention has a data bus for transferring data to an arithmetic unit such as an ALU, and a read / write operation for the data bus. Data RA that holds data to be executed
M, an address generator that generates an address to be accessed by the data RAM, a transmission buffer that holds data output from the data RAM and transmitted to an external device,
A reception buffer that holds data received from an external device, a data input / output unit that transmits data in the transmission buffer to the external device and stores received data in the reception buffer, and a data RAM to a data bus during DMA transfer. A DMA transfer RAM control unit that controls the timing of reading data and the timing of writing data from the data bus, and a DMA controller that controls the data RAM, address generation unit, transmission buffer, reception buffer, data input / output unit, and DMA transfer control unit. And a DMA control register for giving a control signal to the DMA controller as to whether the DMA function is used for full-duplex transfer or half-duplex transfer.

【0016】本発明の第2の構成は、上記第1の構成に
加え、送信バッファへDMAでデータを渡し、受信バッ
ファからデータがDMAで書き込まれ、メモリアクセス
クロックを低速にすることができるI/O専用メモリ
と、I/O専用メモリのメモリアクセスクロックと送・
受信バッファおよびI/O専用メモリのDMAクロック
とを低速にするように制御するアクセスクロック制御装
置と、アクセスクロック制御装置にアクセスクロックを
高速とするか、低速とするかの信号を与えるアクセスク
ロック制御レジスタとを備えたものである。
In addition to the above first configuration, the second configuration of the present invention transfers data to the transmission buffer by DMA and writes the data from the reception buffer by DMA so that the memory access clock can be slowed down. I / O dedicated memory and memory access clock of I / O dedicated memory
An access clock control device that controls the reception buffer and the DMA clock of the I / O dedicated memory to be slow, and an access clock control that gives the access clock control device a signal indicating whether the access clock is fast or slow And a register.

【0017】本発明の第3の構成は、上記第1の構成に
加え、送信バッファおよび受信バッファのアクセスクロ
ックが低速であり、送信バッファへDMAでデータを渡
し、受信バッファからデータがDMAで書き込まれ、メ
モリアクセスクロックを低速のI/O専用メモリと、デ
ータDMAのメモリアクセスクロックをI/O専用メモ
リに合わせて低速に制御するアクセスクロック制御装置
と、アクセスクロック制御装置にアクセスクロックを高
速とするか、低速とするかの信号を与えるアクセスクロ
ック制御レジスタとを備えたものである。
A third configuration of the present invention is, in addition to the first configuration, the access clocks of the transmission buffer and the reception buffer are low speed, the data is transferred to the transmission buffer by DMA, and the data is written from the reception buffer by DMA. The access clock control device controls the memory access clock to a low speed I / O dedicated memory, the access clock control device to control the data DMA memory access clock to a low speed in accordance with the I / O dedicated memory, and the access clock control device to control the access clock to a high speed. And an access clock control register which gives a signal indicating whether the speed is low or low.

【0018】[0018]

【作用】本発明は、上記構成によって、全2重のモード
で転送するバッファと、受信するバッファは同一の場所
に存在することができ、送信済みのデータはメモリに保
持し続けないで、全2重のモードで転送するデータが占
めるメモリのワード数は、単純に、送信バッファもしく
は受信バッファの大きさ、つまり全2重で転送するワー
ド数に等しくなり、集積回路チップ内のメモリ占有面積
を小さくするとができる。
According to the present invention, the buffer configured to transfer in full-duplex mode and the buffer configured to receive in the full-duplex mode can exist in the same place, and the transmitted data is not kept in the memory. The number of words in the memory occupied by the data to be transferred in the dual mode is simply equal to the size of the transmission buffer or the reception buffer, that is, the number of words to be transferred in the full duplex, and the memory occupation area in the integrated circuit chip is reduced. It can be made smaller.

【0019】また、入出力のみに使用するメモリを新た
に設け、低速なアクセスクロックでもアクセスすること
を可能にし、DMAの低速のアクセスに対応し、低消費
電力化を行なうことができる。
Further, by newly providing a memory used only for input / output, it is possible to access even with a low-speed access clock, it is possible to support a low-speed access of DMA, and it is possible to reduce power consumption.

【0020】さらに、入出力のみに使用するメモリを低
速なアクセスクロックのみでアクセスすることにし、低
速なメモリで構成することを可能にし、入出力に使用す
るメモリを小さなセルで構成することができ、チップ内
のメモリ占有面積をより一層小さくすることができる。
Further, the memory used only for input / output is made to be accessed only by the low-speed access clock, so that it is possible to configure the memory at low speed, and the memory used for input / output can be configured with small cells. The area occupied by the memory in the chip can be further reduced.

【0021】[0021]

【実施例】【Example】

(実施例1)以下、本発明の実施例について、図面を参
照しながら説明する。図1は本発明の第1実施例におけ
るメモリ転送装置を示すブロック図である。図1におい
て、1はALU等の演算装置に対してデータの受け渡し
を行なうデータバス、2はデータバス1に対して読み書
きを行ない、データを保持するデータRAM、3はデー
タRAM2のアクセスする番地を発生するアドレス発生
部、4はデータRAM2から出力されて外部機器に送信
されるデータを保持する送信バッファ、5は外部機器か
ら受信したデータを保持する受信バッファ、6は送信バ
ッファ4のデータを外部機器に送信したり、受信したデ
ータを受信バッファ5に格納するデータ入出力手段、7
はDMA転送時にデータRAM2からデータバスにデー
タを読み出すタイミングと、データバスからデータを書
き込むタイミングを制御するDMA転送RAM制御部、
8はデータRAM2、アドレス発生部3、送信バッファ
4、受信バッファ5、データ入出力手段6、DMA転送
RAM制御部7を制御するDMAコントローラ、9はD
MA機能を全2重転送で使用するのか、半2重で使用す
るのかの制御信号をDMAコントローラ8に与えるDM
A制御レジスタ、10はデータ入出力手段6とデータの
受け渡しをする外部機器である。
(Embodiment 1) Hereinafter, an embodiment of the present invention will be described with reference to the drawings. 1 is a block diagram showing a memory transfer device according to a first embodiment of the present invention. In FIG. 1, 1 is a data bus for transferring data to an arithmetic unit such as an ALU, 2 is a data RAM for reading and writing data from the data bus 1, and 3 is a data RAM for holding data. An address generator 4 for generating is a transmission buffer for holding the data output from the data RAM 2 and transmitted to an external device, 5 is a reception buffer for holding the data received from the external device, and 6 is an external data for the transmission buffer 4. Data input / output means for transmitting data to the device or storing received data in the reception buffer 5, 7
Is a DMA transfer RAM controller that controls the timing of reading data from the data RAM 2 to the data bus during DMA transfer and the timing of writing data from the data bus.
Reference numeral 8 is a DMA controller for controlling the data RAM 2, address generation unit 3, transmission buffer 4, reception buffer 5, data input / output means 6, and DMA transfer RAM control unit 7, and 9 is a D controller.
DM for giving a control signal to the DMA controller 8 as to whether the MA function is used in full-duplex transfer or half-duplex transfer
The A control register 10 is an external device that exchanges data with the data input / output unit 6.

【0022】以上のように構成されたデータ転送装置に
ついて、以下その全2重DMA動作の1回の転送動作に
ついて説明する。まずメモリ領域であるが、本実施例に
おいては、データRAM2中のDMAで全2重DMAで
送信データを保持してある領域と受信されるデータの領
域は、図2のように同一のメモリとなる。全2重DMA
でデータを授受を行なう場合、送・受信を始めるまえ
に、データバス1を経由してDMA制御レジスタ9に全
2重DMAモードの信号が伝えられ、DMA制御レジス
タ9は、全2重DMAモードの信号により、DMAコン
トローラ8のDMAモードを全2重にセットする。
With respect to the data transfer device configured as described above, one transfer operation of the full-duplex DMA operation will be described below. First, regarding the memory area, in the present embodiment, the area in the data RAM 2 in which the transmission data is held by the full-duplex DMA and the area of the received data are the same memory as shown in FIG. Become. Full duplex DMA
When data is transmitted / received by, the full-duplex DMA mode signal is transmitted to the DMA control register 9 via the data bus 1 before starting the transmission / reception, and the DMA control register 9 is in the full-duplex DMA mode. Signal to set the DMA mode of the DMA controller 8 to full duplex.

【0023】本実施例の全2重DMA転送でのメモリア
クセスタイミングの一例は、従来例と同様に図7のよう
になっている。図7における外部機器/データ入出力手
段転送シリアルクロックは、データ転送装置が駆動され
るインストラクションクロックに対して3倍以上の周期
を持つと仮定する。以下図7をタイムチャートとして説
明する。
An example of the memory access timing in full-duplex DMA transfer of this embodiment is as shown in FIG. 7 as in the conventional example. It is assumed that the external device / data input / output means transfer serial clock in FIG. 7 has a cycle three times or more as long as the instruction clock for driving the data transfer device. Hereinafter, FIG. 7 will be described as a time chart.

【0024】図7のタイミングaの直前で、外部機器1
0とデータ入出力手段6との間でデータが1ワード分受
け渡しされた後、送信バッファ4からデータ入出力手段
6にデータが渡され、送信バッファ4が空状態になり、
データ入出力手段6から受信バッファ5にデータが渡さ
れ、受信バッファ5がフル状態になる。すると図7のタ
イミングaの時点でDMAの要求がデータ入出力手段6
からDMAコントローラ8に送られる。
Immediately before the timing a in FIG. 7, the external device 1
After one word of data has been transferred between 0 and the data input / output means 6, the data is transferred from the transmission buffer 4 to the data input / output means 6 and the transmission buffer 4 becomes empty.
The data is transferred from the data input / output means 6 to the reception buffer 5, and the reception buffer 5 becomes full. Then, at the timing a in FIG. 7, the DMA request is issued by the data input / output unit 6.
To the DMA controller 8.

【0025】DMAコントローラ8は、DMAの要求に
より、あらかじめセットされた全2重モードの動作によ
り、DMA転送RAM制御部7に全2重転送開始信号を
送り、アドレス発生部3に対して、送信のデータが存在
するメモリの番地つまり受信したデータを格納させる番
地を発生させる。
The DMA controller 8 sends a full-duplex transfer start signal to the DMA transfer RAM control unit 7 by a preset full-duplex mode operation in response to a DMA request, and sends it to the address generation unit 3. The address of the memory where the data of exists exists, that is, the address for storing the received data is generated.

【0026】次に、DMA転送RAM制御部7は、送信
の転送が受信の転送よりも確実に先に起こるように、図
7のタイミングbの時点においてデータRAM2にアド
レス発生部3の示す番地のデータをデータバス1に出力
させ、次に送信バッファ4に対してデータバス1の値を
取り込むように指示を出して、送信DMAが完了する。
Next, the DMA transfer RAM control unit 7 sets the address indicated by the address generation unit 3 in the data RAM 2 at the time of timing b in FIG. 7 so that the transfer of the transmission surely precedes the transfer of the reception. The data is output to the data bus 1, then the transmission buffer 4 is instructed to take in the value of the data bus 1, and the transmission DMA is completed.

【0027】送信DMAが完了すると、DMA転送RA
M制御部7は、図7のタイミングcの時点において、受
信バッファ5に対してその保持するデータをデータバス
1に出力するように指示し、アドレス発生部3の示す番
地、つまりデータが送信されたデータがある番地にデー
タRAM2に対してデータバス1から値を読み込むよう
に指示を出して、受信DMA並びに全2重DMAの1回
の転送が終了する。
When the transmission DMA is completed, the DMA transfer RA
At the timing c in FIG. 7, the M control unit 7 instructs the reception buffer 5 to output the data held therein to the data bus 1, and the address indicated by the address generation unit 3, that is, the data is transmitted. The data RAM 2 is instructed to read the value from the data bus 1 at the address where the data is present, and one transfer of the reception DMA and the full-duplex DMA is completed.

【0028】以上のように、本実施例によれば、送信デ
ータが格納されている番地に受信データを転送が済み次
第上書きしていくことにより、一般に転送されれば保持
しておく必要のない送信データが格納されているメモリ
を有効に使うとができ、集積回路のチップ内におけるメ
モリの占有面積を少なくすることができる。
As described above, according to the present embodiment, the reception data is overwritten in the address where the transmission data is stored as soon as the transfer is completed, so that it is generally unnecessary to retain it if it is transferred. The memory in which the transmission data is stored can be effectively used, and the area occupied by the memory in the integrated circuit chip can be reduced.

【0029】(実施例2)次に、本発明の第2の実施例
について、図面を参照しながら説明する。図3は本発明
の第2実施例におけるメモリ転送装置を示すブロック図
である。本実施例においては、上記第1の実施例と同一
部分については同一符号を付して重複した説明を省略
し、異なる構成についてのみ説明する。本実施例の特徴
とするところは、図3に示すように、データRAM2の
他に、送信バッファ4へデータバス1を介してDMAで
データを渡し、受信バッファ5からデータバス1を介し
てデータがDMAで書き込まれ、メモリアクセスクロッ
クを低速にすることができるI/O専用メモリ11と、
I/O専用メモリ11のメモリアクセスクロックと送信
バッファ4、受信バッファ5およびI/O専用メモリ1
1の間のDMAクロックとを低速にするように制御する
アクセスクロック制御装置12と、アクセスクロック制
御装置12にアクセスクロックを高速とするか、低速と
するかの信号を与えるアクセスクロック制御レジスタ1
3とを設け、I/O専用メモリ11と送受信バッファ
4、5間のDMAを低速なクロックで行なうように構成
された点にある。
(Second Embodiment) Next, a second embodiment of the present invention will be described with reference to the drawings. FIG. 3 is a block diagram showing a memory transfer device according to the second embodiment of the present invention. In the present embodiment, the same parts as those in the first embodiment are designated by the same reference numerals, duplicate explanations will be omitted, and only different configurations will be explained. The feature of this embodiment is that, as shown in FIG. 3, in addition to the data RAM 2, data is transferred to the transmission buffer 4 by DMA via the data bus 1 and data is transmitted from the reception buffer 5 via the data bus 1. Is written by DMA, and the memory access clock can be slowed down by the I / O dedicated memory 11,
Memory access clock of I / O dedicated memory 11 and transmission buffer 4, reception buffer 5 and I / O dedicated memory 1
Access clock control device 12 for controlling the DMA clock between 1 and 1 to be slow, and an access clock control register 1 for giving the access clock control device 12 a signal as to whether the access clock is fast or slow.
3 is provided, and the DMA between the I / O dedicated memory 11 and the transmission / reception buffers 4 and 5 is configured to be performed by a low-speed clock.

【0030】以上のように構成されたデータ転送装置に
ついて、以下その全2重DMA動作の1回の転送動作に
ついて説明する。まずメモリ領域であるが、本実施例に
おいて全2重の送受信に用いるメモリは、I/O専用メ
モリ11の中に存在し、送信データを保持してある領域
と受信されるデータの領域は、図2のように同一のメモ
リとなる。
With respect to the data transfer apparatus configured as described above, one transfer operation of the full-duplex DMA operation will be described below. First, regarding the memory area, the memory used for full-duplex transmission / reception in the present embodiment exists in the I / O dedicated memory 11, and the area holding transmission data and the area of received data are The same memory is used as shown in FIG.

【0031】全2重DMAでデータ授受を行なう場合、
送・受信を始める前に、演算結果等のデータRAM2に
蓄えられているデータをI/O専用メモリ11に転送し
なければならない。その場合、アクセスクロック制御レ
ジスタ13にデータバス1を介してI/O専用メモリ1
1のアクセスクロックが高速となる信号を与え、アクセ
スクロック制御レジスタ13の高速アクセス制御信号に
より、アクセスクロック制御装置12は、I/O専用メ
モリ11のデータバス1に対するアクセスを高速に行な
うように制御する。この制御により、I/O専用メモリ
11のアクセスクロックとデータRAM2のアクセスク
ロックは等速となり、転送の準備が整う。
When data is transferred by full-duplex DMA,
Before starting transmission / reception, the data stored in the data RAM 2 such as the calculation result must be transferred to the I / O dedicated memory 11. In that case, the I / O dedicated memory 1 is transferred to the access clock control register 13 via the data bus 1.
The access clock control device 12 controls the access clock control device 12 to access the data bus 1 of the I / O dedicated memory 11 at high speed by applying a high-speed access control signal from the access clock control register 13. To do. By this control, the access clock of the I / O dedicated memory 11 and the access clock of the data RAM 2 become uniform speed, and the preparation for transfer is completed.

【0032】その後、データバス1を介してデータRA
M2に蓄えられているデータがI/O専用メモリ11に
転送され、全ての送信するデータをI/O専用メモリ1
1が受け取ると、I/O専用メモリ11に対するアクセ
スは、DMAによるアクセスのみになり、高速にアクセ
スされることはない。そこでアクセスクロック制御レジ
スタ13に、データバス1を介してI/O専用メモリ1
1のアクセスクロックが低速となる信号を与え、アクセ
スクロック制御レジスタ13の低速アクセス制御信号に
より、この時点以降アクセスクロック制御装置12は、
I/O専用メモリ11のデータバス1に対するアクセス
を低速に行なうように制御する。全ての転送すべきデー
タを転送した後では、データRAM2の転送データが蓄
えられていた領域は自由に使うことができる。
After that, the data RA is transmitted via the data bus 1.
The data stored in M2 is transferred to the I / O dedicated memory 11, and all the data to be transmitted is transferred to the I / O dedicated memory 1
When 1 is received, the I / O dedicated memory 11 is accessed only by DMA, and is not accessed at high speed. Therefore, the access clock control register 13 is connected to the I / O dedicated memory 1 via the data bus 1.
The access clock control device 12 gives a signal for making the access clock of 1 low speed, and the access clock control device 12 receives the low speed access control signal of the access clock control register 13
The access to the data bus 1 of the I / O dedicated memory 11 is controlled to be performed at a low speed. After transferring all the data to be transferred, the area of the data RAM 2 where the transfer data is stored can be used freely.

【0033】またこの時点以降、アクセスクロック制御
装置12は、送信バッファ4並びに受信バッファ5のデ
ータバスに対するアクセスも低速に行なうように制御す
る。
After this point of time, the access clock control device 12 controls the transmission buffer 4 and the reception buffer 5 to access the data bus at a low speed.

【0034】この時、一般に送・受信DMAの1ワード
は8ビット以上の単位で行なわれるので、I/O専用メ
モリ11、送信バッファ4、受信バッファ5のアクセス
クロックを従来のアクセスクロックより低速としたとし
ても問題は起きない。
At this time, since one word of the transmission / reception DMA is generally performed in units of 8 bits or more, the access clock of the I / O dedicated memory 11, the transmission buffer 4, and the reception buffer 5 is set to be slower than the conventional access clock. Even if you do, there will be no problem.

【0035】さらに、送・受信を始める前に、データバ
ス1を経由してDMA制御レジスタ9に全2重DMAモ
ードの信号が伝えられ、DMA制御レジスタ9は、全2
重DMAモード信号により、DMAコントローラ8のD
MAモードを全2重にセットする。
Further, before starting transmission / reception, a full duplex DMA mode signal is transmitted to the DMA control register 9 via the data bus 1, and the DMA control register 9 is set to full 2
D of the DMA controller 8 by the heavy DMA mode signal
Set the MA mode to full duplex.

【0036】本実施例の全2重DMA転送でのメモリア
クセスタイミングの一例は、従来例と同様に図7のよう
になっている。図7における外部機器/データ入出力手
段転送シリアルクロックは、データ転送装置が駆動され
るインストラクションクロックに対して3倍以上の周期
を持つと仮定する。以下図7をタイムチャートとして説
明する。
An example of the memory access timing in the full-duplex DMA transfer of this embodiment is as shown in FIG. 7 as in the conventional example. It is assumed that the external device / data input / output means transfer serial clock in FIG. 7 has a cycle three times or more as long as the instruction clock for driving the data transfer device. Hereinafter, FIG. 7 will be described as a time chart.

【0037】図7のタイミングaの直前で、外部機器1
0とデータ入出力手段6との間でデータが1ワード分受
け渡しされた後、送信バッファ4からデータ入出力手段
6にデータが渡され、送信バッファ4が空状態になり、
データ入出力手段6から受信バッファ5にデータが渡さ
れ、受信バッファ5がフル状態になる。すると図7のタ
イミングaの時点でDMAの要求がデータ入出力手段6
からDMAコントローラ8に送られる。
Immediately before the timing a in FIG. 7, the external device 1
After one word of data has been transferred between 0 and the data input / output means 6, the data is transferred from the transmission buffer 4 to the data input / output means 6 and the transmission buffer 4 becomes empty.
The data is transferred from the data input / output means 6 to the reception buffer 5, and the reception buffer 5 becomes full. Then, at the timing a in FIG. 7, the DMA request is issued by the data input / output unit 6.
To the DMA controller 8.

【0038】DMAコントローラ8は、DMAの要求に
より、あらかじめセットされた全2重モードの動作によ
り、DMA転送RAM制御部7に全2重転送開始信号を
送り、アドレス発生部3に対して、送信のデータが存在
するメモリの番地つまり受信したデータを格納させる番
地を発生させるI/O専用メモリ11の番地を発生させ
る。
The DMA controller 8 sends a full-duplex transfer start signal to the DMA transfer RAM control section 7 by a preset full-duplex mode operation in response to a DMA request, and sends it to the address generation section 3. The address of the memory in which the data exists is generated, that is, the address of the I / O dedicated memory 11 that generates the address for storing the received data is generated.

【0039】次に、DMA転送RAM制御部7は、送信
の転送が受信の転送よりも確実に先に起こるように、図
7のタイミングbの時点において、I/O専用メモリ1
1にアドレス発生部3の示す番地のデータをデータバス
1に出力させ、次に送信バッファ4に対してデータバス
1の値を取り込むように指示を出して、送信DMAが完
了する。
Next, the DMA transfer RAM control unit 7 ensures that the transfer of the transmission occurs before the transfer of the reception, at the timing b of FIG.
1 outputs the data at the address indicated by the address generator 3 to the data bus 1, then issues an instruction to the transmission buffer 4 to take in the value of the data bus 1, and the transmission DMA is completed.

【0040】送信DMAが完了すると、DMA転送RA
M制御部7は、図7のタイミングcの時点において、受
信バッファ5に対してその保持するデータをデータバス
1に出力するように指示し、アドレス発生部3の示す番
地、つまりデータが送信されたデータがある番地にI/
O専用メモリ11に対してデータバス1から値を読み込
むように指示を出して、受信DMA並びに全2重DMA
の1回の転送が終了する。ここで実施例1と異なること
は、I/O専用メモリ11、送信バッファ4、受信バッ
ファ5のデータバス1に対するアクセスクロックが低速
であるということである。
When the transmission DMA is completed, the DMA transfer RA
At the timing c in FIG. 7, the M control unit 7 instructs the reception buffer 5 to output the data held therein to the data bus 1, and the address indicated by the address generation unit 3, that is, the data is transmitted. I / at the address with the data
An instruction is issued to the O-dedicated memory 11 to read a value from the data bus 1, and the reception DMA and full-duplex DMA are executed.
One transfer of is completed. The difference from the first embodiment is that the access clock for the data bus 1 of the I / O dedicated memory 11, the transmission buffer 4, and the reception buffer 5 is low speed.

【0041】以上のように、本実施例によれば、送信デ
ータが格納されている番地に受信データを転送が済み次
第上書きしていくことにより、一般に転送されれば保持
しておく必要のない送信データが格納されているメモリ
を有効に使うことができ、集積回路のチップ内における
メモリの占有面積を少なくすることができる。さらにD
MAの転送時のメモリアクセスクロックを低下させるこ
とが可能となり、低消費電力化することができる。
As described above, according to the present embodiment, the reception data is overwritten in the address in which the transmission data is stored as soon as the transfer is completed, so that it is generally unnecessary to retain it if it is transferred. The memory in which the transmission data is stored can be effectively used, and the area occupied by the memory in the integrated circuit chip can be reduced. Furthermore D
It is possible to reduce the memory access clock at the time of transfer of MA, and it is possible to reduce power consumption.

【0042】(実施例3)次に、本発明の第3の実施例
について、図面を参照しながら説明する。図4は本発明
の第3実施例におけるメモリ転送装置を示すブロック図
である。本実施例においては、上記第2の実施例と同一
部分については同一符号を付して重複した説明を省略
し、異なる構成についてのみ説明する。本発明の特徴と
するところは、図4に示すように、データRAM2の他
に、送信バッファ15へデータバス1を介してDMAで
データを渡し、受信バッファ16からデータバス1を介
してデータがDMAで書き込まれ、メモリアクセスクロ
ックが低速であるI/O専用メモリ14と、アクセスク
ロックが低速な送信バッファ15および受信バッファ1
6と、データRAM2のデータバス1に対するメモリア
クセスクロックを低速とするアクセスクロック制御装置
17と、アクセスクロック制御装置17にアクセスクロ
ックを高速とするか、低速とするかの信号を与えるアク
セスクロック制御レジスタ18とを設け、I/O専用メ
モリ14と送受信バッファ15、16間のDMAを低速
なクロックで行なうように構成された点にある。
(Embodiment 3) Next, a third embodiment of the present invention will be described with reference to the drawings. FIG. 4 is a block diagram showing a memory transfer device according to the third embodiment of the present invention. In the present embodiment, the same parts as those in the second embodiment will be designated by the same reference numerals, redundant description will be omitted, and only different configurations will be described. The feature of the present invention is that, as shown in FIG. 4, in addition to the data RAM 2, data is transferred to the transmission buffer 15 via the data bus 1 by DMA, and the data is transferred from the reception buffer 16 via the data bus 1 to the data buffer 2. I / O dedicated memory 14 written by DMA and having a low memory access clock, and transmission buffer 15 and reception buffer 1 having a low access clock
6, an access clock control device 17 for slowing the memory access clock for the data bus 1 of the data RAM 2, and an access clock control register for giving the access clock control device 17 a signal indicating whether the access clock is fast or slow. 18 is provided, and DMA between the I / O dedicated memory 14 and the transmission / reception buffers 15 and 16 is configured to be performed with a low-speed clock.

【0043】以上のように構成されたデータ転送装置に
ついて、以下その全2重DMA動作の1回の転送動作に
ついて説明する。まずメモリ領域であるが、本実施例に
おいて全2重の送受信に用いるメモリは、I/O専用メ
モリ14の中に存在し、送信データを保持してある領域
と受信されるデータの領域は、図2のように同一のメモ
リとなる。
With respect to the data transfer device configured as described above, one transfer operation of the full-duplex DMA operation will be described below. First, regarding the memory area, the memory used for full-duplex transmission / reception in the present embodiment exists in the I / O dedicated memory 14, and the area holding transmission data and the area of received data are The same memory is used as shown in FIG.

【0044】全2重DMAでデータ授受を行なう場合、
送・受信を始める前に、演算結果等のデータRAM2に
蓄えられているデータをI/O専用メモリ14に転送し
なければならない。その場合、アクセスクロック制御レ
ジスタ18に、データバス1を介してデータRAM2の
アクセスクロックが低速となる信号を与え、アクセスク
ロック制御レジスタ18の高速アクセス制御信号によ
り、アクセスクロック制御装置17は、データRAM2
のデータバス1に対するアクセスを低速に行なうように
制御する。この制御により、I/O専用メモリ14のア
クセスクロックとデータRAM2のアクセスクロックと
は等速となり、転送の準備が整う。
When data is exchanged by full-duplex DMA,
Before starting transmission / reception, the data stored in the data RAM 2 such as the calculation result must be transferred to the I / O dedicated memory 14. In that case, the access clock control register 18 is supplied with a signal for slowing the access clock of the data RAM 2 via the data bus 1, and the high-speed access control signal of the access clock control register 18 causes the access clock control device 17 to cause the data RAM 2 to operate.
The data bus 1 is controlled to be accessed at low speed. By this control, the access clock of the I / O dedicated memory 14 and the access clock of the data RAM 2 have the same speed, and the preparation for the transfer is completed.

【0045】その後、データバス1を介してデータRA
M2に蓄えられているデータがI/O専用メモリ14に
転送され、全ての送信するデータをI/O専用メモリ1
4が受け取ると、データRAM2に対するアクセスは、
高速にアクセスのみで低速でアクセスされることはな
い。そこでアクセスクロック制御レジスタ18に、デー
タバス1を介してデータRAM2のアクセスクロックが
高速となる信号を与え、アクセスクロック制御レジスタ
18の高速アクセス制御信号により、この時点以降アク
セスクロック制御装置17は、データRAM2のデータ
バス1に対するアクセスを高速に行なうように制御す
る。全ての転送すべきデータを転送した後では、データ
RAM2の転送データが蓄えられていた領域は自由に使
うことができる。
After that, the data RA is transmitted via the data bus 1.
The data stored in M2 is transferred to the I / O dedicated memory 14, and all the data to be transmitted is transferred to the I / O dedicated memory 1
4 receives, the access to the data RAM 2 is
It is only accessed at high speed and never accessed at low speed. Therefore, the access clock control register 18 is supplied with a signal for increasing the access clock of the data RAM 2 via the data bus 1, and the high-speed access control signal of the access clock control register 18 causes the access clock control device 17 to start the data The RAM 2 is controlled to access the data bus 1 at high speed. After transferring all the data to be transferred, the area of the data RAM 2 where the transfer data is stored can be used freely.

【0046】この時、一般に送・受信DMAの1ワード
は8ビット以上の単位で行なわれるので、I/O専用メ
モリ14、送信バッファ15、受信バッファ16のアク
セスクロックが従来のアクセスクロックより常に低速で
あるとしても問題は起きない。
At this time, since one word of the send / receive DMA is generally performed in units of 8 bits or more, the access clock of the I / O dedicated memory 14, the send buffer 15, and the receive buffer 16 is always slower than the conventional access clock. Even so, no problem occurs.

【0047】さらに、送・受信を始める前に、データバ
ス1を経由してDMA制御レジスタ9に全2重DMAモ
ードの信号が伝えられ、DMA制御レジスタ9は、全2
重DMAモード信号により、DMAコントローラ8のD
MAモードを全2重にセットする。
Further, before starting transmission / reception, a full duplex DMA mode signal is transmitted to the DMA control register 9 via the data bus 1, and the DMA control register 9 is set to full 2
D of the DMA controller 8 by the heavy DMA mode signal
Set the MA mode to full duplex.

【0048】本実施例の全2重DMA転送でのメモリア
クセスタイミングの一例は、従来例と同様に図7のよう
になっている。図7における外部機器/データ入出力手
段転送シリアルクロックは、データ転送装置が駆動され
るインストラクションクロックに対して3倍以上の周期
を持つと仮定する。以下図7をタイムチャートとして説
明する。
An example of the memory access timing in the full-duplex DMA transfer of this embodiment is shown in FIG. 7 as in the conventional example. It is assumed that the external device / data input / output means transfer serial clock in FIG. 7 has a cycle three times or more as long as the instruction clock for driving the data transfer device. Hereinafter, FIG. 7 will be described as a time chart.

【0049】図7のタイミングaの直前で、外部機器1
0とデータ入出力手段6との間でデータが1ワード分受
け渡しされた後、送信バッファ15からデータ入出力手
段6にデータが渡され、送信バッファ15が空状態にな
り、データ入出力手段6から受信バッファ16にデータ
が渡され、受信バッファ16がフル状態になる。すると
図7のタイミングaの時点でDMAの要求がデータ入出
力手段6からDMAコントローラ8に送られる。
Immediately before the timing a in FIG. 7, the external device 1
After one word of data has been transferred between 0 and the data input / output means 6, the data is transferred from the transmission buffer 15 to the data input / output means 6, the transmission buffer 15 becomes empty, and the data input / output means 6 The data is passed from the receiving buffer 16 to the receiving buffer 16, and the receiving buffer 16 becomes full. Then, the DMA request is sent from the data input / output unit 6 to the DMA controller 8 at the timing a in FIG.

【0050】DMAコントローラ8は、DMAの要求に
より、あらかじめセットされた全2重モードの動作によ
り、DMA転送RAM制御部7に全2重転送開始信号を
送り、アドレス発生部3に対して、送信のデータが存在
するメモリの番地つまり受信したデータを格納させる番
地を発生させるI/O専用メモリ11の番地を発生させ
る。
The DMA controller 8 sends a full-duplex transfer start signal to the DMA transfer RAM control section 7 by a preset full-duplex mode operation in response to a DMA request, and sends it to the address generation section 3. The address of the memory in which the data exists is generated, that is, the address of the I / O dedicated memory 11 that generates the address for storing the received data is generated.

【0051】次に、DMA転送RAM制御部7は、送信
の転送が受信の転送よりも確実に先に起こるように、図
7のタイミングbの時点において、I/O専用メモリ1
4にアドレス発生部3の示す番地のデータをデータバス
1に出力させ、次に送信バッファ15に対してデータバ
ス1の値を取り込むように指示を出して、送信DMAが
完了する。
Next, the DMA transfer RAM control section 7 makes sure that the transfer of the transmission takes place before the transfer of the reception without fail at the timing b in FIG.
4 causes the data at the address indicated by the address generator 3 to be output to the data bus 1, then issues an instruction to the transmission buffer 15 to take in the value of the data bus 1, and the transmission DMA is completed.

【0052】送信DMAが完了すると、DMA転送RA
M制御部7は、図7のタイミングcの時点において、受
信バッファ16に対してその保持するデータをデータバ
ス1に出力するように指示し、アドレス発生部3の示す
番地、つまりデータが送信されたデータがある番地にI
/O専用メモリ14に対してデータバス1から値を読み
込むように指示を出して、受信DMA並びに全2重DM
Aの1回の転送が終了する。ここで実施例2と異なるこ
とは、I/O専用メモリ14、送信バッファ15、受信
バッファ16のデータバス1に対するアクセスクロック
が低速であるということである。
When transmission DMA is completed, DMA transfer RA
At the timing c in FIG. 7, the M control unit 7 instructs the reception buffer 16 to output the data held therein to the data bus 1, and the address indicated by the address generation unit 3, that is, the data is transmitted. I at the address with the data
/ O dedicated memory 14 is instructed to read a value from the data bus 1 to receive DMA and full-duplex DM
One transfer of A is completed. Here, the difference from the second embodiment is that the access clock for the data bus 1 of the I / O dedicated memory 14, the transmission buffer 15, and the reception buffer 16 is low speed.

【0053】以上のように、本実施例によれば、送信デ
ータが格納されている番地に受信データを転送が済み次
第上書きしていくことにより、一般に転送されれば保持
しておく必要のない送信データが格納されているメモリ
を有効に使うことができ、集積回路のチップ内における
メモリの占有面積を少なくすることができる。また、D
MAの転送時のメモリアクセスクロックを低下させるこ
とが可能となり、低消費電力化することができる。さら
に、I/O専用メモリは常に低速動作でよく、面積の小
さなセルを用いることができ、メモリの占有面積の一層
の削減が可能となる。
As described above, according to the present embodiment, the reception data is overwritten in the address where the transmission data is stored as soon as the transfer is completed, so that it is not generally necessary to retain it if it is transferred. The memory in which the transmission data is stored can be effectively used, and the area occupied by the memory in the integrated circuit chip can be reduced. Also, D
It is possible to reduce the memory access clock at the time of transfer of MA, and it is possible to reduce power consumption. Further, the I / O dedicated memory is always required to operate at a low speed, a cell having a small area can be used, and the occupied area of the memory can be further reduced.

【0054】[0054]

【発明の効果】以上説明したように、本発明によれば、
DMA転送時にデータRAMからデータバスにデータを
読み出すタイミングと、データバスからデータを書き込
むタイミングとを制御するDMA転送RAM制御部を備
えているので、送信データが格納されている番地に受信
データを転送が済み次第上書きしていくことにより、一
般に転送されれば保持しておく必要のない送信データが
格納されているメモリを有効に使うことができ、集積回
路のチップ内におけるメモリの占有面積を少なくするこ
とができる。
As described above, according to the present invention,
Since a DMA transfer RAM control unit that controls the timing of reading data from the data RAM to the data bus and the timing of writing data from the data bus during DMA transfer is provided, the received data is transferred to the address where the transmission data is stored. By overwriting as soon as possible, it is possible to effectively use the memory that stores transmission data that does not need to be retained if it is transferred, and reduce the area occupied by the memory in the integrated circuit chip. can do.

【0055】本発明はまた、DMA転送RAM制御部に
加えて、送信バッファへデータバスを介してDMAでデ
ータを渡し、受信バッファからデータバスを介してデー
タがDMAで書き込まれ、メモリアクセスクロックを低
速にすることができるI/O専用メモリと、I/O専用
メモリのメモリアクセスクロックと送・受信バッファお
よびI/O専用メモリの間のDMAクロックとを低速に
するように制御するアクセスクロック制御装置と、アク
セスクロック制御装置にアクセスクロックを高速とする
か、低速とするかの信号を与えるアクセスクロック制御
レジスタとを備えているので、上記効果に加え、DMA
の転送時のメモリアクセスクロックを低下させることが
可能となり、低消費電力化することができる。
In addition to the DMA transfer RAM controller, the present invention also transfers data to the transmission buffer by DMA via the data bus, writes data from the reception buffer via DMA via the data bus, and writes the memory access clock. Access clock control for controlling the I / O dedicated memory that can be slowed down, the memory access clock of the I / O dedicated memory, and the DMA clock between the send / receive buffer and the I / O dedicated memory to be slowed down In addition to the above effects, the DMA device and the access clock control register for providing the access clock control device with a signal for speeding up or slowing down the access clock are provided.
It is possible to reduce the memory access clock at the time of transfer, and it is possible to reduce power consumption.

【0056】本発明はまた、DMA転送RAM制御部に
加えて、アクセスクロックの低速な送信バッファおよび
受信バッファと、送信バッファへデータバスを介してD
MAでデータを渡し、受信バッファからデータバスを介
してデータがDMAで書き込まれ、アクセスクロックの
低速なI/O専用メモリと、データRAMのデータバス
に対するメモリアクセスクロックを低速とするアクセス
クロック制御装置と、アクセスクロック制御装置にアク
セスクロックを高速とするか、低速とするかの信号を与
えるアクセスクロック制御レジスタとを備えているの
で、前記効果に加え、I/O専用メモリは常に低速動作
でよく、面積の小さなセルを用いることができ、メモリ
の占有面積をより一層削減することができる。
In addition to the DMA transfer RAM control section, the present invention also provides a low-speed access clock transmission buffer and reception buffer, and a D-buffer to the transmission buffer via a data bus.
The data is passed by MA, the data is written from the reception buffer via the data bus by DMA, and the access clock control device that makes the memory access clock to the data bus of the data RAM and the I / O dedicated memory having a low access clock low speed And an access clock control register for giving a signal to the access clock control device for increasing or decreasing the access clock, the I / O dedicated memory can always operate at low speed in addition to the above effect. Since a cell having a small area can be used, the area occupied by the memory can be further reduced.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の第1実施例におけるデータ転送装置を
示すブロック図
FIG. 1 is a block diagram showing a data transfer device according to a first embodiment of the present invention.

【図2】本実施例における全2重DMAに用いるメモリ
領域の構成図
FIG. 2 is a configuration diagram of a memory area used for full-duplex DMA in this embodiment.

【図3】本発明の第2の実施例におけるデータ転送装置
を示すブロック図
FIG. 3 is a block diagram showing a data transfer device according to a second embodiment of the present invention.

【図4】本発明の第3の実施例におけるデータ転送装置
を示すブロック図
FIG. 4 is a block diagram showing a data transfer device according to a third embodiment of the present invention.

【図5】従来のデータ転送装置を示すブロック図FIG. 5 is a block diagram showing a conventional data transfer device.

【図6】従来の全2重DMAに用いるメモリ領域の構成
FIG. 6 is a configuration diagram of a memory area used in a conventional full-duplex DMA.

【図7】従来の全2重DMAに用いるメモリ領域の構成
FIG. 7 is a configuration diagram of a memory area used for conventional full-duplex DMA.

【符号の説明】[Explanation of symbols]

1 データバス 2 データRAM 3 アドレス発生部 4 送信バッファ 5 受信バッファ 7 DMA転送RAM制御部 8 DMAコントローラ 9 DMA制御レジスタ 10 外部機器 11 低速アクセス可能なI/O専用メモリ 12 I/O専用メモリに対するアクセスクロック制御
装置 13 I/O専用メモリに対するアクセスクロック制御
レジスタ 14 低速のI/O専用メモリ 15 低速の送信バッファ 16 低速の受信バッファ 17 データRAMに対するアクセスクロック制御装置 18 データRAMに対するアクセスクロック制御レジ
スタ
1 Data Bus 2 Data RAM 3 Address Generator 4 Transmit Buffer 5 Receive Buffer 7 DMA Transfer RAM Controller 8 DMA Controller 9 DMA Control Register 10 External Equipment 11 Low Speed I / O Dedicated Memory 12 I / O Dedicated Memory Access Clock control device 13 Access clock control register for I / O dedicated memory 14 Low speed I / O dedicated memory 15 Low speed transmission buffer 16 Low speed reception buffer 17 Access clock control device for data RAM 18 Access clock control register for data RAM

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 ALU等の演算装置に対してデータの受
け渡しを行なうデータバスと、データバスに値して読み
書きを行ないデータを保持するデータRAMと、このデ
ータRAMのアクセスする番地を発生するアドレス発生
部と、このデータRAMから出力されて外部機器に送信
されるデータを保持する送信バッファと、外部機器から
受信したデータを保持する受信バッファと、送信バッフ
ァのデータを外部機器に送信したり、受信したデータを
受信バッファに格納するデータ入出力手段と、DMA転
送時にデータRAMからデータバスにデータを読み出す
タイミングと、データバスからデータを書き込むタイミ
ングを制御するDMA転送RAM制御部と、データRA
M、アドレス発生部、送信バッファ、受信バッファ、デ
ータ入出力手段、DMA転送RAM制御部を制御するD
MAコントローラと、DMA機能を全2重転送で使用す
るのか、半2重で使用するのかの制御信号をDMAコン
トローラに与えるDMA制御レジスタとを備えたデータ
転送装置。
1. A data bus for transferring data to and from an arithmetic unit such as an ALU, a data RAM for reading and writing data corresponding to the data bus and holding data, and an address for generating an address to be accessed by the data RAM. A generator, a transmission buffer that holds the data output from this data RAM and transmitted to an external device, a reception buffer that holds the data received from the external device, and the data in the transmission buffer can be transmitted to the external device, Data input / output means for storing the received data in the reception buffer, a DMA transfer RAM control unit for controlling the timing of reading data from the data RAM to the data bus during DMA transfer, and the timing of writing data from the data bus, and the data RA.
M, an address generator, a transmission buffer, a reception buffer, a data input / output unit, and a D for controlling a DMA transfer RAM control unit
A data transfer device comprising a MA controller and a DMA control register for giving a control signal to the DMA controller as to whether the DMA function is used in full-duplex transfer or half-duplex transfer.
【請求項2】 送信バッファへDMAでデータを渡し、
受信バッファからデータがDMAで書き込まれ、メモリ
アクセスクロックを低速にすることができるI/O専用
メモリと、I/O専用メモリのメモリアクセスクロック
と送・受信バッファおよびI/O専用メモリのDMAク
ロックとを低速にするように制御するアクセスクロック
制御装置と、アクセスクロック制御装置にアクセスクロ
ックを高速とするか、低速とするかの信号を与えるアク
セスクロック制御レジスタとを備えた請求項1記載のデ
ータ転送装置。
2. Passing data to the transmission buffer by DMA,
Data is written by DMA from the receive buffer and the memory access clock can be slowed down, and the memory access clock of the I / O dedicated memory and the DMA clock of the send / receive buffer and the I / O dedicated memory 2. The data according to claim 1, further comprising: an access clock control device for controlling so as to reduce the speed and an access clock control register for giving the access clock control device a signal indicating whether the access clock is increased in speed or reduced in speed. Transfer device.
【請求項3】 送信バッファおよび受信バッファのアク
セスクロックが低速であり、送信バッファへDMAでデ
ータを渡し、受信バッファからデータがDMAで書き込
まれ、メモリアクセスクロックを低速のI/O専用メモ
リと、データDMAのメモリアクセスクロックをI/O
専用メモリに合わせて低速に制御するアクセスクロック
制御装置と、アクセスクロック制御装置にアクセスクロ
ックを高速とするか、低速とするかの信号を与えるアク
セスクロック制御レジスタとを備えた請求項1記載のデ
ータ転送装置。
3. An access clock of a transmission buffer and a reception buffer is low speed, data is transferred to the transmission buffer by DMA, data is written from the reception buffer by DMA, and a memory access clock is a low speed I / O dedicated memory. I / O for memory access clock of data DMA
2. The data according to claim 1, further comprising: an access clock control device for controlling the access clock at a low speed in accordance with a dedicated memory; and an access clock control register for giving a signal to the access clock control device to increase or decrease the access clock. Transfer device.
JP24218295A 1995-09-20 1995-09-20 Data transfer device Pending JPH0991244A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24218295A JPH0991244A (en) 1995-09-20 1995-09-20 Data transfer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24218295A JPH0991244A (en) 1995-09-20 1995-09-20 Data transfer device

Publications (1)

Publication Number Publication Date
JPH0991244A true JPH0991244A (en) 1997-04-04

Family

ID=17085534

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24218295A Pending JPH0991244A (en) 1995-09-20 1995-09-20 Data transfer device

Country Status (1)

Country Link
JP (1) JPH0991244A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100586585B1 (en) * 1999-01-25 2006-06-02 주식회사신도리코 Direct memory access method using parallel processing fifo

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100586585B1 (en) * 1999-01-25 2006-06-02 주식회사신도리코 Direct memory access method using parallel processing fifo

Similar Documents

Publication Publication Date Title
US20040107265A1 (en) Shared memory data transfer apparatus
JP3797491B2 (en) Data interface and high-speed communication system using the same
WO2007105376A1 (en) Integrated circuit, and integrated circuit system
KR20010013137A (en) Communication DMA Device
JP2505105B2 (en) Communications system
JPH0991244A (en) Data transfer device
KR100266963B1 (en) Method and apparatus for reducing latency rime on an interface by overlapping transmitted packets
EP3819778A1 (en) Bus system and method for operating a bus system
JPH07271654A (en) Controller
CN115586974B (en) Memory controller, system, device and electronic equipment
JPH0222748A (en) Non-volatile memory control circuit
JP2000347989A (en) Data transfer system
JPH0756803A (en) High-speed dma transfer device
JPS6269347A (en) Direct memory access controller
KR100690597B1 (en) Single mode direct memory access application method using cpu applying dual mode direct memory access
JPH09326779A (en) Communication controller and communication control system
JP2001265711A (en) Device for transferring data and bus system
JPH07319840A (en) Multi-cpu device
KR100263670B1 (en) A dma controller
JP2826780B2 (en) Data transfer method
JP2006195810A (en) High-speed data transfer method
JP2642087B2 (en) Data transfer processing mechanism between main storage devices
JPH05334223A (en) Channel device and frame transmitting and receiving method for the same
JPH081634B2 (en) Data transfer device
JPH11282749A (en) High speed memory controller