JPS6152508B2 - - Google Patents

Info

Publication number
JPS6152508B2
JPS6152508B2 JP55188223A JP18822380A JPS6152508B2 JP S6152508 B2 JPS6152508 B2 JP S6152508B2 JP 55188223 A JP55188223 A JP 55188223A JP 18822380 A JP18822380 A JP 18822380A JP S6152508 B2 JPS6152508 B2 JP S6152508B2
Authority
JP
Japan
Prior art keywords
ram
control circuit
signal
interrupt
priority
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.)
Expired
Application number
JP55188223A
Other languages
Japanese (ja)
Other versions
JPS57111624A (en
Inventor
Masaki Tsucha
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.)
NEC Corp
Original Assignee
Nippon Electric Co 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP18822380A priority Critical patent/JPS57111624A/en
Publication of JPS57111624A publication Critical patent/JPS57111624A/en
Publication of JPS6152508B2 publication Critical patent/JPS6152508B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/24Handling requests for interconnection or transfer for access to input/output bus using interrupt
    • G06F13/26Handling requests for interconnection or transfer for access to input/output bus using interrupt with priority control

Description

【発明の詳細な説明】[Detailed description of the invention]

本発明は情報処理装置における優先順位制御回
路、さらに詳しくいえば割込信号の優先順位を決
定する優先順位制御回路に関する。 従来、この種の優先順位制御回路は優先順位を
実装位置等によりハード的に決めていた。このた
め、優先順位はシステムを構成してしまうと固定
となり、優先順位を変更する場合は実装位置を変
更しなければならない欠点ががあつた。また実装
位置の変更に伴ないケーブル長が変るため、新た
にケーブルを作る必要があり諸経費がかかるとい
う欠点もあつた。 本発明の目的は上記欠点を解決した優先順位制
御回路を提供することにある。 前記目的を達成するために本発明よる優先順位
制御回路は割込信号の優先順位を決定する情報処
理装置の優先順位制御回路において、多数の割込
信号を保持するラツチ回路と、前記多数の割込信
号それぞれの優先順位を決定するための情報を格
納するRAMと、優先順位の重み付けがなされた
多数の割込信号出力線を有しており、前記RAM
からの情報を解読して対応の出力線に割込信号を
出力するデコーダ回路と、前記RAMの任意のア
ドレスに優先順位を決定するための情報を書込可
能な制御回路と、前記RAMから情報を読出しの
場合はラツチ回路出力を、RAMに情報を書込む
場合は前記制御回路からのアドレスを選択するセ
レクタとを具備し、複数の割込信号に対し任意に
優先順位を設定できるように構成してある。 前記構成によれば容易に優先順位を変えること
ができ、本発明の目的を完全に達成することがで
きる。 以下、図面を参照して本発明をさらに詳しく説
明する。 第1図は本発明による優先順位制御回路の実施
例を示すブロツク図である。 第1図において、1は割込信号群、2は1の割
込信号群を保持するためのラツチ回路、3はラツ
チ回路2からの出力信号である。4は出力信号3
と後述するアドレス信号13との信号のセレク
タ、5はセレクタ4からの出力信号でRAM6に
接続されており、RAM6のアドレスとなる。7
はRAM6からのリードデータでありデコーダ8
に接続されている。9はデコーダ8の出力信号で
あり最も優先順位の高い割込信号が出力される。
出力信号9は制御回路にも接続されている。10
は前記の制御回路であり、ラツチ回路2、セレク
タ4およびRAM66の制御を行う。15はラツ
チ回路2の制御信号、13はRAM6にデータを
格納するためのアドレス信号である。11はセレ
クタ4の切換信号、14はRAM6への書込デー
タ、12はRAM6への書込用の制御信号であ
る。RAM6内への優先順位の書込みは制御回路
10により行なう。すなわちRAM6には切換信
号11によりセレクタ4をアドレス信号13に切
換え、制御信号12を入力し、セレクタ4を介し
て与えられるアドレスに書込データ信号を書込む
ことにより優先順位を決めるための情報をセツト
する。 上記のようにセツトした後は制御回路10はセ
レクタ4をアドレス信号13からアドレス信号3
の方へ切換えるとともに、RAM6を制御線12
を用いて読出しモードに切換える。 割込信号1が発生すると割込信号1はラツチ回
路2に保持される。ラツチ回路2の出力信号3は
セレクタ4を介してRAM6のアドレス信号5と
なり、RAM6から情報を読み出す。RAM6から
の出力データ7はデコーダ回路8により割込信号
1に対する最も優先順位の高いものが出力され
る。 第2図はRAM6の構成を示した図である。割
込信号1に対するRAM6への情報のセツト方法
をこの第2図を用いてさらに詳しく説明する。 デコーダ8の出力9は制御回路10へ接続され
ており、制御回路10は割込みが受けられると出
力9の情報により制御信号15を制御して、最も
優先順位が高い割込信号に対するラツチ回路2を
リセツトする。以降は本動作を繰り返すことにな
る。 ここで割込信号線数をNとするとRAMのアド
レスはZN、ビツト幅は(log2N)+1(但し、小
数点は切上げる。)となり、割込信号1に対する
RAM6の容量は2N×(log2H+1)となる。例え
ば、割込信号線数を8個とした場合はRAMの容
量は256×4ビツトを必要とする。第2図は割込
信号線数を4個、RAM容量を16×3ビツトと
し、優先順位を割込信号101,102,10
3,104の順で低くなるものとした例である。
RAM6には上記条件のもとに優先順位決めをす
るための情報がセツトされている。割込信号10
1〜104はそれぞれラツチ回路2にラツチされ
る。ラツチ回路2には重み付けがあり、第2図に
示すように決つている。 RAM6の出力はRAM6のアドレスとなる。例
えば割込信号101と102がラツチ回路2にラ
ツチされたものとすればRAM6のアドレスは3(
H)となり、3(H)番地の内容を読み出す。RAM6
の3(H)番地には001が書き込まれているので、
RAM6からは001が読み出される。デコード回路
8の出力108〜111とリードデータとは下記
のように対応している。
The present invention relates to a priority control circuit in an information processing device, and more specifically, to a priority control circuit that determines the priority of interrupt signals. Conventionally, in this type of priority control circuit, the priority was determined by hardware based on the mounting position and the like. For this reason, the priority order becomes fixed once the system is configured, and when the priority order is changed, the mounting position must be changed. Another drawback was that the length of the cable changes as the mounting position changes, requiring the creation of a new cable, which increases overhead costs. SUMMARY OF THE INVENTION An object of the present invention is to provide a priority control circuit that solves the above-mentioned drawbacks. In order to achieve the above object, the priority control circuit according to the present invention is a priority control circuit for an information processing device that determines the priority order of interrupt signals, and includes a latch circuit that holds a large number of interrupt signals, and a latch circuit that holds a large number of interrupt signals. It has a RAM that stores information for determining the priority of each interrupt signal, and a large number of interrupt signal output lines weighted according to the priority, and the RAM
a decoder circuit that decodes information from the RAM and outputs an interrupt signal to a corresponding output line; a control circuit that can write information for determining priorities to an arbitrary address of the RAM; It is equipped with a latch circuit output when reading information, and a selector that selects an address from the control circuit when writing information to RAM, and is configured so that priorities can be arbitrarily set for multiple interrupt signals. It has been done. According to the above configuration, the priority order can be easily changed and the object of the present invention can be completely achieved. Hereinafter, the present invention will be explained in more detail with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of a priority control circuit according to the present invention. In FIG. 1, 1 is a group of interrupt signals, 2 is a latch circuit for holding the 1 interrupt signal group, and 3 is an output signal from the latch circuit 2. 4 is output signal 3
A signal selector 5 is an output signal from the selector 4 and is connected to the RAM 6, and becomes an address of the RAM 6. 7
is read data from RAM6 and decoder 8
It is connected to the. 9 is an output signal of the decoder 8, and the interrupt signal with the highest priority is output.
The output signal 9 is also connected to a control circuit. 10
is the aforementioned control circuit, which controls the latch circuit 2, selector 4 and RAM 66. 15 is a control signal for the latch circuit 2, and 13 is an address signal for storing data in the RAM 6. 11 is a switching signal for the selector 4, 14 is write data to the RAM 6, and 12 is a control signal for writing to the RAM 6. Writing of the priorities into the RAM 6 is performed by the control circuit 10. That is, the RAM 6 receives information for determining priorities by switching the selector 4 to the address signal 13 by the switching signal 11, inputting the control signal 12, and writing the write data signal to the address given via the selector 4. Set. After setting as described above, the control circuit 10 changes the selector 4 from the address signal 13 to the address signal 3.
At the same time, switch RAM6 to control line 12.
Switch to read mode using . When the interrupt signal 1 is generated, the interrupt signal 1 is held in the latch circuit 2. The output signal 3 of the latch circuit 2 becomes the address signal 5 of the RAM 6 via the selector 4, and information is read from the RAM 6. Output data 7 from RAM 6 is output by a decoder circuit 8 with the highest priority relative to interrupt signal 1. FIG. 2 is a diagram showing the configuration of the RAM 6. The method of setting information in the RAM 6 in response to the interrupt signal 1 will be explained in more detail with reference to FIG. The output 9 of the decoder 8 is connected to a control circuit 10, and when an interrupt is received, the control circuit 10 controls the control signal 15 based on the information of the output 9, and activates the latch circuit 2 for the interrupt signal with the highest priority. Reset. From then on, this operation will be repeated. Here, if the number of interrupt signal lines is N, the RAM address is Z N and the bit width is (log 2 N) + 1 (round up the decimal point).
The capacity of RAM6 is 2 N × (log 2 H + 1). For example, if the number of interrupt signal lines is 8, a RAM capacity of 256×4 bits is required. In Figure 2, the number of interrupt signal lines is 4, the RAM capacity is 16 x 3 bits, and the priorities are set to interrupt signals 101, 102, and 10.
In this example, the numbers decrease in the order of 3,104.
Information for determining priorities based on the above conditions is set in the RAM 6. Interrupt signal 10
1 to 104 are each latched by the latch circuit 2. The latch circuit 2 has weighting, which is determined as shown in FIG. The output of RAM6 becomes the address of RAM6. For example, if interrupt signals 101 and 102 are latched by latch circuit 2, the address of RAM 6 is 3 (
H) and reads the contents of address 3 (H) . RAM6
Since 001 is written in address 3 (H) ,
001 is read from RAM6. The outputs 108 to 111 of the decoding circuit 8 and read data correspond as shown below.

