JPH09237144A - Input and output controller - Google Patents

Input and output controller

Info

Publication number
JPH09237144A
JPH09237144A JP8044609A JP4460996A JPH09237144A JP H09237144 A JPH09237144 A JP H09237144A JP 8044609 A JP8044609 A JP 8044609A JP 4460996 A JP4460996 A JP 4460996A JP H09237144 A JPH09237144 A JP H09237144A
Authority
JP
Japan
Prior art keywords
data
input
timer
instruction
register
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
JP8044609A
Other languages
Japanese (ja)
Inventor
Kiyoshi Tsuchiyama
浄之 土山
Yoji Yamada
洋史 山田
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.)
Mazda Motor Corp
Original Assignee
Mazda Motor Corp
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 Mazda Motor Corp filed Critical Mazda Motor Corp
Priority to JP8044609A priority Critical patent/JPH09237144A/en
Publication of JPH09237144A publication Critical patent/JPH09237144A/en
Pending legal-status Critical Current

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

PROBLEM TO BE SOLVED: To make it possible to operate data with optional bit width without imposing load to a CPU by temporarily storing operation result information from a timer computing element in a count control circuit and outputting the stored information based upon an instruction from an instruction controller. SOLUTION: Timer data for I/O control are stored in a timer register(TR) and prescribed reference data for I/O control are stored in a comparator/capture register CR. The timer computing element (TE) executes operation based upon the timer data, the reference data and I/O data. The count control circuit to be a storage means consisting of an one-bit register and an AND circuit temporarily stores information OC such as the compared result and overflow of the element TE. When an overflow flag stored in the register is valid and an extension instruction EX from an instruction controller CTL is valid, their AND becomes true and outputs a count up enable signal EN to the element TE.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は入出力制御装置の改
良に関し、詳しくは、入出力制御処理に含まれるタイマ
演算処理を、任意のビット幅のデータについて行えるよ
うに改良された入出力制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an improvement of an input / output control device, and more particularly, an input / output control device improved so that timer arithmetic processing included in the input / output control processing can be performed on data of an arbitrary bit width Regarding

【0002】[0002]

【従来の技術】入出力制御装置に含まれるタイマ演算回
路は、データを記憶するレジスタや、データの比較を実
行する比較器などからなるため、演算で扱うことができ
るデータのビット幅は、通常これらのハードウェアによ
り制限される。すなわち、例えばレジスタや比較器が3
2ビットである場合、そのままでは32ビットより大き
いデータの演算は実現できない。この場合、必要な大き
さのハードウェアを用意すれば、より大きなビット幅の
データ演算ができることは明らかであるが、これはコス
トがかかるばかりでなく、物理的にもハードウェアが大
きくなってしまうため、集積化などの観点からみても好
ましいとは言えない。そのため、一般に、オーバーフロ
ーなどが発生した場合、すなわち演算結果が用意された
ハードウェアで扱える最大の値を越えてしまうような場
合には、例えば、オーバーフローが生じたことによりC
PUに割込みをかけ、CPUから別のプログラムを起動
させてオーバーフローの回数を数えるといった処理を行
わせる方法が用いられていた。あるいは、オーバーフロ
ーが生じた際に、外部端子あるいは内部端子を通じて信
号を一旦出力してから演算の続行が可能であることを意
味するカウントアップイネーブル信号として再入力し、
このカウントアップイネーブル信号が入力された際に、
その信号に応じてオーバーフローに対する処理が実行さ
れるようにする方法が用いられていた。
2. Description of the Related Art Since a timer arithmetic circuit included in an input / output control device is composed of a register for storing data, a comparator for comparing data, etc., the bit width of data that can be handled by arithmetic is usually Limited by these hardware. That is, for example, if the register or comparator is
In the case of 2 bits, the operation of data larger than 32 bits cannot be realized as it is. In this case, it is clear that if the necessary size of hardware is prepared, data operation with a larger bit width can be performed, but this is not only costly, but also physically increases the hardware. Therefore, it is not preferable from the viewpoint of integration. Therefore, in general, when an overflow occurs, that is, when the operation result exceeds the maximum value that can be handled by the prepared hardware, for example, C
A method of interrupting the PU and activating another program from the CPU to count the number of overflows has been used. Alternatively, when an overflow occurs, a signal is once output through the external terminal or the internal terminal and then re-input as the count-up enable signal, which means that the operation can be continued.
When this count-up enable signal is input,
A method has been used in which the processing for the overflow is executed according to the signal.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、CPU
に割込みをかける方法では、CPUに負荷がかかってし
まうばかりか、さらには、CPUが割込みにより要求さ
れた処理を行っている間、入出力制御装置が次の処理を
行わないようにしなければデータの整合性が保てないと
いう問題もあった。これは、入出力制御装置の本来の目
的が、入出力にかかる処理を独立して行うことによりC
PUの負荷を軽減するとともに処理の高速化を図ること
であることから考えて、明らかに好ましくない。
However, the CPU
The method of interrupting the data not only puts a load on the CPU, but further, while the CPU is performing the processing requested by the interrupt, the input / output control device must prevent the next processing from being performed. There was also a problem that the consistency of could not be maintained. This is because the original purpose of the input / output control device is to perform C / I
This is obviously not preferable in view of reducing the load on the PU and increasing the processing speed.

