JPH0443430A - Read control system for scratch pad memory - Google Patents

Read control system for scratch pad memory

Info

Publication number
JPH0443430A
JPH0443430A JP15106590A JP15106590A JPH0443430A JP H0443430 A JPH0443430 A JP H0443430A JP 15106590 A JP15106590 A JP 15106590A JP 15106590 A JP15106590 A JP 15106590A JP H0443430 A JPH0443430 A JP H0443430A
Authority
JP
Japan
Prior art keywords
spm
read
register
data
bits
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP15106590A
Other languages
Japanese (ja)
Inventor
Takao Kishi
岸 高夫
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP15106590A priority Critical patent/JPH0443430A/en
Publication of JPH0443430A publication Critical patent/JPH0443430A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To suppress the deterioration of performance owing to the reduction of the bit width of SPM scratch pad memory by providing an SPM read selector setting a specified value to the specified bit position of an SPM read register as against the number of lack bits in SPM data and an SPM read control means controlling the SPM read selector with a microprogram. CONSTITUTION:The bit width of SPM 3 is 54 bits, for example, and the SPM write register 11 has the size of 54 bits. Data which is read from SPM 3 is controlled by the SPM read control means 14 using specified two bits of the microprogram stored in a control storage register (CSR) 2 at the time of passing the SPM read selector 13. Thus, the deterioration of performance owing to the reduction of the bit width of SPM can be suppressed since the content of the SPM read register 10 can be used as the input of a computing element 4 in a device where the bit width of the SPM read register 10 is larger than the bit of SPM.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はスクラッチパッドメモリ(SPM)の読出し制
御方式に関する。SPMは情報処理装置の演算処理部に
おいて、演算器を補助するためのデータを記憶する高速
メモリである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a read control method for a scratch pad memory (SPM). The SPM is a high-speed memory that stores data to assist the arithmetic unit in the arithmetic processing unit of an information processing device.

〔従来の技術〕[Conventional technology]

従来、SPMの読出し制御に関しては、SPMと同じビ
ット幅を有するSPM読出しレジスタが使用されていた
ので、特に複雑な制御は必要なく、SPMからデータを
読出し、そのままSPM読出しレジスタへ格納しておけ
ばよかった。
Conventionally, for SPM read control, an SPM read register with the same bit width as the SPM has been used, so there is no need for particularly complicated control, and data can be read from the SPM and stored as is in the SPM read register. good.

一方、SPMを構成するRkM自体も、SPM読出しレ
ジスタと同一のビット幅をもつように構成することは可
能であった。
On the other hand, the RkM itself constituting the SPM could be configured to have the same bit width as the SPM read register.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来のSPMfi出し制御方式は、SPMから
読出したデータをSPMの読出しレジスタヘそのまま格
納している。
In the conventional SPMfi output control method described above, data read from the SPM is stored as is in the read register of the SPM.

しかし、近年、RAMチップの集積度あるい祉、信頼性
の問題などから、従来のように、要求されるだけのビッ
ト幅を有するSPMを構成することができなくなった。
However, in recent years, it has become impossible to construct an SPM having the required bit width as in the past due to problems such as the degree of integration of RAM chips, their welfare, and reliability.

そこで、それに対応して、SPM読出しレジスタのビッ
ト幅も小さくしてしまうと、−度に演算処理できるビッ
ト数が小さくなってしまうので、各演算処理命令の性能
が低下することになる。
Therefore, if the bit width of the SPM read register is correspondingly reduced, the number of bits that can be processed at a time will be reduced, resulting in a decrease in the performance of each processing instruction.

