JPH03164849A - Microprocessor and microprocessor system - Google Patents

Microprocessor and microprocessor system

Info

Publication number
JPH03164849A
JPH03164849A JP1304230A JP30423089A JPH03164849A JP H03164849 A JPH03164849 A JP H03164849A JP 1304230 A JP1304230 A JP 1304230A JP 30423089 A JP30423089 A JP 30423089A JP H03164849 A JPH03164849 A JP H03164849A
Authority
JP
Japan
Prior art keywords
data
microprocessor
data bus
output
input
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
JP1304230A
Other languages
Japanese (ja)
Inventor
Katsuyuki Kaneko
克幸 金子
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP1304230A priority Critical patent/JPH03164849A/en
Publication of JPH03164849A publication Critical patent/JPH03164849A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Bus Control (AREA)
  • Microcomputers (AREA)
  • Memory System (AREA)
  • Executing Machine-Instructions (AREA)
  • Image Processing (AREA)

Abstract

PURPOSE:To perform the field processing of data in a memory at a high speed by providing a data input/output instruction including a bus control field which arbitrary controls activation of each of plural pairs of data bus control lines. CONSTITUTION:A microprocessor 20 is provided with plural pairs of data bus control lines 22 to 26, and the input/output instruction to simultaneously or selectively operate these control lines is provided. Consequently, the input/output operation is selectively performed in memories 27 to 30 connected to a part or all of a data bus. That is, data access is performed only for fields of words related to the processing of the microprocessor 20 (namely, fields of the data bus) and is not performed for the other fields. Thus, substituting operation of bit fields is possible by only the input/output instruction, and the power consumption is reduced because the number of memories activated by the input/ output operation is reduced.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、各種の電子機器に内蔵されるマイクロプロセ
ッサおよびマイクロプロセッサシステムに関し、特に画
像処理に適したバス構成を持つマイクロプロセッサおよ
びマイクロプロセッサシステムに関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to microprocessors and microprocessor systems built into various electronic devices, and particularly to microprocessors and microprocessor systems having a bus configuration suitable for image processing. It is.

従来の技術 第7図に従来のマイクロプロセッサおよびマイクロプロ
セッサシステムの構成を示す。第7図において、1は3
2ビツトのデータバス2を有するマイクロプロセッサ、
3〜6は8ビツトのデータ幅を持つメモリであり、それ
ぞれのデータ線はデータバス2のビットO〜7.8〜1
5.16〜23.24〜31に接続されている。マイク
ロプロセッサ1のアドレスバス7の一部はアドレスデコ
ーダ8に接続されており、その出力はメモリ3〜6のチ
ップ選択信号線C3に供給されている。
Prior Art FIG. 7 shows the configuration of a conventional microprocessor and microprocessor system. In Figure 7, 1 is 3
a microprocessor having a 2-bit data bus 2;
3 to 6 are memories with a data width of 8 bits, and each data line corresponds to bits O to 7.8 to 1 of data bus 2.
5.16-23. Connected to 24-31. A part of the address bus 7 of the microprocessor 1 is connected to an address decoder 8, the output of which is supplied to the chip selection signal line C3 of the memories 3-6.

マイクロプロセッサ1は、データバス2の入出力制御線
としてリード/ライト制御線(以下、WR線と略す。)
9および出力イネーブル線(以下、OE線と略す。)1
0を有しており、これらのデータバス制御線9,10は
全てのメモリ3〜6に共通に接続されている。
The microprocessor 1 uses a read/write control line (hereinafter abbreviated as WR line) as an input/output control line for the data bus 2.
9 and output enable line (hereinafter abbreviated as OE line) 1
0, and these data bus control lines 9, 10 are commonly connected to all memories 3-6.

このような構成においては、マイクロプロセッサ1から
のデータの入出力は32ビツトを単位として行われるた
め、32ビツトを1ワードとしてメモリ3〜6に格納さ
れた1ワード内の定められたフィールドの置換演算を行
なう場合には、メモリ3〜6からデータをロードした後
、フィールドの切り出し、合成等を論理演算によって行
なう必要がある。
In such a configuration, input/output of data from the microprocessor 1 is performed in units of 32 bits, so 32 bits are used as one word to replace a specified field within one word stored in the memories 3 to 6. When performing calculations, it is necessary to load data from the memories 3 to 6 and then perform field extraction, combination, etc. by logical calculations.

このような演算は、特に画像処理に多用されている。例
えば第8図<a>に示すように、17−ド中に16ビツ
トのピクセルデータが2個格納されている場合の一方の
ピクセルデータに関する演算、または第8図(b)に示
すように、R,G。
Such calculations are often used especially in image processing. For example, as shown in FIG. 8<a>, when two pieces of 16-bit pixel data are stored in a 17-code, an operation on one of the pixel data, or as shown in FIG. 8(b), R,G.