【0004】また、端子を通じてオーバーフローを意味
する信号を出力してカウントアップイネーブル信号とし
て再入力する方法は、本来制御すべきデータに加えてカ
ウントアップイネーブル信号も入出力することになるた
め、その分本来のデータ入出力の効率は悪くなる。ま
た、カウントアップイネーブル信号が入力された際に、
その信号に応じてオーバーフローに対する処理が実行さ
れるようにするためには、入出力データに応じて実行さ
れる処理としてその処理を登録しておかなければならな
いが、このような処理として登録できる数は限られてお
り、オーバーフローのための処理を登録すれば、本来の
入出力制御用に登録できる処理の数はその分減ることに
なる。すなわち、この方法もまた、入出力装置の本来の
機能、性能を犠牲にすることになるため、好ましいとは
いえない。
In the method of outputting a signal indicating overflow through the terminal and re-inputting it as the count-up enable signal, the count-up enable signal is input / output in addition to the data to be originally controlled. The original efficiency of data input / output becomes poor. Also, when the count-up enable signal is input,
In order to execute the processing for the overflow according to the signal, it is necessary to register the processing as the processing executed according to the input / output data, but the number that can be registered as such processing. However, if the process for overflow is registered, the number of processes that can be registered for the original input / output control will be reduced accordingly. That is, this method also sacrifices the original function and performance of the input / output device, and is not preferable.

【0005】本発明は、上記従来技術の問題点に鑑み
て、CPUに負荷をかけず、また本来の機能や性能を満
たしつつ、任意のビット幅のデータの演算を行うことが
可能な入出力制御装置を提供することを目的とする。
In view of the above-mentioned problems of the prior art, the present invention is an input / output capable of performing arithmetic operation on data of an arbitrary bit width without imposing a load on the CPU and satisfying the original function and performance. An object is to provide a control device.

【0006】[0006]

