JPS6266331A - Memory device - Google Patents
Memory deviceInfo
- Publication number
- JPS6266331A JPS6266331A JP60208009A JP20800985A JPS6266331A JP S6266331 A JPS6266331 A JP S6266331A JP 60208009 A JP60208009 A JP 60208009A JP 20800985 A JP20800985 A JP 20800985A JP S6266331 A JPS6266331 A JP S6266331A
- Authority
- JP
- Japan
- Prior art keywords
- circuit
- branch
- instruction
- increment
- address
- 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
Landscapes
- Executing Machine-Instructions (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
【発明の詳細な説明】
[産業上の利用分野]
この発明はメモリ装置に関し、特に、命令語を記憶する
ための命令メモリをプログラムカウンタからのアドレス
信号に基づいてアドレス指定し、所望の命令語を読出す
ようなメモリ装置の改良に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a memory device, and in particular, an instruction memory for storing instruction words is addressed based on an address signal from a program counter, and a desired instruction word is stored in the memory device. The present invention relates to improvements in memory devices for reading .
〔従来の技術]
第2図は従来のメモリ装置の概略ブロック図である。ま
ず、第2図を参照して、従来のメモリ装置の構成につい
て説明する。命令メモリ1は複数個の命令語を記憶する
ものである。この命令メモリ1のアドレスはプログラム
カウンタ2の1!1数出力によって指定きれる。イして
、プログラムカウンタ2はインクリメント回路3から分
岐制御回路4を介して信号が入力されるごとに、その計
数出力を1だ番ノ更新する。また、プログラムカウンタ
2は分岐制御回路4が分岐回路5側に切換えられている
とき、分岐回路5からのアドレス値が設定される。分岐
制御回路4は分岐条件判断回路6の判断出力に基づいて
、インクリメント回路3側または分岐回路5側に切換え
られる。[Prior Art] FIG. 2 is a schematic block diagram of a conventional memory device. First, the configuration of a conventional memory device will be described with reference to FIG. The instruction memory 1 stores a plurality of instruction words. The address of this instruction memory 1 can be specified by the 1!1 number output of the program counter 2. Then, the program counter 2 updates its count output by 1 every time a signal is input from the increment circuit 3 via the branch control circuit 4. Further, the address value from the branch circuit 5 is set in the program counter 2 when the branch control circuit 4 is switched to the branch circuit 5 side. The branch control circuit 4 is switched to the increment circuit 3 side or the branch circuit 5 side based on the judgment output of the branch condition judgment circuit 6.
次に、動作について説明する。通常の命令を実行すると
きには、分岐条件判断回路6は分岐制御回路4をインク
リメント回路3側に切換える。それによって、プログラ
ムカウンタ2はインクリメント回路3から信号が入力さ
れるごとに、イの計数値を1ずつ増加し、命令メモリ1
のアドレスを指定して、所定の命令語を読出す。一方、
分岐命令などの実行に際しては、分岐条件判断回路6が
その分岐命令を判断し、分岐制御回路4を分岐回路5側
に切換える。それによって、プログラムカウンタ2には
、分岐回路5から出力されたアドレス値が設定される。Next, the operation will be explained. When executing a normal instruction, the branch condition determination circuit 6 switches the branch control circuit 4 to the increment circuit 3 side. As a result, the program counter 2 increases the count value of A by 1 each time a signal is input from the increment circuit 3, and the instruction memory 1
Specify the address and read the predetermined instruction word. on the other hand,
When executing a branch instruction, the branch condition determination circuit 6 determines the branch instruction and switches the branch control circuit 4 to the branch circuit 5 side. Thereby, the address value output from the branch circuit 5 is set in the program counter 2.
[発明が解決しようとする問題点]
従来のメモリ装置は上述のごとく構成されているため、
機能試験を行なうために、通常のユーザプログラムを実
行すると、分岐による繰返しループが存在するために、
同じ命令語が何回も実行され、機能試験に時間がかかる
という問題点があった。[Problems to be solved by the invention] Since the conventional memory device is configured as described above,
When running a normal user program to perform a functional test, there are repetitive loops caused by branches, so
There was a problem in that the same instruction word was executed many times and the functional test took time.
一般に、機能試験を行なうときには、多種類の命令語を
できるだけ短時間に実行することが望ましく、従来のメ
モリ装置によるユーザプログラムの実行は機能試験に適
さないという欠点があった。Generally, when performing a functional test, it is desirable to execute a wide variety of commands in as short a time as possible, and the execution of a user program using a conventional memory device has the disadvantage that it is not suitable for functional testing.
それゆえに、この発明の主たる目的は、ユーザプログラ
ムの実行を強制的に制御することにより、ユーザプログ
ラムを用いた機能試験に適した動作を行なうことのでき
るようなメモリ装置を提供することである。Therefore, a main object of the present invention is to provide a memory device that can perform operations suitable for functional testing using a user program by forcibly controlling the execution of the user program.
[問題点を解決するための手段]
この発明にかかるメモリ装置は、命令語を記憶する命令
メモリのアドレス指定をプログラムカウンタによって行
ない、インクリメント回路によってプログラムカウンタ
のアドレス値を更新するかあるいはアドレス設定回路に
よってアドレス値を設定するかを分岐回路によって指定
するものにおいて、分岐回路の指定にかかわらず、その
指定を抑制して、分岐抑−1回路により強制的にインク
リメント回路側の動作を指定するようにしたものである
。[Means for Solving the Problems] A memory device according to the present invention uses a program counter to address an instruction memory that stores instruction words, and updates the address value of the program counter using an increment circuit or an address setting circuit. In the case where the branch circuit specifies whether to set the address value by the branch circuit, the specification is suppressed and the branch suppress-1 circuit forcibly specifies the operation on the increment circuit side, regardless of the specification of the branch circuit. This is what I did.
[作用]
この発明にかかるメモリ装置は、分岐命令などに対して
、分岐しないようにする動作モードを設定することによ
り、ユーザプログラムの分岐命令を無視して実行し、結
果としてユーザプログラムにプログラムされている多種
類の命令をすべて実行でき、繰返しループも発生しない
ため、特定の命令のみが数多く実行されることもなく、
ユーザプログラムによる機能試験に適した動作を行なう
ことができる。[Operation] The memory device according to the present invention ignores and executes the branch instruction of the user program by setting an operation mode that prevents the branch instruction from branching, and as a result, the memory device that is programmed in the user program It is possible to execute all of the many different types of instructions that are available, and no repetitive loops occur, so there is no need to execute many specific instructions.
It is possible to perform operations suitable for functional tests using user programs.
[発明の実施例]
第1図はこの発明の一実施例のブロック図である。この
第1図に示す実施例は、前述の第2図に示した分岐条件
判断回路6に代えて分岐抑制機能付分岐条件判断回路8
を設け、この分岐抑制機能付分岐条件判断回路8に分岐
抑制動作モード信号を入力するための入力端子7を設け
たものであって、それ以外の分岐メモリ1とプログラム
カウンタ2とインクリメント回路3と分岐制御回路4と
分岐回路5は前述の第2図と同じものが用いられる。[Embodiment of the Invention] FIG. 1 is a block diagram of an embodiment of the invention. In the embodiment shown in FIG. 1, a branch condition judgment circuit 8 with a branch suppression function is used instead of the branch condition judgment circuit 6 shown in FIG.
The branch condition determination circuit 8 with branch suppression function is provided with an input terminal 7 for inputting a branch suppression operation mode signal, and the other branch memory 1, program counter 2, increment circuit 3, The branch control circuit 4 and branch circuit 5 are the same as those shown in FIG. 2 described above.
次に、動作について説明する。入力端子7に通常動作モ
ード信号が入力されたときには、前述の第2図の説明と
同様の動作を行なう。すなわち、分岐制御回路4はイン
クリメント回路3側に切換えられ、プログラムカウンタ
2はインクリメント回路3からの信号に基づいて、アド
レス値を更新して命令メモリ1のアドレスを指定する。Next, the operation will be explained. When the normal operation mode signal is input to the input terminal 7, the same operation as described above with reference to FIG. 2 is performed. That is, the branch control circuit 4 is switched to the increment circuit 3 side, and the program counter 2 updates the address value based on the signal from the increment circuit 3 to designate the address of the instruction memory 1.
一方、−〇−
分岐命令などの実行に際しては、分岐抑IIIJ機能付
分岐条件判断回路8の判断に基づいて、分岐制御回路4
が分岐回路5側に切換えられる。それによって、プログ
ラムカウンタ2は分岐回路5から与えられるアドレス値
を設定し、そのアドレス値に基づいて、命令メモリ1の
アドレスを指定する。On the other hand, when executing a branch instruction or the like, the branch control circuit 4
is switched to the branch circuit 5 side. Thereby, the program counter 2 sets the address value given from the branch circuit 5, and specifies the address of the instruction memory 1 based on the address value.
入力端子7に分岐抑制動作モード信号が与えられると、
分岐抑制機能付分岐条件判断回路8はプログラムカウン
タ2の内容に応じて分岐抑制を行なうか否かを判断する
。つまり、命令メモリ1の特定のアドレスに記憶されて
いる命令語を実行するときにのみ、分岐抑制条件が成立
しているものと判断し、分岐制御回路40入力をインク
リメント回路3側に強制的に指定することにより、分岐
抑制を行なう。第1図は入力端子7に分岐抑制動作モー
ド信号が与えられかつ分岐抑制の対象どなる命令メモリ
1の特定アドレスにある命令語を実行するときの状態を
示しており、分岐制御回路4の入力が命令の実行結果に
かかわらず、常にインクリメント回路3側から行なわれ
るために、分岐が抑制される。When the branch suppression operation mode signal is applied to the input terminal 7,
A branch condition determination circuit 8 with a branch suppression function determines whether or not to perform branch suppression according to the contents of the program counter 2. In other words, only when executing the instruction word stored at a specific address in the instruction memory 1, it is determined that the branch suppression condition is satisfied, and the input of the branch control circuit 40 is forced to the increment circuit 3 side. By specifying this, branching is suppressed. FIG. 1 shows a state when a branch suppression operation mode signal is applied to the input terminal 7 and an instruction word at a specific address in the instruction memory 1 to be branch suppressed is executed, and the input to the branch control circuit 4 is Regardless of the execution result of the instruction, branching is suppressed because it is always executed from the increment circuit 3 side.
上述のごとく、分岐抑制機能付分岐条件判断回路8およ
び入力端子7を設けることにより、分岐抑制機能を実現
でき、命令メモリ1に記憶された複数の命令語のうち、
特定のアドレスに記憶されている命令語に対してのみ分
岐抑制を行なうことができる。したがって、命令メモリ
1の特定アドレスに記憶されたユーザプログラムを繰返
しループなしで実行することができ、短時間にユーザプ
ログラムを用いてメモリ装胃の機能試験を行なうことが
できる。As described above, by providing the branch condition determination circuit 8 with branch suppression function and the input terminal 7, the branch suppression function can be realized.
Branching can be inhibited only for instruction words stored at specific addresses. Therefore, the user program stored at a specific address in the instruction memory 1 can be executed without repeating a loop, and the functionality of the memory storage can be tested in a short time using the user program.
なお、上述の実施例では、入力端子7に分岐抑制動作モ
ード信号を与えることにより、分岐抑制を行なうかどう
かを分岐抑制機能付分岐条件判断回路8によって判断す
るようにしたが、命令メモリ1に分岐抑制制御用の命令
語を設け、この命令語が読出されたとき、分岐抑制機能
付分岐条件判断回路8が判断を行なって、その結果とし
て分岐抑制機能を行なうこともできる。その場合には、
入力端子7を省略できる。In the above-described embodiment, the branch condition determination circuit 8 with a branch suppression function determines whether or not branch suppression is to be performed by applying a branch suppression operation mode signal to the input terminal 7. It is also possible to provide an instruction word for branch suppression control, and when this instruction word is read out, the branch condition judgment circuit 8 with branch suppression function makes a judgment, and as a result, performs the branch suppression function. In that case,
The input terminal 7 can be omitted.
[発明の効果]
以上のように、この発明によれば、分岐回路の指定にか
かわらず、その指定を抑制して強制的にインクリメント
回路側の動作を指定できるようにしたので、ユーザプロ
グラムを実行するときの分岐を抑制することができ、繰
返しループを抑制してユーザプログラムを用いた機能試
験を行なう際に、多種類の命令語を短時間に実行でき、
機能試験を容易に行なうことができる。[Effects of the Invention] As described above, according to the present invention, regardless of the specification of a branch circuit, the specification can be suppressed and the operation of the increment circuit side can be forcibly specified, so that the user program cannot be executed. It is possible to suppress branching when executing a program, suppress repetitive loops, and execute a wide variety of instruction words in a short time when performing functional tests using user programs.
Functional tests can be easily performed.
第1図はこの発明の一実施例のブロック図である。第2
図は従来のメ−E IJ仙装のブロック図である。
図において、1は命令メモリ、2はプログラムカウンタ
、3はインクリメント回路、4は分岐制御回路、5は分
岐回路、7は入力端子、8は分岐抑制機能イ4分岐条件
判断回路を示す。FIG. 1 is a block diagram of one embodiment of the present invention. Second
The figure is a block diagram of a conventional ME-E IJ system. In the figure, 1 is an instruction memory, 2 is a program counter, 3 is an increment circuit, 4 is a branch control circuit, 5 is a branch circuit, 7 is an input terminal, 8 is a branch suppression function, and 4 is a branch condition judgment circuit.
Claims (4)
べき命令語のアドレスを指定するためのプログラムカウ
ンタ、 前記プログラムカウンタのアドレス値を更新するための
インクリメント回路、 前記プログラムカウンタに所定のアドレス値を設定する
ためのアドレス設定回路、 前記インクリメント回路によるアドレス値の更新と前記
アドレス設定回路によるアドレス値の設定のいずれか一
方を動作させるように指定する分岐回路、および 前記分岐回路の指定にかかわらず、その指定を抑制して
、強制的に前記インクリメント回路側の動作を指定する
ための分岐抑制回路を備えた、メモリ装置。(1) an instruction memory for storing instruction words; a program counter for specifying the address of the instruction word to be executed among the instruction words stored in the instruction memory; and a program counter for specifying the address of the instruction word to be executed among the instruction words stored in the instruction memory; an increment circuit; an address setting circuit for setting a predetermined address value in the program counter; a branch for specifying to operate either updating of the address value by the increment circuit or setting of the address value by the address setting circuit; A memory device comprising a circuit and a branch suppression circuit for suppressing the specification and forcibly specifying an operation on the side of the increment circuit regardless of the specification of the branch circuit.
た命令語のうち、特定のアドレスに記憶されている命令
語に対してのみ動作するようにした、特許請求の範囲第
1項記載のメモリ装置。(2) The branch suppression circuit operates only on instruction words stored at a specific address among the instruction words stored in the instruction memory. memory device.
、前記分岐抑制回路に与えるための入力端子を含む、特
許請求の範囲第1項記載のメモリ装置。(3) The memory device according to claim 1, further comprising an input terminal for receiving a control signal for controlling the branch suppression and applying it to the branch suppression circuit.
特許請求の範囲第1項記載のメモリ装置。(4) providing a command word for controlling the branch suppression;
A memory device according to claim 1.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60208009A JPS6266331A (en) | 1985-09-18 | 1985-09-18 | Memory device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60208009A JPS6266331A (en) | 1985-09-18 | 1985-09-18 | Memory device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPS6266331A true JPS6266331A (en) | 1987-03-25 |
Family
ID=16549155
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP60208009A Pending JPS6266331A (en) | 1985-09-18 | 1985-09-18 | Memory device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6266331A (en) |
-
1985
- 1985-09-18 JP JP60208009A patent/JPS6266331A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20030056071A1 (en) | Adaptable boot loader | |
| US4672534A (en) | Integrated circuit device incorporating a data processing unit and a ROM storing applications program therein | |
| GB1418005A (en) | Programmable logic controller | |
| US6272388B1 (en) | Program structure and method for industrial control | |
| US6865636B1 (en) | Multitasking processor system for monitoring interrupt events | |
| US4722043A (en) | Control system with changable time-shared execution of ladder and non-ladder programs | |
| US4807178A (en) | Programmable sequence controller having indirect and direct input/output apparatus | |
| US4989178A (en) | Programmable controller having forcibly set or reset I/O states controlled by stored flags in a flag memory | |
| JPS6339928B2 (en) | ||
| JPS62271003A (en) | Programmable controller | |
| JPH0619518A (en) | Program calling system | |
| JPH0751610Y2 (en) | Programmable controller with override function | |
| JPH03233703A (en) | Sequence controller | |
| JPS60171537A (en) | Microprogram controller | |
| SU1674136A1 (en) | Program debugger | |
| JPH01297732A (en) | Interrupt control method | |
| JPS61133437A (en) | One chip microcomputer | |
| JPH01250127A (en) | Data input method | |
| JPS61164591A (en) | Memory apparatus of washing method | |
| JPS6310237A (en) | Program control method | |
| JPS636637A (en) | Memory switching device | |
| KR19980083128A (en) | Multitask fast performance device in PLC system | |
| JPH04160408A (en) | Numerical controller | |
| KR20010016871A (en) | Apparatus for interpreting SFC in a control system | |
| JPS62125441A (en) | One-chip microcomputer |