また、SPM読出しレジスタのビット幅をそのままにし
て演算処理を行う直前に、従来通シの演算データのビッ
ト幅にしようとすると、本来行うべき演算処理の#丘か
に%SPM読出しデータの拡張処理またはSPM[出し
データと他のデータとの接合処理が必要となり、結局、
演算処理命令の性能低下を招くという問題点がある。
In addition, if you try to change the bit width of the conventional calculation data to the bit width of the conventional calculation data immediately before performing calculation processing while leaving the bit width of the SPM read register as it is, the expansion processing of the SPM read data Or SPM [it requires processing to join the output data with other data, and in the end,
There is a problem in that the performance of arithmetic processing instructions is degraded.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のSPM読出し制御方式は、マイクロプログラム
によって動作が制御され、書変え可能なメモリから構成
されるスクラッチパッドメモリと、該スクラッチパッド
メモリのビット幅を超えるビット幅を有するSPM読出
しレジスタと、前記スクラッチパッドメモリから前記S
PM読出しレジスタヘデータを読出す際にスクラッチバ
、トメモリから読出されたデータの不足のビット数に対
し、前記SPM読出しレジスタの特定のビット位置に、
所定の値を設定するSPM読出しセレクタと、 該SPM読出しセレクタを前記マイクロプログラムで制
御するSPMリード制御手段とを有することを特徴とす
る。
The SPM read control method of the present invention includes: a scratch pad memory whose operation is controlled by a microprogram and is composed of a rewritable memory; an SPM read register having a bit width exceeding the bit width of the scratch pad memory; The above S from scratchpad memory
When reading data to the PM read register, a scratch bar is added to a specific bit position of the SPM read register for the number of missing bits of data read from the memory.
It is characterized by comprising: an SPM read selector for setting a predetermined value; and SPM read control means for controlling the SPM read selector by the microprogram.

〔実施例〕〔Example〕

次に、本発明について図面を参鳴して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の第1の実施例を表す図であり、情報処
理装置の演算処理部を構成する。
FIG. 1 is a diagram showing a first embodiment of the present invention, which constitutes an arithmetic processing section of an information processing device.

本演算処理部は、コントロールストア(C8)■に格納
されコントa−ルストアレジスタ(C8B)2に読出さ
れたマイクロプログラムによりて制御される。ただし、
SPM3近辺以外のマイクロプログラム制御部について
は、図面の繁雑化を回避するため省略しである。
This arithmetic processing section is controlled by a microprogram stored in the control store (C8) 2 and read out to the control store register (C8B) 2. however,
Microprogram control units other than those around SPM3 are omitted to avoid complicating the drawing.

さて、本演算処理部は72ビツトの大きさのデータが演
算器4によって演算処理される。もちろん、演算器4の
入力レジスタ5.出力レジスタ6゜入力セレクタ7と8
.出力セレクタ9およびSPM読出しレジスタ10も7
2ビツトの大きさをもっている。一方、SPM3のビッ
ト幅は54ビツトであり、SPM書込みレジスタ11も
54ビツトの大きざをもっている。
Now, in this arithmetic processing section, data having a size of 72 bits is processed by the arithmetic unit 4. Of course, the input register 5 of the arithmetic unit 4. Output register 6゜Input selector 7 and 8
.. Output selector 9 and SPM read register 10 are also 7
It has a size of 2 bits. On the other hand, the bit width of SPM3 is 54 bits, and the SPM write register 11 also has a size of 54 bits.

SPM3Thアクセスするアドレスは、SPMライト/
リード(W/R)アドレスレジスタ12の内容にしたが
って指定される。SPMW/Rアドレスレジスタ12は
、C8几2に格納されたマイクロプログラムによって、
ストローブおよびロードされるデータが与えられる。こ
うして決定されたSPMW/Rアドレスレジスタ12の
内容にしたがってSPM3から54ビツトのデータが読
出される。
The address to access SPM3Th is SPM write/
It is designated according to the contents of the read (W/R) address register 12. The SPMW/R address register 12 is controlled by the microprogram stored in C8 2.
A strobe and data to be loaded are provided. According to the content of the SPMW/R address register 12 thus determined, 54-bit data is read from the SPM3.

SPM3から読出されたデータはSPM読出しセレクタ
13を通過する際、C8B、2に格納されたマイクロプ
ログラムの特定の2ビツトを使用するSPM!j−ド制
御手段14により、第2図に示されるような制御が実行
される。その結果、sPMWl、出しレジスタ10から
の出方をそのまま演算器4の入力として使用できる。そ
の様子を示し、たものが第3−A図〜第3−D図である
。ここでは、代表例として第3−A図について詳しく説
明する。
When data read from SPM3 passes through SPM read selector 13, SPM! uses two specific bits of the microprogram stored in C8B,2. The control means 14 executes control as shown in FIG. As a result, the output of sPMWl from the output register 10 can be used as input to the arithmetic unit 4 as is. This situation is shown in Figures 3-A to 3-D. Here, FIG. 3-A will be described in detail as a representative example.

第3−A図において、入力データ31は、演算結果とし
て保存部分35とオール0部分36とで構成される出力
データ32を期待しているとする。
In FIG. 3-A, it is assumed that the input data 31 is expected to be output data 32 composed of a storage portion 35 and an all-0 portion 36 as a calculation result.

これに対して、SPMデータ33が用意されるものとす
る。
In contrast, it is assumed that SPM data 33 is prepared.

この場合、SPMデータ33は、出力データ32の保存
部分35に対応する部分はオールl、またオールゼロ部
分に対応する部分はオール0となっている。しかしなが
ら、SPMデータ33は本実施例では54ビツトしかな
いので、72ビツトの出力データ32におけるオールゼ
ロ部分36に対応させるには18ビ、ト不足している。
In this case, in the SPM data 33, the portion corresponding to the storage portion 35 of the output data 32 is all 1, and the portion corresponding to the all zero portion is all 0. However, since the SPM data 33 in this embodiment has only 54 bits, there is a shortage of 18 bits to correspond to the all-zero portion 36 in the 72-bit output data 32.

そこで、第2図で示されるように、C8几ビツト(n、
n+1)を(0,0)に設定することによって、SPM
データ33がSPM読出しセレクタ13を通過する際に
、不足の18ビ、トのゼロを追加して補充済SPMデー
タ34を得るようにしている。
Therefore, as shown in FIG.
By setting n+1) to (0,0), SPM
When the data 33 passes through the SPM read selector 13, the missing 18 bits and zeros are added to obtain supplemented SPM data 34.

もし、SPM読出しセレクタ13を通過する際、不足の
18ビツトのゼロを追加する機能が無ければ、演算器4
を使用して、補充済SPM読出しデータ34相当のデー
タを作成しなければならない。
If there is no function to add the missing 18 bits of zero when passing through the SPM read selector 13, the arithmetic unit 4
data equivalent to the supplemented SPM read data 34 must be created using the .

しかし、その場合には、SPM@出しセレクタ13を使
用して補充済SPM読出しデータ34f:作成する本実
施例より時間が余計にかかるというのは明らかである。
However, in that case, it is clear that it will take more time than in this embodiment in which the SPM@output selector 13 is used to create the supplemented SPM read data 34f.

第3−B図は、演算結果として保存部分38とオール1
部分39からなる出力データ37を得ることを目的とし
た場合の図である。このときは第2図で示されるように
CARピ、)(n、n+1)を(0,1)に設定しなけ
ればならない。
Figure 3-B shows the saved part 38 and all 1 as the calculation result.
FIG. 4 is a diagram for a case where the purpose is to obtain output data 37 consisting of a portion 39; In this case, as shown in FIG. 2, CAR pi, )(n, n+1) must be set to (0, 1).