【課題を解決するための手段】本発明は、入出力データ
の入出力制御を行う入出力制御装置において、前記入出
力制御にかかるタイマデータを格納する第1の記憶手段
と、前記入出力制御にかかる所定の参照用データを格納
する第2の記憶手段と、前記タイマデータ、前記参照用
データおよび前記入出力データのうち少なくとも1つに
基づいて演算を行う演算手段と、該演算の演算結果にか
かる情報を格納する第3の記憶手段と、前記第1、第
2、第3の記憶手段および前記演算手段に対し、前記演
算にかかる命令を送出する命令制御手段とを備え、前記
演算手段が所定の演算を行う際に、前記第3の記憶手段
が前記命令制御手段からの命令に基づいてその第3の記
憶手段に記憶された前記情報を前記演算手段に対して送
出することにより、該演算手段が演算を行うに際し、そ
の所定の演算以前に行われた演算の演算結果にかかる情
報を使用しうることを特徴とするものである。
According to the present invention, in an input / output control device for controlling input / output of input / output data, first storage means for storing timer data relating to the input / output control, and the input / output control. Second storage means for storing the predetermined reference data according to the above, operation means for performing operation based on at least one of the timer data, the reference data and the input / output data, and operation result of the operation And a command control unit for sending a command related to the calculation to the first, second and third storage units and the calculation unit. When the predetermined arithmetic operation is performed, the third storage means sends the information stored in the third storage means to the arithmetic means based on an instruction from the instruction control means, Upon calculating means performs the calculation, and is characterized in that usable calculation results to such information of the operation performed on the predetermined operation earlier.

【0007】タイマデータは、システムクロックに応じ
て順次カウントアップあるいはカウントダウンされるよ
うなデータであり、参照用データは予め所定の値に設定
されているようなデータである。これらのデータの意味
あるいは役割は、入出力処理プログラムにおいて定義さ
れるものであり、特に限定されるものではない。一例と
しては、所定の間隔で出力を反転させるといった処理を
行う場合、所定の間隔を参照用データとして記憶してお
き、タイマデータを0から順次カウントアップし、参照
用データと比較演算を行って一致した時点で出力を反転
するといった制御を行えば、所定の間隔で出力を反転す
ることができる。
The timer data is data which is sequentially counted up or down according to the system clock, and the reference data is data which is preset to a predetermined value. The meaning or role of these data is defined in the input / output processing program and is not particularly limited. As an example, when performing a process of inverting the output at a predetermined interval, the predetermined interval is stored as reference data, the timer data is sequentially counted up from 0, and the comparison operation is performed with the reference data. If the output is inverted at the time of coincidence, the output can be inverted at a predetermined interval.

【0008】第1および第2の記憶手段は、16ビット
あるいは32ビットなどデータを格納するに十分なビッ
ト幅を有するレジスタなどであり、1つ以上のデータを
記憶することができるものである。一方、第3の記憶手
段は、1ビットあるいは2ビットといった少量の情報を
一時的に格納することができるレジスタあるいはラッチ
回路のようなものである。この第3の記憶手段に記憶さ
れる情報としては、具体的には演算においてオーバーフ
ローが生じたことを示す情報や、タイマデータと参照用
データの比較演算の結果を示す情報などがあり、第3の
記憶手段の容量はこれらの情報量に応じて定めればよ
い。
The first and second storage means are registers or the like having a bit width sufficient to store data such as 16 bits or 32 bits, and can store one or more data. On the other hand, the third storage means is like a register or a latch circuit that can temporarily store a small amount of information such as 1 bit or 2 bits. The information stored in the third storage means specifically includes information indicating that an overflow has occurred in the calculation, information indicating the result of the comparison calculation of the timer data and the reference data, and the like. The capacity of the storage means may be determined according to the amount of information.

【0009】なお、第3の記憶手段に記憶された情報を
演算手段に対して送出することにより、演算手段が演算
を行うに際し、その所定の演算以前に行われた演算の演
算結果にかかる情報を使用するとは、例えば、第1の記
憶手段が16ビットのデータしか記憶できず、演算手段
もまた16ビットの演算器である場合おいて、32ビッ
トのタイマデータを、上位16ビットと下位16ビット
の2つの16ビットデータとして扱い、下位16ビット
のデータをカウントアップしてオーバーフローが発生し
た場合に、第3の記憶手段にオーバーフローを意味する
情報を記憶しておき、次に行う演算で、その情報が記憶
されていれば上位16ビットのデータをカウントアップ
し、その情報が記憶されていなければ何もしないように
して、32ビットのタイマデータの演算を行うといった
ことを意味する。
By sending the information stored in the third storage means to the arithmetic means, when the arithmetic means performs the arithmetic operation, the information on the arithmetic result of the arithmetic operation performed before the predetermined arithmetic operation. Using, for example, when the first storage means can store only 16-bit data and the arithmetic means is also a 16-bit arithmetic unit, the 32-bit timer data is converted into upper 16 bits and lower 16 bits. If two bits of 16-bit data are handled and the lower 16-bit data is counted up and an overflow occurs, the information indicating the overflow is stored in the third storage means, and the next calculation is performed. If the information is stored, the upper 16 bits of data are counted up, and if the information is not stored, nothing is done, and 32 bits are set. Means that such performs calculation of the timer data.

