Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0241059B2 - DMANYORUMEMORYOMIDASHIHOSHIKI - Google Patents
[go: Go Back, main page]

JPH0241059B2 - DMANYORUMEMORYOMIDASHIHOSHIKI - Google Patents

DMANYORUMEMORYOMIDASHIHOSHIKI

Info

Publication number
JPH0241059B2
JPH0241059B2 JP897983A JP897983A JPH0241059B2 JP H0241059 B2 JPH0241059 B2 JP H0241059B2 JP 897983 A JP897983 A JP 897983A JP 897983 A JP897983 A JP 897983A JP H0241059 B2 JPH0241059 B2 JP H0241059B2
Authority
JP
Japan
Prior art keywords
circuit
address
data
dma
addresses
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.)
Expired - Lifetime
Application number
JP897983A
Other languages
Japanese (ja)
Other versions
JPS59135530A (en
Inventor
Takao Myanaga
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.)
Fujitsu Frontech Ltd
Original Assignee
Fujitsu Frontech 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 Fujitsu Frontech Ltd filed Critical Fujitsu Frontech Ltd
Priority to JP897983A priority Critical patent/JPH0241059B2/en
Publication of JPS59135530A publication Critical patent/JPS59135530A/en
Publication of JPH0241059B2 publication Critical patent/JPH0241059B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/28Handling requests for interconnection or transfer for access to input/output bus using burst mode transfer, e.g. direct memory access DMA, cycle steal

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Bus Control (AREA)

Description

【発明の詳細な説明】 (1) 発明の技術分野 本発明はCPUを介さずにメモリとI/Oとの
データのやりとりを行うDMA(ダイレクトメモ
リアクセス)方式に係り、特に連続番地でなく、
且つ一定の配列を持つた番地に格納されたデータ
を、転送要求(トランスフアリクエスト)信号を
操作することにより、ソフトウエアの介入なしに
DMAにて読み出す回路方式に関する。
[Detailed Description of the Invention] (1) Technical Field of the Invention The present invention relates to a DMA (direct memory access) method for exchanging data between memory and I/O without going through a CPU, and particularly relates to a DMA (direct memory access) method that exchanges data between memory and I/O without going through a CPU.
In addition, by manipulating transfer request signals, data stored at addresses with a certain arrangement can be transferred without software intervention.
Regarding the circuit system for reading with DMA.

(2) 技術の背景 サーマルプリンタは、1行分のデータを印字す
るのに、同時に行うことが可能であるが、各ビツ
トのピツチの長さは0.1058mmという狭い間隔であ
り、各ビツトに対応する1,0情報を格納するレ
ジスタを、例えば、1行のピツチ数が1023からな
るものに対しては、1023個のフリツプフロツプ
FFからなるレジスタを設けることは、スペース
的に無理であるために、その半分の512個にする
ようにしている。このドツト情報は、メインメモ
リから、DMA方式によつて連続的に読み出し、
サーマルプリンタ内の前記レジスタに読み出すこ
とができればよいが、連続した番地に格納された
データをそのまま読み出すように、ドツトとレジ
スタの対応関係を物理的に設定することが難し
い。そこで、1023個のドツトと512個のフリツプ
フロツプからなるレジスタ二つを物理的に配線が
できるようにする。すなわち、各レジスタより出
る512個のフリツプフロツプの情報が1023個のド
ツトの、全域にわたる512個の分散化されたドツ
トに対応させるようにする。例えば、奇数番目の
ドツトを第1のレジスタのフリツプフロツプに対
応させ、偶数番目のドツトを第2のレジスタのフ
リツプフロツプに対応させることが考えられる
が、これでもドツト間隔が狭いために物理的な配
線が難しくなる。そこで、ドツトの二つおき、す
なわちドツトのデータ1,4,5,8,9,1
2,13,…を一つのレジスタのフリツプフロツ
プFFに対応させ、ドツトのデータ2,3,6,
7,10,11,14,15,…をもう一つのレ
ジスタのフリツプフロツプに対応させるようにす
ることによつて1023のドツトと512のフリツプフ
ロツプからなるレジスタ二つとが物理的に配線可
能となる。しかし、このようなドツトとレジスタ
を対応づけさせると、メインメモリから前記レジ
スタにデータを読み出す場合に、連続アドレス的
にアドレスを変化させることができないので、一
度メインメモリの連続したデータを前記第1のレ
ジスタと第2のレジスタのフリツプフロツプに対
応したデータ、例えば前述の二つおきのドツトの
データに並びかえる必要がある。
(2) Background of the technology Thermal printers can print one line of data at the same time, but each bit has a narrow pitch of 0.1058 mm, so For example, if the number of pitches in one line is 1023, the register that stores the 1,0 information is 1023 flip-flops.
Since it would be impossible to provide a register consisting of FFs due to space considerations, we decided to use half of that number, 512. This dot information is continuously read out from the main memory using the DMA method.
It is sufficient if data can be read out to the register in the thermal printer, but it is difficult to physically set the correspondence between dots and registers so that data stored in consecutive addresses can be read out as is. Therefore, we made it possible to physically wire two registers consisting of 1023 dots and 512 flip-flops. That is, the 512 flip-flop information output from each register corresponds to 512 distributed dots over 1023 dots. For example, it is possible to make the odd-numbered dots correspond to the flip-flops of the first register and the even-numbered dots to the flip-flops of the second register, but even this would require physical wiring due to the narrow spacing between the dots. It becomes difficult. Therefore, every second dot, that is, dot data 1, 4, 5, 8, 9, 1
2, 13, ... correspond to the flip-flop FF of one register, and dot data 2, 3, 6,
By making registers 7, 10, 11, 14, 15, . . . correspond to the flip-flops of another register, two registers consisting of 1023 dots and 512 flip-flops can be physically wired. However, if such dots and registers are associated with each other, when reading data from the main memory to the register, it is not possible to change the address in a continuous address manner. It is necessary to rearrange the data corresponding to the register and the flip-flop of the second register, for example, the data of every second dot mentioned above.