第3−0図は、演算結果として保存部分41とオール0
部分42からなる出力データ40を得ることを目的とし
た場合の図である。このときは、第2図で示されるよう
にC8几ビyト(n、n−1−1)を(1,0)に設定
しなければならない。
Figure 3-0 shows the saved part 41 and all 0 as the calculation result.
FIG. 4 is a diagram for a case where the purpose is to obtain output data 40 consisting of a portion 42; In this case, the C8 bit (n, n-1-1) must be set to (1, 0) as shown in FIG.

また、第3−D図は、演算結果として保存部分44とオ
ール1部分45からなる出力データ43を得ることを目
的とした場合の図である。このときは、第2図で示され
るようにC8Rビy ) (n。
Moreover, FIG. 3-D is a diagram for a case where the purpose is to obtain output data 43 consisting of a storage part 44 and an all-1 part 45 as a calculation result. At this time, as shown in FIG. 2, C8Rby ) (n.

n+1 )を(1、l)に設定しなけれはならない。n+1) must be set to (1, l).

第4図は本発明の第2の実施例を表す図である。FIG. 4 is a diagram representing a second embodiment of the present invention.

本実施例においては、SPM読出しセレクタ13の出力
制御(第2図)を行うのに、SPMW/Rアドレスレジ
スタ12に格納されたアドレスビットのうちの特定の2
ビ、トを使用している点が第1の実施例と異なる。
In this embodiment, in order to control the output of the SPM read selector 13 (FIG. 2), specific two of the address bits stored in the SPMW/R address register 12 are used.
This embodiment differs from the first embodiment in that bits and bits are used.

