JPH0330028A - Signal processor - Google Patents
Signal processorInfo
- Publication number
- JPH0330028A JPH0330028A JP1163682A JP16368289A JPH0330028A JP H0330028 A JPH0330028 A JP H0330028A JP 1163682 A JP1163682 A JP 1163682A JP 16368289 A JP16368289 A JP 16368289A JP H0330028 A JPH0330028 A JP H0330028A
- Authority
- JP
- Japan
- Prior art keywords
- program
- signal processor
- section
- processor
- counter
- 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
- 238000010586 diagram Methods 0.000 description 5
- 101100524639 Toxoplasma gondii ROM3 gene Proteins 0.000 description 1
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
- Microcomputers (AREA)
Abstract
Description
【発明の詳細な説明】
[産業上の利用分野J
本発明はシグナルプロセッサのプログラムカウンタ制御
に関するものである。DETAILED DESCRIPTION OF THE INVENTION [Industrial Field of Application J] The present invention relates to program counter control of a signal processor.
[従来の技術]
従来のこの種のシグナルプロセッサは、通常のプロセッ
サと同様に、プログラムカウンタがインストラクション
・フエツチごとに1づつ加算され、この結果インストラ
クションR.OMの内容が順次読み出されて実行される
ものとなっている。[Prior Art] In a conventional signal processor of this type, the program counter is incremented by 1 for each instruction fetch, as in a normal processor, and as a result, the instruction R. The contents of the OM are sequentially read out and executed.
[発明が解決しようとする課題]
上述した従来のシグナルプロセッサのプログラムカウン
タは、外部から制御することができないので、シグナル
プロセッサが正常に動作しない場合、ハードとソフトの
両面からの不良原因の究明ができないという問題があっ
た。[Problems to be Solved by the Invention] The program counter of the conventional signal processor described above cannot be controlled from the outside, so if the signal processor does not operate normally, it is difficult to investigate the cause of the failure from both hardware and software aspects. The problem was that I couldn't do it.
[課題を解決するための手段]
このような課題を解決するために本発明のシグナルプロ
セ・ソサは、プログラムが格納されるインストラクシシ
ンROM部と、このインストラクションROM部のアド
レスを指定するプログラムカウンタ部と、このプログラ
ムカむンタ部を外部から制御する外部制御部とを備えた
ものである。[Means for Solving the Problems] In order to solve the above problems, the signal processor/processor of the present invention has an instruction ROM section in which a program is stored, and a program counter that specifies the address of this instruction ROM section. and an external control section that controls the program counter section from the outside.
[作用]
外部制御部からプログラムカウンタ部が制御されると、
プログラムカウンタ部は外部制御部からの制御に基づい
てインストラクションROM部のアドレスを指定する.
この結果、シグナルプロセッサはインストラクションR
OM内の指定されたアドレスのプログラムを実行する.
[実施例]
次に、本発明について図面を参照して説明する。[Function] When the program counter section is controlled from the external control section,
The program counter section specifies the address of the instruction ROM section based on control from the external control section.
As a result, the signal processor uses instruction R
Execute the program at the specified address in OM. [Example] Next, the present invention will be described with reference to the drawings.
第1図は本発明のシグナルプロセッサの一実施例を示す
ブロック図である.同図において、1はディジタルシグ
ナルプロセッサ(以下、シグナルプロセッサという〉、
2はこのシグナルプロセッサlの内部にあってプログラ
ムの読みだしIII1御を行うプログラムカウンタ、3
は同じくシグナルプロセッサ1内にあってこのシグナル
プロセッサ■が実行するプロセッサが格納されたインス
トラクションROM、4はプロセッサカウンタ2を外部
から制御する外部制御部である.
次に、第2図はこの動作を説明する説明図である.同図
において、11〜14はプログラムが格納されたプログ
ラム部、2l〜24はプログラム部11〜l4のプログ
ラムに対応した出力プログラムが格納された出力部であ
る。FIG. 1 is a block diagram showing an embodiment of the signal processor of the present invention. In the figure, 1 is a digital signal processor (hereinafter referred to as a signal processor);
2 is a program counter located inside this signal processor l and performs program readout III1 control; 3
4 is an instruction ROM which is also located in the signal processor 1 and stores the processor to be executed by the signal processor 2, and 4 is an external control unit which controls the processor counter 2 from the outside. Next, FIG. 2 is an explanatory diagram explaining this operation. In the figure, 11 to 14 are program sections in which programs are stored, and 21 to 24 are output sections in which output programs corresponding to the programs of the program sections 11 to 14 are stored.
以上のように構成されたシグナルプロセッサについて第
2図に基づいてその動作を説明する.インストラクショ
ンROM3のプログラム部1l、プログラム部l2、プ
ログラム部l3およびプログラム部l4に格納されたプ
ログラムは、各々独立したプログラムである。そして、
外部制御部4からプログラムカウンタ2に対してプログ
ラム部11内のプログラムの走行指示が行われると、シ
グナルプロセッサlはプログラムカウンタ2の指示に従
い、プログラム部11内のプログラムの先頭番地から命
令を1づつ読み出して実行する.そして、プログラム部
11のプログラムの実行が終了する直前に、このプロセ
ッサ1に接続されたバス(図示せず〉の内容を検出して
出力#62lにジャンプするようなプログラムを実行す
る.そして、このシグナルプロセッサlは、出力部2l
にジャンプしてこの出力部2lに格納されたプログラム
、すなわち上記で検出したバスの内容に応じたデータを
このプロセッサ1の出力ボート(図示せず)に送出する
プログラムを実行する.同様に、外部制御部4の制御に
よりシグナルプロセッサlは、プログラム部12、プロ
グラム部13およびプログラム部14内のプログラムを
実行し、これらプログラムの各終了後にそれぞれ出力部
22、出力部23および出力部24にジャンプして、検
出したバスの内容に応じたデータをこのプロセッサlの
出力ボートに送出するプログラムを実行する.
このようにして、外部からシグナルプロセッサ1のボー
トの状態をハード的に(例えば、シンクロスコープ等を
使用して)II測することにより、プログラム部11.
12,13.14の実行状態が判明できることになる.
そして、例えばあるプログラム部のプログラムを実行さ
せて所定のボートに出力結果が得られないとき、このプ
ログラム部の中にバグがあるということで、外部制御部
4がプログラムカウンタ2を制御することにより、さら
にこのプログラム部内のプログラムの実行範囲を狭めた
走行制御を行う,こう1,て、ハードおよびソフトの両
面から不良原因の究明が可能となる.
第3図はインストラクションROMB内のプログラム部
Aおよび1ログラム部Bにそれぞれ格納された2つの異
なるプログラムの走行制御を説明する説明図である。同
図について説明する。インストラクションROM3のプ
ログラム部Aおよびプログラム?i6Bに格納されたプ
ログラムは、各々独立したプログラムであってそれぞれ
異なる内容のプログラムである.そして、上記したよう
に、外部M御部4からプログラムカウンタ2に対してプ
ログラム部A内のプログラムの走行指示が行われると、
シグナルプロセッサ1はプログラムカウンタ2の指示に
従い,プログラム部A内のプログラムの先頭番地から命
令を1づつ読み出して実行する。そして、プログラム部
A内のプログラムの実行が終了する直前に、出力部21
にジャンプするようなプログラムを実行する。さらに、
このシグナルプロセッサ1は、出力部AOにジャンプし
てこの出力部に格納されたプログラム、すなわちこのプ
ログラムの終了を示すデータをこのプロセッサ1の出力
ボートに送出するプログラムを実行する。同様に、外部
制御部4の制御によりシグナルプロセッサ1は、プログ
ラム部Bのプログラムも実行し、出力部BOにジャンプ
して終了を示すデータを出力ボートに送出する。The operation of the signal processor configured as above will be explained based on Fig. 2. The programs stored in the program section 11, program section 12, program section 13, and program section 14 of the instruction ROM 3 are independent programs. and,
When the external control unit 4 instructs the program counter 2 to run the program in the program unit 11, the signal processor 1 executes instructions one by one from the starting address of the program in the program unit 11 according to the instructions from the program counter 2. Read and execute. Immediately before the execution of the program in the program unit 11 ends, a program is executed that detects the contents of a bus (not shown) connected to this processor 1 and jumps to output #62l. The signal processor l has an output section 2l
The program jumps to and executes the program stored in this output unit 2l, that is, the program that sends data corresponding to the contents of the bus detected above to the output port (not shown) of this processor 1. Similarly, under the control of the external control unit 4, the signal processor l executes the programs in the program unit 12, program unit 13, and program unit 14, and after the completion of each of these programs, the signal processor 1 executes the programs in the output unit 22, output unit 23, and output unit, respectively. 24 and executes a program that sends data corresponding to the detected bus contents to the output port of this processor l. In this way, by measuring the state of the port of the signal processor 1 from the outside using hardware (for example, using a synchroscope), the program section 11.
This means that the execution status of 12, 13, and 14 can be determined.
For example, when a program in a certain program section is executed and no output result is obtained on a predetermined port, it means that there is a bug in this program section, and the external control section 4 controls the program counter 2. Furthermore, the running control is performed by narrowing the execution range of the program within this program section.This makes it possible to investigate the cause of failures from both hardware and software aspects. FIG. 3 is an explanatory diagram illustrating running control of two different programs respectively stored in program section A and program section B in the instruction ROMB. The figure will be explained. Program part A and program of instruction ROM3? The programs stored in the i6B are independent programs with different contents. Then, as described above, when the external M control unit 4 instructs the program counter 2 to run the program in the program unit A,
The signal processor 1 reads instructions one by one from the top address of the program in the program section A and executes them according to instructions from the program counter 2. Immediately before the execution of the program in the program section A ends, the output section 21
Run a program that jumps to . moreover,
This signal processor 1 jumps to the output section AO and executes a program stored in this output section, that is, a program that sends data indicating the end of this program to the output port of this processor 1. Similarly, under the control of the external control unit 4, the signal processor 1 also executes the program in the program unit B, jumps to the output unit BO, and sends data indicating completion to the output port.
そして、例えば外部制御部4がこの出力ボートの状態を
自動的に検出して、プログラム部A内のプログラム(こ
の場合は例えば音声処理を行うプログラム〉の終了を判
断すると、次にアドレスカウンタ2を制御してプログラ
ム部B内のプログラム(この場合は例えばデータ処理を
行うプログラム)を実行するということも可能となる,
[発明の効果]
以上説明したように本発明のシグナルプロセッサによれ
ば、外部制御部からの制御に基づいてプログラムカウン
タ部は、インストラクションROM部のアドレスを指定
し、シグナルプロセッサはこのインストラクションRO
M内の指定されたアドレスのプログラムを実行するよう
に構成したので、プログラムカウンタ部が外部から制御
でき、シグナルプロセッサが正常に動作しない場合、ハ
ードとソフトの両面から速やかな不良原因の究明ができ
るという効果が得られる。For example, when the external control unit 4 automatically detects the state of this output port and determines that the program in the program unit A (in this case, for example, a program that performs audio processing) has ended, the address counter 2 is It is also possible to control and execute a program in program section B (in this case, for example, a program that performs data processing).
[Effects of the Invention] As explained above, according to the signal processor of the present invention, the program counter section specifies the address of the instruction ROM section based on the control from the external control section, and the signal processor specifies the address of the instruction ROM section.
Since the program is configured to execute the program at the specified address in M, the program counter section can be controlled from the outside, and if the signal processor does not operate properly, the cause of the failure can be quickly determined from both hardware and software aspects. This effect can be obtained.
第1図は本発明のシグナルプロセッサの一実施例を示す
ブロック図、第2図,第3図はその動作説明に供する説
明図である。
■・・・・デイジタルシグナルプロセッサ、2・・・・
プログラムカウンタ、3・・・・インストラクションR
OM、4−・・・外部制御部。FIG. 1 is a block diagram showing an embodiment of the signal processor of the present invention, and FIGS. 2 and 3 are explanatory diagrams for explaining its operation. ■...Digital signal processor, 2...
Program counter, 3...Instruction R
OM, 4-...external control section.
Claims (1)
いて、 プログラムが格納されるインストラクションROM部と
、 このインストラクションROM部のアドレスを指定する
プログラムカウンタ部と、 このプログラムカウンタ部を外部から制御する外部制御
部と を備え、外部制御されたプログラムカウンタ部に基づい
てプログラムを実行するようにしたことを特徴とするシ
グナルプロセッサ。[Claims] A signal processor that processes digital signals includes an instruction ROM section in which a program is stored, a program counter section that specifies the address of this instruction ROM section, and an external device that controls this program counter section from the outside. What is claimed is: 1. A signal processor comprising: a control section; and a signal processor configured to execute a program based on an externally controlled program counter section.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1163682A JPH0330028A (en) | 1989-06-28 | 1989-06-28 | Signal processor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1163682A JPH0330028A (en) | 1989-06-28 | 1989-06-28 | Signal processor |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0330028A true JPH0330028A (en) | 1991-02-08 |
Family
ID=15778598
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP1163682A Pending JPH0330028A (en) | 1989-06-28 | 1989-06-28 | Signal processor |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0330028A (en) |
-
1989
- 1989-06-28 JP JP1163682A patent/JPH0330028A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2526688B2 (en) | Programmable controller and partial execution method of sequence program | |
JPH0330028A (en) | Signal processor | |
JPH0581070A (en) | Programmable controller and user program execution method in programmable controller | |
JPS61240341A (en) | Microprogram controller | |
JPS5842891B2 (en) | Meirei Seigiyohoushiki | |
JP2841405B2 (en) | Microcomputer control circuit | |
JPS6020771B2 (en) | Micro diagnosis method | |
JPH01121950A (en) | Microprocessor with trace function | |
JPS6224325A (en) | Arithmetic processor | |
JPS61235955A (en) | Program debugging system | |
JPH0659931A (en) | Debugging device | |
JPH0527967A (en) | Computer system | |
JPH0259829A (en) | Microcomputer | |
JPS63120336A (en) | Switching system for memory access mode | |
JPH0413728B2 (en) | ||
JPH041829A (en) | Data processor | |
JPH056279A (en) | Processor controller | |
JPH02103636A (en) | Additional arithmetic unit | |
JPH0253146A (en) | Program tracing method | |
JPS59206956A (en) | Debugging method | |
JPH09160800A (en) | Emulator | |
JPH0340039A (en) | Firmware diagnostic device | |
JPS6232509B2 (en) | ||
JPH01288931A (en) | Pl/i program debugging system | |
JPS60239843A (en) | Debugging device |