(3) 従来技術と問題点 従来のDMAの制御方式では、連続したアドレ
スに格納されたデータを読み出すことしかできな
い。このため、連続アドレスでなく、且つ一定の
配列をもつたアドレスに格納されたデータを読み
出すときには、ソフトウエアで、データの並べか
えを行う必要があつた。
(3) Prior Art and Problems Conventional DMA control methods can only read data stored in consecutive addresses. For this reason, when reading data stored at addresses that are not continuous and have a fixed arrangement, it is necessary to rearrange the data using software.

そのため、データを並べかえるためのソフトウ
エアを組まなくてはならず、CPUの負担が多く
なり、且つ、CPUのソフトウエアを介して行う
のでデータ転送が遅くなるという欠点があつた。
Therefore, it was necessary to create software to rearrange the data, which increased the burden on the CPU, and had the disadvantage that data transfer was slow because it was done through the CPU's software.

(4) 発明の目的 本発明の目的は、一定の配列に合つた回路を組
み、転送要求を操作することによつてデータの並
べかえをソフトウエアで行うことなしにDMAに
てデータの読み出しを可能とした非連続データを
処理するためのDMA回路方式を提供するもので
ある。
(4) Purpose of the invention The purpose of the present invention is to construct a circuit that matches a certain arrangement and manipulate transfer requests, thereby making it possible to read data using DMA without rearranging the data using software. This provides a DMA circuit system for processing non-continuous data.

