JPS5852748A - Memory control system - Google Patents

Memory control system

Info

Publication number
JPS5852748A
JPS5852748A JP56151030A JP15103081A JPS5852748A JP S5852748 A JPS5852748 A JP S5852748A JP 56151030 A JP56151030 A JP 56151030A JP 15103081 A JP15103081 A JP 15103081A JP S5852748 A JPS5852748 A JP S5852748A
Authority
JP
Japan
Prior art keywords
memory
commands
output
control
program
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
JP56151030A
Other languages
Japanese (ja)
Inventor
Masaaki Kobayashi
正明 小林
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP56151030A priority Critical patent/JPS5852748A/en
Publication of JPS5852748A publication Critical patent/JPS5852748A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To control a part to be operated at a high speed without increasing memory capacity greatly, by providing an area for storing operation information for operating another part to be operated corresponding to respective areas of a memory stored with commands. CONSTITUTION:Areas for storing operation information for operating parts to be operated are provided corresponding to respective areas of a memory stored with commands. For example, a central processing unit CPU2 reads programs from the program starting addresses of control memories 1a and 1b through an address bus 5 and a data bus 7 to perform processing. Then, a parity check circuit 8 checks the parity bit output of the control memory 1b to detect an error in data stored in the memory 1b, and when the processing of the CPU2 is passed to the program in an address A1, a counter 10 sends a count permit signal. Then, a latch 11 latches the count output of the counter 10 to output a time-over detection signal to the CPU2, thereby performing processing for time- over occurrence.

Description