Bの3つの色フィールドからなるピクセルデータに対し
てシヱーディング(陰影づけ)におけるカラー輝度補間
演算等がある。第9図(b)は、第7図に示すようなマ
イクロプロセッサシステムにおいて、n番目のデータP
(n)の下位16ビツトのピクセルデータをm番目のデ
ータP(m)の下位ピクセルデータに書き込む場合のプ
ログラムを示している。このプログラムによれば、2つ
のワードP(n)、P(m)をロードした後、それぞれ
の必要なピクセルデータを論理積演算で切り出し、その
後論理和演算で2つのピクセルデータを合成し、メモリ
ヘスドアする。このように、所望の処理の終了には、3
回の入出力命令を含む6命令の実行が必要である。
There are color brightness interpolation calculations for shading (shading) for pixel data consisting of three B color fields. FIG. 9(b) shows the nth data P in the microprocessor system as shown in FIG.
This shows a program for writing the lower 16 bits of pixel data of (n) into the lower pixel data of m-th data P(m). According to this program, after loading two words P(n) and P(m), each necessary pixel data is extracted by AND operation, and then the two pixel data are combined by OR operation, and the memory address is do. In this way, the end of the desired process requires 3
It is necessary to execute 6 instructions including 1 input/output instruction.

発明が解決しようとする課題 このような従来のマイクロプロセッサシステムにおいて
は、その入出力命令の実行においてデータバスが斉一的
に動作するため、ワードの一定のフィールドに対して演
算を行なう場合にはこのワード全てを一部ロードし、マ
スク演算や論理演算によってフィールドの合成をする必
要があった。このためデータバスに接続され指定された
アドレスに該当するメモリ全てに入出力動作を行なわせ
るため、システムの消費電力が多く、またメモリに対す
る入出力動作の回数や処理に必要な命令数も多く処理時
間が長くかかっていた。
Problems to be Solved by the Invention In such conventional microprocessor systems, the data bus operates simultaneously during the execution of input/output instructions. It was necessary to partially load all the words and combine the fields using mask operations and logical operations. For this reason, input/output operations are performed on all memories connected to the data bus that correspond to specified addresses, which consumes a lot of power in the system, and also requires a large number of input/output operations to the memory and a large number of instructions required for processing. It was taking a long time.

本発明は、このような問題を解決するものであり、簡易
な構成で、上記したようなフィールド操作処理を高速化
させ、消費電力を減少させることのできるマイクロプロ
セッサおよびマイクロプロセッサシステムを提供するこ
とを目的とする。
The present invention solves these problems, and provides a microprocessor and a microprocessor system that can speed up field operation processing as described above and reduce power consumption with a simple configuration. With the goal.

課題を解決するための手段 本発明は、上記問題点を解決するために、マイクロプロ
セッサに複数組のデータバス制御線を設け、これらの制
御線を一斉にまたは選択的に動作させる入出力命令を備
えている。また、複数組の制御線を全てまたは選択的に
動作させる命令の代わりに、他の手段例えば即値命令ま
たは入出力命令等によって設定されるレジスタ、または
演算命令の結果設定されるプロセッサ状態レジスタの特
定ビットを入力とする条件セレクタの出力によって複数
の制御線の全てまたは一部を動作させる入出力命令を備
えている。さらに上記したような手段を有するマイクロ
プロセッサとこのマイクロプロセッサのバスに接続され
た複数のメモリより構成されるマイクロプロセッサシス
テムにおいて、複数のメモリの制御線をマイクロプロセ
ッサの複数組のデータバス制御線の2組以上のいずれか
に接続する。
Means for Solving the Problems In order to solve the above problems, the present invention provides a microprocessor with a plurality of sets of data bus control lines, and provides input/output instructions to operate these control lines all at once or selectively. We are prepared. In addition, instead of an instruction that operates all or selectively a plurality of sets of control lines, it is also possible to specify a register that is set by other means, such as an immediate value instruction or an input/output instruction, or a processor status register that is set as a result of an arithmetic instruction. It is provided with an input/output instruction that operates all or part of a plurality of control lines according to the output of a condition selector that receives a bit as an input. Furthermore, in a microprocessor system consisting of a microprocessor having the means described above and a plurality of memories connected to the bus of this microprocessor, the control lines of the plurality of memories are connected to the plurality of sets of data bus control lines of the microprocessor. Connect to one of two or more pairs.