(5) 発明の構成 本発明の特徴とするところは、データ及びアド
レスバスに接続された中央演算装置とランダムア
クセスメモリを少なくとも持つ計算機システムに
おいて、前記中央演算装置から起動信号を受けた
のち前記ランダムアクセスメモリの連続したアド
レスの初期値から特定な最終値までアドレスを連
続的に変化させて前記アドレスバスに出力する
DMAコントローラと、前記連続したアドレスに
よつて指定された前記RAMの隷属した内容が前
記データバスに出力されるータのうち連続アドレ
スでなく且つ一定の配列をもつたアドレスに対応
する特定データをラツチして出力装置に転送する
ラツチ回路と、前記ラツチ回路で前記特定データ
をラツチさせるタイミングクロツク信号の特定の
周期以内に少なくとも1回以上カウントしてその
カウント値に対応したパルスを発生させる少なく
とも2個のカウント回路と、前記中央演算装置で
起動され前記アドレスの初期値を前記DMAコン
トローラにセツトするときにパルスを発生させる
DMA起動回路と、前記カウント回路と前記
DMA起動回路の出力信号を合成して前記DMA
コントローラにアドレスを変更する要求信号を送
出する転送要求信号作成回路と、上記前記DMA
コントローラから出力される連続したアドレスの
特定なビツトを入力しそのビツト情報で前記カウ
ント回路のどの出力を前記転送要求信号作成回路
に送るかを選択する切替回路と、前記タイミング
クロツク信号と前記各カウント回路のタイミング
を制御するタイミングクロツク作成回路からな
り、連続アドレスでなく且つ一定の配列をもつた
アドレスに格納されたデータをDMA転送するこ
とを特徴とするDMAによるメモリ読み出し方式
を提供することである。
(5) Structure of the Invention The present invention is characterized in that, in a computer system having at least a central processing unit and a random access memory connected to a data and address bus, the random Continuously changing the address from the initial value of consecutive addresses of the access memory to a specific final value and outputting it to the address bus.
A DMA controller and the slave contents of the RAM specified by the consecutive addresses latch specific data corresponding to addresses that are not consecutive addresses and have a fixed arrangement among the data output to the data bus. a latch circuit for latching the specific data in the latch circuit and at least two pulses for counting at least once within a specific cycle of a timing clock signal and generating a pulse corresponding to the counted value; a count circuit that is activated by the central processing unit and generates a pulse when setting the initial value of the address to the DMA controller.
a DMA startup circuit, the count circuit and the
The output signals of the DMA startup circuit are synthesized and the DMA
a transfer request signal generation circuit that sends a request signal for changing an address to the controller; and the DMA described above.
A switching circuit inputs specific bits of consecutive addresses output from the controller and selects which output of the counting circuit is to be sent to the transfer request signal generating circuit based on the bit information; To provide a memory read method using DMA, which is composed of a timing clock generation circuit that controls the timing of a counting circuit, and is characterized in that data stored in addresses that are not continuous addresses and have a fixed arrangement is transferred by DMA. It is.

(6) 発明の実施例 以下に一実施例を示し、従来の方法と本発明を
比較する。
(6) Example of the invention An example will be shown below to compare the conventional method and the present invention.

第1図は1×16ドツトのドツトプリンタヘツド
を模式的に示したものであり、1回目の制御ライ
ンと2回目の制御ラインとを切り換えること
により、8ドツト分の印字情報レジスタのみを持
つている。1は印字ヘツド、2は印字情報レジス
タ、3−Aは1回目の転送により必要なデータ、
3―Bは2回目の転送により必要なデータであ
る。このように一定の配列は持つているが、連続
ではない情報が必要な回路においては、第2図で
示すように一度データの並べかえが必要である。
すなわち、第2図において、メモリマツプ21は
レジスタ内に16ドツトのデータに対応した16ドツ
トのデータが連続的にアドレスに格納されている
ことを示し、次に、メモリマツプ21に示すよう
に、斜線のアドレス内のドツトデータ1,4,
5,8,9,12,13,16のみを抜き出し、
レジスタ22の0〜7のアドレスに、白枠のアド
レス内のドツトデータ2,3,6,7,10,1
1,14,15のドツトデータをレジスタ22の
8〜Fアドレスに格納し、1回目のDMAのと
き、斜線内のドツトデータ22―1を印字情報レ
ジスタ2に転送22―11し、次に2回目の
DMAのとき白枠のドツトデータ22―2を印字
情報レジスタ2に転送22―22する。なお、第
2図において、印字情報レジスタ2の矢印22は
データの転送方向を示す。このようなメモリマツ
プ21からメモリマツプ22へのドツトデータの
並べかえを前述のように従来はソフトウエアで行
なつていたが、本発明のDMA方式ではハードウ
エアで行うところに特徴がある。
Figure 1 schematically shows a 1 x 16 dot printer head, which has print information registers for only 8 dots by switching between the first control line and the second control line. . 1 is the print head, 2 is the print information register, 3-A is the data required by the first transfer,
3-B is data required for the second transfer. In this way, in a circuit that has a fixed arrangement but requires non-continuous information, it is necessary to rearrange the data once as shown in FIG.
That is, in FIG. 2, the memory map 21 shows that 16 dots of data corresponding to the 16 dots of data in the register are stored consecutively at addresses, and then, as shown in the memory map 21, the diagonally shaded Dot data 1, 4, in address
Extract only 5, 8, 9, 12, 13, 16,
Dot data 2, 3, 6, 7, 10, 1 within the addresses in the white frame are placed in addresses 0 to 7 of the register 22.
The dot data 1, 14, and 15 are stored in addresses 8 to F of the register 22, and during the first DMA, the dot data 22-1 in the diagonal line is transferred to the print information register 2 22-11, and then the dot data 22-11 is transferred to the print information register 2. the second time
When using DMA, the white frame dot data 22-2 is transferred to the print information register 2 22-22. In FIG. 2, an arrow 22 of the print information register 2 indicates the direction of data transfer. As mentioned above, the rearrangement of dot data from the memory map 21 to the memory map 22 has conventionally been done by software, but the DMA system of the present invention is characterized in that it is done by hardware.

