JPH01293439A - Data processor - Google Patents

Data processor

Info

Publication number
JPH01293439A
JPH01293439A JP63123826A JP12382688A JPH01293439A JP H01293439 A JPH01293439 A JP H01293439A JP 63123826 A JP63123826 A JP 63123826A JP 12382688 A JP12382688 A JP 12382688A JP H01293439 A JPH01293439 A JP H01293439A
Authority
JP
Japan
Prior art keywords
rom
ram
instruction
address
information
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
JP63123826A
Other languages
Japanese (ja)
Inventor
Yusuke Takeuchi
勇介 武内
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP63123826A priority Critical patent/JPH01293439A/en
Publication of JPH01293439A publication Critical patent/JPH01293439A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To arbitrarily replace and use the information held by ROM fixedly by selecting and outputting the information read from the ROM and the alternate information read in parallel from the ROM corresponding to the information based on a control bit. CONSTITUTION:A multiplexer 7 to receive the information read from a micro ROM 4 and alternate information mucI read in parallel from a micro RAM 5 corresponding to this outputs and selects the alternate information mucI to a microinstruction register 8 when a control bit EB read in a pair with the alternate information mucI is '1.' When the control bit EB is '0,' the microinstruction read from the micro ROM 4 is outputted and selected to the microinstruction register 8. Thus, since in the function diagnosis of LSI having a large logical scale and like a complicated processor, the microprogram and the train are arbitrarily changed and the function diagnosis can be executed, the diagnosis efficiency and the reliability of the diagnosis of the LSI can be improved.

Description