作用 本発明は、上記した構成により、データバスの一部また
は全てに接続されたメモリに対して選択的に入出力動作
を行なわせることができる。すなわち、マイクロプロセ
ッサが行なう処理に関係したワードのフィールド(すな
わちデータバスのフィールド)のみに対してデータアク
セスが行われ、他のフィールドに対してデータアクセス
が行われないため、入出力命令のみによってビットフィ
ールドの置換演算が可能になり、また入出力動作で活性
化されるメモリの数が減少するため、マイクロコンピュ
ータシステム全体の消費電力を減少させることができる
。また、複数のデータバス制御線の選択性をマイクロプ
ロセッサの命令により直接設定されるレジスタによって
制御可能とすることによって、上記したような入出力動
作を行なうデータフィールドを間接的に指定することが
できる。さらに複数のデータバス制御線の選択性をマイ
クロプロセッサの状態コードレジスタによ制御可能とす
ることによって、入出力動作を行なうデータフィールド
を条件付きで指定することができる。
According to the present invention, with the above-described configuration, it is possible to selectively perform input/output operations on memories connected to part or all of the data bus. In other words, data access is performed only to the field of the word (that is, the field of the data bus) related to the processing performed by the microprocessor, and no data access is performed to other fields. Since field permutation operations become possible and the number of memories activated during input/output operations is reduced, the power consumption of the entire microcomputer system can be reduced. Furthermore, by making it possible to control the selectivity of multiple data bus control lines using registers that are directly set by microprocessor instructions, it is possible to indirectly specify the data field that performs the above-mentioned input/output operations. . Furthermore, by allowing the selectivity of the plurality of data bus control lines to be controlled by the status code register of the microprocessor, it is possible to conditionally specify the data field on which input/output operations are to be performed.

実施例 第1図は本発明の第1の実施例におけるマイクロプロセ
ッサと、このマイクロプロセッサを用いたシステムの概
略ブロック図である。第1図において、20はマイクロ
プロセッサであり、32ビツトのデータバス21、アド
レスバス22.4組のデータバス制御線23〜26を備
えている。
Embodiment FIG. 1 is a schematic block diagram of a microprocessor and a system using this microprocessor in a first embodiment of the present invention. In FIG. 1, a microprocessor 20 is provided with a 32-bit data bus 21, an address bus 22, and four sets of data bus control lines 23-26.

データバス21のビットO〜7.8〜15.16〜23
.24〜31は、それぞれ8ビツトの入出力幅を持つメ
モリ27〜30に接続されている。
Bits O~7.8~15.16~23 of data bus 21
.. 24-31 are connected to memories 27-30 each having an input/output width of 8 bits.

アドレスバス22の一部はアドレスデコーダ31に人力
されており、この出力の一部32はメモリ27〜30の
チップ選択信号線C3に供給されており、他の出力33
はデータバス21に接続される他の装置へ供給されてい
る。アドレスバス22の残りはメモリ27〜30のアド
レス入力信号となっている。データバス制御線23はメ
モリ27に供給され、同様にデータバス制御線24〜2
6はそれぞれメモリ28〜30に供給されている。
A part of the address bus 22 is manually inputted to an address decoder 31, a part 32 of this output is supplied to the chip selection signal line C3 of the memories 27 to 30, and the other output 33
is supplied to other devices connected to the data bus 21. The remainder of the address bus 22 serves as address input signals for the memories 27-30. Data bus control line 23 is supplied to memory 27, and similarly data bus control lines 24-2
6 are supplied to memories 28-30, respectively.

第2図は本実施例におけるバスアクセスの形態を示して
いる。第2図(a)に示すように、メモリ27〜30に
は、データバス21のビットフィールドO〜7.8〜1
5.16〜23.24〜31がそれぞれ割り当てられて
いる。マイクロプロセッサ20がデータバス制御線23
〜26を同時にコントロールしてバスアクセスを行なう
と、メモリ27〜30からの32ビツトデータがアクセ
スされる。第2図(b)に示すように、データバス制御
線23のみを用いてバスアクセスを行なうと、メモリ2
7すなわちビットフィールドO〜7がアクセスされる。
FIG. 2 shows the form of bus access in this embodiment. As shown in FIG. 2(a), bit fields O-7.8-1 of the data bus 21 are stored in the memories 27-30.
5.16-23.24-31 are assigned respectively. Microprocessor 20 connects data bus control line 23
When memory devices 27 to 26 are simultaneously controlled and bus accessed, 32-bit data from memories 27 to 30 is accessed. As shown in FIG. 2(b), when bus access is performed using only the data bus control line 23, the memory 2
7, that is, bit fields O to 7 are accessed.