本発明の回路ブロツク図を第3図aに、要部の
回路図を第4図に、タイムチヤートを第5図a,
bに示す。
The circuit block diagram of the present invention is shown in Fig. 3a, the circuit diagram of the main part is shown in Fig. 4, and the time chart is shown in Fig. 5a,
Shown in b.

第3図aにおいてDMAコントローラ31で第
3図bに示すようにCPU周期クロツクCLK2の
立ち下りごとに転送要求信号TXREQがあるか否
かを調べ、ある場合にはアドレスをカウントアツ
プ(またはカウントダウン)して送出する。すな
わち、第3図bではCLK2の1,3,5の立ち
下がりでアドレスがN,N+1,N+2とカウン
トアツプ、またはM,M−1,M−2とカウント
ダウンしている(イ)が、CLK2の2,4,6では
アドレスは変化していない(ロ)。RAM32は印字
情報を格納したNであり、格納された内容は連続
するアドレスに連続データが第2図のメモリマツ
プ21と同様となつている。30は本発明の中心
となる転送要求信号作成回路である。TXREQ作
成部33はDMAコントローラ31に対する転送
要求TXREQ、すなわちアドレスをアツプまたは
ダウンさせるかどうかを決める信号を回路34,
35,36より合成の上作成する。3番地カウン
トアツプ用TXREQ回路34はデータラツチ回路
39がデータバスを通してRAM32からのデー
タをラツチするラツチ周期内に3番地アドレスを
進めるためのTXREQを作成する回路、すなわ
ち、メモリマツプ21の16ドツトデータから1
4,15をとばして13ドツトデータを次に連続さ
せるときに必要になる回路で、1番地カウントア
ツプ用TXREQ回路35はデータラツチ回路39
がデータバスを通してRAM32からのデータを
ラツチするラツチ周期内に1番地アドレスを進め
るためのTXREQを作成する回路、すなわちメモ
リマツプ21の13ドツトデータの次に12ドツトデ
ータを連続させるときに必要になる回路で、
DMA起動回路36はソフトウエアにてDMAの
起動をかける回路、タイミングクロツク作成回路
37は本回路で用いるタイミングクロツクを作成
する回路、切替回路38は転送中のアドレスよ
り、すなわちアドレスのLSBの一つ上位のビツ
ト1(AD1)の論理状態により、3番地カウント
アツプ用TXREQ回路34と、1番地カウントア
ツプ用TXREQ回路35を切り替える回路、デー
タラツチ回路39は転送すべきデータをデータバ
スよりラツチする回路である。
In FIG. 3a, the DMA controller 31 checks whether there is a transfer request signal TXREQ every falling edge of the CPU cycle clock CLK2 as shown in FIG. 3b, and if there is, it counts up (or counts down) the address. and send it. In other words, in Figure 3b, the addresses count up to N, N+1, N+2 or count down to M, M-1, M-2 at the falling edges of CLK2 1, 3, and 5 (a), but when CLK2 In numbers 2, 4, and 6, the addresses do not change (b). The RAM 32 is a RAM 32 in which print information is stored, and the stored contents are continuous data at consecutive addresses, similar to the memory map 21 in FIG. 2. Reference numeral 30 denotes a transfer request signal generation circuit which is the core of the present invention. The TXREQ creation unit 33 sends a transfer request TXREQ to the DMA controller 31, that is, a signal determining whether to raise or lower the address, to a circuit 34,
Created by combining from 35 and 36. The 3rd address count up TXREQ circuit 34 is a circuit that creates a TXREQ for advancing the 3rd address within the latch period in which the data latch circuit 39 latches data from the RAM 32 through the data bus.
This circuit is required when skipping 4 and 15 and continuing the 13 dot data, and the TXREQ circuit 35 for counting up address 1 is connected to the data latch circuit 39.
A circuit that creates a TXREQ to advance the 1st address within the latch period in which data is latched from the RAM 32 through the data bus, that is, a circuit that is required when 12 dot data is consecutively placed next to 13 dot data in the memory map 21. in,
The DMA startup circuit 36 is a circuit that starts DMA using software, the timing clock creation circuit 37 is a circuit that creates a timing clock used in this circuit, and the switching circuit 38 is a circuit that starts DMA from the address being transferred, that is, the LSB of the address. The data latch circuit 39 , which is a circuit that switches between the TXREQ circuit 34 for counting up address 3 and the TXREQ circuit 35 for counting up address 1, latches the data to be transferred from the data bus, depending on the logic state of bit 1 (AD 1) of the next higher order. This is a circuit that does this.