また、第5図は本発明の第3の実施例を表す図である。Further, FIG. 5 is a diagram showing a third embodiment of the present invention.

本実施例においては、SPM読出しセレクタ13の出力
制御(第2図)を行うのに、SPM3から読出されたデ
ータのうちの特定の2ビツトを使用している点が第1の
実施例および第2の実施例と異なる。
This embodiment is different from the first embodiment and the second embodiment in that two specific bits of the data read from the SPM 3 are used to control the output of the SPM read selector 13 (FIG. 2). This is different from the second embodiment.

以上のように、本発明では、SPM読出しセレクタ13
で追加した18ビツトのビットパターンは、第2図に示
されるように4通りであるが、SPM読出しセレクタ1
3の段数を増加させることにより、より多くのビットパ
ターンをSPMデータ33に追加することも可能である
。また、82Mデータ13の内部に挿入することも可能
である。
As described above, in the present invention, the SPM read selector 13
There are four 18-bit bit patterns added in SPM read selector 1 as shown in Figure 2.
It is also possible to add more bit patterns to the SPM data 33 by increasing the number of stages of 3. It is also possible to insert it inside the 82M data 13.

したがって、本発明によってSPMのど、ト幅より、S
PM読出しレジスタ10のビット幅の方が大きい装置に
おいても、SPM読出しレジスタlOの内容をそのまま
演算器4の入力として使用できるので、SPMのビット
幅が従来より小さくなったことによる性能低下を小さく
抑えることができるという効果がある。
Therefore, according to the present invention, the SPM throat width is
Even in devices where the bit width of the PM read register 10 is larger, the contents of the SPM read register IO can be used as input to the arithmetic unit 4 as is, so performance degradation due to the SPM bit width being smaller than before can be kept to a minimum. It has the effect of being able to

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は、SPMからSPM読出し
レジスタへデータを読出す際、SPMデータの不足のビ
ット数に対し、SPM読出しレジスタの特定のと、上位
置に特定の値を設定するSPM読出しセレクタと、SP
M読出しセレクタをマイクロプログラムで制御するSP
Mリード制御手段とを有することにより、SPMのビッ
ト幅よりSPM読出しレジスタのビット幅および演算器
の入力データのビット幅の方が大きい装置においても、
SPM読出しレジスタの内容をそのまま演算器の入力と
して使用できるので、SPMのビット幅が従来より小さ
くなったことによる性能低下を小さく抑えることができ
るという効果がある。
As explained above, the present invention provides an SPM read that, when reading data from the SPM to the SPM read register, specifies the SPM read register and sets a specific value in the upper position for the missing number of bits in the SPM data. selector and SP
SP that controls the M read selector with a microprogram
By having the M read control means, even in a device where the bit width of the SPM read register and the bit width of the input data of the arithmetic unit are larger than the bit width of the SPM,
Since the contents of the SPM read register can be used as is as input to the arithmetic unit, there is an effect that performance deterioration due to the SPM bit width becoming smaller than before can be suppressed to a small level.

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

