JPH0340057A - Data transfer device - Google Patents
Data transfer deviceInfo
- Publication number
- JPH0340057A JPH0340057A JP1173046A JP17304689A JPH0340057A JP H0340057 A JPH0340057 A JP H0340057A JP 1173046 A JP1173046 A JP 1173046A JP 17304689 A JP17304689 A JP 17304689A JP H0340057 A JPH0340057 A JP H0340057A
- Authority
- JP
- Japan
- Prior art keywords
- memory
- data
- transfer
- dma
- dma transfer
- 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
Links
- 230000015654 memory Effects 0.000 claims abstract description 58
- 230000009977 dual effect Effects 0.000 claims description 3
- 230000003111 delayed effect Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 230000000630 rising effect Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 238000000034 method Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
Landscapes
- Bus Control (AREA)
- Communication Control (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、データ転送装置に関し、特にDMA転送時に
おけるメモリのアクセス・タイミングの改良に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a data transfer device, and particularly to improving memory access timing during DMA transfer.
かかるデータ転送装置としては、例えば第3図に示すも
のがある。図において、1は装置全体を制御するホスト
・マイコン、2は該ホスト・マイコン1との間でDMA
要求信号(DREQ)及びDMA許可信号(XDACK
)の送受を行い、かつ後述するデュアル・ボー)DRA
M (以下、DP−DRAMと称す)を制御するメモリ
制御回路、3はDP−DRAMで、RAM(ランダム・
アクセス・メモリ)部31とSAM(シリアル・アクセ
ス・メモリ)部32とから構成され、該SAM部3部上
2バイ1分のデータ・レジスタよりなるものとする。4
はRAM部3部上1するデータ・バス、5はSAM部3
部上2するデータ・バスであり、RAM部3部上1AM
部3部上2々のポートを持っており各々が非同期にアク
セスできるように構成されている。As such a data transfer device, there is one shown in FIG. 3, for example. In the figure, 1 is the host microcomputer that controls the entire device, and 2 is the DMA between the host microcomputer 1.
Request signal (DREQ) and DMA permission signal (XDACK
) and the dual baud) DRA described later.
M (hereinafter referred to as DP-DRAM), a memory control circuit 3 is a DP-DRAM, and a RAM (random
It is assumed that the memory device is composed of a serial access memory (access memory) section 31 and a SAM (serial access memory) section 32, and a 2-by-1 data register on the SAM section 3. 4
1 is the data bus on the RAM section 3, and 5 is the data bus on the SAM section 3.
It is a data bus for the upper part 2 of the RAM part, and 1 AM for the upper part of the RAM part 3.
It has three ports and two ports, each of which is configured so that they can be accessed asynchronously.
また、データ・バス4上のデータ転送レートは特に規定
されていないが、データ・バス5上のデータ転送レート
はある一定の値に規定され、メモリ制御回路2からSA
M部3部上2力されるシリアル・アクセス・メモリ・ス
トローブ〈以下SASと称す)入力により一義的に決ま
っているものとする。Further, although the data transfer rate on the data bus 4 is not particularly specified, the data transfer rate on the data bus 5 is specified to a certain value, and the data transfer rate from the memory control circuit 2 to the SA
It is assumed that this is uniquely determined by the serial access memory strobe (hereinafter referred to as SAS) input to the M section 3.
上記の構成により、第4図のタイムチャート図と共にそ
の動作を説明する。いま、SAM部3部上2バイトのデ
ータが格納されている状態にて、DP−DRAM3がS
AM部3部上2リアル・アクセス・ポートの入出力動作
が許可される条件を満足する場合において、メモリ制御
回路2からSAM部3部上2して一定周期(to )の
SASが人力される。SAM部3部上2データ・バス5
に対するデータの出力はSASの立上り部分で1バイト
ごとに行われる(第4図の(ハ)、(ニ))。The operation of the above configuration will be explained with reference to the time chart shown in FIG. Now, with the upper 2 bytes of data stored in SAM section 3, DP-DRAM3 is
When the conditions for permitting the input/output operation of the AM section 3 upper section 2 real access port are satisfied, the SAS of a certain period (to) is manually input from the memory control circuit 2 to the SAM section 3 upper section 2. . SAM section 3 upper 2 data bus 5
Data is output for each byte at the rising edge of SAS ((c) and (d) in FIG. 4).
今、SASがm回天力された時、SAM部3部上2バイ
トのデータは全てデータ・バス5に出力される(第4図
の(ハ)、(ニ))。一方、次のmバイトのデータをR
AM部3部上1SAM部3部上2MA転送を行うための
DMA要求信号がメモリ制御回v42からホスト・マイ
コン1に対して送出される(第4図の(イ)。(ハ)の
mバイト目のSASの立下り部分で発生する。)。ホス
ト・マイコン1はこの信号を受付けると、メモリ制御回
路2に対してDMA許可信号を送出し、SAM部3部上
2のmバイトの新しいデータが転送される(第4図の(
ロ)の1+)。その後、同様に一定周期のSASにより
データ・バス5に順次出力される。Now, when the SAS is powered down m times, all 2-byte data on the SAM section 3 is output to the data bus 5 ((c) and (d) in FIG. 4). On the other hand, the next m bytes of data are R
1 on the AM section 3 2 on the SAM section 3 A DMA request signal for performing MA transfer is sent from the memory control circuit v42 to the host microcomputer 1 ((A) in FIG. 4. m bytes in (C)) Occurs at the falling edge of the eye's SAS.) When the host microcomputer 1 receives this signal, it sends a DMA permission signal to the memory control circuit 2, and m bytes of new data on the upper part of the SAM section 3 is transferred ((in Fig. 4)).
b) 1+). Thereafter, the signals are sequentially outputted to the data bus 5 by SAS at a constant period.
ところで、前記したデータ転送装置にあっては、SAM
部3部内2内バイトのデータが全て転送された後、RA
M部3部上1AM部3部上2間にてデータのDMA転送
が行われるが、mバイト目のSASの立下り部分で発生
されるDMA要求信号がホスト・マイコン1に送出され
た時、該ホスト・マイコン1が他の処理を実行中である
場合は、DMA要求信号に対する処理が遅れ、DMA許
可信号の送出も遅れることになり、データのDMA転送
が終了する前に(m+1>バイト目のSASがSAM部
3部上2力される。このため、本来の出力すべきデータ
とは無関係のデータがデータ・バス5に出力される(第
4図の(ニ)のA)と共に、その後の出力データは1バ
イト常に遅れが発生するという問題点があった。この問
題点を解決するために、DMA処理の早いホスト・マイ
コンを選定することも行われているが、システムを構成
する際に制約が生じ、かつコスト低減を阻害するという
問題点がある。By the way, in the data transfer device described above, the SAM
After all the data in the bytes in part 3 and part 2 have been transferred, the RA
DMA transfer of data is performed between the M section 3 upper 1 AM section 3 upper section 2, but when the DMA request signal generated at the falling edge of the m-th byte SAS is sent to the host microcomputer 1, If the host microcomputer 1 is executing other processing, the processing for the DMA request signal will be delayed, and the sending of the DMA permission signal will also be delayed. SAS is input to the SAM unit 3. Therefore, data unrelated to the data that should be output is output to the data bus 5 (A in (d) in Figure 4), and the subsequent The problem was that there was always a 1-byte delay in the output data of This poses a problem in that it imposes restrictions and impedes cost reduction.
本発明は、上記のような従来の問題点を解決するために
なされたものであり、DMA処理が遅いホスト・マイコ
ンにおいて、DMA転送時におけるデータの転送処理を
正確に行い、正しいデータの転送を行うことができるデ
ータ転送装置を提供することを目的としている。The present invention was made in order to solve the conventional problems as described above, and it is possible to accurately perform data transfer processing during DMA transfer in a host microcomputer with slow DMA processing, and to ensure correct data transfer. The purpose of the present invention is to provide a data transfer device that can perform the following steps.
この発明にかかるデータ転送装置は、互いにメモリ内容
のDMA転送が可能である第1のメモリと第2のメモリ
とを設け、該第2のメモリの人出力ポートに対するデー
タの読み出しまたは書き込みの転送レートがコントロー
ル信号により規定されるデータ転送装置であって、通常
の転送時においては前記転送レートを一定の値に保つよ
うに前記コントロール信号を発生し、また前記第1のメ
モリから前記第2のメモリに対するDMA転送を行うD
MA転送要求信号が発生した時は、該DMA転送の終了
後において前記コントロール信号を発生するようにした
メモリ制御回路を設けたことを特徴とするものであり、
更には、第1のメモリと第2のメモリは同一のパッケー
ジに収められているデュアル・ポー)DRAMで構成さ
れ、かつ第1のメモリがランダム・アクセス・メモリ、
第2のメモリがシリアル・アクセス・メモリでitされ
、またコントロール信号がシリアル・アクセス・メモリ
・ストローブ信号であるものによって一層すぐれた効果
を発揮する。A data transfer device according to the present invention includes a first memory and a second memory that are capable of DMA transfer of memory contents to each other, and has a transfer rate for reading or writing data to a human output port of the second memory. is a data transfer device defined by a control signal, which generates the control signal so as to keep the transfer rate at a constant value during normal transfer, and which transfers data from the first memory to the second memory. D to perform DMA transfer to
A memory control circuit is provided which generates the control signal after the DMA transfer is completed when the MA transfer request signal is generated,
Furthermore, the first memory and the second memory are configured with dual-port DRAMs housed in the same package, and the first memory is a random access memory,
An even better effect is achieved if the second memory is a serial access memory and the control signal is a serial access memory strobe signal.
本発明のデータ転送装置は、第2のメモリ内のデータが
メモリ制御回路から入力される一定周期のコントロール
信号に同期して1バイトごとに入出力ポートに書き込ま
れる。そして、第2のメモリ内に格納される全てのデー
タが出力された時、メモリ制御回路からDMA転送の要
求信号が送出され、その結果第1のメモリから第2のメ
モリに対して指定数とデータのDMA転送が行われる。In the data transfer device of the present invention, data in the second memory is written to the input/output port byte by byte in synchronization with a constant cycle control signal input from the memory control circuit. When all the data stored in the second memory has been output, a request signal for DMA transfer is sent from the memory control circuit, and as a result, the specified number of data is transferred from the first memory to the second memory. DMA transfer of data is performed.
また、DMA転送の要求信号送出後は、メモリ制御回路
から出力されるコントロール信号の発生はDMA転送終
了後に行われ、これにより転送後の正しいデータが第2
のメモリから入出力ポートに書き込まれる。Furthermore, after the DMA transfer request signal is sent, the control signal output from the memory control circuit is generated after the DMA transfer is completed, so that the correct data after the transfer is transferred to the second
memory is written to the input/output port.
以下、この発明の一実施例を図に基づいて説明する。第
1図(a)及び6)は本発明の主要部であるメモリ制御
回路におけるコントロール信号たるSASの生成ブロッ
ク図及びその動作を示すタイムチャート図である。また
、第2図は装置のデータ転送時における動作を示すタイ
ムチャートである。Hereinafter, one embodiment of the present invention will be described based on the drawings. FIGS. 1(a) and 6) are block diagrams showing the generation of SAS, which is a control signal, in the memory control circuit which is the main part of the present invention, and time charts showing its operation. Further, FIG. 2 is a time chart showing the operation of the device during data transfer.
なお、装置の他の構成要素とそれらの機能は第3図と同
様であるのでその詳細な説明は省略する。Note that other components of the apparatus and their functions are the same as those shown in FIG. 3, so detailed explanation thereof will be omitted.
第1図(a) 、 (b)によりSAS生成の動作を説
明する。2aは通常のSAS生戊生成あり、入力信号で
あるFS4の立下り部分でSASの発生が行われる。但
し、FS4は周波数サンプリング4倍を意味し、DAT
(ディジタル・オーディオ・テープレコーダ〉の場合
は48KHzの4倍である192 KHzのパルスをあ
られす。The operation of SAS generation will be explained with reference to FIGS. 1(a) and 1(b). In 2a, normal SAS generation is performed, and SAS is generated at the falling edge of the input signal FS4. However, FS4 means 4 times the frequency sampling, and DAT
(In the case of a digital audio tape recorder, a pulse of 192 kHz, which is four times 48 kHz, is used.)
2bはRAM部31からSAM部32に対するDMA転
送処理が遅れたときのSAS生底部であり、指定数(m
バイト)のデータ転送終了ごとに行われるDMA転送の
際、mバイト目のSASの立下り部分でDMA要求信号
を発生させるが、ホスト・マイコン1の処理が遅れDM
A許可信号の返送が遅れる場合は、DMA転送処理の終
了を示すDMA許可信号の立上り部分で(m+1)バイ
ト目のSASを発生させる。そして、次の(m+2)バ
イト目のSASからは従来の周期に戻って一定周期にて
発生させる。また、2a及び2bにまり生成されたSA
Sは加算器2Cを介して出力される。2b is the SAS raw bottom when the DMA transfer process from the RAM section 31 to the SAM section 32 is delayed, and the specified number (m
During DMA transfer, which is performed every time a data transfer (byte) is completed, a DMA request signal is generated at the falling edge of the mth byte of SAS, but the processing of the host microcomputer 1 is delayed and the DM
If the return of the A permission signal is delayed, the (m+1)th byte SAS is generated at the rising edge of the DMA permission signal indicating the end of the DMA transfer process. Then, from the next (m+2)th byte, the SAS returns to the conventional cycle and is generated at a constant cycle. Also, the SA generated between 2a and 2b
S is output via the adder 2C.
上記SASによるデータ転送の状態を第2図により説明
する。通常時においては、SASの立上り部分で1バイ
トごとの転送が行われる。mバイト目のSAS入力後、
DMA要求信号が送出されるが、DMA許可信号の返送
が遅れた場合、(m+1)バイト目のSASはDMA転
送終了後に発生するため、(m+1)バイト目のデ−タ
出力用
はmバイト目のデータD。に連続して正しく出力される
。そして、次のデータD742以後は周期t。を保持し
て出力される。以上のことにより、DMA転送が行われ
た場合でも有効なデータのみを連続して出力することが
できる。The state of data transfer by the above-mentioned SAS will be explained with reference to FIG. Normally, one byte by byte is transferred at the rising edge of SAS. After m-th byte SAS input,
If the DMA request signal is sent, but the return of the DMA permission signal is delayed, the (m+1)th byte SAS occurs after the DMA transfer is completed, so the (m+1)th byte data output is the mth byte. Data D. are output correctly and consecutively. After the next data D742, the cycle is t. is retained and output. As a result of the above, only valid data can be continuously output even when DMA transfer is performed.
なお、上記実施例ではデュアル・ボー)DRAMについ
て説明したが、RAM部とSAM部は別々のパッケージ
で構成された独立のメモリでも良い。この場合、SAM
部に相当するメモリのリード信号又はライト信号がDM
A転送の終了後にアクティブになるようにメモリ制御回
路を構成することもできる。Although a dual baud (DRAM) DRAM has been described in the above embodiment, the RAM section and the SAM section may be independent memories configured in separate packages. In this case, SAM
The read signal or write signal of the memory corresponding to the section is DM.
The memory control circuit can also be configured to become active after the A transfer is completed.
以上のように、この発明によれば、DMA転送時におい
てDMA要求信号が発生した場合には、データ・バスに
対するデータ出力用のコントロール信号の発生を該DM
A転送の終了後としたので、DMA処理の遅いデータ転
送装置においてもデータの転送処理が正確に行うことが
でき、正しいデ0
−夕を連続して出ノノすることができる。As described above, according to the present invention, when a DMA request signal is generated during DMA transfer, the generation of a control signal for data output to the data bus is
Since this is done after the A transfer is completed, data transfer processing can be performed accurately even in a data transfer device with slow DMA processing, and correct data can be output continuously.
第1図(a)は本発明のデータ転送装置の主要部たるメ
モリ制御回路におけるSAS生戊生成ソク図、(b)は
その動作を示すタイムチャート図、
第2図は本発明のデータ転送装置のデータ転送時の動作
を説明するためのタイムチャート図、第3図は従来のデ
ータ転送装置の構成を示すブロック図、
第4図は同上のデータ転送時の動作を説明するためのタ
イムチャート図である。
■・・・ホスト・マイコン、2・・・メモリ制御回路、
3・DP−DRAM、31・・・RΔM132・・・S
AM。
4.5・・・データ・バス。
■
■FIG. 1(a) is a SAS generation diagram in the memory control circuit which is the main part of the data transfer device of the present invention, FIG. 1(b) is a time chart showing its operation, and FIG. 2 is the data transfer device of the present invention. 3 is a block diagram showing the configuration of a conventional data transfer device. FIG. 4 is a time chart diagram for explaining the operation during data transfer of the same. It is. ■...Host microcomputer, 2...Memory control circuit,
3・DP-DRAM, 31...RΔM132...S
A.M. 4.5...Data bus. ■ ■
Claims (3)
のメモリと第2のメモリとを設け、該第2のメモリの入
出力ポートに対するデータの読み出しまたは書き込みの
転送レートがコントロール信号により規定されるデータ
転送装置であって、通常の転送時においては前記転送レ
ートを一定の値に保つように前記コントロール信号を発
生し、また前記第1のメモリから前記第2のメモリに対
するDMA転送を行うDMA転送要求信号が発生した時
は、該DMA転送の終了後において前記コントロール信
号を発生するようにしたメモリ制御回路を設けたことを
特徴とするデータ転送装置。(1) The first one that can mutually DMA transfer the memory contents.
A data transfer device is provided with a memory and a second memory, and a transfer rate of reading or writing data to an input/output port of the second memory is defined by a control signal, and the data transfer rate is defined by a control signal. The control signal is generated to keep the transfer rate at a constant value, and when a DMA transfer request signal for performing DMA transfer from the first memory to the second memory is generated, after the DMA transfer is completed. A data transfer device comprising: a memory control circuit configured to generate the control signal.
に収められているデュアル・ポートDRAMで構成され
、該第1のメモリとしてランダム・アクセス・メモリを
用い、該第2のメモリとしてシリアル・アクセス・メモ
リを用いることを特徴とする請求項1記載のデータ転送
装置。(2) The first memory and the second memory are composed of dual port DRAMs housed in the same package, and the first memory is a random access memory, and the second memory is a serial memory. - The data transfer device according to claim 1, characterized in that an access memory is used.
・ストローブ信号であることを特徴とする請求項1記載
のデータ転送装置。(3) The data transfer device according to claim 1, wherein the control signal is a serial access memory strobe signal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1173046A JPH0340057A (en) | 1989-07-06 | 1989-07-06 | Data transfer device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1173046A JPH0340057A (en) | 1989-07-06 | 1989-07-06 | Data transfer device |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0340057A true JPH0340057A (en) | 1991-02-20 |
Family
ID=15953208
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP1173046A Pending JPH0340057A (en) | 1989-07-06 | 1989-07-06 | Data transfer device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0340057A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100394437B1 (en) * | 2001-04-02 | 2003-08-14 | 주식회사 대두식품 | Steam pressure equipment |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS57207943A (en) * | 1981-06-18 | 1982-12-20 | Nippon Telegr & Teleph Corp <Ntt> | Input-output controller equipped with built-in buffer memory |
-
1989
- 1989-07-06 JP JP1173046A patent/JPH0340057A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS57207943A (en) * | 1981-06-18 | 1982-12-20 | Nippon Telegr & Teleph Corp <Ntt> | Input-output controller equipped with built-in buffer memory |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100394437B1 (en) * | 2001-04-02 | 2003-08-14 | 주식회사 대두식품 | Steam pressure equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6034916A (en) | Data masking circuits and methods for integrated circuit memory devices, including data strobe signal synchronization | |
US5655105A (en) | Method and apparatus for multiple latency synchronous pipelined dynamic random access memory | |
US7415404B2 (en) | Method and apparatus for generating a sequence of clock signals | |
US7134033B2 (en) | Clock synchronization apparatus and method of devices with different clocks | |
JPS5848293A (en) | Memory refreshing device | |
JPH0340057A (en) | Data transfer device | |
JP2624388B2 (en) | DMA device | |
JPH03144990A (en) | Memory device | |
JPH09311812A (en) | Microcomputer | |
JP3318125B2 (en) | DRAM control circuit | |
JP2581144B2 (en) | Bus control device | |
JPH06103026A (en) | Memory system | |
JP2642087B2 (en) | Data transfer processing mechanism between main storage devices | |
JPH09259074A (en) | Memory access circuit | |
JP2626112B2 (en) | Microprocessor | |
JPH02280244A (en) | Memory control circuit | |
JP2637319B2 (en) | Direct memory access circuit | |
JPS62125460A (en) | Input and output access system | |
JPH07123450A (en) | Time division switch memory with block access function | |
JPS62256160A (en) | Simultaneous access preventing system for interprocessor register | |
JPH01262586A (en) | Control circuit for dual port memory | |
JPS61112272A (en) | Microcomputer applied device | |
JPS60225960A (en) | Data processor | |
JPH02292793A (en) | Memory controller | |
JPS61103257A (en) | Memory control circuit |