【表】 よつてデコード回路8によりデコードされた結
果デコード回路8の出力には割込信号108が発
生し優先順位が決定される。 RAMの内容を変更する場合は割込み信号に対
する優先順位を実装位置等を変更しなくても制御
回路により任意に変えることが可能である。また
組み合わせに対する優先順位を決定することがで
きる構成でもある。 本発明は以上説明したように割込信号に対する
優先順位を任意に変更することができるので従来
のように変更に実装位置を変えるとか、ケーブル
長を変えるなどの手間や費用がかかることはなく
なつた。
[Table] Therefore, as a result of decoding by the decoding circuit 8, an interrupt signal 108 is generated at the output of the decoding circuit 8, and the priority order is determined. When changing the contents of the RAM, the priority order for interrupt signals can be arbitrarily changed by the control circuit without changing the mounting position or the like. It is also a configuration that can determine priorities for combinations. As explained above, the present invention allows the priority order of interrupt signals to be changed arbitrarily, so there is no need to change the mounting position or change the cable length, which is required in the past. Ta.

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

第1図は本発明による優先順位制御回路の実施
例を示すブロツク図、第2図は第1図のRAMの
詳細図である。 1…割込信号群、2…ラツチ回路、3…ラツチ
回路2の出力信号、4…セレクタ、5…セレクタ
4の出力信号、6…RAM、7…RAM6からのリ
ードデータ、8…デコード回路、9…デコード回
路8の出力信号、10…制御回路、11…切換信
号、12…RAM6への制御信号、13…アドレ
ス信号、14…RAM6への書込データ、15…
ラツチ回路2への制御信号、101〜104…割
込信号、108〜111…優先順位決定後の割込
信号。
FIG. 1 is a block diagram showing an embodiment of a priority control circuit according to the present invention, and FIG. 2 is a detailed diagram of the RAM shown in FIG. 1. 1... Interrupt signal group, 2... Latch circuit, 3... Output signal of latch circuit 2, 4... Selector, 5... Output signal of selector 4, 6... RAM, 7... Read data from RAM 6, 8... Decode circuit, 9... Output signal of decode circuit 8, 10... Control circuit, 11... Switching signal, 12... Control signal to RAM 6, 13... Address signal, 14... Write data to RAM 6, 15...
Control signal to latch circuit 2, 101-104... Interrupt signal, 108-111... Interrupt signal after priority determination.