【発明の詳細な説明】 本発明はメモリ制御方式に係り、特に処理装置(以下C
PUと略称する)を介してメモリ上のプログ2ムコマン
トによりて被作動部の作動11111i41を行なうメ
モリ制御方式に関する・ 従来、ハードウェア上の被作Jwls′を作動させる場
合、0PUillllllプログラムによって行なって
いた。即ち、OPU制御用メモリよに被作動部を制御す
るコマンドを格納し、0PUt五このコマンドを読み出
した後、続出されたコマンドに従い各被作動部の制御を
行なってい友。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a memory control system, and particularly to a processing device (hereinafter referred to as C
This paper relates to a memory control method in which actuated parts are operated 11111i41 by program commands on the memory via the PU (abbreviated as PU). Conventionally, when operating the workpiece Jwls' on the hardware, it was performed using the 0PUillllllll program. . That is, a command for controlling the actuated parts is stored in the OPU control memory, and after reading out this command, each actuated part is controlled according to the successively issued commands.

しかし、上述した方式においてはwaO被作動作動部御
コマンドの各々を制御プログラムV′3に設けるため制
御プログラムのステップ数の増加を招き、その結果、容
量の大きいメモリが必要となる。
However, in the above-described method, each of the waO actuated part control commands is provided in the control program V'3, which results in an increase in the number of steps in the control program, and as a result, a memory with a large capacity is required.

さらに、OPUがコマンドを絖込んでから実際に被作動
部を作動せしめるまでにOPUの処理時間等によって遅
れを生ずる。この友め例えば被作動部がタイマー等のコ
マンドの処理時間を計時するものであればプログラム上
でのタイマー起m時閾に対する実際のハードウェア上で
のタイマー作動時間の遅れ時間がそのttハードウェア
の動作遅延時間となる欠点をも有し友。
Furthermore, a delay occurs from the time the OPU inserts a command until the actuated part is actually activated due to the processing time of the OPU. For example, if the actuated part measures the processing time of a command such as a timer, the delay time of the timer activation time on the actual hardware with respect to the timer activation time threshold on the program is the tt hardware. It also has the drawback of slow operation time.

本発明の目的は上述し次従来の欠点を取除くべくメモリ
容量を大幅に増加させることな(、CPU釧御プログラ
ムのステップHf1−増加させることなく、ま九CPυ
のアクセスと共に直ちに被作aSを作動せしめうるメモ
リ制御方式を提供するにある。
The purpose of the present invention is to eliminate the drawbacks of the prior art, without significantly increasing the memory capacity (step Hf1 of the CPU control program).
The object of the present invention is to provide a memory control method that can immediately activate a created aS upon access.

上記目的を達成するため本発明のメモリ制御方式は!6
JI装置とコマンドを格納するメモリと、複数の被作動
部とを有し、処理W&置が該メモリ内のプログラムコマ
ンドを耽出した後、#続出し几コヤンドに従って所定の
被作動部を作動せしめるメモリsi制御方弐において、
前記メモリff14c他の被作動st作動せしめる作動
情報を格納する領域を前記各コマンドが格納され次領域
に対応して設け、処理装置が該コマンドを耽出すと同時
に前記作動情報が格納された領域より続出し出力される
作動情報によって該他の被作動at作動せしめることを
籍像とする。
In order to achieve the above object, the memory control method of the present invention is! 6
It has a JI device, a memory for storing commands, and a plurality of actuated parts, and after the processing W&P indulges the program command in the memory, it activates the predetermined actuated parts according to the #continuous command. In the memory SI control method 2,
An area for storing operation information for activating the actuated st of the memory ff14c and others is provided corresponding to the next area where each of the commands is stored, and at the same time when the processing device indulges the command, the operation information is stored from the area where the operation information is stored. The goal is to cause the other actuated at to actuate based on the actuation information that is successively output.

以下第1区、@S図を用いて本発明を詳述する・纂1#
!Jは本発明のメモリ制御方式におけるOPU制御用メ
モリ円ssgの一実施例を示す図である。
Section 1 below: The present invention will be explained in detail using @S diagram・Essay 1#
! J is a diagram showing an example of an OPU control memory circle ssg in the memory control method of the present invention.

同図中1m参lb#i8ピットデータのOPU制御用メ
モリである。ここでOPUへのデータは8ビツトであり
、さらに1ピツトのパリティピットが付加される。し友
がって出力が8ビツトである重版されているメモリを用
いると同図のように余剰ピットが生ずる。実施例では余
剰ビットのうちの1ビツトをタイマ起動の友めの作動ピ
ットとするものである。この作動ピットが例えば1!@
1”の出力である期間のみタイマを起動させるとすると
、同図に示すようにアドレスAlよりA、iでの作動ピ
ットを1111とし、その他のアドレスの作動ビットを
IgllとすることによりOPUがアドレスA1からA
、までのステップを実行する期間タイマを起動させるこ
とがで自る。タイマのカウンタ時間を予め設足すること
により、タイマ起動をセットしたステップt−実行する
期間のハードウェア上でのタイムオーバーを検出できる
^ 1IiS図は路1図に示し九〇PU制御用メモリ1a・
lbを用いたメモリffriIIi41方式の一実施例
を示す図である。図中3はCPU、8はクロ、り発生部
、番はラッチ、5はアドレスバス、6はデコーダ、7は
データバス、8はパリティデエック回路、9はデータメ
モリ、10はカウンタ% 11は2ツテである。0PU
ilのアドレスバス5(人0.〜A0)のうち下11ビ
ット(All〜Ao)はl!PIJ御用メモリla、l
b、データメモリ9に接続されている。デコーダ6はア
ドレスバス5の上条ビット(ム1h〜AtS )に接続
され、CPU5“からのメモリ選択情報をデコードし各
メモリへ選択信号を送出する0一方、データバス7へは
!II御用メモリ11の出力8ビツトが接続されている
。データメモリ9は0PUIか制御プログラムに従って
様々のジ習ブを!A理する上での演算結果、データ等を
蓄えるもので、アドレスバス5%データバス7を介シて
0PUIとデータのヤシとりを行なうallIO4用メ
モl/lbのタイマ作動ピット出力はカウンタ10のカ
ウント許可CTE、  リセット几端子へ接続される・
カウンタ10へのカウンタクロックはOPU駆動クロッ
クを供給するクロック発生s′mの出力が供給されてい
る。
This is the OPU control memory for 1m lb#i8 pit data in the same figure. Here, the data to the OPU is 8 bits, and one parity pit is added. However, if a reprinted memory with an 8-bit output is used, surplus pits will occur as shown in the figure. In this embodiment, one of the surplus bits is used as an operation pit for starting the timer. For example, this operating pit is 1! @
Assuming that the timer is activated only during the period when the output is 1", as shown in the figure, the operation bits at addresses A, i from address Al are set to 1111, and the operation bits at other addresses are set to Igll, so that the OPU can A1 to A
It is possible to start a timer for a period of time to execute the steps up to . By setting the counter time of the timer in advance, it is possible to detect a time-out on the hardware during the step t-execution period in which the timer activation is set.
FIG. 3 is a diagram showing an example of a memory ffriIIi41 method using lb. In the figure, 3 is the CPU, 8 is the clock generator, number is the latch, 5 is the address bus, 6 is the decoder, 7 is the data bus, 8 is the parity check circuit, 9 is the data memory, 10 is the counter %, and 11 is the There are two steps. 0PU
The lower 11 bits (All to Ao) of address bus 5 (person 0. to A0) of il are l! PIJ memory la, l
b, connected to the data memory 9; The decoder 6 is connected to the Kamijo bits (M1h to AtS) of the address bus 5, and decodes the memory selection information from the CPU 5 and sends a selection signal to each memory.On the other hand, the data bus 7 is connected to the !II official memory. The 8-bit output of 11 is connected.The data memory 9 is used to store calculation results, data, etc. for processing various programs according to the 0PUI or control program. The timer operation pit output of allIO4 memory 1/lb which performs data collection with 0PUI via 0PUI is connected to the count permission CTE and reset terminal of counter 10.
The counter clock to the counter 10 is supplied with the output of a clock generator s'm that supplies the OPU drive clock.

以下動作を説明する。The operation will be explained below.

0PUIはアドレスバス5、データノ(スフを介して制
御用メモリla*lbのプログツム開始番地より順次プ
ログラムを読み取り処理を行なっていく。
The 0PUI sequentially reads programs from the program start address of the control memory la*lb via the address bus 5 and the data bus.

制御用メモ1Jlbのパリティピット出力は常にパリテ
ィチェック1gl略8によってチェックされ、メモリl
bi記憶されたデータの誤りを検出するために用いられ
る。
The parity pit output of control memo 1Jlb is always checked by parity check 1gl about 8,
biUsed to detect errors in stored data.

oPumの処理がwc1図に示すアドレスAlのプログ
ラムステップに移ると制御用メモリlbの作動ピット出
力は118となりカウンタ1Gのカウント許可m−qと
なる。0PUIのアドレス出力はラッチ番によってレベ
ル保持されているため、OP[J21がアドレスA0の
プログラムを続出した時点よりA、のプログラムを遂行
し、次のアドレスA、をアドレスバスA@=AIIに出
力し、続出され次プログラムが遂行開始するまでの期間
、作動ピット出力はm1llのままでありカウンタlO
はこの期間計時を行なうことになる。0P(lがアドレ
ス人、までの処at終え、次のアドレスのプログラムス
テップの実行に移ると作動ピット出力は再びOIとなり
カウンタlOのリセット偏力となりてカウンタlOはリ
セットされる。しかし、アドレスAlからム1における
OP[Jの実行時において実行時エラー等に工って処理
が永久ループとなってしま−アドレス人、より次のプロ
グラム実行に移らない場合はカウンターOの予め与えら
れたカウント出力によってタイムオーバー検知が行なわ
れる。
When the processing of oPum moves to the program step of the address Al shown in the diagram wc1, the operation pit output of the control memory lb becomes 118, and the count permission of the counter 1G becomes mq. Since the address output of 0PUI is held in level by the latch number, from the time OP[J21 continues to program the address A0, the program A is executed and the next address A is output to the address bus A@=AII. However, the operating pit output remains at m1ll until the next program starts execution, and the counter lO
will perform time measurement during this period. When the processing up to 0P (l is the address person) is completed and the program step of the next address is executed, the operation pit output becomes OI again, which acts as a reset force for the counter IO, and the counter IO is reset.However, when the address Al OP in 1 from 1 When executing J, the process becomes an eternal loop due to a runtime error etc. - If the address does not move on to the next program execution, the pre-given count output of counter O is output. Time over detection is performed by

ラッチ11はカウンターOからのカウント出力をラッチ
してOPU!ヘタイムオーバー検知偏検知山号し、OP
Umはこのタイムオーバー検知山号を割込み山号として
タイムオーツく一発生時の処理に移るO 上述し7を如く本実施例によれば制御用メモリにマ タイ1作動ピットを設定するだけで容易にタイマ作動制
御llを行なうことができる。さらにタイ1作動ピット
によるタイマのセットリセット箇所は制御プログラムの
任意の箇所に任意の数だけ設けることができ、しかもタ
イマのセットリセットは市U御プログラムステップ数に
全く影響を与えない几めプログラムでタイムオー−5−
検知を行なう余裕のない場合に有効である。またメモリ
からの出力に直優タイマ作鍾信号とするので、0PLI
のコマンド処理時間に全く関与なく迅速にタイマー作動
を行なうことができる・ 以上詳述し友ように本発明によれば、ハードウェア上の
被作動部を簡単なハードウェア構成で制御することがで
き、0PUWIJ@プログラムを大幅に簡易化、縮少化
することができる。さらに被作Jill11部の作動制
御はOPUのコマンド取込みと同時に行ない得るので高
速動作の被作動部の制御をも正確に行なうことができる
Latch 11 latches the count output from counter O and OPU! He time over detection bias detection mountain number, OP
Um uses this time over detection peak number as an interrupt peak number and proceeds to the process when the timeout occurs.As described in 7 above, according to this embodiment, the timer can be easily set by simply setting the timer 1 operation pit in the control memory. Operation control can be performed. Furthermore, any number of timer set/reset locations using the tie 1 operation pit can be provided at any location in the control program, and moreover, the timer set/reset is a carefully planned program that does not affect the number of city control program steps at all. Time O-5-
This is effective when there is no room for detection. Also, since the output from the memory is used as a direct timer operation signal, 0PLI
According to the present invention, the actuated part on the hardware can be controlled with a simple hardware configuration. , 0PUWIJ@ program can be greatly simplified and reduced. Furthermore, since the operation of the Jill 11 to be operated can be controlled simultaneously with the OPU's command input, even high-speed actuated units can be accurately controlled.

なお、本実施例においてはタイマを用いたメモリ制御方
式について述べたが本発明はこれに限定されず、メモリ
に設けられ次作動ビット出力を用いて被作動部の動作を
制御する方式のものであれば本発明が通用できるのは勿
論である0
In this embodiment, a memory control method using a timer has been described, but the present invention is not limited to this, but is also applicable to a method in which the operation of an actuated part is controlled using the next operation bit output provided in the memory. Of course, the present invention can be applied if

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

Claims (1)

【特許請求の範囲】[Claims] all装置とコマンドを格納するメモリと、榎数の被作
動部とを有し、石垣装置が該メモリ内のコマンドを続出
した後、該続出したコマンドに従って所定の被作動部を
作動せしめるメモリ劇(2)方式において、前記メモリ
P3に他の被作11hflAを作動せしめる作動情報を
格納する領域をm記各コマンドが格納された領域に対応
して設け、IIJI埋装置が該コマンドを貌出すと同時
忙#記作動情@か格納され次領域より続出し出力される
作動情報によって該他9被作lIb部を作動せしめるこ
と′fr特徴とするメモリ制御方式0
A memory play that has all devices, a memory for storing commands, and a number of actuated parts, and after the Ishigaki device successively issues commands in the memory, a predetermined actuated part is activated in accordance with the successive commands. 2) In the method, an area for storing operation information for activating another workpiece 11hflA is provided in the memory P3 corresponding to an area in which each of the m commands is stored, and at the same time when the IIJI embedded device outputs the command, A memory control method characterized by operating the nine other work units based on the operation information that is stored and successively output from the next area.
JP56151030A 1981-09-24 1981-09-24 Memory control system Pending JPS5852748A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP56151030A JPS5852748A (en) 1981-09-24 1981-09-24 Memory control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP56151030A JPS5852748A (en) 1981-09-24 1981-09-24 Memory control system

Publications (1)

Publication Number Publication Date
JPS5852748A true JPS5852748A (en) 1983-03-29

Family

ID=15509760

Family Applications (1)

Application Number Title Priority Date Filing Date
JP56151030A Pending JPS5852748A (en) 1981-09-24 1981-09-24 Memory control system

Country Status (1)

Country Link
JP (1) JPS5852748A (en)

Similar Documents

Publication Publication Date Title
EP0173515B1 (en) Error recovery system in a data processor having a control storage
US20050097398A1 (en) Program debug method and apparatus
US4355389A (en) Microprogrammed information processing system having self-checking function
JPS5852748A (en) Memory control system
EP0240606A2 (en) Pipe-line processing system and microprocessor using the system
US4943905A (en) Interfacing method in a numerical control apparatus
JPS6222199B2 (en)
JPS60189544A (en) Program testing for data processor and connection system therefor
JPS6146864B2 (en)
JP2662415B2 (en) Trace method
JPS59128640A (en) On-line tracing method in microprogram type computer
SU1649551A1 (en) Program exerciser
JP2548378B2 (en) RAS check function inspection method
JPS63265337A (en) Fault detecting circuit for processor device
SU1485251A1 (en) Control computer check unit
JPS58158747A (en) Programable controller
JPS59153247A (en) Debugging device
JPS6295644A (en) Program debugging device for microprocessor
JPH07113851B2 (en) Numerical control machine tool
JPS6230105Y2 (en)
JPS59231798A (en) Data processor
JPS63263543A (en) Multilevel programming system
JPS6053330B2 (en) Program writing method
JPS61210441A (en) Bug detecting method for program
JPS58199500A (en) Memory control circuit of memory device