JPS6292056A - Read/write control method - Google Patents
Read/write control methodInfo
- Publication number
- JPS6292056A JPS6292056A JP23177585A JP23177585A JPS6292056A JP S6292056 A JPS6292056 A JP S6292056A JP 23177585 A JP23177585 A JP 23177585A JP 23177585 A JP23177585 A JP 23177585A JP S6292056 A JPS6292056 A JP S6292056A
- Authority
- JP
- Japan
- Prior art keywords
- data
- driver
- read
- receiver
- signal
- 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
Landscapes
- Bus Control (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
〔概要〕
データバスがNビットなるプロセサが、Nビット以下例
えばN/2ビツトのデータバスを有するRAM(Ran
donAccessMemory )に対するアクセス
を可能とした読出書込制御方式である。DETAILED DESCRIPTION OF THE INVENTION [Summary] A processor with an N-bit data bus processes a RAM (Ran) having a data bus of N bits or less, for example, N/2 bits.
This is a read/write control method that allows access to (donAccessMemory).
本発明はプロセサに結ばれたメモリに対する読出書込制
御方式の改良に関する。The present invention relates to an improved read/write control scheme for memory coupled to a processor.
ビット数の異なるデータバスを有するプロセサとメモリ
との間のデータの授受全容易とする読出4(色制御方式
の実現が望1れでいる。It is desired to implement a readout method (color control method) that facilitates the transfer of data between a processor and a memory having data buses having different numbers of bits.
従来例を図によって説明する。第4図は従来例を説明す
るブロック図である。A conventional example will be explained using figures. FIG. 4 is a block diagram illustrating a conventional example.
プロセサ1は16ビツトのマイクロプロセサである。即
ち16ビツトのデータバスを有するが、このようなマイ
クロプロセサに、8ビツトのデータバスを有するメモリ
を接続する場合、2つのメモ1 (RAM)2及び3に
、それぞれ下位バイトBlと上位バイトB2とを格納す
る方法が採られていたO
第2図において、例えばプロセサ1がレジスタ4内のデ
ータD’z格納する場合、データDの下位バイトのデー
タB+’!r、データバス5を経てメモリ2へ送り、一
方上位バイトのデータB2を、データバス6を経てメモ
リ3へ送って、それぞれ書込む。なお図中のAoi’t
メモリ2の先頭アドレス情報、A1〜Anはアドレス情
報であり、このアドレス情報A、〜Anはデコード回路
7によりデコードされたのち、ORゲート8?経てメモ
リ2のチップセレクト端子C8へ送られる。またBNE
はパス・イネーブル信号である。Processor 1 is a 16-bit microprocessor. That is, it has a 16-bit data bus, but if a memory with an 8-bit data bus is connected to such a microprocessor, two memories 1 (RAMs) 2 and 3 have a lower byte Bl and an upper byte B2, respectively. In FIG. 2, for example, when processor 1 stores data D'z in register 4, data B+'! of the lower byte of data D is stored. r and sent to the memory 2 via the data bus 5, while the upper byte data B2 is sent to the memory 3 via the data bus 6 and written therein. In addition, Aoi't in the figure
The starting address information A1 to An of the memory 2 is address information, and after the address information A and An are decoded by the decoding circuit 7, the OR gate 8? The signal is then sent to the chip select terminal C8 of the memory 2. Also BNE
is the path enable signal.
〔発明が解決しようとする問題点3
以上のように従来は、複数のメモリに分割して格納する
方法であるため装置の小型化及びコスト低減を図ること
が困難であった。[Problem to be Solved by the Invention 3] As described above, in the past, since the method was to divide and store data in a plurality of memories, it was difficult to reduce the size and cost of the device.
〔間V−tλ点を解決するための手段〕第1図は本発明
の原理ブロック図である。本発明は、
処理装置1が、Nビット長のデータ20を、ブクセス単
位がN/2ビット単位なる記憶部10に書込み、あるい
は読出す装置において、データ20の上位バイトのデー
タ書込用バッファ15と、
データ20及びデータ21の下位バイトデータの書込/
読出に用いるドライバ/レシーバ16と、データ23の
下位バイトデータ24の読出し用哉シ
ラッチ回路と、
バッファ15とドライバ/レシーバ16と全交互に作動
せしめる制御信号26を出力するシフトレジスタ12
と全備えている。[Means for solving the V-tλ point] FIG. 1 is a block diagram of the principle of the present invention. The present invention provides a data writing buffer 15 for the upper byte of the data 20 in a device in which the processing device 1 writes or reads data 20 having a length of N bits into a storage unit 10 in which the block access unit is an N/2 bit unit. and write the lower byte data of data 20 and data 21/
A driver/receiver 16 used for reading, a latch circuit for reading the lower byte data 24 of the data 23, and a shift register 12 that outputs a control signal 26 that causes the buffer 15 and driver/receiver 16 to operate alternately. There is.
データ20を記憶部10に書込む際、シフトレジスタ1
2を起動せしめることによシ発せられる制御信号26に
より、バッファ15を経由、データ20の上位バイトデ
ータ21全記憶部15に書込み、次いでドライバ/レシ
ーバ16を経由して下位バイトデータ22全記憶部15
に書込み、あるいは記憶部10がデータ23を読出す際
、読出きれた下位バイトデータ24をラッチ回路19に
一時保持せしめ、次いで読出されドライバ/レシーバ1
6全経由した上位バイトデータ25と共に、処理装置1
にta取らせる。When writing data 20 to storage unit 10, shift register 1
2, the upper byte data 21 of the data 20 is written to the entire storage section 15 via the buffer 15, and then the lower byte data 22 is written to the entire storage section via the driver/receiver 16. 15
When data 23 is written to or read by the storage unit 10, the lower byte data 24 that has been read out is temporarily held in the latch circuit 19, and then read out and sent to the driver/receiver 1.
6, along with the upper byte data 25 that has passed through the processing device 1.
Let them take the ta.
以下、本発明を図面によって説明する。第2図は本発明
の一実施例を説明するブロック図、第3図は本発明の一
実施例を説明するタイムチャートである。Hereinafter, the present invention will be explained with reference to the drawings. FIG. 2 is a block diagram explaining one embodiment of the present invention, and FIG. 3 is a time chart explaining one embodiment of the present invention.
第2図は、16ビツトプロセサ1に、アクセスがバイト
単位のRAM(256バイト) 10t−接続した例で
ある。即ちプロセサ111−j:、レジスタ4内の16
ビツトのデータD。−D+、にバイト(8ピツト)単位
で、RAMl0へ書込み全行い、また読出し時にもバイ
ト単位でアクセスする。FIG. 2 shows an example in which a 16-bit processor 1 is connected to a RAM (256 bytes) that can be accessed in bytes. That is, processor 111-j: 16 in register 4
Bit data D. -D+, all writes to the RAM 10 are performed in byte units (8 pits), and also accessed in byte units during reading.
まず書込みの場合の制御動作を説明する。プロセサ1は
、16ビツトのデータDo −Dos fレジスタ4に
セットすると共に、書込信号MWTCの信号を「0」と
し、またアドレス情報Ao −A 2oを出力する。こ
のとき、アドレス情報A o −A ?はRAMl0へ
、またA8〜A、。はデコード部13へ送られる。なお
書込信号MWTCは負論理である。First, the control operation in the case of writing will be explained. Processor 1 sets 16-bit data Do-Dos in register 4, sets write signal MWTC to "0", and outputs address information Ao-A2o. At this time, address information A o −A? to RAM10, and A8 to A. is sent to the decoding section 13. Note that the write signal MWTC is of negative logic.
さらにデータ転送信号(データの転送方向を示す信号)
DT/Rの信号レベルは「1」となり、起動信号CLK
によりパルス発生器11が起動される。これにより出力
されたクロノクツくパスCLはシフトレジスタ12を駆
動する。Furthermore, data transfer signal (signal indicating data transfer direction)
The signal level of DT/R becomes "1", and the activation signal CLK
The pulse generator 11 is started. The clock pass CL thus output drives the shift register 12.
シフトレジスタ12から出力されるレディ信号aH14
3g3図(a)のタイムチャートに示す如く時刻t、に
、その信号レベルは「0」となる。従って時刻t、に、
ORゲート14の出力レベルは「l」となる。利ちバッ
ファ15のゲート端子Gは「開」となると共に、RAM
l0のイネーブル端子EはEnalbleとなる。これ
により、プロセサ1からの下位バイトのデータDo〜D
7はRAMl0の入力端へ送られる。そして時刻j!、
即ち第3図(a)に示す如く、シフトレジスタ12から
のレディ信号aの信号レベルが「1」に復帰したとき、
データD6〜D?がRAMl0に書込まれる。Ready signal aH14 output from shift register 12
As shown in the time chart of FIG. 3g3 (a), at time t, the signal level becomes "0". Therefore, at time t,
The output level of the OR gate 14 becomes "l". The gate terminal G of the buffer 15 becomes "open" and the RAM
The enable terminal E of l0 becomes Enable. As a result, lower byte data Do~D from processor 1
7 is sent to the input end of RAM10. And time j! ,
That is, as shown in FIG. 3(a), when the signal level of the ready signal a from the shift register 12 returns to "1",
Data D6~D? is written to RAM10.
なおレディ信号aの信号レベルが「1」に復帰したトキ
、ドライバ/レシーバ16のゲート端子asが「Ejと
なりバッファ15のゲート端子G。Note that when the signal level of the ready signal a returns to "1", the gate terminal as of the driver/receiver 16 becomes "Ej" and becomes the gate terminal G of the buffer 15.
が「閉」となる。これによりレジスタ4の上位バイトの
データD8〜DI4が、RAMl0 の入力端へ送られ
、書込まれる。becomes “closed”. As a result, data D8 to DI4 in the upper byte of register 4 is sent to the input end of RAM10 and written therein.
一方シフトレジスタ12からは、第3図(a)に示す如
く、所定時間Tを経過した時刻t、に、レディ信号すが
出力(信号レベルが「1」からrOJに変化する)され
る。これを受けたプロセサlが書込信号MWTCを「1
」に復帰させ、書込制御動作を終了する。On the other hand, as shown in FIG. 3(a), the shift register 12 outputs a ready signal (the signal level changes from "1" to rOJ) at time t after a predetermined time T has elapsed. Upon receiving this, processor l sets the write signal MWTC to “1”.
” and completes the write control operation.
次に第2図及び第3図(blを用いて、読取制御動作を
説明する。第2図だおいて、プロセサ1は、アドレス情
報(例えば)As〜An ’If’:出力すると、デコ
ード部13が、これをデコードすることにより、RAM
l0のチップセレクト端子C8をEnableとする。Next, the read control operation will be explained using FIGS. 2 and 3 (bl). In FIG. 13 decodes this, RAM
The chip select terminal C8 of l0 is set to Enable.
甘だデータバス17を入力モードとすると共に、読取信
号MRDCの信号レベル全11」から「0」へ変化(即
ち読取モード)させる。さらに起動信号CLKによりパ
ルス発生器11全起動させ、これにより発せられたクロ
ックパルスCLによりシフトレジスタ12t−駆動せし
める。The low data bus 17 is set to the input mode, and the signal level of the read signal MRDC is changed from "all 11" to "0" (ie, read mode). Furthermore, the pulse generator 11 is all activated by the activation signal CLK, and the shift register 12t is driven by the clock pulse CL generated thereby.
これに伴いシフトレジスタ12からは、第3図(b)に
示す如く、時刻t!にレディ信号aが「1」から「0」
へ変化し、これがRAMl0のイネーブル端子Eへ与え
られる。これによ!11、RAMl0から取出されたデ
ータD。−D7は、ラッチ回路19に入り、時刻1sに
シフトレジスタ12から発せられろレディ信号すによね
、ラッチされる。次いで時刻t、にレディ信号aの信号
レベルがrOJから「1」へ変化l〜、これがRAMl
0のイネーブル端子Eへ与えられる。Along with this, the shift register 12 outputs time t! as shown in FIG. 3(b). Ready signal a changes from “1” to “0”
This is applied to the enable terminal E of RAM10. This is it! 11. Data D taken out from RAMl0. -D7 enters the latch circuit 19 and is latched by the ready signal issued from the shift register 12 at time 1s. Then, at time t, the signal level of the ready signal a changes from rOJ to "1" l~, which is RAMl
0 to enable terminal E.
次いでドライバ/レシーバ16のゲート端子Gsが「開
」となり、パス17にはう、チ回路19の出力信号、叩
ち下位バイトのデータD。−D、が入り、一方バス18
には、上位バイトのデータD8〜015がドライバ/レ
シーバ16を経由して入り、これによりプロセサ1に読
込まれる。Then, the gate terminal Gs of the driver/receiver 16 becomes "open", and the output signal of the circuit 19 and the data D of the lower byte enter the path 17. -D enters, while bus 18
The upper byte data D8-015 enters through the driver/receiver 16, and is thereby read into the processor 1.
第3図(b)に示す如く時刻t6にレディ信号すの信号
レベルが「0」から「1」となり、これがプロセサ1の
READT7.4子へ伝えられる。これによりプロセサ
1は、MRDC信号を終了して、データDo−D+sの
読取り全終了する。As shown in FIG. 3(b), the signal level of the ready signal changes from "0" to "1" at time t6, and this is transmitted to the READT7.4 child of the processor 1. As a result, the processor 1 terminates the MRDC signal and completes reading of the data Do-D+s.
本発明は装置の小型化及びコストダウンを容易とする効
果をもたらす利点を有する。The present invention has the advantage of facilitating miniaturization and cost reduction of the device.
第1図は本発明の原理ブロック図、
第2図は本発明の一実施例を説明するブロック第3図は
本発明の一実施例を説明するタイムチャート、
第4国は従来例を説明するブロノクレJ、図において、
1はプロセサ、2,3.10はRAM、4Il−tレジ
スタ、5,6,17.18 はデータバス、7はデコー
ド回路、8,9はORゲート、11はパルス発生器、1
2はシフトレジスタ、13はデコード部、14はORゲ
ート、15はバッファ、16はドライバ/レシーバ、1
9はラッチ回路、20.23はデータ、21.24は下
位バイトデータ、22゜−(S
7P−49月の原封V)口・ソ2聞
子 1 間
T懺9nの一更扼ゾj晃兇ロ月J6フ゛ロ′ン2区充3
尤乙
(d)
(b)
小ラドg月の一文令ヒ舒”′拉詑ソ月σる夕仏すV−)
竿3図
毎4!′艮87B月σbフ゛ロツノロ
子 4 【Figure 1 is a block diagram of the principle of the present invention. Figure 2 is a block diagram explaining an embodiment of the present invention. Figure 3 is a time chart explaining an embodiment of the present invention. Country 4 describes a conventional example. Bronocle J, In the figure, 1 is the processor, 2, 3.10 is the RAM, 4 Ilt register, 5, 6, 17.18 is the data bus, 7 is the decoding circuit, 8, 9 is the OR gate, 11 is the pulse generator vessel, 1
2 is a shift register, 13 is a decoding section, 14 is an OR gate, 15 is a buffer, 16 is a driver/receiver, 1
9 is a latch circuit, 20.23 is data, 21.24 is lower byte data, 22°-(S 7P-49 month's original seal V) mouth and SO 2 1. J6 Fron 2 Ward 3
Yoshito (D) (B) Small Rad G Months of the month "Hanshu""RagingSoul"
4 for every 3 rod figures! ′艮87B月σb Firotsu Noroko 4 [
Claims (1)
位がN/2ビット単位なる記憶部10に、書込み、ある
いは読出す装置において、 データ20の上位バイトのデータ書込用バッファ15と
、 データ20及びデータ21の下位バイトデータの書込/
読出に用いるドライバ/レシーバ16と、データ21の
下位バイトデータの読出し用ラッチ回路19と、 バッファ15とドライバ/レシーバ16とを交互に作動
せしめる制御信号26を出力するシフトレジスタ12と
を備え、 データ20を記憶部10に書込む際、シフトレジスタ1
2を起動せしめることにより発せられる制御信号26に
より、バッファ15を経由して、データ20の上位バイ
トデータ21を記憶部15に書込み、次いでドライバ/
レシーバ16を経由し、下位バイトデータ22を記憶部
15に書込み、あるいは記憶部10がデータ23を読出
す際、読出された下位バイトデータ24をラッチ回路1
9に一時保持せしめ、次いで読出されドライバ/レシー
バ16を経由した上位バイトデータ25と共に処理装置
1に読取らせることを特徴とする読出書込制御方式。[Claims] In a device in which a processing device 1 writes or reads data 20 having a length of N bits into a storage unit 10 whose access unit is an N/2 bit unit, data writing of the upper byte of the data 20 is performed. writing buffer 15 and lower byte data of data 20 and data 21/
It includes a driver/receiver 16 used for reading, a latch circuit 19 for reading lower byte data of data 21, and a shift register 12 that outputs a control signal 26 that alternately operates the buffer 15 and driver/receiver 16. When writing 20 to the storage unit 10, shift register 1
2 is activated, the upper byte data 21 of the data 20 is written into the storage section 15 via the buffer 15, and then the driver/driver/
When writing the lower byte data 22 to the storage unit 15 via the receiver 16 or when the storage unit 10 reads the data 23, the read lower byte data 24 is transferred to the latch circuit 15.
9 is temporarily held, and then read out and read by the processing device 1 together with the upper byte data 25 that has passed through the driver/receiver 16.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP23177585A JPS6292056A (en) | 1985-10-17 | 1985-10-17 | Read/write control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP23177585A JPS6292056A (en) | 1985-10-17 | 1985-10-17 | Read/write control method |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS6292056A true JPS6292056A (en) | 1987-04-27 |
Family
ID=16928835
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP23177585A Pending JPS6292056A (en) | 1985-10-17 | 1985-10-17 | Read/write control method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS6292056A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5189352A (en) * | 1975-02-03 | 1976-08-05 | ||
JPS5189351A (en) * | 1975-02-03 | 1976-08-05 | ||
JPS573283A (en) * | 1980-06-03 | 1982-01-08 | Hitachi Denshi Ltd | Readout system for data |
JPS5758280A (en) * | 1980-09-25 | 1982-04-07 | Nec Home Electronics Ltd | Method for making memory address |
-
1985
- 1985-10-17 JP JP23177585A patent/JPS6292056A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5189352A (en) * | 1975-02-03 | 1976-08-05 | ||
JPS5189351A (en) * | 1975-02-03 | 1976-08-05 | ||
JPS573283A (en) * | 1980-06-03 | 1982-01-08 | Hitachi Denshi Ltd | Readout system for data |
JPS5758280A (en) * | 1980-09-25 | 1982-04-07 | Nec Home Electronics Ltd | Method for making memory address |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR900000048B1 (en) | LSI memory circuit | |
JPS6155688B2 (en) | ||
JPS6041769B2 (en) | Addressing method | |
JPS6292056A (en) | Read/write control method | |
JPS60245062A (en) | Data transfer device | |
JP3304395B2 (en) | Data transfer device and data transfer method | |
US4238834A (en) | Apparatus for coordinating real time transfer of data from a processor to a magnetic media device | |
JPH0554667A (en) | Memory device with serial data / parallel data mutual conversion function | |
JPS619766A (en) | Data transfer device | |
JPH02208896A (en) | Semiconductor memory circuit | |
SU1509871A1 (en) | Device for sorting information | |
JPS5919376B2 (en) | Buffer memory control method | |
JP2517126B2 (en) | Semiconductor memory device | |
JP2003015950A (en) | Bus width conversion circuit | |
JPH02136921A (en) | Register access method | |
JPH01175649A (en) | Micro processor | |
SU1282141A1 (en) | Buffer storage | |
SU1509870A1 (en) | Device for comparing numbers with tolerances | |
EP0075666A2 (en) | Control arrangement for magnetic bubble memories | |
JPS617769A (en) | Image memory write control method | |
JPS585477B2 (en) | Batshua Memory Houshiki | |
JPH04353922A (en) | Data conversion method | |
JPS6212527B2 (en) | ||
JPH0516452A (en) | Printer | |
JPH03108190A (en) | Memory device with flash copy function |