また第2図(C)に示すように、データバス制御線24
および26を用いてバスアクセスを行なうと、メモリ2
8および30すなわちビットフィールド8〜15および
24〜31がアクセスされる。さらに第2図(d)に示
すように、全てのデータバス制御線23〜26を用いて
バスアクセスを行なうと、全てのメモリ27〜30のビ
ットフィールドO〜7.8〜15.16〜23.24〜
31がアクセスされる。
In addition, as shown in FIG. 2(C), the data bus control line 24
When bus access is performed using memory 2 and 26, memory 2
8 and 30 or bit fields 8-15 and 24-31 are accessed. Further, as shown in FIG. 2(d), when bus access is performed using all data bus control lines 23 to 26, bit fields O to 7.8 to 15, 16 to 23 of all memories 27 to 30 are .24~
31 is accessed.

第3図は第1図におけるマイクロプロセッサ20の構成
の第1の実施例を示す概略ブロック図である。第3図に
おいて、40はマイクロプロセッサ、41はデータバス
、42はアドレスバスであり、43〜46は第1、第2
、第3、第4の4組のデータバス制御線である。マイク
ロプロセッサ40は、第4図に示すような形式の入出力
命令を待っている。すなわち、第4図において、50は
OPコード、51はバス制御フィールド、52はオペラ
ンドであり、バス制御フィールド51は、データバス制
御線43〜46に対応したバス制御活性化ビット53〜
56により構成されている。
FIG. 3 is a schematic block diagram showing a first embodiment of the configuration of the microprocessor 20 in FIG. In FIG. 3, 40 is a microprocessor, 41 is a data bus, 42 is an address bus, and 43 to 46 are first and second busses.
, third, and fourth data bus control lines. Microprocessor 40 is awaiting input/output instructions of the type shown in FIG. That is, in FIG. 4, 50 is an OP code, 51 is a bus control field, and 52 is an operand.
56.

このバス制御フィールド51に任意の値を設定すること
によって、対応するバス制御信号だけが動作する入出力
命令を実行することができる。
By setting an arbitrary value in this bus control field 51, it is possible to execute an input/output command in which only the corresponding bus control signal operates.

マイクロプロセッサ40がフェッチした命令は命令レジ
スタ47に一部蓄えられ、命令デコーダ48によって解
読される。命令デコーダ48からバスインターフェース
回路(ハス制御回路)49には、バス制御フィールド5
1に対してバス制御線43〜46をそれぞれ活性化させ
る制御信号線等が供給されている。バスインターフェー
ス回路49は、これらの制御1信号線のバス選択信号に
よって4組のデータバス制御線43〜46における制御
信号の生成と、アドレスバスおよびデータバスの入出力
制御を行なう。
A portion of the instructions fetched by the microprocessor 40 are stored in an instruction register 47 and decoded by an instruction decoder 48. A bus control field 5 is sent from the instruction decoder 48 to the bus interface circuit (has control circuit) 49.
Control signal lines, etc. for activating bus control lines 43 to 46, respectively, are supplied to each bus control line 1. The bus interface circuit 49 generates control signals on the four sets of data bus control lines 43 to 46 and controls input/output of the address bus and data bus based on the bus selection signals of these control 1 signal lines.

次に第3図に示すようなマイクロプロセッサおよび第1
図に示すようなマイクロプロセッサシステムにおけるデ
ータ処理の例を第9図(a)を用いて説明する。前述し
たように従来技術においては32ビツトワード中に16
ビツトのピクセルデータが2個格納されているデータに
おける32ビツトワ一ド間のピクセルデータの置換は、
第9図(b)に示すように6命令の実行が必要である。
Next, a microprocessor as shown in FIG.
An example of data processing in a microprocessor system as shown in the figure will be explained using FIG. 9(a). As mentioned above, in the prior art, there are 16 bits in a 32 bit word.
The replacement of pixel data between 32-bit words in data in which two bits of pixel data are stored is as follows:
As shown in FIG. 9(b), six instructions need to be executed.