【0010】別の例として、32ビットのデータの比較
演算を16ビットの演算器で行う場合もあげられる。す
なわち、下位16ビットの比較を行って比較結果を第3
の記憶手段に記憶しておけば、上位16ビットを比較し
て一致した際に、この情報から下位ビットが一致してい
たかどうかがわかるため、2つの比較演算の結果を関連
づけることにより32ビットデータの比較結果がわかる
ことになる。このように同様の処理を繰り返すことによ
り、さらに大きな任意のビット幅のデータ演算が可能と
なる。
As another example, there is also a case where a comparison operation of 32-bit data is performed by a 16-bit arithmetic unit. That is, the lower 16 bits are compared and the comparison result is the third
If the upper 16 bits are compared and coincident with each other, it is possible to know from this information whether or not the lower bits coincide with each other. Therefore, by associating the results of two comparison operations with each other, 32-bit data is stored. The comparison result of will be understood. By repeating the same processing in this way, it is possible to perform data operation with a larger arbitrary bit width.

【0011】[0011]

【発明の効果】本発明の入出力制御装置によれば、デー
タの演算結果を一時的に記憶する小容量記憶手段を設
け、そこに記憶された演算結果を後の演算において参照
して複数の演算を関連づけることにより、CPUに負荷
をかけず、また本来の機能や性能を満たしつつ、演算器
が扱えるビット幅より大きな任意のビット幅のデータの
演算を行うことができる。
According to the input / output control device of the present invention, a small-capacity storage means for temporarily storing the operation result of data is provided, and the operation result stored therein is referred to in the subsequent operation to obtain a plurality of data. By associating the arithmetic operations, it is possible to perform arithmetic operations on data having an arbitrary bit width larger than the bit width that can be handled by the arithmetic unit while not imposing a load on the CPU and satisfying the original function and performance.

【0012】[0012]

【発明の実施の形態】以下、本発明の入出力制御装置に
ついて、図面を参照して詳細に説明する。はじめに、図
4に示される従来の入出力制御装置の構成および動作に
ついて説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, an input / output control device of the present invention will be described in detail with reference to the drawings. First, the configuration and operation of the conventional input / output control device shown in FIG. 4 will be described.

【0013】図4の入出力制御装置は、上記第1の記憶
手段に相当するタイマレジスタTR、タイマレジスタに
記憶されるタイマデータにアクセスする際のアドレス変
換処理などを行うタイマーレジスタアドレスデコーダM
UXT、上記第2の記憶手段に相当するコンペア/キャ
プチャレジスタCR、コンペア/キャプチャレジスタア
ドレスデコーダMUXC、タイマ演算器TE、端子入出
力装置IOC、命令制御装置CTLとにより構成される
パルス入出力制御装置である。なお、命令制御装置CT
Lは、プログラムカウンタPC、命令アドレスデコーダ
MUXP、命令記憶装置MEM、命令コードデコーダD
ECとから構成される。
The input / output control device of FIG. 4 includes a timer register TR corresponding to the first storage means, and a timer register address decoder M for performing address conversion processing when accessing timer data stored in the timer register.
UXT, compare / capture register CR corresponding to the second storage means, compare / capture register address decoder MUXC, timer calculator TE, terminal input / output device IOC, and instruction control device CTL Is. The command control device CT
L is a program counter PC, an instruction address decoder MUXP, an instruction storage device MEM, an instruction code decoder D
It is composed of EC and.

