JPH086801A - Data writing circuit - Google Patents
Data writing circuitInfo
- Publication number
- JPH086801A JPH086801A JP13581394A JP13581394A JPH086801A JP H086801 A JPH086801 A JP H086801A JP 13581394 A JP13581394 A JP 13581394A JP 13581394 A JP13581394 A JP 13581394A JP H086801 A JPH086801 A JP H086801A
- Authority
- JP
- Japan
- Prior art keywords
- data
- bit
- bus
- circuit
- bit data
- 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
Abstract
(57)【要約】
【目的】プログラムカウンタ内部のデ−タを高速にメモ
リに書き込む。
【構成】プログラムカウンタ11には、nビットデ−タ
(アドレスデ−タ)が格納されている。デ−タ分割回路
11aは、nビットデ−タをn/2ビット×2のデ−タ
に分割する。各n/2ビットデ−タは、n/2ビットデ
−タバス13aを介してデ−タ分割回路11bに転送さ
れる。デ−タ分割回路11bは、n/2ビットデ−タを
n/4ビット×2のデ−タにする。n/4ビットデ−タ
の一つは、n/4ビットデ−タバス13bに転送され、
メモリ(デ−タRAM)12aに書き込まれ、n/4ビ
ットデ−タの他の一つは、n/4ビットデ−タバス13
cに転送され、メモリ12bに書き込まれる。
(57) [Summary] [Purpose] Write the data in the program counter to the memory at high speed. [Structure] A program counter 11 stores n-bit data (address data). The data division circuit 11a divides the n-bit data into n / 2 bits × 2 data. Each n / 2 bit data is transferred to the data division circuit 11b via the n / 2 bit data bus 13a. The data division circuit 11b converts n / 2-bit data into n / 4-bit × 2 data. One of the n / 4 bit data is transferred to the n / 4 bit data bus 13b,
The other n / 4 bit data written in the memory (data RAM) 12a is the n / 4 bit data bus 13.
c is written to the memory 12b.
Description
【0001】[0001]
【産業上の利用分野】本発明は、プログラムカウンタ内
部のデ−タをメモリに書き込むためのデ−タ書き込み回
路に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data writing circuit for writing data in a program counter into a memory.
【0002】[0002]
【従来の技術】図3は、従来のデ−タ書き込み回路を示
すものである。プログラムカウンタ11内部の16ビッ
トデ−タ(アドレスデ−タ)は、例えば4ビット演算装
置が割り込み命令又はサブル−チンコ−ル命令を実行す
ると、以下の手順によりメモリ12に書き込まれる。2. Description of the Related Art FIG. 3 shows a conventional data writing circuit. The 16-bit data (address data) in the program counter 11 is written in the memory 12 by the following procedure when the 4-bit arithmetic unit executes an interrupt instruction or a subroutine call instruction, for example.
【0003】まず、16ビットデ−タは、プログラムカ
ウンタ11内部のデ−タ分割回路により4ビット×4の
デ−タに分割される。そして、各4ビットデ−タは、1
回の書き込みサイクルにおいて、4ビットデ−タバス1
3に転送され、かつ、アドレスデコ−ダ14により選択
された所定のメモリセルに書き込まれる。なお、WR
は、書き込みサイクルの実行を制御するための書き込み
信号である。従って、プログラムカウンタ11内部の1
6ビットデ−タは、4回の書き込みサイクルを実行する
こっとによりメモリ12に書き込まれることになる。First, the 16-bit data is divided into 4 bits × 4 data by a data dividing circuit inside the program counter 11. Each 4-bit data is 1
4-bit data bus 1 in one write cycle
3 and is written in a predetermined memory cell selected by the address decoder 14. In addition, WR
Is a write signal for controlling the execution of the write cycle. Therefore, 1 in the program counter 11
The 6-bit data will be written to the memory 12 by executing four write cycles.
【0004】[0004]
【発明が解決しようとする課題】このように、従来のデ
−タ書き込み回路では、16ビットデ−タを4ビットデ
−タバスを介してメモリに書き込もうとしているため、
少なくとも4回の書き込みサイクルが必要である。As described above, in the conventional data write circuit, 16-bit data is written in the memory via the 4-bit data bus.
At least 4 write cycles are required.
【0005】従って、割り込み命令やサブル−チンコ−
ル命令など多く使用するプログラムでは、プログラムカ
ウンタ内部のデ−タ(アドレスデ−タ)をメモリに退避
(記憶)させるための多くの時間が必要なため、当該割
り込み命令やサブル−チンコ−ル命令などを処理する時
間が長くなる欠点がある。Therefore, interrupt instructions and subroutines
In a program that uses a large number of instructions such as a loop instruction, a lot of time is required to save (store) the data (address data) inside the program counter in the memory. Therefore, the interrupt instruction or subroutine call instruction concerned. There is a drawback that it takes a long time to process.
【0006】また、割り込み命令やサブル−チンコ−ル
命令などの使用回数に制限を設ける場合、その使用回数
を制限するためのプログラムの作成が必要となるため、
プログラムの複雑化及びROM容量の不足などの欠点が
生じる。Further, when the number of times of use of interrupt instructions and subroutine calls is limited, it is necessary to create a program for limiting the number of times of use.
There are drawbacks such as complication of programs and lack of ROM capacity.
【0007】本発明は、上記欠点を解決すべくなされた
もので、その目的は、プログラムカウンタ内部のデ−タ
を高速にメモリに書き込むことができるデ−タ書き込み
回路を提供することにより、割り込み命令やサブル−チ
ンコ−ル命令などの使用制限をなくすことである。The present invention has been made to solve the above-mentioned drawbacks, and an object of the present invention is to provide a data writing circuit capable of writing data in a program counter to a memory at high speed, thereby providing an interrupt. The purpose is to eliminate restrictions on the use of commands and subroutine calls.
【0008】[0008]
【課題を解決するための手段】上記目的を達成するた
め、本発明のデ−タ分割回路は、プログラムカウンタ
と、前記プログラムカウンタ内部のnビットデ−タを2
つのn/2ビットデ−タに分割する第1デ−タ分割回路
と、前記第1デ−タ分割回路からのn/2ビットデ−タ
を2つのn/4ビットデ−タに分割する第2デ−タ分割
回路と、各n/4ビットデ−タを同時に記憶するための
メモリ手段とを備えている。In order to achieve the above object, the data dividing circuit of the present invention comprises a program counter and n bit data in the program counter.
A first data division circuit for dividing into n / 2 bit data and a second data division circuit for dividing the n / 2 bit data from the first data division circuit into two n / 4 bit data. A data dividing circuit and memory means for simultaneously storing each n / 4 bit data are provided.
【0009】前記第1デ−タ分割回路からのn/2ビッ
トデ−タは、デ−タ書き込み専用のn/2ビットデ−タ
バスを介して前記第2デ−タ分割回路に転送される。前
記メモリ手段は、第1及び第2メモリと、前記第1及び
第2メモリのメモリセルを選択するためのアドレスデコ
−ダとを有し、前記第2デ−タ分割回路のn/4ビット
デ−タの一つは、n/4ビットの第1デ−タバスを介し
て前記第1メモリに書き込まれ、前記第2デ−タ分割回
路のn/4ビットデ−タの他の一つは、n/4ビットの
第2デ−タバスを介して前記第2メモリに書き込まれ
る。The n / 2-bit data from the first data division circuit is transferred to the second data division circuit via an n / 2-bit data bus dedicated to writing data. The memory means has first and second memories and an address decoder for selecting a memory cell of the first and second memories, and an n / 4 bit decoder of the second data division circuit. One of the data is written in the first memory via the first data bus of n / 4 bits, and the other one of the n / 4 bit data of the second data division circuit is The data is written to the second memory via the n / 4-bit second data bus.
【0010】本発明のデ−タ分割回路は、書き込みサイ
クルにおいて前記第1デ−タバスと前記第2デ−タバス
を互いに分割し、書き込みサイクル終了後には前記第1
デ−タバスと前記第2デ−タバスを互いに結合するため
のバス分割回路をさらに有する。In the data division circuit of the present invention, the first data bus and the second data bus are divided from each other in the write cycle, and the first data bus is divided into the first data bus after the write cycle is completed.
A bus dividing circuit for connecting the data bus and the second data bus to each other is further provided.
【0011】前記nビットデ−タは、アドレスデ−タで
あり、前記第2デ−タ分割回路は、前記第1デ−タ分割
回路からのn/2ビットデ−タを偶数アドレスと奇数ア
ドレスに分割する。前記第1デ−タ分割回路は、1回の
書き込みサイクルで1つのn/2ビットデ−タを出力す
る。The n-bit data is address data, and the second data division circuit divides the n / 2-bit data from the first data division circuit into even and odd addresses. To divide. The first data division circuit outputs one n / 2 bit data in one write cycle.
【0012】[0012]
【作用】上記構成によれば、第1デ−タ分割回路により
プログラムカウンタ内部のnビットデ−タを2つのn/
2ビットデ−タに分割し、第2デ−タ分割回路により第
1デ−タ分割回路からのn/2ビットデ−タを2つのn
/4ビットデ−タに分割し、メモリ手段に各n/4ビッ
トデ−タを同時に書き込んでいる。According to the above construction, the first data division circuit converts the n-bit data in the program counter into two n / n bits.
It is divided into 2 bit data, and the n / 2 bit data from the first data division circuit is divided into two n by the second data division circuit.
It is divided into / 4 bit data, and each n / 4 bit data is simultaneously written in the memory means.
【0013】また、プログラムカウンタ内のデ−タを書
き込むための専用のデ−タバスを有し、かつ、メモリ手
段は複数のメモリを有している。これにより、プログラ
ムカウンタ内のデ−タは、従来よりも少ない回数、例え
ば2回の書き込みサイクルによりメモリ手段に書き込ま
れ、デ−タ書き込み時間の高速化を図ることができる。Further, it has a dedicated data bus for writing the data in the program counter, and the memory means has a plurality of memories. As a result, the data in the program counter is written in the memory means in a smaller number of times than before, for example, two write cycles, and the data write time can be shortened.
【0014】また、プログラムカウンタ内のアドレスデ
−タの退避に要する時間が短縮できるため、割り込み命
令やサブル−チンコ−ル命令などの使用制限をなくすこ
とができる。Further, since the time required to save the address data in the program counter can be shortened, it is possible to eliminate the use restriction of the interrupt instruction and the subroutine call instruction.
【0015】これにより、プログラム作成の効率が向上
し、フログラムの複雑化やROM容量の増大も防止でき
る。また、バス分割回路を設けているので、デ−タが互
いに衝突することもない。As a result, the efficiency of program creation is improved, and it is possible to prevent complication of programs and increase in ROM capacity. Further, since the bus dividing circuit is provided, the data will not collide with each other.
【0016】[0016]
【実施例】以下、図面を参照しながら、本発明のデ−タ
書き込み回路について詳細に説明する。 [A] 図1は、本発明の第1実施例に係わるデ−タ書
き込み回路を示している。DESCRIPTION OF THE PREFERRED EMBODIMENTS The data write circuit of the present invention will be described in detail below with reference to the drawings. [A] FIG. 1 shows a data write circuit according to the first embodiment of the present invention.
【0017】即ち、プログラムカウンタ11には、n
(例えば16)ビットデ−タ(アドレスデ−タ)が格納
されている。デ−タ分割回路11aは、nビットデ−タ
をn/2ビット×2のデ−タに分割する。各n/2ビッ
トデ−タは、n/2ビットデ−タバス13aを介してデ
−タ分割回路11bに転送される。That is, the program counter 11 has n
Bit data (address data) (for example, 16) is stored. The data division circuit 11a divides the n-bit data into n / 2 bits × 2 data. Each n / 2 bit data is transferred to the data division circuit 11b via the n / 2 bit data bus 13a.
【0018】デ−タ分割回路11bは、n/2ビットデ
−タを上位ビットと下位ビットに分け、n/4ビット×
2のデ−タにする。n/4ビットデ−タの一つは、n/
4ビットデ−タバス13bに転送され、メモリ(デ−タ
RAM)12aに書き込まれる。n/4ビットデ−タの
他の一つは、n/4ビットデ−タバス13cに転送さ
れ、メモリ(デ−タRAM)12bに書き込まれる。The data division circuit 11b divides the n / 2-bit data into upper bits and lower bits, and n / 4 bits ×
2 data. One of the n / 4 bit data is n /
The data is transferred to the 4-bit data bus 13b and written in the memory (data RAM) 12a. The other one of the n / 4 bit data is transferred to the n / 4 bit data bus 13c and written in the memory (data RAM) 12b.
【0019】なお、WRは、書き込みサイクルの実行を
制御するための書き込み信号である。また、A0は、読
み出しサイクル時に、例えばメモリ12aからアドレス
デ−タを読み出すか、又はメモリ12bからアドレスデ
−タを読み出すか決定するための制御信号である。例え
ば、制御信号A0が“1”のときには、メモリ12aか
らアドレスデ−タを読み出し、制御信号A0が“0”の
ときには、メモリ12aからアドレスデ−タを読み出
す。WR is a write signal for controlling the execution of the write cycle. Further, A0 is a control signal for determining whether to read the address data from the memory 12a or the address data from the memory 12b during the read cycle. For example, when the control signal A0 is "1", the address data is read from the memory 12a, and when the control signal A0 is "0", the address data is read from the memory 12a.
【0020】バス分割回路15は、デ−タバス13bと
デ−タバス13cの間に形成される。そして、バス分割
回路15は、書き込みサイクルにおいて、デ−タバス1
3bとデ−タバス13cを分割する役割を果たす。The bus division circuit 15 is formed between the data bus 13b and the data bus 13c. Then, the bus division circuit 15 receives the data bus 1 in the write cycle.
3b and the data bus 13c are divided.
【0021】2つのメモリ12a,12bの間には、ア
ドレスデコ−ダ14が配置される。アドレスデコ−ダ1
4は、書き込みサイクルにおいて、デ−タを書き込むメ
モリセルの選択を行う。An address decoder 14 is arranged between the two memories 12a and 12b. Address decoder 1
In the write cycle, 4 selects a memory cell in which data is written.
【0022】次に、図1のデ−タ書き込み回路の動作に
ついて説明する。なお、説明を簡単にするため、n=1
6の場合について説明する。即ち、プログラムカウンタ
11内部の16ビットデ−タ(アドレスデ−タ)は、例
えば4ビット演算装置が割り込み命令又はサブル−チン
コ−ル命令を実行すると、以下の手順によりメモリ12
a,12bに書き込まれる。Next, the operation of the data write circuit of FIG. 1 will be described. Note that n = 1 for the sake of simplicity.
The case of 6 will be described. That is, 16-bit data (address data) in the program counter 11 is stored in the memory 12 according to the following procedure when, for example, a 4-bit arithmetic unit executes an interrupt instruction or a subroutine call instruction.
a, 12b.
【0023】まず、プログラムカウンタ11内部の16
ビットデ−タは、デ−タ分割回路11aにより8ビット
×2のデ−タに分割される。そして、書き込み制御信号
WRが書き込み開始を表すレベルになると、1回目の書
き込みサイクルが実行される。First, 16 in the program counter 11
The bit data is divided into data of 8 bits × 2 by the data division circuit 11a. Then, when the write control signal WR reaches a level indicating the start of writing, the first write cycle is executed.
【0024】即ち、デ−タ分割回路11aは、8ビット
デ−タを8ビットデ−タバス13aに出力する。8ビッ
トデ−タは、デ−タバス13aを介してデ−タ分割回路
11bに入力する。デ−タ分割回路11bは、8ビット
デ−タを上位4ビットと下位4ビットのデ−タに分割す
る。That is, the data division circuit 11a outputs 8-bit data to the 8-bit data bus 13a. The 8-bit data is input to the data division circuit 11b via the data bus 13a. The data division circuit 11b divides the 8-bit data into upper 4 bits and lower 4 bits.
【0025】上位4ビットは、例えば4ビットデ−タバ
ス13bを介してメモリ12aの所定のメモリセルに書
き込まれ、下位4ビットは、例えば4ビットデ−タバス
13cを介してメモリ12bの所定のメモリセルに書き
込まれる。The upper 4 bits are written in a predetermined memory cell of the memory 12a via the 4-bit data bus 13b, and the lower 4 bits are written in a predetermined memory cell of the memory 12b via the 4-bit data bus 13c. Written.
【0026】また、書き込み制御信号WRが再び書き込
み開始を表すレベルになると、2回目の書き込みサイク
ルが実行される。即ち、デ−タ分割回路11aに残され
た8ビットデ−タは、デ−タバス13aを介してデ−タ
分割回路11bに入力する。デ−タ分割回路11bは、
8ビットデ−タを上位4ビットと下位4ビットのデ−タ
に分割する。When the write control signal WR reaches the level indicating the start of writing again, the second write cycle is executed. That is, the 8-bit data left in the data division circuit 11a is input to the data division circuit 11b via the data bus 13a. The data division circuit 11b is
The 8-bit data is divided into upper 4 bits and lower 4 bits.
【0027】上位4ビットは、例えば4ビットデ−タバ
ス13bを介してメモリ12aの所定のメモリセルに書
き込まれ、下位4ビットは、例えば4ビットデ−タバス
13cを介してメモリ12bの所定のメモリセルに書き
込まれる。The upper 4 bits are written to a predetermined memory cell of the memory 12a via, for example, the 4-bit data bus 13b, and the lower 4 bits are written to a predetermined memory cell of the memory 12b via, for example, the 4-bit data bus 13c. Written.
【0028】なお、上記2回の書き込みサイクル時にお
いて、バス分割回路15は、デ−タバス13bとデ−タ
バス13cを分割しているが、上記2回の書き込みサイ
クルが終了した後には、バス分割回路15は、デ−タバ
ス13bとデ−タバス13cを互いに結合する。Although the bus dividing circuit 15 divides the data bus 13b and the data bus 13c during the two write cycles, the bus dividing circuit 15 divides the bus after the two write cycles are completed. The circuit 15 connects the data bus 13b and the data bus 13c to each other.
【0029】上記構成によれば、2つのメモリ12a,
12bを有し、各メモリ12a,12bに同時に所定の
デ−タを書き込んでいる。また、プログラムカウンタ1
1内のデ−タをメモリ12a,12bに書き込むための
専用のデ−タバス13aを有している。According to the above construction, the two memories 12a,
12b, and the predetermined data is simultaneously written in each of the memories 12a and 12b. Also, the program counter 1
It has a dedicated data bus 13a for writing the data in 1 into the memories 12a and 12b.
【0030】これにより、プログラムカウンタ11内の
デ−タは、2回の書き込みサイクルによりメモリ12
a,12bに書き込むことができ、デ−タ書き込み時間
の高速化を図ることができる。従って、割り込み命令や
サブル−チンコ−ル命令などの使用制限をなくすことが
できる。 [B] 図2は、本発明の第2実施例に係わるデ−タ書
き込み回路を示している。As a result, the data in the program counter 11 is stored in the memory 12 in two write cycles.
It is possible to write data in a and 12b, and it is possible to shorten the data writing time. Therefore, it is possible to eliminate the use restrictions of the interrupt instruction and the subroutine call instruction. [B] FIG. 2 shows a data write circuit according to the second embodiment of the present invention.
【0031】即ち、プログラムカウンタ11には、n
(例えば16)ビットデ−タ(アドレスデ−タ)が格納
されている。デ−タ分割回路11aは、nビットデ−タ
をn/2ビット×2のデ−タに分割する。n/2ビット
デ−タの一つは、n/2ビットデ−タバス13aを介し
てデ−タ分割回路11bに転送される。n/2ビットデ
−タの他の一つは、n/2ビットデ−タバス13a´を
介してデ−タ分割回路11b´に転送される。That is, the program counter 11 has n
Bit data (address data) (for example, 16) is stored. The data division circuit 11a divides the n-bit data into n / 2 bits × 2 data. One of the n / 2 bit data is transferred to the data dividing circuit 11b via the n / 2 bit data bus 13a. The other one of the n / 2 bit data is transferred to the data division circuit 11b 'via the n / 2 bit data bus 13a'.
【0032】デ−タ分割回路11bは、n/2ビットデ
−タを上位ビットと下位ビットに分け、n/4ビット×
2のデ−タにする。n/4ビットデ−タの一つは、n/
4ビットデ−タバス13bに転送され、メモリ(デ−タ
RAM)12aに書き込まれる。n/4ビットデ−タの
他の一つは、n/4ビットデ−タバス13cに転送さ
れ、メモリ(デ−タRAM)12bに書き込まれる。The data division circuit 11b divides the n / 2-bit data into upper bits and lower bits, and n / 4 bits ×
2 data. One of the n / 4 bit data is n /
The data is transferred to the 4-bit data bus 13b and written in the memory (data RAM) 12a. The other one of the n / 4 bit data is transferred to the n / 4 bit data bus 13c and written in the memory (data RAM) 12b.
【0033】同様に、デ−タ分割回路11b´は、n/
2ビットデ−タを上位ビットと下位ビットに分け、n/
4ビット×2のデ−タにする。n/4ビットデ−タの一
つは、n/4ビットデ−タバス13b´に転送され、メ
モリ(デ−タRAM)12a´に書き込まれる。n/4
ビットデ−タの他のつは、n/4ビットデ−タバス13
c´に転送され、メモリ(デ−タRAM)12b´に書
き込まれる。Similarly, the data division circuit 11b 'has n /
2-bit data is divided into upper bits and lower bits, and n /
4 bits x 2 data. One of the n / 4 bit data is transferred to the n / 4 bit data bus 13b 'and written in the memory (data RAM) 12a'. n / 4
The other bit data is the n / 4 bit data bus 13
It is transferred to c'and written in the memory (data RAM) 12b '.
【0034】なお、WRは、書き込みサイクルの実行を
制御するための書き込み信号である。また、A0は、読
み出しサイクル時に、アドレスデ−タを読み出す一つの
メモリを、4つのメモリ12a,12b,12a´,1
2b´から選択するための制御信号である。WR is a write signal for controlling the execution of the write cycle. Also, A0 is one of the four memories 12a, 12b, 12a ', 1 for reading the address data in the read cycle.
This is a control signal for selecting from 2b '.
【0035】バス分割回路15aは、デ−タバス13b
とデ−タバス13cの間に形成され、バス分割回路15
bは、デ−タバス13cとデ−タバス13b´の間に形
成され、バス分割回路15cは、デ−タバス13b´と
デ−タバス13c´の間に形成される。そして、これら
のバス分割回路15a〜15cは、書き込みサイクルに
おいて、デ−タバス13b,13c,13b´,13c
´を分割する役割を果たしている。The bus division circuit 15a includes a data bus 13b.
And a data bus 13c, and a bus dividing circuit 15
b is formed between the data bus 13c and the data bus 13b ', and the bus dividing circuit 15c is formed between the data bus 13b' and the data bus 13c '. Then, these bus division circuits 15a to 15c, in the write cycle, the data buses 13b, 13c, 13b ', 13c.
It plays the role of dividing ´.
【0036】2つのメモリ12a,12bの間には、ア
ドレスデコ−ダ14が配置される。また、2つのメモリ
12a´,12b´の間には、アドレスデコ−ダ14´
が配置される。アドレスデコ−ダ14,14´は、それ
ぞれ書き込みサイクルにおいて、デ−タを書き込むメモ
リセルの選択を行う。An address decoder 14 is arranged between the two memories 12a and 12b. An address decoder 14 'is provided between the two memories 12a' and 12b '.
Is arranged. The address decoders 14 and 14 'each select a memory cell to write data in a write cycle.
【0037】次に、図2のデ−タ書き込み回路の動作に
ついて説明する。なお、説明を簡単にするため、n=1
6の場合について説明する。即ち、プログラムカウンタ
11内部の16ビットデ−タ(アドレスデ−タ)は、例
えば4ビット演算装置が割り込み命令又はサブル−チン
コ−ル命令を実行すると、以下の手順によりメモリ12
a,12b,12a´,12b´に書き込まれる。Next, the operation of the data write circuit of FIG. 2 will be described. Note that n = 1 for the sake of simplicity.
The case of 6 will be described. That is, 16-bit data (address data) in the program counter 11 is stored in the memory 12 according to the following procedure when, for example, a 4-bit arithmetic unit executes an interrupt instruction or a subroutine call instruction.
a, 12b, 12a ', 12b'.
【0038】まず、プログラムカウンタ11内部の16
ビットデ−タは、デ−タ分割回路11aにより8ビット
×2のデ−タに分割される。そして、書き込み制御信号
WRが書き込み開始を表すレベルになると、書き込みサ
イクルが実行される。First, 16 in the program counter 11
The bit data is divided into data of 8 bits × 2 by the data division circuit 11a. Then, when the write control signal WR reaches the level indicating the start of writing, the write cycle is executed.
【0039】即ち、デ−タ分割回路11aは、8ビット
デ−タの一つを8ビットデ−タバス13aに出力する。
この8ビットデ−タは、デ−タバス13aを介してデ−
タ分割回路11bに入力する。デ−タ分割回路11b
は、8ビットデ−タを上位4ビットと下位4ビットのデ
−タに分割する。That is, the data division circuit 11a outputs one of 8-bit data to the 8-bit data bus 13a.
This 8-bit data is sent via the data bus 13a.
Input to the data division circuit 11b. Data division circuit 11b
Divides the 8-bit data into upper 4 bits and lower 4 bits.
【0040】また、デ−タ分割回路11bは、8ビット
デ−タの他の一つを8ビットデ−タバス13a´に出力
する。この8ビットデ−タは、デ−タバス13a´を介
してデ−タ分割回路11b´に入力する。デ−タ分割回
路11b´は、8ビットデ−タを上位4ビットと下位4
ビットのデ−タに分割する。Further, the data division circuit 11b outputs another one of the 8-bit data to the 8-bit data bus 13a '. This 8-bit data is input to the data dividing circuit 11b 'via the data bus 13a'. The data division circuit 11b 'converts the 8-bit data into upper 4 bits and lower 4 bits.
Divide into bit data.
【0041】デ−タ分割回路11bの8ビットデ−タの
上位4ビットは、例えば4ビットデ−タバス13bを介
してメモリ12aの所定のメモリセルに書き込まれ、下
位4ビットは、例えば4ビットデ−タバス13cを介し
てメモリ12bの所定のメモリセルに書き込まれる。The upper 4 bits of the 8-bit data of the data division circuit 11b is written in a predetermined memory cell of the memory 12a via, for example, the 4-bit data bus 13b, and the lower 4 bits are, for example, a 4-bit data bus. It is written in a predetermined memory cell of the memory 12b via 13c.
【0042】また、デ−タ分割回路11b´の8ビット
デ−タの上位4ビットは、例えば4ビットデ−タバス1
3b´を介してメモリ12a´の所定のメモリセルに書
き込まれ、下位4ビットは、例えば4ビットデ−タバス
13c´を介してメモリ12b´の所定のメモリセルに
書き込まれる。The upper 4 bits of the 8-bit data of the data division circuit 11b 'are, for example, the 4-bit data bus 1.
The lower 4 bits are written to a predetermined memory cell of the memory 12a 'via 3b', and the lower 4 bits are written to a predetermined memory cell of the memory 12b 'via, for example, a 4-bit data bus 13c'.
【0043】なお、上記書き込みサイクル時において、
バス分割回路15a〜15cは、デ−タバス13b,1
3c,13b´,13c´を互いに分割しているが、上
記書き込みサイクルが終了した後には、バス分割回路1
5a〜15cは、デ−タバス13b,13c,13b
´,13c´を互いに結合する。In the write cycle,
The bus division circuits 15a to 15c include data buses 13b and 1b.
Although 3c, 13b ', and 13c' are divided from each other, the bus dividing circuit 1
5a to 15c are data buses 13b, 13c and 13b.
', 13c' are connected to each other.
【0044】上記構成によれば、4つのメモリ12a,
12b,12a´,12b´を有し、各メモリ12a,
12b,12a´,12b´に同時に所定のデ−タを書
き込んでいる。また、プログラムカウンタ11内のデ−
タをメモリ12a,12b,12a´,12b´に書き
込むための専用のデ−タバス13a,13a´を有して
いる。According to the above configuration, the four memories 12a,
12b, 12a ', 12b', each memory 12a,
Predetermined data is simultaneously written in 12b, 12a 'and 12b'. In addition, the data in the program counter 11
It has dedicated data buses 13a and 13a 'for writing data in the memories 12a, 12b, 12a' and 12b '.
【0045】これにより、プログラムカウンタ11内の
デ−タは、1回の書き込みサイクルによりメモリ12
a,12b,12a´,12b´に書き込むことがで
き、デ−タ書き込み時間の高速化を図ることができる。
従って、割り込み命令やサブル−チンコ−ル命令などの
使用制限をなくすことができる。As a result, the data in the program counter 11 is stored in the memory 12 in one write cycle.
Data can be written in a, 12b, 12a ', 12b', and the data writing time can be shortened.
Therefore, it is possible to eliminate the use restrictions of the interrupt instruction and the subroutine call instruction.
【0046】[0046]
【発明の効果】以上、説明したように、本発明のデ−タ
書き込み回路によれば、次のような効果を奏する。複数
のメモリを有し、各メモリに同時に所定のデ−タを書き
込んでいる。また、プログラムカウンタ内のデ−タをメ
モリに書き込むための専用のデ−タバスを有している。
これにより、プログラムカウンタ内のデ−タは、2回の
書き込みサイクルによりメモリに書き込むことができ、
デ−タ書き込み時間の高速化を図ることができる。As described above, the data writing circuit of the present invention has the following effects. It has a plurality of memories and writes predetermined data to each memory at the same time. It also has a dedicated data bus for writing the data in the program counter to the memory.
This allows the data in the program counter to be written to the memory in two write cycles,
The data writing time can be shortened.
【0047】また、プログラムカウンタ内のアドレスデ
−タの退避に要する時間が短縮できるため、割り込み命
令やサブル−チンコ−ル命令などの使用制限をなくすこ
とができる。これにより、プログラム作成の効率が向上
し、フログラムの複雑化やROM容量の増大も防止でき
る。Further, since the time required to save the address data in the program counter can be shortened, it is possible to eliminate the use restriction of the interrupt instruction and the subroutine call instruction. As a result, the efficiency of program creation is improved, and it is possible to prevent the program from becoming complicated and the ROM capacity from increasing.
【図1】本発明の第1実施例に係わるデ−タ書き込み回
路を示すブロック図。FIG. 1 is a block diagram showing a data write circuit according to a first embodiment of the present invention.
【図2】本発明の第2実施例に係わるデ−タ書き込み回
路を示すブロック図。FIG. 2 is a block diagram showing a data write circuit according to a second embodiment of the present invention.
【図3】従来のデ−タ書き込み回路を示すブロック図。FIG. 3 is a block diagram showing a conventional data write circuit.
11 …プログラムカ
ウンタ、 11a,11b,11b´ …デ−タ分割回
路、 12a,12b,12a´,12b´ …メモリ、 13a〜13c,13a´〜13c´ …デ−タバス、 14,14´ …アドレスデコ
−ダ、 15,15a〜15c …バス分割回
路。11 ... Program counter, 11a, 11b, 11b '... Data division circuit, 12a, 12b, 12a', 12b '... Memory, 13a-13c, 13a'-13c' ... Data bus, 14, 14 '... Address Decoder, 15, 15a to 15c ... Bus division circuit.
Claims (6)
カウンタ内部のnビットデ−タを2つのn/2ビットデ
−タに分割する第1デ−タ分割回路と、前記第1デ−タ
分割回路からのn/2ビットデ−タを2つのn/4ビッ
トデ−タに分割する第2デ−タ分割回路と、各n/4ビ
ットデ−タを同時に記憶するためのメモリ手段とを具備
することを特徴とするデ−タ書き込み回路。1. A program counter, a first data dividing circuit for dividing n-bit data in the program counter into two n / 2-bit data, and n from the first data dividing circuit. A second data dividing circuit for dividing the / 2 bit data into two n / 4 bit data and a memory means for simultaneously storing each n / 4 bit data are provided. Data writing circuit.
おいて、 前記第1デ−タ分割回路からのn/2ビットデ−タは、
デ−タ書き込み専用のn/2ビットデ−タバスを介して
前記第2デ−タ分割回路に転送されることを特徴とする
デ−タ分割回路。2. The data write circuit according to claim 1, wherein the n / 2 bit data from the first data division circuit is:
A data division circuit characterized in that the data is transferred to the second data division circuit via an n / 2-bit data bus dedicated to writing data.
おいて、 前記メモリ手段は、第1及び第2メモリと、前記第1及
び第2メモリのメモリセルを選択するためのアドレスデ
コ−ダとを有し、 前記第2デ−タ分割回路のn/4ビットデ−タの一つ
は、n/4ビットの第1デ−タバスを介して前記第1メ
モリに書き込まれ、前記第2デ−タ分割回路のn/4ビ
ットデ−タの他の一つは、n/4ビットの第2デ−タバ
スを介して前記第2メモリに書き込まれることを特徴と
するデ−タ分割回路。3. The data write circuit according to claim 1, wherein the memory means selects an address decoder for selecting a memory cell of the first and second memories and a memory cell of the first and second memories. One of the n / 4-bit data of the second data division circuit is written in the first memory via the first data bus of n / 4 bits, and the second data is written in the second memory. Another one of the n / 4 bit data of the data division circuit is written in the second memory via an n / 4 bit second data bus.
おいて、 書き込みサイクルにおいて前記第1デ−タバスと前記第
2デ−タバスを互いに分割し、書き込みサイクル終了後
には前記第1デ−タバスと前記第2デ−タバスを互いに
結合するためのバス分割回路をさらに有することを特徴
とするデ−タ分割回路。4. The data write circuit according to claim 3, wherein the first data bus and the second data bus are divided from each other in a write cycle, and the first data bus is divided after the write cycle is completed. And a bus dividing circuit for connecting the second data bus to each other.
おいて、 前記nビットデ−タは、アドレスデ−タであり、前記第
2デ−タ分割回路は、前記第1デ−タ分割回路からのn
/2ビットデ−タを偶数アドレスと奇数アドレスに分割
することを特徴とするデ−タ分割回路。5. The data write circuit according to claim 3, wherein the n-bit data is address data and the second data division circuit is the first data division circuit. N from
A data dividing circuit characterized in that the / 2 bit data is divided into an even address and an odd address.
おいて、 前記第1デ−タ分割回路は、1回の書き込みサイクルで
1つのn/2ビットデ−タを出力することを特徴とする
デ−タ分割回路。6. The data write circuit according to claim 1, wherein the first data division circuit outputs one n / 2-bit data in one write cycle. Data division circuit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP13581394A JPH086801A (en) | 1994-06-17 | 1994-06-17 | Data writing circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP13581394A JPH086801A (en) | 1994-06-17 | 1994-06-17 | Data writing circuit |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH086801A true JPH086801A (en) | 1996-01-12 |
Family
ID=15160418
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP13581394A Pending JPH086801A (en) | 1994-06-17 | 1994-06-17 | Data writing circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH086801A (en) |
-
1994
- 1994-06-17 JP JP13581394A patent/JPH086801A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0221616B2 (en) | ||
| JPH086801A (en) | Data writing circuit | |
| JPS633317B2 (en) | ||
| JP3821911B2 (en) | Memory initialization control method | |
| JP2641917B2 (en) | Memory element | |
| JPS6151792B2 (en) | ||
| JP2845746B2 (en) | Micro program controller | |
| JPS6019533B2 (en) | Control device | |
| JPS6058493B2 (en) | information processing equipment | |
| JPS6014435B2 (en) | Storage device | |
| JP2928216B1 (en) | Semiconductor integrated circuit | |
| JP3285033B2 (en) | Information processing system | |
| JPH07302219A (en) | Data processor and data processing method | |
| JPH0226252B2 (en) | ||
| JPH07105171A (en) | Data processing device | |
| JPH04268936A (en) | memory device | |
| JPS63225836A (en) | Storage device | |
| JPH0667994A (en) | Memory control circuit | |
| JPH02116077A (en) | Memory with logic synthesizing function | |
| JPH02238533A (en) | Memory circuit | |
| JPH1196070A (en) | Memory control circuit, its controlling method and recording medium recording control program | |
| JPS59186048A (en) | Microprogram control system | |
| JPS59114622A (en) | Initial microprogram loading system | |
| JPH03204049A (en) | Memory controller | |
| JPH03134751A (en) | Dma data transfer device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A131 | Notification of reasons for refusal |
Effective date: 20040120 Free format text: JAPANESE INTERMEDIATE CODE: A131 |
|
| A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20040525 |