第4図及び第5図aを用いて、1回目の転送す
なわち、第2図において、16,13,12,
9,8,5,4,1のドツトデータを16のドツト
データからすなわちF(16進)番地のデータから
カウントダウンする方向で転送することについて
概略動作を説明する。DMA転送の起動は、転送
先頭アドレス(F番地)、転送バイト数(16)、ア
ドレスカウントアツプ/ダウン(カウントダウン
で実行)などをソフトウエアにてCPUがDMAコ
ントローラ31にセツトしたのち、CPUからや
つてくる1回目の転送を示すフラグDT1をオン論
理1にしたのち、(すなわち、エクスクルージブ
オア回路48の出力はAD1を反転する)ソフトウ
エアのDMA起動要求DTSETをセツトする。こ
れにより立上り検出回路460によりセツトリセ
ツトFF46がセツトされて、OR回路43の出力
すなわちTXREQ信号が論理1になつてDMAコ
ントローラに第1回目のTXREQが、上がつてく
る。DMAコントローラでは、このTXREQによ
りCPUをHALT状態(バスアベイラブルBA=
1)としてDMAの制御ルーチンにはいる。そし
てこのBA信号が返されると受けて次のDSCLK
の立ち上りでセツトリセツトFF46がリセツト
されて出力は論理0となる。
Using FIG. 4 and FIG. 5a, the first transfer, that is, 16, 13, 12,
The general operation will be described for transferring the dot data of 9, 8, 5, 4, 1 in the direction of counting down from the dot data of 16, that is, from the data at address F (hexadecimal). To start a DMA transfer, the CPU sets the transfer start address (address F), number of transfer bytes (16), address count up/down (executed by countdown), etc. in the DMA controller 31 using software, and then After setting the flag DT1 indicating the first transfer to ON logic 1 (that is, the output of the exclusive OR circuit 48 inverts AD1 ), the software DMA activation request DTSET is set. As a result, the reset FF 46 is set by the rise detection circuit 460, the output of the OR circuit 43, that is, the TXREQ signal becomes logic 1, and the first TXREQ goes up to the DMA controller. The DMA controller uses this TXREQ to put the CPU in HALT state (bus available BA =
Step 1) enters the DMA control routine. Then, when this BA signal is returned, the next DSCLK
At the rising edge of , the reset FF 46 is reset and the output becomes logic 0.