【0014】図4の入出力制御装置は、CPUがプログ
ラムカウンタPCを起動することにより動作を開始し、
CPUがプログラムカウンタPCを停止することにより
動作を終了する。入出力制御装置が行う処理は命令記憶
装置MEMにプログラムとして記憶されており、プログ
ラムカウンタPCが実行すべき命令のアドレスを指定す
る。プログラムカウンタPCが出力したアドレスは、命
令アドレスデコーダMUXPによりデコードされて命令
記憶装置MEMに送られ、命令記憶装置MEMは、対応
する命令コードを命令コードデコーダDECに出力す
る。命令コードデコーダDECは、命令コードをデコー
ドし、タイマレジスタCR、コンペア/キャプチャレジ
スタCR、タイマ演算器TE、端子入出力装置IOCな
どにデコードした命令を送出する。
The input / output controller of FIG. 4 starts its operation when the CPU activates the program counter PC,
The operation is terminated by the CPU stopping the program counter PC. The processing performed by the input / output control device is stored as a program in the instruction storage device MEM, and the program counter PC specifies the address of the instruction to be executed. The address output by the program counter PC is decoded by the instruction address decoder MUXP and sent to the instruction storage device MEM, and the instruction storage device MEM outputs the corresponding instruction code to the instruction code decoder DEC. The instruction code decoder DEC decodes the instruction code and sends the decoded instruction to the timer register CR, the compare / capture register CR, the timer arithmetic unit TE, the terminal input / output device IOC and the like.

【0015】タイマレジスタTRは、命令制御装置CT
LからタイマレジスタアドレスTAを受け取り、該当す
るアドレスのタイマデータTIをタイマ演算器TEに送
出し、タイマ演算器TEの演算が終了すると、そのタイ
マ演算器TEから送られたタイマデータTOを受け取っ
て該当するアドレスに格納する。コンペア/キャプチャ
レジスタCRは、命令制御装置CTLからアドレスCR
を受け取り、該当するコンペアデータCIをタイマ演算
器TEに出力する。またキャプチャフラグCFが有効な
時は、キャプチャデータCOを該当するアドレスに格納
する。一般にコンペアとキャプチャが同時に起こること
はないため、アドレスCAがコンペアデータ/キャプチ
ャデータの両方のアドレスを示すものとする。
The timer register TR is a command controller CT.
When the timer register address TA is received from L, the timer data TI of the corresponding address is sent to the timer calculator TE, and when the calculation of the timer calculator TE is completed, the timer data TO sent from the timer calculator TE is received. Store at the corresponding address. The compare / capture register CR receives the address CR from the instruction controller CTL.
Is received and the corresponding compare data CI is output to the timer calculator TE. When the capture flag CF is valid, the capture data CO is stored in the corresponding address. In general, compare and capture do not occur at the same time, so the address CA indicates both the address of compare data / capture data.

【0016】タイマ演算器TEは、命令制御装置CTL
からの命令COMおよび端子状態PIに基づいて、演算
を行う。例えば、命令COMがタイマデータのカウント
アップであれば、タイマレジスタTRより、カウントア
ップすべきタイマデータTIが送られてくるので、それ
をカウントアップし、カウントアップ後のタイマデータ
TOをタイマレジスタTRに送出する。また、命令CO
Mがタイマデータとコンペアデータの比較命令であれ
ば、タイマレジスタTRから送られてくるタイマデータ
TIと、コンペア/キャプチャレジスタCRから送られ
てくるコンペアデータCIとを比較し、2つのデータが
一致した際に、例えばCPUに対して割り込みをかけ
る。また、命令COMがキャプチャであれば、該当する
データを、キャプチャデータCOとして、コンペア/キ
ャプチャレジスタCRに対して送出する。
The timer arithmetic unit TE is a command controller CTL.
Calculation is performed based on the command COM from the terminal and the terminal state PI. For example, if the instruction COM counts up the timer data, the timer data TR to be counted up is sent from the timer register TR. Therefore, it is counted up and the timer data TO after the count-up is counted in the timer register TR. Send to. Also, the command CO
If M is an instruction to compare the timer data with the compare data, the timer data TI sent from the timer register TR and the compare data CI sent from the compare / capture register CR are compared, and the two data match. When that happens, an interrupt is issued to the CPU, for example. If the command COM is capture, the corresponding data is sent to the compare / capture register CR as capture data CO.