Claims (1)

【特許請求の範囲】 1 割込信号の優先順位を決定する情報処理装置
の優先順位制御回路において、 複数の割込信号入力線から与えられる複数の割
込信号を保持するラツチ回路と、 それぞれ個有のアドレスを割り当てられた複数
の記憶場所を有しこれらの記憶場所のそれぞれに
前記複数の割込信号入力線の一つを示す符号を格
納したRAMと、 前記RAMの任意のアドレスに前記符号を書込
可能な制御回路と、 前記RAMから前記符号を読み出すときには前
記ラツチ回路の出力を読出しアドレスとして前記
RAMに供給し前記RAMに前記符号を書き込むと
きには前記制御回路の出力を書込みアドレスとし
て前記RAMに供給するセレクタと、 優先順位の重み付けがされた複数の割込信号出
力線を有し前記RAMから読み出された前記符号
を解読して対応する該出力線に割込信号を出力す
るデコーダ回路とを備えたことを特徴とする優先
順位制御回路。
[Scope of Claims] 1. In a priority control circuit of an information processing device that determines the priority of interrupt signals, a latch circuit that holds a plurality of interrupt signals provided from a plurality of interrupt signal input lines; a RAM having a plurality of memory locations assigned with addresses of the plurality of interrupt signals, each of which stores a code indicating one of the plurality of interrupt signal input lines; a control circuit capable of writing the code; and when reading the code from the RAM, the output of the latch circuit is used as the read address.
A selector for supplying the output of the control circuit to the RAM as a write address when writing the code to the RAM, and a plurality of interrupt signal output lines weighted with priorities, and reading from the RAM. A priority control circuit comprising: a decoder circuit that decodes the issued code and outputs an interrupt signal to the corresponding output line.
JP18822380A 1980-12-27 1980-12-27 Priority controlling circuit Granted JPS57111624A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18822380A JPS57111624A (en) 1980-12-27 1980-12-27 Priority controlling circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18822380A JPS57111624A (en) 1980-12-27 1980-12-27 Priority controlling circuit