しかしながら本実施例におけるマイクロプロセッサシス
テムにおいては、第9図(a)に示すように、n番目の
データP(n)の下位16ビツトのピクセルデータをプ
ロセッサ内のレジスタにロードした後、第1および第2
のデータバス制御線43.44を活性化するストア命令
ST1を用いてm番目のデータP(m)の下位16ビツ
トのピクセルデータに書き込むことによってピクセルデ
ータの置換が可能であり、従来6命令が必要であった処
理が2命令で処理可能になる。ここで第9図(a)のS
T1のオペランド1100は、第4図に示すバス制御フ
ィールドの値を2進表示で表したものである。さらにS
TI命令実行時には、第1図におけるメモリ29.30
は動作していないため、システム全体の消費電力も少な
くて済む利点がある。
However, in the microprocessor system of this embodiment, as shown in FIG. 9(a), after loading the lower 16 bits of pixel data of the n-th data P(n) into the Second
Pixel data can be replaced by writing to the lower 16 bits of pixel data of the m-th data P(m) using a store command ST1 that activates the data bus control lines 43 and 44 of the data bus control lines 43 and 44. The necessary processing can now be performed with two instructions. Here, S in Fig. 9(a)
Operand 1100 of T1 is a binary representation of the value of the bus control field shown in FIG. Furthermore, S
When executing the TI instruction, the memory 29.30 in Figure 1
Since the system is not operating, the power consumption of the entire system is also low.

第5図は第1図におけるマイクロプロセッサ20の構成
の第2の実施例を示す概略ブロック図である。第5図に
おいて、60〜69は第3図における40〜49と同様
であり、60はマイクロプロセッサ、61はデータバス
、62はアドレスバス、63〜66は4組のデータバス
制御線、67は命令レジスタ、68は命令デコーダ、6
9はバスインターフェース回路である。70はマイクロ
プロセッサ60の内部バス、71は内部バス70に接続
され、マイクロプロセッサ60の入出力命令、即値命令
またはレジスタ間データ転送命令によってアクセスが可
能なレジスタである。命令デコーダ68から出力されす
るアクセス命令制御線72とレジスタ71からの出力線
73は条件セレクタ74に接続され、これらの信号によ
って、4組のデータバス制御線63〜66のいずれかま
たは全てを動作させるかを指示するバス制御フィールド
信号75がバスインターフェース回路69に対して発行
される。
FIG. 5 is a schematic block diagram showing a second embodiment of the configuration of the microprocessor 20 in FIG. 5, 60 to 69 are the same as 40 to 49 in FIG. 3, 60 is a microprocessor, 61 is a data bus, 62 is an address bus, 63 to 66 are four sets of data bus control lines, and 67 is a instruction register, 68, instruction decoder, 6
9 is a bus interface circuit. 70 is an internal bus of the microprocessor 60, and 71 is a register connected to the internal bus 70 and accessible by an input/output instruction, an immediate value instruction, or an inter-register data transfer instruction of the microprocessor 60. An access command control line 72 output from the command decoder 68 and an output line 73 from the register 71 are connected to a condition selector 74, and depending on these signals, any or all of the four sets of data bus control lines 63 to 66 are operated. A bus control field signal 75 is issued to the bus interface circuit 69 to instruct whether to perform the bus control.

第6図は第1図におけるマイクロプロセッサ20の構成
の第3の実施例を示す概略ブロック図である。第6図に
おいて、80〜89は第3図における40〜49と同様
であり、80はマイクロプロセッサ、81はデータバス
、82はアドレスバス、83〜86は4組のデータバス
制御線、87は命令レジスタ、88は命令デコーダ、8
9はバスインターフェース回路である。90は算術論理
演算器、91はこの演算器等によって設定される状態コ
ードレジスタである。命令デコーダ88から出力される
アクセス命令制御線92と状態レジスタ91からの出力
線93は条件セレクタ94に接続され、これらの信号に
よって第5図における説明と同様にバス制御フィールド
信号95がバスインターフェース回路89に対して発行
される。
FIG. 6 is a schematic block diagram showing a third embodiment of the configuration of the microprocessor 20 in FIG. 1. In FIG. 6, 80 to 89 are the same as 40 to 49 in FIG. 3, 80 is a microprocessor, 81 is a data bus, 82 is an address bus, 83 to 86 are four sets of data bus control lines, and 87 is a Instruction register, 88, instruction decoder, 8
9 is a bus interface circuit. 90 is an arithmetic logic unit, and 91 is a status code register set by this unit. An access command control line 92 output from the command decoder 88 and an output line 93 from the status register 91 are connected to a condition selector 94, and these signals cause a bus control field signal 95 to be output to the bus interface circuit in the same manner as described in FIG. Issued for 89.