【0017】入出力制御装置IOCは、端子動作命令I
OSにより、外部入力を受け付ける命令であれば特定の
外部端子の状態PIをタイマ演算器TEに対して送出
し、外部出力を行う命令であれば、タイマ演算器TEの
演算結果POを特定の外部端子に出力する。なお、端子
動作命令IOSには、端子を特定する端子番号も含まれ
る。
The input / output control unit IOC uses the terminal operation command I.
The OS sends a state PI of a specific external terminal to the timer arithmetic unit TE if it is an instruction to receive an external input, and outputs the calculation result PO of the timer arithmetic unit TE to a specific external if it is an instruction to output externally. Output to the terminal. Note that the terminal operation instruction IOS also includes a terminal number that identifies a terminal.

【0018】このような従来の入出力制御装置において
は、上述のようにそのままでは、タイマレジスタTR、
コンペア/キャプチャレジスタCRあるいはタイマ演算
器TEのビット幅の演算しか行えず、任意のビット幅の
演算を行わせるためには、入出力装置本来の機能あるい
は性能を犠牲にしなければならない。
In such a conventional input / output control device, as described above, the timer register TR,
Only the bit width of the compare / capture register CR or the timer arithmetic unit TE can be calculated, and the original function or performance of the input / output device must be sacrificed in order to calculate the arbitrary bit width.

【0019】本発明の入出力制御装置は、図1に示され
るように、図4の入出力制御装置に第3の記憶手段であ
るカウント制御装置CCTを追加したものであり、この
カウント制御装置CCTは、タイマ演算器の比較結果や
オーバーフローなどの情報OCを一時的に保存し、命令
制御装置CTLからの拡張命令EXが有効であれば、カ
ウントアップイネーブル信号ENを出力する。
As shown in FIG. 1, the input / output control device of the present invention is obtained by adding a count control device CCT which is a third storage means to the input / output control device of FIG. The CCT temporarily stores the information OC such as the comparison result of the timer arithmetic unit and the overflow, and outputs the count-up enable signal EN if the extended instruction EX from the instruction controller CTL is valid.

【0020】また、図2はこの入出力制御装置の一実施
の形態を示す図であり、カウント制御回路CCTに、タ
イマ演算においてオーバーフローが生じたことを示すオ
ーバーフローフラグを保存するものである。本実施の形
態においては、カウント制御回路CCTは1ビットのレ
ジスタRと論理積回路Aとからなり、レジスタに保存さ
れたオーバーフローフラグが有効であり、かつ命令制御
装置CTLからの拡張命令EXが有効な場合にそれらの
論理積が真となり、カウントアップイネーブル信号EN
がタイマ演算器に対して出力されるようになっている。
FIG. 2 is a diagram showing an embodiment of this input / output control device, in which an overflow flag indicating that an overflow has occurred in the timer operation is stored in the count control circuit CCT. In the present embodiment, the count control circuit CCT is composed of a 1-bit register R and a logical product circuit A, the overflow flag stored in the register is valid, and the extended instruction EX from the instruction control unit CTL is valid. In such a case, their logical product becomes true, and the count-up enable signal EN
Is output to the timer calculator.