切替回路48では現在転送中のアドレスのうち
AD1の情報と、第1回目の転送を示すフラツグ、
DT1により、ラツチFFを含む3番地カウントア
ツプ用TXREQ回路44、1番地カウントアツプ
用TXREQ回路45を順次切り替える。すなわ
ち、DMAコントローラ31の出力アドレスの
LSBから一つ上位のビツトの論理を表すAD1
1のときエクスクルーシブオアによりその出力が
0になるとBA=1だから(すなわち、CPUは
HALTされDMAモードとなつているから)
TXREQ回路44がセツトされるがAD1が0のと
きはラツチFFを含む1番地カウントアツプ用
TXREQ回路45がセツトされる。3番地カウン
トアツプ用TXREQ回路44では、RQCLK(FF
の同期クロツク)と、DSCLK(FFのリセツト信
号)を組み合せることによつて、アドレスを3番
地進めるためのTXREQを作成する。すなわち、
第5図a44に示すような波形が形成される。そ
してアドレスは三つカウントダウンする。1番地
カウントアツプ用TXREQ回路45では2進カウ
ンタにより、AD1=0であるときセツトし、
RQCLKに同期させ、DSCLKによりリセツトす
ることにより、アドレスを1番地進めるための
TXREQを立ち上がりを遅延させて作成する。す
なわち、第5図a45に示すような波形が形成さ
れるそしてアドレスは一つカウントダウンする。
The switching circuit 48 selects one of the addresses currently being transferred.
AD 1 information and a flag indicating the first transfer,
DT 1 sequentially switches the 3rd address count up TXREQ circuit 44 and the 1st address count up TXREQ circuit 45 including the latch FF. In other words, the output address of the DMA controller 31
When AD 1 , which represents the logic of the bit higher than the LSB, is 1, if the output becomes 0 due to exclusive OR, BA = 1 (that is, the CPU
(Because it has been HALT and is in DMA mode)
TXREQ circuit 44 is set, but when AD 1 is 0, it is used for counting up address 1 including latch FF.
TXREQ circuit 45 is set. In the TXREQ circuit 44 for address 3 count up, RQCLK (FF
TXREQ to advance the address by 3 is created by combining the synchronous clock) and DSCLK (FF reset signal). That is,
A waveform as shown in FIG. 5 a44 is formed. And the address counts down to three. The TXREQ circuit 45 for counting up address 1 uses a binary counter to set when AD 1 =0,
By synchronizing with RQCLK and resetting with DSCLK, it is possible to advance the address by one address.
Create TXREQ with a delayed rise. That is, a waveform as shown in FIG. 5 a45 is formed and the address counts down by one.

第5図aのタイムチヤートで示すように、これ
ら44,45,46を適当に組み合せた、すなわ
ち三つの波形のORとしてのTXREQ43により、
データのサンプルサイクル内のアドレスの進め方
を変化させ、すなわち第5図aの43のハ点でア
ドレスを変るように、DSCLKにて、I/Oへの
出力としてデータをラツチすることによつて、ソ
フトウエアの介入なしに、連続でなく、且つ一定
の配列をもつた番地に格納されたデータを読み出
すことが可能となる。
As shown in the time chart in Figure 5a, by appropriately combining these 44, 45, and 46, that is, by using TXREQ43 as an OR of the three waveforms,
By latching the data as an output to the I/O at DSCLK, changing the way the address advances within the data sample cycle, i.e. changing the address at point 43 in Figure 5a. It becomes possible to read data stored at addresses that are not consecutive and have a fixed arrangement without software intervention.

第5図bでは同様に2回目の転送について示し
ている。このとき、第1回目との転送とは、転送
回数を示すフラツグDT1をオフすなわち論理0に
することが異なる。これにより、44,45の切
り替え順序に変化を与え、第2回目の転送用
TXREQを出力することができる。第5図bの4
3の二点はアドレスの変わる点である。なお、2
回目の転送では、転送先頭アドレスを第1回目と
同じにした場合に、すなわちFを先頭アドレスと
するメモリマツプ21におけるFアドレスの斜線
で示されたアドレスが無効アドレスとなるから、
無効アドレスが1データ分発生するので、回路に
て、先頭データを無効としている。
FIG. 5b similarly shows the second transfer. At this time, the difference from the first transfer is that the flag DT1 indicating the number of transfers is turned off, that is, set to logic 0. This changes the switching order of 44 and 45, and for the second transfer
TXREQ can be output. Figure 5b-4
The two points in 3 are the points where the address changes. In addition, 2
In the second transfer, if the transfer start address is the same as the first transfer, that is, the address indicated by the diagonal line of the F address in the memory map 21 with F as the start address becomes an invalid address.
Since one data worth of invalid addresses is generated, the first data is invalidated in the circuit.

このように本回路では、転送要求してDMAコ
ントローラのアドレスをインクリメントまたはデ
クリメントする信号の論理1について、ラツチ回
路に入るクロツクの1周期内におけるその長さを
かえて、転送回数を論理1の長さで示すフラツグ
を変化させるのみで、ソフトウエアの介入なし
に、データの並べかえを行つて、メモリよりデー
タを読み出すことが可能である。
In this way, in this circuit, for the logic 1 signal that requests a transfer and increments or decrements the address of the DMA controller, the length of the signal within one cycle of the clock entering the latch circuit is changed to increase the number of transfers to the logic 1 length. By simply changing the flag indicated by , it is possible to rearrange the data and read the data from the memory without any software intervention.

なお、上記本発明の実施例では、ドツトデータ
の選べかえを1,4,5,8,9,12,13,
15,16を一組として、他を別の組とする場合
について説明したが、本発明はアドレスにデータ
が連続的に格納されていないが一定の規則性をも
つて格納されているときに、必要なハードウエア
を設けることによつて、ソフトウエアを用いずに
DMA方式を維持したままデータを並べかえるこ
とに用いられるものである。
In the above embodiment of the present invention, the selection of dot data is 1, 4, 5, 8, 9, 12, 13,
Although the case where data 15 and 16 are set as one set and the other set is set as another set has been described, the present invention is applicable when data is not stored continuously at the address but is stored with a certain regularity. By providing the necessary hardware, you can do it without using software.
It is used to rearrange data while maintaining the DMA method.

(7) 発明の効果 上述のように本発明によれば、一定の配列を持
つた番地に格納されたデータをハードウエアにて
並べかえを行うので、ソフトウエアの処理が単純
化され、ハードウエアでDMA転送中に並べかえ
を行つているので、転送時間が連続した番地に格
納さたデータを転送する場合と同じである。さら
に回路構成素子の増加が少なくて転送速度のスピ
ードアツプが図れる。例えば本発明によれば、転
送速度は6800CPUでは約2倍となる。すなわち
従来では約160μs/16byteであつたものが、本方
式では約80μs/16byteとなる。
(7) Effects of the invention As described above, according to the present invention, data stored at addresses having a certain arrangement is rearranged using hardware, so software processing is simplified and hardware processing is simplified. Since rearrangement is performed during DMA transfer, the transfer time is the same as when transferring data stored at consecutive addresses. Furthermore, the number of circuit components is reduced, and the transfer rate can be increased. For example, according to the present invention, the transfer speed is approximately doubled for a 6800 CPU. In other words, the conventional method takes about 160 μs/16 bytes, but with this method, it takes about 80 μs/16 bytes.

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

第1図は印字情報レジスタとドツトデータの関
係を示す図、第2図はDMA転送のときドツトデ
ータの並べかえを行うことを示す図、第3図aは
本発明の一実施例のブロツク図、第3図bはその
実施例におけるタイミンダチヤート図、第4図は
第3図aに示した実施例の要部の回路図、第5図
a,bはそれぞれ第1回目、及び第2回目DMA
転送時における第4図の各部における波形を示す
タイミングチヤート図である。 30…転送要求信号作成回路、31…DMAコ
ントローラ、32…RAM、33…TXREQ作成
部、34…3番地カウントアツプ用TXREQ回
路、35…1番地カウントアツプ用TXREQ回
路、36…DMA起動回路、37…タイミングク
ロツク作成部、38…切替回路、39…データラ
ツチ部、43…TXREQ作成部、44…3番地カ
ウントアツプ用TXREQ回路、45…1番地カウ
ントアツプ用TXREQ回路、46…DMA起動回
路、460…DTSET立上り検出回路、47…タ
イミングクロツク作成回路、48…切替回路、4
9…データラツチ部。
FIG. 1 is a diagram showing the relationship between the print information register and dot data, FIG. 2 is a diagram showing how dot data is rearranged during DMA transfer, and FIG. 3a is a block diagram of an embodiment of the present invention. FIG. 3b is a timing chart for the embodiment, FIG. 4 is a circuit diagram of the main part of the embodiment shown in FIG. 3a, and FIGS. 5a and b are for the first and second times, respectively. DMA
5 is a timing chart showing waveforms at various parts in FIG. 4 during transfer. FIG. 30... Transfer request signal generation circuit, 31... DMA controller, 32... RAM, 33... TXREQ generation unit, 34... TXREQ circuit for counting up address 3, 35... TXREQ circuit for counting up address 1, 36... DMA starting circuit, 37 ...Timing clock creation section, 38...Switching circuit, 39...Data latch section, 43...TXREQ creation section, 44...TXREQ circuit for counting up address 3, 45...TXREQ circuit for counting up address 1, 46...DMA starting circuit, 460 ...DTSET rising edge detection circuit, 47...Timing clock creation circuit, 48...Switching circuit, 4
9...Data latch section.

Claims (1)

【特許請求の範囲】[Claims] 1 データ及びアドレスバスに接続された中央演
算装置とランダムアクセスメモリを少なくとも持
つ計算機システムにおいて、前記中央演算装置か
ら起動信号を受けたのち前記ランダムアクセスメ
モリの連続したアドレスの初期値から特定な最終
値までアドレスを連続的に変化させて前記アドレ
スバスに出力するDMAコントローラと、前記連
続したアドレスによつて指定された前記RAMの
連続した内容が前記データバスに出力されるデー
タのうち連続アドレスではなく且つ一定の配列を
もつたアドレスに対応する特定データをラツチし
て出力装置に転送するラツチ回路と、前記ラツチ
回路で前記特定データをラツチさせるタイミング
クロツク信号の特定の周期以内に少なくとも1回
以上カウントしてそのカウント値に対応したパル
ス幅を持つたパルスを発生させる少なくとも2個
のカウント回路と、前記中央演算装置で起動され
前記アドレスの初期値を前記DMAコントローラ
にセツトするときにパルスを発生させるDMA起
動回路と、前記カウント回路と前記DMA起動回
路の出力信号を合成して前記DMAコントローラ
にアドレスを変更する要求信号を送出する転送要
求信号作成回路と、上記DMAコントローラから
出力される連続したアドレスの特定なビツトを入
力しそのビツト情報で前記カウント回路のどの出
力を前記転送要求信号作成回路に送るかを選択す
る切替回路と、前記タイミングクロツク信号と前
記各カウント回路のタイミングを制御するタイミ
ングクロツク作成回路からなり、連続アドレスで
なく且つ一定の配列をもつたアドレスに格納され
たデータをDMA転送することを特徴とする
DMAによるメモリ読み出し方式。
1. In a computer system having at least a central processing unit and a random access memory connected to a data and address bus, after receiving a start signal from the central processing unit, a specific final value is determined from the initial values of consecutive addresses of the random access memory. a DMA controller that continuously changes addresses up to and outputs them to the address bus; and a DMA controller that continuously changes addresses up to and outputs them to the address bus; and a latch circuit that latches specific data corresponding to addresses having a certain arrangement and transfers it to an output device, and at least once within a specific cycle of a timing clock signal that causes the latch circuit to latch the specific data. at least two counting circuits that count and generate pulses having pulse widths corresponding to the counted values; and at least two counting circuits that are activated by the central processing unit and generate pulses when setting the initial value of the address in the DMA controller. a transfer request signal generation circuit that combines the output signals of the count circuit and the DMA activation circuit and sends a request signal for changing the address to the DMA controller; A switching circuit inputs a specific bit of an address and uses the bit information to select which output of the counting circuit is sent to the transfer request signal generating circuit, and controls the timing clock signal and the timing of each counting circuit. It consists of a timing clock generation circuit, and is characterized by DMA transfer of data stored at addresses that are not continuous and have a fixed arrangement.
Memory read method using DMA.
JP897983A 1983-01-21 1983-01-21 DMANYORUMEMORYOMIDASHIHOSHIKI Expired - Lifetime JPH0241059B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP897983A JPH0241059B2 (en) 1983-01-21 1983-01-21 DMANYORUMEMORYOMIDASHIHOSHIKI

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP897983A JPH0241059B2 (en) 1983-01-21 1983-01-21 DMANYORUMEMORYOMIDASHIHOSHIKI

Publications (2)

Publication Number Publication Date
JPS59135530A JPS59135530A (en) 1984-08-03
JPH0241059B2 true JPH0241059B2 (en) 1990-09-14

Family

ID=11707805

Family Applications (1)

Application Number Title Priority Date Filing Date
JP897983A Expired - Lifetime JPH0241059B2 (en) 1983-01-21 1983-01-21 DMANYORUMEMORYOMIDASHIHOSHIKI

Country Status (1)

Country Link
JP (1) JPH0241059B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61128748U (en) * 1985-01-30 1986-08-12

Also Published As

Publication number Publication date
JPS59135530A (en) 1984-08-03

Similar Documents

Publication Publication Date Title
JP3992874B2 (en) System including data processor, synchronous RAM, peripheral device and system clock
US4858107A (en) Computer device display system using conditionally asynchronous memory accessing by video display controller
JPH0536276A (en) Memory control device
JPH0241059B2 (en) DMANYORUMEMORYOMIDASHIHOSHIKI
US5802587A (en) Memory controller adapted for rapid block access operations
JP2520872B2 (en) Image display device
JPS60124764A (en) Direct memory access controller
JP3357972B2 (en) Data DMA transfer circuit for thermal transfer line printer
JPH0981499A (en) Dma control circuit
JP3381272B2 (en) Data transfer method and data processing device
JP2564513B2 (en) Printer control device
SU1182531A1 (en) Interface
JPS61140986A (en) Character rotation apparatus
JP2760303B2 (en) Thermal head drive
JPH10240614A (en) Memory read circuit
SU849254A1 (en) Information registering device
JPH0375897B2 (en)
JP2709201B2 (en) Microcomputer
RU1772806C (en) Image processor
JPH0611552B2 (en) Printer controller
SU1179544A1 (en) Multichannel frequency-to-number converter
JPH098611A (en) Pulse generator and data transfer device using the same
GB2202719A (en) Computer system with video subsystem
JPH0134383B2 (en)
JPS6129885A (en) Access signal generator for display memory