本実施例におけるマイクロプロセッサの利点は、演算結
果等のプロセッサ状態に基づいた条件付きアクセスを行
なえる点にある。このような機能は、ビットフィールド
の条件付き置換に便利である。すなわち、上述した第8
図(a)に示すようなピクセルデータからなる画像デー
タに対してZバッファ法による描画を行なう場合、それ
ぞれに対するピクセルの深度パラメータを比較し、比較
結果に基づいて32ビツトワードの置換を行なうか、ま
たは上位もしくは下位ピクセルを置換するかを上述した
条件付きアクセスによって行なうことができる。また、
第8図(b)に示すようなデータに対してシェーディン
グによる輝度補間を行なう場合も補間演算の結果をアク
セス条件として、書き換えるフィールドを任意に選択す
ることができる。
The advantage of the microprocessor in this embodiment is that conditional access can be performed based on the processor state such as calculation results. Such functionality is useful for conditional substitution of bit fields. That is, the eighth
When drawing image data consisting of pixel data as shown in Figure (a) using the Z-buffer method, either the pixel depth parameters for each are compared and 32-bit word replacement is performed based on the comparison results, or Whether the upper or lower pixel is replaced can be determined by the conditional access described above. Also,
Even when performing brightness interpolation by shading on data as shown in FIG. 8(b), fields to be rewritten can be arbitrarily selected using the result of the interpolation calculation as an access condition.

本発明の上記各実施例においては、4組のバス制御信号
を持つマイクロプロセッサとこのマイクロプロセッサを
用いた71イク口プロセッサシステムを例示したが、4
組以外のデータバス制御線を持つ構成としてもよい。例
えば、第8図(b)に示すようなデータ間で一定のフィ
ールドを置換する応用に対しては、3ないし4組のデー
タバス制御線を持つ構成が最適である。また、本発明の
上記各実施例においては、複数組のデータバス制御線の
動作が、それぞれ第1の実施例においては命令によって
、第2の実施例においてはプログラムによりアクセス可
能なレジスタによって、第3の実施例においてはマイク
ロプロセッサの状態レジスタによって制御されるとした
が、これらの作用を同時に、あるいは組み合わせて制御
するように構成してもよい。
In each of the above embodiments of the present invention, a microprocessor having four sets of bus control signals and a 71-channel processor system using this microprocessor were exemplified.
It may also be configured to have data bus control lines other than the set. For example, for an application where a certain field is replaced between data as shown in FIG. 8(b), a configuration having three or four sets of data bus control lines is optimal. Further, in each of the above embodiments of the present invention, the operations of the plurality of sets of data bus control lines are controlled by instructions in the first embodiment and by program-accessible registers in the second embodiment. In the third embodiment, the control is performed by the status register of the microprocessor, but these functions may be controlled simultaneously or in combination.

発明の詳細 な説明したように、本発明のマイクロプロセッサおよび
マイクロプロセッサシステムは、複数組のデータバス制
御線を備え、データバスに接続された複数のメモリの制
御線はマイクロプロセッサの複数組のデータバス制御線
のいずれかに接続されており、マイクロプロセッサはこ
れら複数組のデータバス制御線を一斉にまたは選択的に
動作させる。このため、データバスの一部のフィールド
のみを用いて選択的にアクセスすることができ、メモリ
中のデータに対するフィールド処理(フィールド置換、
フィールド書き込みなど)を高速に行なうことができる
。また、選択するメモリの数を減少させることができる
ため、消費電力も減少させることができる効果がある。
As described in the detailed description of the invention, the microprocessor and microprocessor system of the present invention include a plurality of sets of data bus control lines, and the control lines of the plurality of memories connected to the data bus are connected to the plurality of data sets of the microprocessor. The data bus control lines are connected to any of the bus control lines, and the microprocessor operates the plurality of sets of data bus control lines simultaneously or selectively. Therefore, it is possible to selectively access only some fields of the data bus, and field processing (field replacement, field replacement,
Field writing, etc.) can be performed at high speed. Furthermore, since the number of memories to be selected can be reduced, power consumption can also be reduced.