第1図は本発明の第1実施例を表す図、第2図はSPM
読出しセレクタ13を制御するSPM制御手段14の制
御結果を示す図、第3−A〜第3−D図は本発明で実現
される具体例を示す図、第4図は本発明の第2の実施例
を表す図、第5図は本発明の第3の実施例を表す図であ
る。 l・・・・・・コントロールストア(C8)、2・・・
・・・コントロールストアレジスタ(aS几)、3゛°
°°°°スクラツチパツドメモリ(SPM)、4・・・
・・・演算器、5・・・・−・入力レジスタ、6・・・
・・・出力レジスタ、7゜8・・・・・・入力セレクタ
、9・・・・・・出力セレクタ、10・・・・・・SP
M読出しレジスタ、11・・・・・・SPM書込みレジ
スタ、12・−・・・・SPMW/Rアドレスレジスタ
、13・・−・・・SPM読出しセレクタ、14,15
゜16・・・・・・SPMリード制御手段。 代理人 弁理士  内 原   晋 第2図 E■==コ 1   □ ロ■=ヨ=■コ 0ゴ====コ 匡三=■コ ↓ E工=コ■コ ↓ 口====7Z ↓
FIG. 1 is a diagram showing the first embodiment of the present invention, and FIG. 2 is a diagram showing the SPM.
A diagram showing the control results of the SPM control means 14 that controls the read selector 13, FIGS. 3-A to 3-D are diagrams showing specific examples realized by the present invention, and FIG. FIG. 5 is a diagram showing a third embodiment of the present invention. l...Control store (C8), 2...
...Control store register (aS 几), 3゛°
°°°° Scratch pad memory (SPM), 4...
...Arithmetic unit, 5...--Input register, 6...
...Output register, 7゜8...Input selector, 9...Output selector, 10...SP
M read register, 11... SPM write register, 12... SPMW/R address register, 13... SPM read selector, 14, 15
゜16...SPM read control means. Agent Patent Attorney Susumu Uchihara Diagram 2 E■==Co1 □ Ro■=Yo=■Co0Go====Kozo=■Co↓ E Engineering=Co■Co↓ Mouth====7Z ↓

Claims (1)

【特許請求の範囲】 マイクロプログラムによって動作が制御され、書変え可
能なメモリから構成されるスクラッチパッドメモリと、 該スクラッチパッドメモリのビット幅を超えるビット幅
を有するSPM読出しレジスタと、前記スクラッチパッ
ドメモリから前記SPM読出しレジスタへデータを読出
す際にスクラッチパッドメモリから読出されたデータの
不足のビット数に対し、前記SPM読出しレジスタの特
定のビット位置に、所定の値を設定するSPM読出しセ
レクタと、 該SPM読出しセレクタを前記マイクロプログラムで制
御するSPMリード制御手段とを有することを特徴とす
るスクラッチパッドメモリ読出し制御方式。
[Scope of Claims] A scratchpad memory configured of a rewritable memory whose operation is controlled by a microprogram, an SPM read register having a bit width exceeding the bit width of the scratchpad memory, and the scratchpad memory. an SPM read selector that sets a predetermined value to a specific bit position of the SPM read register in response to the number of missing bits of data read from the scratch pad memory when reading data from the scratchpad memory to the SPM read register; A scratch pad memory read control system comprising: SPM read control means for controlling the SPM read selector using the microprogram.
JP15106590A 1990-06-08 1990-06-08 Read control system for scratch pad memory Pending JPH0443430A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15106590A JPH0443430A (en) 1990-06-08 1990-06-08 Read control system for scratch pad memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15106590A JPH0443430A (en) 1990-06-08 1990-06-08 Read control system for scratch pad memory

Publications (1)

Publication Number Publication Date
JPH0443430A true JPH0443430A (en) 1992-02-13

Family

ID=15510537

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15106590A Pending JPH0443430A (en) 1990-06-08 1990-06-08 Read control system for scratch pad memory

Country Status (1)

Country Link
JP (1) JPH0443430A (en)

Similar Documents

Publication Publication Date Title
JPH034936B2 (en)
JPH0443430A (en) Read control system for scratch pad memory
EP0334131A2 (en) Data processor performing operation on data having length shorter than one-word length
KR100216045B1 (en) Bit arithmetic processing method and apparatus of programmable controller
JPS6148174B2 (en)
JPH0721760B2 (en) Digital arithmetic circuit
JP2969825B2 (en) Dual port memory
JPS5839347A (en) Processor
JP3451640B2 (en) SIMD computer
JPS61110247A (en) Storage device
JPH0354632A (en) Arithmetic instruction processor
JPS595356A (en) General-purpose register controlling system
JPS6012657B2 (en) Storage device
JPS63276126A (en) Instruction decoding circuit
JPS5875250A (en) Digital information processor
JPS62175881A (en) Processing method for image data
JPH04172524A (en) Arithmetic device
JPS6180331A (en) Variable length data processor
JPS6333175B2 (en)
JPS61256439A (en) data processing equipment
JPH0823849B2 (en) Memory read register controller
JPH04188323A (en) Microinstruction reading out system
JPS6388657A (en) Memory device
JPH01295568A (en) Picture element synthesis processing unit
JPS6310453B2 (en)