【発明の詳細な説明】 [産業上の利用分野〕 本発明はマイクロ命令やマクロ命令又は定数データなど
の情報をROMに保有してデータ処理を行うプロセッサ
などに関し、例えばファームウェアを保有するディジタ
ル信号処理プロセッサや通信制御用プロセッサのための
機能テストに適用して有効な技術に関するものである。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a processor that performs data processing by storing information such as microinstructions, macroinstructions, or constant data in a ROM, such as a digital signal processing device having firmware. The present invention relates to techniques that are effective when applied to functional tests for processors and communication control processors.

〔従来技術〕[Prior art]

従来ファームウェアを搭載するディジタル信号処理プロ
セッサや通信制御用プロセッサなどにおけるマイクロプ
ログラム制御手順は、シーケンスコントローラによるア
ドレス制御に基づいてマイクロROMから読み出される
マイクロ命令を順次実行する形式とされる。
Conventionally, microprogram control procedures in digital signal processing processors, communication control processors, and the like equipped with firmware are in the form of sequentially executing microinstructions read from a microROM based on address control by a sequence controller.

このようなプロセッサの機能診断を容易に行うためには
テスト用ファームウェアを予めROMに搭載しておくこ
とができる。
In order to easily perform functional diagnosis of such a processor, test firmware can be loaded in the ROM in advance.

なお、ファームウェアを保有するプロセッサについて記
載された文献の例としは昭和60年12月25日オーム
社発行の「マイクロコンピュータハンドブックJ P2
17〜P243がある。
An example of a document describing processors with firmware is "Microcomputer Handbook J P2" published by Ohmsha on December 25, 1985.
There are 17 to P243.

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

ところで、本発明者の検討によれば、論理規模が大きく
且つ複雑なプロセッサのようなLSIの機能診断におい
て、マイクロプログラムもしくはその系列を任意に変更
して機能診断を行うことが診断効率や診断の信頼性を向
上させる上で望ましいことを見出した。
By the way, according to the inventor's study, in functional diagnosis of LSIs such as large-scale and complex processors, performing functional diagnosis by arbitrarily changing the microprogram or its series improves diagnostic efficiency and diagnosis. We have found that this is desirable for improving reliability.

しかしながら、テスト用ファームウェアをROMに固定
的に保有する従来の技術ではROMの内容を任意に変更
し難く、しかも論理規模が複雑で大きなプロセッサのよ
うなLSIのテスト用ファームウェアをROMに固定的
に格納しておくとなるとその記憶容量が膨大になってし
まうという問題があった。斯る問題点はテスト用ファー
ムウェアに限らず、マクロ命令に対応するようなテスト
用プログラム、さらには各種制御用テーブルや乗算に必
要とされる定数データのためのテスト情報などに関して
もあてはまることである。
However, with conventional technology that stores test firmware fixedly in ROM, it is difficult to arbitrarily change the contents of ROM, and moreover, test firmware for LSIs such as large processors with complex logical scale is fixedly stored in ROM. There was a problem in that the storage capacity would be enormous if it were to be stored. These problems are not limited to test firmware, but also apply to test programs that support macro instructions, as well as test information for various control tables and constant data required for multiplication. .

本発明の目的は、ROMが固定的に保有する情報を任意
に差替て利用することができるデータ処理装置を提供す
ることにある。さらに本発明の別の目的はROMが固定
的に保有する情報に基づくデータ処理の流れを任意に変
更することができるデータ処理装置を提供することにあ
る。
An object of the present invention is to provide a data processing device that can arbitrarily replace and utilize information fixedly held in a ROM. Furthermore, another object of the present invention is to provide a data processing device that can arbitrarily change the flow of data processing based on information fixedly held in a ROM.

本発明の前記ならびにそのほかの目的と新規な特徴は、
本明細書の記述及び添付図面から明らかになるであろう
The above and other objects and novel features of the present invention include:
It will become clear from the description of this specification and the accompanying drawings.

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

本願において開示される発明のうち代表的なものの概要
を簡単に説明すれば下記の通りである。
A brief overview of typical inventions disclosed in this application is as follows.

すなわち、ROMと並列的にアクセス可能にされると共
に、ROMの保持情報を代替する情報とこの代替情報の
有効性を示す制御ビットとをROMのアドレスに対応し
て保有可能なRAMを設け、ROMから読み出される情
報とこれに対応してRAMから並列的に読み出される代
替情報を、上記制御ビットに基づいて選択出力するよう
にするものである。
That is, a RAM is provided that can be accessed in parallel with the ROM and can hold information that replaces the information held in the ROM and a control bit that indicates the validity of this replacement information in correspondence with the address of the ROM. The information read from the RAM and the corresponding alternative information read in parallel from the RAM are selectively output based on the control bits.

また、命令のアドレスを生成するシーケンスコントロー
ラの出力アドレス信号に基づいて夫々単・独にアクセス
されるROMとRAMを持ち、命令の所望アドレスを設
定可能なアドレス設定手段に設定されたアドレスと上記
シーケンスコントローラの出力アドレスを比較し、その
比較結果に基づいて、所望の命令を保持させ得る命令保
持手段が保有する命令又は上記シーケンスコントローラ
の出力アドレス信号に基づいてROMから読み出される
命令を選択的に出力するようにし、ROMに代えて上記
命令保持手段から出力される任意の命令を実行可能とし
たり、この命令実行に基づいてアクセスされるRAMか
ら読み出される命令を実行可能とするものである。
It also has a ROM and a RAM that are accessed individually and independently based on the output address signal of the sequence controller that generates the address of the instruction, and the address set in the address setting means that can set the desired address of the instruction and the above sequence. Comparing the output addresses of the controllers and, based on the comparison result, selectively outputting an instruction held by an instruction holding means capable of holding a desired instruction or an instruction read from the ROM based on an output address signal of the sequence controller. This makes it possible to execute any instruction output from the instruction holding means instead of the ROM, or to execute an instruction read from a RAM that is accessed based on the execution of this instruction.

〔作 用〕[For production]

上記した手段によれば、ROMが固定的に保有する情報
を任意にRAMの保有情報などに差替て利用可能にされ
ると共に、ROMが固定的に保有する情報に基づくデー
タ処理の流れを任意にRAMの保有情報に基づいて変更
可能とされ、これによって、論理規模が大きく且つ複雑
なプロセッサのようなLSIの機能診断フローを任意に
変更してその診断効率や診断の信頼性を向上させること
などを達成するものである。
According to the above-mentioned means, the information fixedly held in the ROM can be arbitrarily replaced with the information held in the RAM, etc., and the flow of data processing based on the information fixedly held in the ROM can be arbitrarily changed. It is possible to change the function diagnosis flow of an LSI such as a large and complex processor with a large logical scale based on the information held in the RAM, thereby improving the diagnostic efficiency and reliability of the diagnosis. etc.

〔実施例1〕 第1図には本発明の第1実施例であるプロセッサの要部
が示される。同図に示されるプロセッサは、特に制限さ
れないが、ホストプロセッサから供給されるコマンドで
指示されるデータ処理を行うファームウェアを保有する
ディジタル信号処理プロセッサや通信制御用プロセッサ
のような専用プロセッサであり、公知の半導体集積回路
製造技術によってシリコン基板のような1個の半導体基
板に形成される。
[Embodiment 1] FIG. 1 shows the main parts of a processor that is a first embodiment of the present invention. The processor shown in the figure is, but is not particularly limited to, a dedicated processor such as a digital signal processing processor or a communication control processor that has firmware that performs data processing instructed by commands supplied from a host processor, and is a known processor. It is formed on a single semiconductor substrate such as a silicon substrate using semiconductor integrated circuit manufacturing techniques.

第1図に示されるプロセッサは入出力コントローラ1を
介して外部のホストプロセッサなどとインタフェース可
能にされる。この入出力コントローラ1に結合する内部
バスとしては第1バスBUS1と第2バスBUS2が代
表的に示されている。
The processor shown in FIG. 1 is enabled to interface with an external host processor or the like via an input/output controller 1. The processor shown in FIG. As internal buses coupled to this input/output controller 1, a first bus BUS1 and a second bus BUS2 are representatively shown.

各内部バスBUSI、BUS2には命令制御ユニット2
と実行ユニット3が結合されている。
Each internal bus BUSI and BUS2 has an instruction control unit 2.
and execution unit 3 are combined.

命令制御ユニット2は、基本的に外部から供給されるコ
マンドに対応するマイクロ命令の系列に基づいて各種制
御情報を所定の手順で順次生成する。実行ユニット3は
、各種レジスタや演算器などを備え、上記命令制御ユニ
ット2で生成された制御情報や外部から供給されるデー
タなどに基づいて演算を行ってコマンドを実行する。
The command control unit 2 basically sequentially generates various types of control information according to a predetermined procedure based on a series of microinstructions corresponding to commands supplied from the outside. The execution unit 3 includes various registers, arithmetic units, etc., and executes commands by performing calculations based on control information generated by the instruction control unit 2, data supplied from the outside, and the like.

本実施例の命令制御ユニット2は、並列的にアクセス可
能なマイクロROM4とマイクロRAM5を持つ。マイ
クロROM4は、専用プロセッサとして本来必要なプロ
トコル処理や演算処理用のマイクロ命令の系列を固定的
に保有する。マイクロRAM5は、第2図にその一例が
示されるように、マイクロROM4が保有するマイクロ
命令を代替するための代替情報μcIと、この代替情報
μcIの有効性を示す制御ビットEBを保有可能とされ
る。本実施例において制御ビットEBは、「1」が有効
、「0」が無効と定義される。
The instruction control unit 2 of this embodiment has a micro ROM 4 and a micro RAM 5 that can be accessed in parallel. The micro ROM 4 fixedly holds a series of micro instructions for protocol processing and arithmetic processing that are originally necessary for a dedicated processor. As an example is shown in FIG. 2, the micro RAM 5 is capable of holding alternative information μcI for replacing the microinstruction held by the micro ROM 4, and a control bit EB indicating the validity of this replacement information μcI. Ru. In this embodiment, the control bit EB is defined as "1" being valid and "0" being invalid.

上記マイクロRAM5はマイクロROM4のアドレス空
間に重複して配置されるが、本実施例のマイクロRAM
5の記憶容量もしくはそれにおける代替情報μcI及び
制御ビットEBの格納領域はマイクロROM4の記憶容
量よりも小さいため、マイクロROM4の記憶容量に応
じたビット数のアドレス信号をマイクロRAM5の記憶
容量に適合するビット数のアドレス信号に変換するアド
レス修飾回路6が設けられ、マイクロRAM5にはこれ
を介して生成されるアドレス信号が供給される。これに
より、マイクロROM4がアドレシングされるとき、そ
のアドレスに対応するマイクロRAM5の所定領域もこ
れに並行してアドレシングされ、双方から読み出される
情報はマルチプレクサ7に供給される。
The micro RAM 5 is arranged overlappingly in the address space of the micro ROM 4, but the micro RAM of this embodiment
Since the storage capacity of the micro RAM 5 or the storage area of the alternative information μcI and the control bit EB therein is smaller than the storage capacity of the micro ROM 4, the address signal of the number of bits corresponding to the storage capacity of the micro ROM 4 is adapted to the storage capacity of the micro RAM 5. An address modification circuit 6 for converting into an address signal of the number of bits is provided, and the micro RAM 5 is supplied with the generated address signal via this. As a result, when the micro ROM 4 is addressed, a predetermined area of the micro RAM 5 corresponding to that address is also addressed in parallel, and information read from both is supplied to the multiplexer 7.

アドレス修飾回路6におけるアドレス修飾論理の初期設
定、例えば被修飾情報としての入力アドレス信号から減
算すべき値の設定は、特に制限されないが、複数ビット
のモードデータMODEにより当該設定動作が指示され
ると、ことにより、第1バスBUS 1及び入出力コン
トローラ1を介して直接外部から行われるようになって
いる。
The initial setting of the address modification logic in the address modification circuit 6, for example, the setting of the value to be subtracted from the input address signal as modified information, is not particularly limited, but if the setting operation is instructed by the multi-bit mode data MODE, , possibly directly from the outside via the first bus BUS 1 and the input/output controller 1.

マイクロRAM5に対する代替情報μcI及び。Alternative information μcI and for micro RAM 5.

制御ビットEBの設定は、特に制限されないが、複数ビ
ットのモードデータMODEにより当該設定動作が指示
されると、ことにより、第1バスBUSI及び入出力コ
ントローラ1を介して外部から供給されるアドレス信号
及び第2バスBUS2及び入出力コントローラ1を介し
て外部から供給されるデータに基づいて行われる。
The setting of the control bit EB is not particularly limited, but when the setting operation is instructed by the multi-bit mode data MODE, the address signal supplied from the outside via the first bus BUSI and the input/output controller 1 may be set. This is performed based on data supplied from the outside via the second bus BUS2 and the input/output controller 1.

上記マルチプレクサ7は、マイクロROM4から読み出
される情報とこれに対応してマイクロRAM5から並列
的に読み出される代替情報μcIを、当該代替情報μc
Iと対を成して読み出される上記制御ビットEBに基づ
いて選択的に出力制御する。制御ビットEBが「1」の
ときは代替情報μcIを出力選択し、制御ビットEBが
rOJのときはマイクロROM4から読み出されるマイ
クロ命令が出力選択される。
The multiplexer 7 converts the information read from the micro ROM 4 and the alternative information μcI correspondingly read from the micro RAM 5 in parallel to the information read from the micro ROM 4.
Output is selectively controlled based on the control bit EB read out in pair with I. When the control bit EB is "1", the alternative information μcI is selected for output, and when the control bit EB is rOJ, the microinstruction read from the micro ROM 4 is selected for output.

マルチプレクサ7から出力選択される情報であるマイク
ロ命令はマイクロインストラクションレジスタ8を介し
てマイクロインストラクションデコーダ9に供給される
。マイクロインストラクションデコーダ9はこれに供給
されるマイクロ命令コードをデコードして各種内部制御
情報を生成してこれを各部に供給する。
The microinstruction, which is the information selected to be output from the multiplexer 7, is supplied to the microinstruction decoder 9 via the microinstruction register 8. The microinstruction decoder 9 decodes the microinstruction code supplied to it, generates various internal control information, and supplies this to each section.

尚、マイクロROM4及びアドレス修飾回路6にはシー
ケンスコントローラ10で生成されたアドレス信号が供
給される。このシーケンスコントローラ10は、外部か
ら供給されるコマンドを取り込んでデコードするコマン
ドレジスタ及びコマンドデコーダ11から供給されるア
ドレス情報を。
Incidentally, the micro ROM 4 and the address modification circuit 6 are supplied with an address signal generated by the sequence controller 10. This sequence controller 10 takes in and decodes commands supplied from the outside, and receives address information supplied from a command register and command decoder 11.

当該コマンドを実行するための先頭マイクロ命令アドレ
スとして出力すると共に、2番目以降のマイクロ命令の
アドレスとしては、その前のマイクロ命令に含まれるネ
クストアドレスフィールドの情報を選択して出力する。
It is output as the first microinstruction address for executing the command, and information in the next address field included in the previous microinstruction is selected and outputted as the address of the second and subsequent microinstructions.

次に第1実施例の動作を説明する。Next, the operation of the first embodiment will be explained.

モードデータMODEによりテストモードを指定して、
アドレス修飾回路6に初期設定を行うと共に、マイクロ
ROM4が保有するマイクロ命令に代えて利用すべき代
替情報μcI及びその有効性を指示する制御ビットEB
を、そのマイクロR・0M4のアドレスに対応するマイ
クロRAM5の所定領域に設定する。
Specify the test mode using the mode data MODE,
In addition to initializing the address modification circuit 6, the control bit EB indicates alternative information μcI to be used in place of the microinstruction held in the micro ROM 4 and its validity.
is set in a predetermined area of the micro RAM 5 corresponding to the address of the micro R.0M4.

ここで、マイクロRAM5に設定される代替情報μcI
は、特に制限されないが、マイクロプロセッサの機能診
断用として通常のマイクロフローを変化させるために差
替るべきマイクメロ命令もしくはその系列とされる。
Here, alternative information μcI set in the micro RAM 5
is, but is not particularly limited to, a microprocessor instruction or a series thereof that should be replaced in order to change a normal microflow for functional diagnosis of a microprocessor.

斯る初期設定の後、本実施例のマイクロプロセッサの機
能診断のために所定のコマンドが与えられると、シーケ
ンスコントローラは、そのデコード結果に基づいてマイ
クロROM4及びアドレス修飾回路6に、所定のマイク
ロ命令系列における先頭マイクロアドレスを供給する。
After such initial settings, when a predetermined command is given for functional diagnosis of the microprocessor of this embodiment, the sequence controller issues a predetermined microinstruction to the micro ROM 4 and address modification circuit 6 based on the decoding results. Provides the first microaddress in the series.

これにより、マイクロROM4がアドレシングされると
き、そのアドレスに対応するマイクロRAM5の所定領
域もこれに並行してアドレシングされ、双方から読み出
される情報はマルチプレクサ7に供給される。
As a result, when the micro ROM 4 is addressed, a predetermined area of the micro RAM 5 corresponding to that address is also addressed in parallel, and information read from both is supplied to the multiplexer 7.

マイクロROM4から読み出される情報とこれに対応し
てマイクロRAM5から並列的に読み出される代替情報
μcIを受けるマルチプレクサ7は、当該代替情報μc
Iと対を成して読み出される制御ビットEBが「1」の
ときは代替情報μC工をマイクロインストラクションレ
ジスタ8に出力選択し、制御ビットEBが「0」のとき
はマイクロROM4から読み出されるマイクロ命令をマ
イクロインストラクションレジスタ8に出力選択する。
The multiplexer 7 receives the information read from the micro ROM 4 and the corresponding alternative information μcI read in parallel from the micro RAM 5.
When the control bit EB read out as a pair with I is "1", the alternative information μC is output selected to the microinstruction register 8, and when the control bit EB is "0", the microinstruction is read out from the micro ROM 4. is selected for output to the microinstruction register 8.

したがって、マイクロプロセッサによるデータ処理手順
は、マイクロROM4の保有情報に従う通常のマイクロ
フローに対し、当該マイクロROM4と並列してアクセ
スされるマイクロRAM5上の制御ビットEBが「1」
に設定されている代替情報μcIとしてのマイクロ命令
もしくはその系列によって差替られることになる。
Therefore, in the data processing procedure by the microprocessor, the control bit EB on the micro RAM 5 that is accessed in parallel with the micro ROM 4 is set to "1" for the normal micro flow according to the information held in the micro ROM 4.
It will be replaced by the microinstruction or its series as the alternative information μcI set in .

上記実施例によれば以下の作用効果を得るものである。According to the above embodiment, the following effects can be obtained.

(1)マイクロROM4が固定的に保有するマイクロ命
令に基づくデータ処理の流れを、マイクロROM4と並
列してアクセスされるマイクロRAM5の保有情報に基
づいて任意に変更可能とすることができる。
(1) The flow of data processing based on microinstructions fixedly held in the micro ROM 4 can be arbitrarily changed based on information held in the micro RAM 5, which is accessed in parallel with the micro ROM 4.

(2)上記作用効果より、論理規模が大きく且つ複雑な
プロセッサのようなLSIの機能診断において、マイク
ロプログラムもしくはその系列を任意に変更して機能診
断を行うことができるようになるから、LSIの診断効
率や診断の信頼性を向上させることができる。
(2) As a result of the above effects, it becomes possible to perform functional diagnosis by arbitrarily changing the microprogram or its series in the functional diagnosis of LSIs such as large-scale and complex processors. Diagnostic efficiency and diagnostic reliability can be improved.

(3)アドレス修飾回路6に対する制御情報の設定やマ
イクロRAM5に対するデータの設定を、命令制御ユニ
ット自体が本来持つ制御シーケンスに従って行うこも可
能であるから、プロセッサ自体が自ら生成したマイクロ
プログラムをマイクロRAM5に書き込み、これに基づ
いてデータ処理を実行させるという新たな機能をマイク
ロプロセッサに与えることが可能になる。
(3) Since it is possible to set the control information for the address modification circuit 6 and the data for the micro RAM 5 according to the control sequence inherent in the instruction control unit itself, the micro program generated by the processor itself can be stored in the micro RAM 5. It becomes possible to give the microprocessor a new function of writing data and executing data processing based on this data.

〔実施例2〕 第3図には本発明の第2実施例であるプロセッサの命令
制御ユニットが概略的に示される。
[Embodiment 2] FIG. 3 schematically shows an instruction control unit of a processor according to a second embodiment of the present invention.

第3図に示される命令制御ユニット20は、基本的に外
部から供給されるコマンドに対応するマイクロ命令の系
列に基づいて各種制御情報を所定の手順で順次生成する
点は上記実施例とは変わりないが、マイクロROMに代
えてマイクロRAMの内容を利用するための構成が相違
される。
The instruction control unit 20 shown in FIG. 3 differs from the above embodiment in that it sequentially generates various control information according to a predetermined procedure based on a series of microinstructions corresponding to commands supplied from the outside. However, the configuration for using the contents of the micro RAM instead of the micro ROM is different.

本実施例の命令制御ユニット20は、個別的にアクセス
可能なマイクロROM21とマイクロRAM22を持つ
。マイクロROM21は、専用プロセッサとして本来必
要なプロトコル処理や演算処理用のマイクロ命令の系列
を固定的に保有する。
The instruction control unit 20 of this embodiment has a micro ROM 21 and a micro RAM 22 that can be accessed individually. The micro ROM 21 fixedly holds a series of micro instructions for protocol processing and arithmetic processing that are originally necessary as a dedicated processor.

マイクロRAM22は、マイクロROM21とは異なる
アドレス空間において所望のマイクロ命令の系列を保有
する。したがって、マイクロROM21及びマイクロR
AM22は、シーケンスコントローラ23から供給され
るアドレス信号に基づいて夫々単独にアクセスされる。
The micro RAM 22 holds a desired sequence of micro instructions in an address space different from that of the micro ROM 21 . Therefore, micro ROM21 and micro R
Each AM 22 is accessed independently based on an address signal supplied from the sequence controller 23.

本実施例の命令制御ユニット2oは、マイクロROM2
1のアドレス空間における所望アドレスを設定可能なア
ドレス設定レジスタ24と、これに設定されたアドレス
と上記シーケンスコントロ−ラ23の出力アドレスを比
較するコンパレータ25を持つ。また、所望のマイクロ
命令を保持させ得る命令設定レジスタ26と、この命令
設定レジスタ26が保有するマイクロ命令又は上記シー
ケンスコントローラ23の出力アドレス信号に基づいて
マイクロROM21から読み出される命令を上記コンパ
レータ25による比較結果に基づいて選択的に出力する
マルチプレクサ27を備える。
The instruction control unit 2o of this embodiment includes a micro ROM 2
It has an address setting register 24 that can set a desired address in one address space, and a comparator 25 that compares the address set in this register with the output address of the sequence controller 23. Further, the comparator 25 compares the instruction setting register 26 that can hold a desired microinstruction with the microinstruction held in the instruction setting register 26 or the instruction read out from the microROM 21 based on the output address signal of the sequence controller 23. A multiplexer 27 is provided to selectively output the results based on the results.

このマルチプレクサ27の出力端子及び上記マイクロR
AM22のデータ出力端子は、第1実施例に示されるよ
うなマイクロインストラクションレジスタ28に結合さ
れてる。
The output terminal of this multiplexer 27 and the micro R
The data output terminal of AM 22 is coupled to a microinstruction register 28 as shown in the first embodiment.

尚、上記マイクロRAM22、アドレス設定レジスタ2
4、及び命令設定レジスタ26は、第1実施例同様にテ
ストモードに呼応してその初期値が外部から設定された
り、或いは、命令制御ユニット20自体が本来持つ制御
シーケンスに従って行われる。
In addition, the above micro RAM 22, address setting register 2
4 and the instruction setting register 26, their initial values are set externally in response to the test mode, as in the first embodiment, or are set according to the control sequence inherent in the instruction control unit 20 itself.

次に上記実施例の動作を説明する。Next, the operation of the above embodiment will be explained.

先ず、マイクロROM21の命令を所望のマイクロ命令
に差替る場合には、命令設定レジスタ26に差替るべき
マイクロ命令を設定しておくと共に、アドレス設定レジ
スタ24には差替るべきマイクロ命令のアドレスを設定
しておく。これにより、シーケンスコントローラ21か
ら出力されるアドレスがアドレス設定レジス24のアド
レスと一致すると、これを検出するコンパレータ25の
出力制御信号COMPによりマルチプレクサ27は命令
設定レジスタ26に格納されているマイクロ命令をマイ
クロROM21のマイクロ命令に代えてマイクロインス
トラクションレジスタ28に与える。これにより、命令
制御ユニット20は当該マイクロ命令で指示される処理
を行う。
First, when replacing an instruction in the micro ROM 21 with a desired microinstruction, the microinstruction to be replaced is set in the instruction setting register 26, and the address of the microinstruction to be replaced is set in the address setting register 24. I'll keep it. As a result, when the address output from the sequence controller 21 matches the address in the address setting register 24, the output control signal COMP of the comparator 25 detecting this causes the multiplexer 27 to select the microinstruction stored in the instruction setting register 26. It is given to the microinstruction register 28 in place of the microinstruction in the ROM 21. Thereby, the instruction control unit 20 performs the processing instructed by the microinstruction.

次にマイクロROM21が固定的に保有する情報に基づ
くデータ処理の流れをマイクロRAM22の保有情報に
基づいて任意に変更する場合の動作を説明する。
Next, a description will be given of an operation in which the flow of data processing based on information fixedly held in the micro ROM 21 is arbitrarily changed based on information held in the micro RAM 22.

このとき命令設定レジスタ26にはマイクロRAM22
の所定領域をアクセスするための分岐命令を格納し、さ
らにアドレス設定レジスタには、マイクロROM21に
おけるマイクロ命令の系列において挿入すべき分岐命令
のアドレスを設定しておく。
At this time, the instruction setting register 26 contains the micro RAM 22.
A branch instruction for accessing a predetermined area of the micro ROM 21 is stored, and the address of the branch instruction to be inserted in the series of micro instructions in the micro ROM 21 is set in the address setting register.

これにより、シーケンスコントローラ21から出力され
るアドレスがアドレス設定レジス24のアドレスと一致
すると、これを検出するコンパレータ25の出力制御信
号によりマルチプレクサ27は命令設定レジスタ26に
格納されているマイクロ命令をマイクロROM21のマ
イクロ命令に代えてマイクロインストラクションレジス
タ28に与える。命令制御ユニット20は当該マイクロ
命令で指示されるマイクロフローの分岐処理を行い、そ
の次に実行すべき一連のマイクロ命令の系列がマイクロ
RAM22からマイクロインストラクションレジスタ2
7に順次与えられる。
As a result, when the address output from the sequence controller 21 matches the address of the address setting register 24, the multiplexer 27 transfers the microinstruction stored in the instruction setting register 26 to the microROM 21 by the output control signal of the comparator 25 that detects this. is given to the microinstruction register 28 in place of the microinstruction. The instruction control unit 20 performs branch processing of the microflow specified by the microinstruction, and the series of microinstructions to be executed next is transferred from the microRAM 22 to the microinstruction register 2.
7 are given sequentially.

したがって、マイクロROM21が固定的に保有するマ
イクロ命令に基づくデータ処理の流れを、命令設定レジ
スタ26が保有する命令さらには当該命令によって分岐
される分岐先のマイクロRAM22の保有情報に基づい
て任意に変更可能とすることができる。これにより、論
理規模が大きく且つ複雑なプロセッサのようなLSIの
機能診断において、マイクロプログラムもしくはその系
列を任意に変更して機能診断を行うことができるように
なり、上記第1実施例同様にLSIの診断効率や診断の
信頼性を向上させることができる。
Therefore, the flow of data processing based on the microinstructions fixedly held in the microROM 21 can be arbitrarily changed based on the instructions held in the instruction setting register 26 and the information held in the microRAM 22 of the branch destination branched by the instruction. It can be made possible. As a result, when diagnosing the function of an LSI such as a large and complex processor with a large logical scale, it becomes possible to perform the function diagnosis by arbitrarily changing the microprogram or its series. The diagnostic efficiency and reliability of diagnosis can be improved.

以上本発明者によってなされた発明を実施例に基づいて
具体的に説明したが、本発明は上記実施例に限定されず
その要旨を逸脱しない範囲において種々変更可能である
ことは言うまでもない。
Although the invention made by the present inventor has been specifically explained based on examples, it goes without saying that the present invention is not limited to the above-mentioned examples and can be modified in various ways without departing from the gist thereof.

例えば命令制御ユニットと内部バス構成は上記実施例に
限定されず適宜変更することができる。
For example, the command control unit and internal bus configuration are not limited to the above embodiments, and can be modified as appropriate.

また、マイクロRAMはデータメモリの一部領域を利用
する構成であってもよい。
Further, the micro RAM may be configured to utilize a partial area of the data memory.

以上の説明では主として本発明者によってなされた発明
をその背景となった利用分野であるコマンドで指示され
るデータ処理を行うファームウェアを保有するディジタ
ル信号処理プロセッサや通信制御用プロセッサのような
専用プロセッサに適用した場合について説明したが、本
発明はそれに・限定されるものではなく、その他各種デ
ータ処理装置に適用することができる。RAMやROM
に保持される情報はテスト用ファームウェアを構成する
マイクロ命令に限定されず、その他のマイクロ命令やマ
クロ命令、さらには制御用テーブルやデータテーブルを
構成するための情報とすることもできる。本発明は少な
くともROMの内容を任意アドレスで差替たり、ROM
の任意アドレスに所望の情報を追加したりしてデータ処
理を行う条件のものに適用することができる。
In the above explanation, the invention made by the present inventor will mainly be applied to dedicated processors such as digital signal processing processors and communication control processors that have firmware that performs data processing instructed by commands, which is the field of application that formed the background of the invention. Although the case where the present invention is applied has been described, the present invention is not limited thereto, and can be applied to various other data processing devices. RAM or ROM
The information held is not limited to the microinstructions configuring the test firmware, but can also be other microinstructions, macroinstructions, and even information for configuring control tables and data tables. The present invention is capable of replacing at least the contents of ROM with an arbitrary address,
It can be applied to conditions for data processing by adding desired information to any address.

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

本願において開示される発明のうち代表的なものによっ
て得られる効果を簡単に説明すれば、下記の通りである
A brief explanation of the effects obtained by typical inventions disclosed in this application is as follows.

すなわち、ROMが固定的に保有する情報を任意にRA
Mの保有情報などに差替て利用することができると共に
、ROMが固定的に保有する情報に基づくデータ処理の
流れを任意にRAMの保有情報に基づいて変更すること
ができるという効果がある。これにより、論理規模が大
きく且つ複雑なプロセッサのようなLSIの機能診断フ
ローを任意に変更してその診断効率や診断の信頼性を向
上させることなどができるようになる。
In other words, information fixedly held in ROM can be arbitrarily RA
This has the effect that it can be used in place of the information held in M, and the flow of data processing based on the information fixedly held in the ROM can be arbitrarily changed based on the information held in the RAM. This makes it possible to arbitrarily change the functional diagnostic flow of an LSI such as a processor with a large logical scale and complexity, thereby improving the diagnostic efficiency and reliability.

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

第1図は本発明の第1実施例であるプロセッサの要部が
示されるブロック図、 第2図はマイクロRAMが保有する代替情報と制御ビッ
トの一例を示す説明図、 第3図は本発明の第2実施例であるプロセッサにおける
命令制御ユニットの要部が示されるブロック図である。 1・・・入出力コントローラ、BUSI、BUS2・・
・内部バス、2・・・命令制御ユニット、3・・・実行
ユニット、4・・・マイクロROM、5・・・マイクロ
RAM、μcI・・・代替情報、EB・・・制御ビット
、6・・・アドレス修飾回路、7・・・マルチプレクサ
、8・・・マイクロインストラクションレジスタ、9・
・・マイクロインストラクションデコーダ、10・・・
シーケンスコントローラ、11・・・コマンドレジスタ
及びコマンドデコーダ、20・・・命令制御ユニット、
21・・・マイクロROM、22・・・マイクロR△M
、23・・・シーケンスコントローラ、24・・・アド
レス設定レジスタ、25・・・コンパレータ、26・・
・命令設定レジスタ、27・・・マルチプレクサ。
FIG. 1 is a block diagram showing the main parts of a processor according to the first embodiment of the present invention, FIG. 2 is an explanatory diagram showing an example of alternative information and control bits held in the micro RAM, and FIG. 3 is a diagram showing the present invention. FIG. 2 is a block diagram showing main parts of an instruction control unit in a processor according to a second embodiment of the present invention. 1...Input/output controller, BUSI, BUS2...
- Internal bus, 2... Instruction control unit, 3... Execution unit, 4... Micro ROM, 5... Micro RAM, μcI... Alternative information, EB... Control bit, 6...・Address modification circuit, 7... Multiplexer, 8... Micro instruction register, 9.
...Microinstruction decoder, 10...
Sequence controller, 11... Command register and command decoder, 20... Instruction control unit,
21...Micro ROM, 22...Micro R△M
, 23... Sequence controller, 24... Address setting register, 25... Comparator, 26...
- Instruction setting register, 27... multiplexer.

Claims (1)

【特許請求の範囲】 1、並列的にアクセス可能なROMとRAMを持ち、上
記RAMは、ROMの保持情報を代替する情報とこの代
替情報の有効性を示す制御ビットとをROMのアドレス
に対応して保有可能にされ、ROMから読み出される情
報とこれに対応してRAMから並列的に読み出される代
替情報を、上記制御ビットに基づいて選択出力する選択
回路を含んで成るものであることを特徴とするデータ処
理装置。 2、上記ROMはマイクロ命令を格納し、RAMが保持
する代替情報はROMに格納されているマイクロ命令を
置き換えるべきマイクロ命令とされるものであることを
特徴とする特許請求の範囲第1項記載のデータ処理装置
。 3、上記RAMは、ROMの記憶容量に応じたビット数
のアドレス信号をRAMの所定記憶領域の大きさに適合
するビット数のアドレス信号に変換するアドレス修飾回
路を介してアドレス信号が供給されるものであることを
特徴とする特許請求の範囲第2項記載のデータ処理装置
。 4、命令のアドレスを生成するシーケンスコントローラ
の出力アドレス信号に基づいて夫々単独にアクセスされ
るROMとRAMを持ち、命令の所望アドレスを設定可
能なアドレス設定手段と、これに設定されたアドレスと
上記シーケンスコントローラの出力アドレスを比較する
手段と、所望の命令を保持させ得る命令保持手段と、こ
の命令保持手段が保有する命令又は上記シーケンスコン
トローラの出力アドレス信号に基づいてROMから読み
出される命令を上記比較手段による比較結果に基づいて
選択的に出力する選択手段と、この選択手段の出力端子
及び上記RAMの出力端子に結合された命令レジスタと
を含んで成るものであることを特徴とするデータ処理装
置。 5、上記RAMはROMが保有する命令とは異なる命令
の系列を有し、上記命令保持手段はRAMの所定領域を
アクセスするための分岐命令が格納されるものであるこ
とを特徴とする特許請求の範囲第4項記載のデータ処理
装置。
[Claims] 1. It has a ROM and a RAM that can be accessed in parallel, and the RAM stores information that replaces the information held in the ROM and a control bit that indicates the validity of this replacement information, corresponding to the address of the ROM. and a selection circuit that selectively outputs the information read from the ROM and corresponding alternative information read in parallel from the RAM based on the control bit. data processing equipment. 2. The ROM stores microinstructions, and the replacement information held by the RAM is microinstructions that should replace the microinstructions stored in the ROM, as set forth in claim 1. data processing equipment. 3. The RAM is supplied with an address signal via an address modification circuit that converts an address signal with a number of bits corresponding to the storage capacity of the ROM into an address signal with a number of bits that matches the size of a predetermined storage area of the RAM. 3. The data processing device according to claim 2, wherein the data processing device is a data processing device. 4. An address setting means having a ROM and a RAM that are accessed independently based on the output address signal of the sequence controller that generates the address of the instruction, and capable of setting a desired address of the instruction, and the address set thereon and the above. A means for comparing output addresses of the sequence controller, an instruction holding means capable of holding a desired instruction, and the above-mentioned comparison of the instruction held by the instruction holding means or the instruction read out from the ROM based on the output address signal of the sequence controller. A data processing device comprising a selection means for selectively outputting an output based on a comparison result by the means, and an instruction register coupled to an output terminal of the selection means and an output terminal of the RAM. . 5. A patent claim characterized in that the RAM has a series of instructions different from the instructions held in the ROM, and the instruction holding means stores a branch instruction for accessing a predetermined area of the RAM. The data processing device according to item 4.
JP63123826A 1988-05-23 1988-05-23 Data processor Pending JPH01293439A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63123826A JPH01293439A (en) 1988-05-23 1988-05-23 Data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63123826A JPH01293439A (en) 1988-05-23 1988-05-23 Data processor

Publications (1)

Publication Number Publication Date
JPH01293439A true JPH01293439A (en) 1989-11-27

Family

ID=14870322

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63123826A Pending JPH01293439A (en) 1988-05-23 1988-05-23 Data processor

Country Status (1)

Country Link
JP (1) JPH01293439A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03177936A (en) * 1989-12-07 1991-08-01 Matsushita Electron Corp Checking circuit
WO2010073444A1 (en) * 2008-12-24 2010-07-01 パナソニック株式会社 Bus controller and initial boot program patch method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03177936A (en) * 1989-12-07 1991-08-01 Matsushita Electron Corp Checking circuit
WO2010073444A1 (en) * 2008-12-24 2010-07-01 パナソニック株式会社 Bus controller and initial boot program patch method

Similar Documents

Publication Publication Date Title
JPH09330151A (en) Card
CA1204218A (en) Data processing system with logical to physical address translation means
KR940001270B1 (en) Option board prom
JPS6114535B2 (en)
JPS5925246B2 (en) Device controller memory addressing device
JPS6298437A (en) Microcomputer
KR19980069757A (en) Microprocessor and Multiprocessor Systems
JP3616402B2 (en) Data processing system and method for providing extensible registers
US6321332B1 (en) Flexible control of access to basic input/output system memory
JPH01293439A (en) Data processor
US6425047B1 (en) Process containing address decoders suited to improvements in clock speed
US7237099B2 (en) Multiprocessor system having a plurality of control programs stored in a continuous range of addresses of a common memory and having identification registers each corresponding to a processor and containing data used in deriving a starting address of a CPU-linked interrupt handler program to be executed by the corresponding processor
JPS6410854B2 (en)
JP2607319B2 (en) Programmable controller
JP3171615B2 (en) Data transfer retry control method
EP0110613B1 (en) Digital data processing system
JP3588951B2 (en) Microcomputer program change device
JP2004021422A (en) Microcomputer
JP3006487B2 (en) Emulation device
JP2004185060A (en) Microcomputer
JP2847729B2 (en) Information processing device
JPH01205339A (en) Microcomputer system
JPS6367212B2 (en)
JPH0226252B2 (en)
JPH09198362A (en) Method and device for converting address, multi-processor system and method for controlling the same