本発明の特に優れた点は、マイクロプロセッサの扱う語
長(バイト、ワード等)の境界に関係な(、処理プログ
ラムで任意にかつ不規則に定められた1ワード中のフィ
ールドの高速処理が可能な点にある。すなわち、マイク
ロプロセッサの使用者が、その使用形態に応じてメモリ
の構成を行ない、バス制御のためのフィールドの切り分
けを行なうことによってプログラム上のフィールド処理
形態とマイクロプロセッサシステムの構成を一致させる
ことができ、この結果、高速処理が可能となる。
A particularly advantageous feature of the present invention is that it is possible to perform high-speed processing of fields within a word that are arbitrarily and irregularly determined by a processing program, regardless of the boundaries of word lengths (bytes, words, etc.) handled by a microprocessor. In other words, the microprocessor user configures the memory according to the usage pattern and separates the fields for bus control, thereby changing the field processing format on the program and the microprocessor system configuration. As a result, high-speed processing becomes possible.

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

第1図は本発明の第1の実施例におけるマイクロプロセ
ッサシステムの概略ブロック図、第2図は同実施例のマ
イクロプロセッサにおけるバスアクセスの形態を示す図
、第3図は本発明の第1の実施例におけるマイクロプロ
セッサの部分的な構成を示す概略ブロック図、第4図は
同マイクロプロセッサにおける入出力命令のフォーマッ
トを示す図、第5図は本発明の第2の実施例におけるマ
イクロプロセッサの部分的な構成を示す概略ブロック図
、第6図は本発明の第3の実施例におけるマイクロプロ
セッサの部分的な構成を示す概略ブロック図、第7図は
従来のマイクロプロセッサシステムの概略ブロック図、
第8図はピクセルデータの内容を例示する図、第9図は
本発明と従来例とにおける演算処理のためのプログラム
を例示する図である。 20.40.60.80・・・マイクロプロセッサ、2
1.41.61.81・・・データバス、22.42.
62.82・・・アドレスバス、23〜26.43〜4
6.63〜66.83〜86・・・データバス制御線、
27〜30・・・メモリ、47.67.87・・・命令
レジスタ、48.68.88・・・命令デコーダ、49
.69.89・・・バスインターフェース回路(バス制
御回路)、50・・・OPコード、51・・・バス制御
フィールド、52・・・オペランド、53〜56・・・
バス制御活性化ビット、70・・・内部バス、71・・
・レジスタ、72.92・・・アクセス命令制御線(デ
ータ入出力制御線)、73.93・・・出力線、74・
・・条件セレクタ、90・・・算術論理演算器、91・
・・状態フードレジスタ。
FIG. 1 is a schematic block diagram of a microprocessor system according to a first embodiment of the present invention, FIG. 2 is a diagram showing the form of bus access in the microprocessor of the same embodiment, and FIG. A schematic block diagram showing a partial configuration of the microprocessor in the embodiment, FIG. 4 is a diagram showing the format of input/output instructions in the microprocessor, and FIG. 5 is a portion of the microprocessor in the second embodiment of the present invention. FIG. 6 is a schematic block diagram showing a partial configuration of a microprocessor according to a third embodiment of the present invention; FIG. 7 is a schematic block diagram of a conventional microprocessor system;
FIG. 8 is a diagram illustrating the contents of pixel data, and FIG. 9 is a diagram illustrating a program for arithmetic processing in the present invention and a conventional example. 20.40.60.80...Microprocessor, 2
1.41.61.81...data bus, 22.42.
62.82...address bus, 23-26.43-4
6.63-66.83-86...data bus control line,
27-30...Memory, 47.67.87...Instruction register, 48.68.88...Instruction decoder, 49
.. 69.89... Bus interface circuit (bus control circuit), 50... OP code, 51... Bus control field, 52... Operand, 53-56...
Bus control activation bit, 70...internal bus, 71...
・Register, 72.92... Access command control line (data input/output control line), 73.93... Output line, 74.
...Condition selector, 90...Arithmetic logic operator, 91.
...Status food register.

Claims (5)

【特許請求の範囲】[Claims] (1)1組のデータバスと、前記データバスを介したデ
ータの入出力においていずれかのビットもしくはビット
フィールドの入出力を制御する複数組のデータバス制御
線とを有し、前記複数組のデータバス制御線のそれぞれ
の活性化を任意に制御できるバス制御フィールドを含む
データ入出力命令を備えたことを特徴とするマイクロプ
ロセッサ。
(1) It has one set of data buses and multiple sets of data bus control lines that control the input/output of any bit or bit field in data input/output via the data bus, and A microprocessor comprising a data input/output instruction including a bus control field that can arbitrarily control the activation of each data bus control line.
(2)1組のデータバス、と、前記データバスを介した
データの入出力においていずれかのビットもしくはビッ
トフィールドの入出力を制御する複数組のデータバス制
御線とを有し、データ入出力命令のデコードによって生
成するデータ入出力制御線とレジスタの出力とを入力と
して前記複数組のデータバス制御線のそれぞれの活性化
を任意に設定できる条件セレクタと、前記条件セレクタ
の出力によって前記複数組のデータバス制御線上の信号
を生成するバス制御回路とを備えたことを特徴とするマ
イクロプロセッサ。
(2) It has one set of data buses and multiple sets of data bus control lines that control the input/output of any bit or bit field in the input/output of data via the data bus, and a condition selector that can arbitrarily set the activation of each of the plurality of sets of data bus control lines by inputting a data input/output control line generated by decoding an instruction and the output of a register; A microprocessor comprising a bus control circuit that generates a signal on a data bus control line.
(3)レジスタがプロセッサの状態コードレジスタを含
むことを特徴とする請求項(2)記載のマイクロプロセ
ッサ。
3. The microprocessor according to claim 2, wherein the register includes a processor status code register.
(4)レジスタが命令によって直接またはデータの入出
力を介して間接的に設定されるレジスタを含むことを特
徴とする請求項(2)記載のマイクロプロセッサ。
(4) The microprocessor according to claim (2), characterized in that the registers include registers that are set directly by instructions or indirectly through data input/output.
(5)1組のデータバスと、前記データバスを介したデ
ータの入出力においていずれかのビットもしくはビット
フィールドの入出力を制御する複数組のデータバス制御
線とを有し、1つまたは複数のビットフィールド処理を
行なうプログラムを実行するマイクロプロセッサと、前
記マイクロプロセッサのデータバスに接続された複数の
記憶装置とを含み、前記複数の記憶装置の制御線が前記
1つまたは複数のビットフィールドの境界を区切りとし
たグループ毎に前記マイクロプロセッサの複数組のデー
タバス制御線の2組以上のいずれかに接続されているこ
とを特徴とするマイクロプロセッサシステム。
(5) It has one set of data buses and a plurality of sets of data bus control lines that control the input/output of any bit or bit field in the input/output of data via the data bus, and one or more sets of data bus control lines are provided. a microprocessor that executes a program for processing the one or more bit fields, and a plurality of storage devices connected to a data bus of the microprocessor, wherein control lines of the plurality of storage devices are configured to process the one or more bit fields. A microprocessor system, wherein each group separated by a boundary is connected to one of two or more sets of data bus control lines of the microprocessor.
JP1304230A 1989-11-22 1989-11-22 Microprocessor and microprocessor system Pending JPH03164849A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1304230A JPH03164849A (en) 1989-11-22 1989-11-22 Microprocessor and microprocessor system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1304230A JPH03164849A (en) 1989-11-22 1989-11-22 Microprocessor and microprocessor system

Publications (1)

Publication Number Publication Date
JPH03164849A true JPH03164849A (en) 1991-07-16

Family

ID=17930572

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1304230A Pending JPH03164849A (en) 1989-11-22 1989-11-22 Microprocessor and microprocessor system

Country Status (1)

Country Link
JP (1) JPH03164849A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016524251A (en) * 2013-06-29 2016-08-12 華為技術有限公司Huawei Technologies Co.,Ltd. Data writing method and memory system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5459839A (en) * 1977-10-20 1979-05-14 Nec Corp Information processor
JPS57141087A (en) * 1981-02-25 1982-09-01 Fujitsu Ltd Write system for storage device
JPS58125284A (en) * 1982-01-20 1983-07-26 Hitachi Ltd Memory access method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5459839A (en) * 1977-10-20 1979-05-14 Nec Corp Information processor
JPS57141087A (en) * 1981-02-25 1982-09-01 Fujitsu Ltd Write system for storage device
JPS58125284A (en) * 1982-01-20 1983-07-26 Hitachi Ltd Memory access method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016524251A (en) * 2013-06-29 2016-08-12 華為技術有限公司Huawei Technologies Co.,Ltd. Data writing method and memory system

Similar Documents

Publication Publication Date Title
US4648034A (en) Busy signal interface between master and slave processors in a computer system
US4037213A (en) Data processor using a four section instruction format for control of multi-operation functions by a single instruction
US4274138A (en) Stored program control system with switching between instruction word systems
US4095268A (en) System for stopping and restarting the operation of a data processor
JP3237858B2 (en) Arithmetic unit
US5696957A (en) Integrated circuit comprising a central processing unit for executing a plurality of programs
KR100287600B1 (en) Other processing systems and methods for providing scalable registers
JPS6015708A (en) Stored program type controller
US4493029A (en) Microprocessor with PLA adapted to implement subroutines
US20030097543A1 (en) Immediate operands
US5479620A (en) Control unit modifying micro instructions for one cycle execution
JPH03164849A (en) Microprocessor and microprocessor system
JP3000857B2 (en) Programmable controller
EP0136699B1 (en) Programmable controller
JPH0962533A (en) Test circuit for single chip microprocessor
JPH0628177A (en) Microprocessor
JP2918570B2 (en) Central processing unit
JPH023821A (en) High speed arithmetic unit
US5864691A (en) Central processing unit with a selector that bypasses circuits where processing is not required
JP3525582B2 (en) Bit operation circuit
JPH0895781A (en) Arithmetic and logic unit of processor
JPS6362065A (en) Data transfer control system
JPH033047A (en) Memory with arithmetic function
JPH08305564A (en) Microcomputer
JPH0683986A (en) Single chip microcomputer