Publications (2)

Publication Number Publication Date
JPS57111624A JPS57111624A (en) 1982-07-12
JPS6152508B2 true JPS6152508B2 (en) 1986-11-13

Family

ID=16219921

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18822380A Granted JPS57111624A (en) 1980-12-27 1980-12-27 Priority controlling circuit

Country Status (1)

Country Link
JP (1) JPS57111624A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5556221A (en) * 1978-10-18 1980-04-24 Fujitsu Ltd Priority decision system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5556221A (en) * 1978-10-18 1980-04-24 Fujitsu Ltd Priority decision system

Also Published As

Publication number Publication date
JPS57111624A (en) 1982-07-12

Similar Documents

Publication Publication Date Title
US4805092A (en) Electronic circuit for extending the addressing capacity of a processor
US4156290A (en) Speedup addressing device by detecting repetitive addressing
EP1026600B1 (en) Method and apparatus for interfacing with RAM
JPS6113268B2 (en)
JPS6152508B2 (en)
US4089051A (en) Alternative direct and indirect addressing
JPS61235969A (en) Memory device
JP3131918B2 (en) Memory device
JP2507103B2 (en) Memory system
JPH0520176A (en) Semiconductor memory
KR0168973B1 (en) Rom accessing method and its apparatus
JPH03191450A (en) Defective chip substituting circuit for memory card
JPH03147164A (en) Information processor
JPH08147262A (en) Microprocessor
JPH06337847A (en) Multiprocessor device
KR900009212Y1 (en) Address control apparatus
JPS63129438A (en) Memory controller
JPS59172185A (en) Memory selecting system
JP2906449B2 (en) Bitmap display control device
JPH0293841A (en) Memory control system
JPS588357A (en) Control storage device
KR970022776A (en) Memory access device and method
JPH05151076A (en) Memory address extension control system
JPS6227414B2 (en)
JPH0528030A (en) Address conversion system