【0021】図2の実施の形態では、カウント制御回路
CCTに一時的に保存される情報がオーバーフローフラ
グ1種類のみであったが、例えばオーバーフローフラグ
とコンペア結果の2種類の情報を保存して後の演算で使
用したい場合には、図3に示されるように、カウンタ制
御回路CCTのレジスタをそれぞれの情報に対して1ビ
ットずつ、すなわち計2ビット分用意し、拡張命令EX
も2つの情報のそれぞれに対して有効/無効を指示でき
るように2ビットとすればよい。
In the embodiment of FIG. 2, the information temporarily stored in the count control circuit CCT is only one kind of overflow flag. However, for example, two kinds of information of the overflow flag and the comparison result are When it is desired to use it in the operation of, the register of the counter control circuit CCT is prepared for each bit for each information, that is, a total of 2 bits are prepared as shown in FIG.
Also, 2 bits may be used so that valid / invalid can be instructed for each of the two pieces of information.

【0022】なお、本実施の形態の入出力制御装置は、
従来の入出力制御装置を基にして必要な回路を追加する
ことにより実現されているため、端子から入力される従
来のカウントアップ信号も有効となるように、タイマ演
算器TEに論理和回路(図示せず)を設け、従来のカウ
ントアップイネーブル信号とカウント制御回路CCTに
より出力されるカウントアップイネーブル信号のいずれ
か一方が有効な場合にカウントアップが続行されるよう
になっている。このような従来のカウントアップイネー
ブル信号との共存の必要性がなければ、本発明の入出力
制御装置を実現するために追加される回路は、数ビット
のレジスタと論理積回路のみである。すなわち、ハード
ウェアのサイズあるいはコストの増加は、限りなく0に
等しいといえる。
The input / output control device of this embodiment is
Since it is realized by adding necessary circuits based on the conventional input / output control device, the logical sum circuit () is added to the timer arithmetic unit TE so that the conventional count-up signal input from the terminal is also effective. (Not shown) is provided so that the count-up is continued when either the conventional count-up enable signal or the count-up enable signal output by the count control circuit CCT is valid. If there is no need for coexistence with such a conventional count-up enable signal, the circuits added to implement the input / output control device of the present invention are only a several-bit register and a logical product circuit. That is, it can be said that the increase in the size or cost of the hardware is infinitely equal to zero.

【0023】以上のように、本発明の入出力制御装置
は、従来の入出力制御装置に簡単な回路を追加するだけ
で、CPUに割込みをかけることなく、また入出力制御
装置の本来の機能や性能を悪化させることもなく、任意
のビット幅のデータの演算を行えるようにしたものであ
る。
As described above, the input / output control device of the present invention is simply the addition of a simple circuit to the conventional input / output control device without interrupting the CPU and the original function of the input / output control device. It is possible to operate data of an arbitrary bit width without deteriorating performance or performance.

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

【図1】本発明の入出力制御装置の概要を示す図FIG. 1 is a diagram showing an outline of an input / output control device of the present invention.

【図2】本発明の入出力制御装置の一実施の形態を示す
FIG. 2 is a diagram showing an embodiment of an input / output control device of the present invention.

【図3】カウンタ制御回路の一実施の形態を示す図FIG. 3 is a diagram showing an embodiment of a counter control circuit.

【図4】従来の入出力制御装置を示す図FIG. 4 is a diagram showing a conventional input / output control device.

【符号の説明】[Explanation of symbols]

CCT カウント制御回路 TR タイマレジスタ MUXT タイマーレジスタアドレスデコーダ CR コンペア/キャプチャレジスタ MUXC コンペア/キャプチャレジスタアドレスデコ
ーダ TE タイマ演算器 IOC 端子入出力装置 CTL 命令制御装置 PC プログラムカウンタ MUXP 命令アドレスデコーダ MEM 命令記憶装置 DEC 命令コードデコーダ R レジスタ A 論理積回路
CCT count control circuit TR timer register MUXT timer register address decoder CR compare / capture register MUXC compare / capture register address decoder TE timer calculator IOC terminal input / output device CTL instruction control device PC program counter MUXP instruction address decoder MEM instruction storage device DEC instruction Code decoder R register A AND circuit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 入出力データの入出力制御を行う入出力
制御装置において、 前記入出力制御にかかるタイマデータを格納する第1の
記憶手段と、 前記入出力制御にかかる所定の参照用データを格納する
第2の記憶手段と、 前記タイマデータ、前記参照用データおよび前記入出力
データのうち少なくとも1つに基づいて演算を行う演算
手段と、 該演算の演算結果にかかる情報を格納する第3の記憶手
段と、 前記第1、第2、第3の記憶手段および前記演算手段に
対し、前記演算にかかる命令を送出する命令制御手段と
を備え、 前記演算手段が所定の演算を行う際に、前記第3の記憶
手段が前記命令制御手段からの命令に基づいてその第3
の記憶手段に記憶された前記情報を前記演算手段に対し
て送出することにより、該演算手段が演算を行うに際
し、その所定の演算以前に行われた演算の演算結果にか
かる情報を使用しうることを特徴とする入出力制御装
置。
1. An input / output control device for controlling input / output of input / output data, comprising: first storage means for storing timer data relating to the input / output control; and predetermined reference data relating to the input / output control. A second storage means for storing; a calculation means for performing an operation based on at least one of the timer data, the reference data, and the input / output data; and a third means for storing information related to the operation result of the operation. And a command control unit for sending a command relating to the calculation to the first, second and third storage units and the calculation unit, and when the calculation unit performs a predetermined calculation. , The third storage means is provided with a third storage means based on an instruction from the instruction control means.
By sending the information stored in the storage means to the operation means, when the operation means performs the operation, the information related to the operation result of the operation performed before the predetermined operation can be used. An input / output control device characterized by the above.
【請求項2】 前記演算結果にかかる情報に、前記演算
においてオーバーフローが生じたことを示す情報が含ま
れることを特徴とする請求項1記載の入出力制御装置。
2. The input / output control device according to claim 1, wherein the information related to the calculation result includes information indicating that an overflow has occurred in the calculation.
【請求項3】 前記演算結果にかかる情報に、前記演算
として前記タイマデータと前記参照用データの比較を行
った際の比較結果を示す情報が含まれることを特徴とす
る請求項1または2記載の入出力制御装置。
3. The information according to the calculation result includes information indicating a comparison result when the timer data and the reference data are compared as the calculation. I / O controller.
JP8044609A 1996-03-01 1996-03-01 Input and output controller Pending JPH09237144A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8044609A JPH09237144A (en) 1996-03-01 1996-03-01 Input and output controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8044609A JPH09237144A (en) 1996-03-01 1996-03-01 Input and output controller

Publications (1)

Publication Number Publication Date
JPH09237144A true JPH09237144A (en) 1997-09-09

Family

ID=12696196

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8044609A Pending JPH09237144A (en) 1996-03-01 1996-03-01 Input and output controller

Country Status (1)

Country Link
JP (1) JPH09237144A (en)

Similar Documents

Publication Publication Date Title
US20170177404A1 (en) Hardware accelerators and methods for stateful compression and decompression operations
JP3171925B2 (en) Data processing device
JP3676882B2 (en) Microprocessor and its peripheral devices
US10102000B2 (en) Apparatus and method for non-serializing split locks
US6378022B1 (en) Method and apparatus for processing interruptible, multi-cycle instructions
US11340960B2 (en) Apparatuses, methods, and systems for hardware-assisted lockstep of processor cores
JPH09237144A (en) Input and output controller
JPS6290728A (en) Interruption processing method
JPS60195646A (en) Data processor
US6763453B2 (en) Security on hardware loops
JP3511529B2 (en) Complex arithmetic processing unit
JPS60126736A (en) Data processor
JP2508038B2 (en) Programmable controller
JP3139310B2 (en) Digital signal processor
JP2871171B2 (en) Microcomputer
JPS62266624A (en) Counter device
JPS6349941A (en) Arithmetic processing unit
JP3127737B2 (en) Digital signal processor
JPH04225409A (en) Microcomputer system
JPS6329839A (en) Data processor
JPH02173828A (en) Interruption process system
JPH0462635A (en) Microcomputer
JPS60218135A (en) Data processor
JPH03188547A (en) Data transfer controller
JPH0454544A (en) Memory access controller