JPS61143808A - Bit modify circuit of sequence control device - Google Patents

Bit modify circuit of sequence control device

Info

Publication number
JPS61143808A
JPS61143808A JP26684984A JP26684984A JPS61143808A JP S61143808 A JPS61143808 A JP S61143808A JP 26684984 A JP26684984 A JP 26684984A JP 26684984 A JP26684984 A JP 26684984A JP S61143808 A JPS61143808 A JP S61143808A
Authority
JP
Japan
Prior art keywords
bit
data
circuit
exclusive
output
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.)
Granted
Application number
JP26684984A
Other languages
Japanese (ja)
Other versions
JPH0564361B2 (en
Inventor
Teruhisa Anpo
安保 輝久
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.)
Meidensha Electric Manufacturing Co Ltd
Original Assignee
Meidensha Electric Manufacturing 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 Meidensha Electric Manufacturing Co Ltd filed Critical Meidensha Electric Manufacturing Co Ltd
Priority to JP26684984A priority Critical patent/JPS61143808A/en
Publication of JPS61143808A publication Critical patent/JPS61143808A/en
Publication of JPH0564361B2 publication Critical patent/JPH0564361B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric

Abstract

PURPOSE:To require no large capacity memory and lower a cost by extracting a bit column to a bit modify by a multiplexer and inverting the bit in question by a conformity and 9 non-conforming between a data and a writing data. CONSTITUTION:A memory 11 is connected to a latch circuit 13 and an output gate circuit 14 through a data bus 12 and an output side of the latch circuit 13 is connected to an exclusive OR circuit 15 and a multiplexer 17. To this multiplexer 17, a bit address signal is inputted and 1 bit of a data that the latch circuit 13 stores is selected. A conformity and a non-conformity of the selected bit data selected by an exclusive OR circuit 19 and one bit writing data are detected and outputted through a decoder 20. The data read from the memory 11 is temporarily stored and selected 13 and the conformity and the non-conformity with the writing data are detected. At the time of the non- conformity, an inverted output of the bit data in question is taken out from the decoder 20 and only the selected bit in the exclusive OR circuit 15 is taken out to the memory 11 side.

Description

【発明の詳細な説明】 産業上の利用分野 木兄FJAFi、シーケンス制御装置に係わり、特にメ
モリデータのビットモディファイ回路に関する。
DETAILED DESCRIPTION OF THE INVENTION The industrial application field of the present invention relates to a sequence control device, and particularly to a bit modification circuit for memory data.

従来の技術 シーケンス制御においては、1ビット単位の論理演算が
実行され、1ビット単位でのメモリの書込み、読出しが
必要とされる。また、データ処理機能を有するシーケン
ス制御装置で汀バイト単位でメモリ書込、読出しできる
ことも必要とされている。
In conventional sequence control, logical operations are performed on a 1-bit basis, and memory writing and reading are required on a 1-bit basis. There is also a need for a sequence control device having a data processing function to be able to write and read data in byte units.

従来、この種の装置として鼾2図に示すものがめる(特
開昭59−43405号公報参照)。1ピツ)XN容景
のメモリ素子18〜1nは、バイトアドレスバス2で同
じアドレスが選択され、デコーダ3によるビットアドレ
スのデコード信号をアンドゲート回路4を通してチップ
セレクト信号として与えられることで1つのメモリ素子
の1つのアドレスが選択される。また、メモリ素子18
〜1nの書込み、読出しは端子W/Hによって制御され
る。メモリ素子1a−Inのデータ入出力線はオアゲー
ト5の入力に接続され、読出された1ビツトデータが端
子bitに取出される。また、1ビツトデータの書込み
には端子bitに1ビツトデータが印加され、3ステー
ト出力を持つゲート回路6の能動状態を経て選択された
メモリ素子18〜In1C書込まれる。この場合、端子
b/BVc与見られるビット/バイト切換指令によって
ゲート回路6が能動状態にされる。端子Bはバイトデー
タ端子であり、この端子を使ってメモリ素子1a〜1n
の各1ビツト割轟てによるバイトデータの書込み、読出
しが行なわれる。7ti各データ線のターミナル抵抗、
8はオアゲート5の出力保護用抵抗である。
Conventionally, a device of this type is shown in Figure 2 (see Japanese Patent Laid-Open No. 59-43405). 1) The memory elements 18 to 1n of the XN configuration are integrated into one memory by selecting the same address on the byte address bus 2, and giving the bit address decode signal from the decoder 3 as a chip select signal through the AND gate circuit 4. An address of one of the elements is selected. In addition, the memory element 18
Writing and reading of ~1n is controlled by terminal W/H. The data input/output line of the memory element 1a-In is connected to the input of the OR gate 5, and the read 1-bit data is taken out to the terminal bit. Further, to write 1-bit data, 1-bit data is applied to the terminal bit, and the selected memory element 18 to In1C is written through the active state of the gate circuit 6 having a 3-state output. In this case, the gate circuit 6 is activated by the bit/byte switching command applied to the terminal b/BVc. Terminal B is a byte data terminal, and this terminal is used to connect memory elements 1a to 1n.
Byte data is written and read by interrupting each 1 bit. 7ti terminal resistance of each data line,
8 is an output protection resistor of the OR gate 5.

発明が解決しようとする問題点 従来のシーケンス制御装置は、ビットモディファイにメ
モリ素子として複数個必要となり、シーケンス制御装置
のCPU部のスペース増、コスト上昇等の問題があった
Problems to be Solved by the Invention Conventional sequence control devices require a plurality of memory elements for bit modification, which poses problems such as an increase in the space of the CPU section of the sequence control device and an increase in cost.

問題点を解決するための手段と作用 本発明は、メモリからの1ワードの読出しデータを一時
記憶するラッチ回路と、このラッチ回路のうちの1ビツ
トをビット選択信号によって選択するマルチプレクサと
、このマルチプレクサの選択ビットデータと書込みビッ
トデータの一致、不一致を検出する排他的論理和と、こ
の排他的論理和の不一致出力で前記ビット選択信号のデ
コード出力を得るデコーダと、前記ラッチ回路の記憶デ
ータのうちIIJ紀デコーダのデコード出力に一致する
ビットデータを反転させる排他的論理和回路と、この排
他的論理和回路のワードデータ出力をメモリ側へ出力す
る出力ゲート回路とを備え、変更を必要とするビットデ
ータをマルチプレクサで抽出し、この抽出ビットデータ
と書込みビットデータの排他的論理和によってビットモ
ディファイの決定をするものである。
Means and Operation for Solving Problems The present invention provides a latch circuit that temporarily stores one word of read data from a memory, a multiplexer that selects one bit of the latch circuit using a bit selection signal, and a multiplexer that selects one bit of the latch circuit using a bit selection signal. a decoder that obtains a decoded output of the bit selection signal from the mismatch output of this exclusive OR; It is equipped with an exclusive OR circuit that inverts the bit data that matches the decoded output of the IIJ decoder, and an output gate circuit that outputs the word data output of this exclusive OR circuit to the memory side. Data is extracted by a multiplexer, and bit modification is determined by exclusive ORing of the extracted bit data and written bit data.

実施例 禰1図は本発明の一実施例を示す回路図である。Example Figure 1 is a circuit diagram showing one embodiment of the present invention.

メモリ11はデータバス12を介してラッチ回路13と
出力ゲート回路14に結合され、メモリ11からの1ワ
ード(又は1バイト)の読出しデータはラッチ回路13
に一時記憶されるし、出力ゲート回路14からの1ワー
ド(又は1バイト)の出力データはメモリ11に書込ま
れる。ラッチ回路13の出力側は排他的論理和回路15
にその入力線16で接続され、またマルチプレクサ17
にその入力線18で接続される。
The memory 11 is coupled to a latch circuit 13 and an output gate circuit 14 via a data bus 12, and one word (or one byte) of read data from the memory 11 is sent to the latch circuit 13.
One word (or one byte) of output data from the output gate circuit 14 is written into the memory 11. The output side of the latch circuit 13 is an exclusive OR circuit 15
is connected by its input line 16 to the multiplexer 17.
by its input line 18.

マルチプレクサ17はビットアドレス信号がビット選択
信号として入力され、この信号によってラッチ回路13
の記憶する1ワード(又は1バイト)のデータのうちの
1ピツ)?選択する。排他的論理和19Fiマルチプレ
クサ17が選択したビットデータと1ビツトの書込みデ
ータとを入力として両者の一致、不一致を検出する。デ
コーダ20は排他的論理和19の検出出力をイネーブル
入力とされてその不一致出力によってイネーブル状態に
なシ、ビットアドレスデータをデコード入力としてその
デコード出力を得る。インバータ回路21はデコーダ2
゜の各デコード端子の反転出力を得、これら出力を排他
的論理和回路15の他方の入力とする。排他的論理和回
路15は、ラッチ回路13の記憶データとデコーダ20
の各デコード出力とのビット桁が一致するよう入力接続
される。排他的論理和回路15の各ビット出力は出力ゲ
ート回路14と接続線22で結合され、該ゲート回路1
4全介してバス12に出力される0 こうした構成により、メモリ11から読された1ワード
(又は1バイト)のデータは、ラッチ回路L3で一時記
憶され、そのうちの1ビツトがマルチプレクサ17でビ
ット選択信号に基づいて選択され、この選択されたビッ
トデータが排他的論理和19で書込みデータとの一致、
不一致が検出され、不一致のときに当該ビットデータの
反転した出力がデコーダ20から取出さね、排他的論理
和回路15によって選択されたビットのみを反転して出
力ゲート回路14を経てメモリ11側ヘビツトモデイフ
アイしたデータとして取出される。
The multiplexer 17 receives a bit address signal as a bit selection signal, and this signal causes the latch circuit 13 to
1 word (or 1 byte) of data stored in ? select. The exclusive OR 19Fi multiplexer 17 inputs the selected bit data and 1-bit write data and detects whether they match or do not match. The decoder 20 receives the detection output of the exclusive OR 19 as an enable input, changes to an enabled state due to the mismatch output, and uses the bit address data as a decode input to obtain its decode output. The inverter circuit 21 is the decoder 2
The inverted outputs of the respective decode terminals are obtained, and these outputs are used as the other input of the exclusive OR circuit 15. The exclusive OR circuit 15 combines the data stored in the latch circuit 13 and the decoder 20.
The inputs are connected so that the bit digits match those of each decoded output. Each bit output of the exclusive OR circuit 15 is connected to the output gate circuit 14 through a connection line 22, and the gate circuit 1
With this configuration, one word (or one byte) of data read from the memory 11 is temporarily stored in the latch circuit L3, and one bit of it is selected by the multiplexer 17. selected based on the signal, and the selected bit data matches the write data by exclusive OR 19;
When a mismatch is detected, the inverted output of the bit data is taken out from the decoder 20, only the bit selected by the exclusive OR circuit 15 is inverted, and the output is sent to the memory 11 side via the output gate circuit 14. It is extracted as modified data.

発明の効果 本発明によれば、ビットモディファイにマルチプレクサ
で当該ビット桁を抽出し、この抽出ビット桁のデータと
書込みデータの一致、不一致で当該桁のビットを反転さ
せるため、回路構成上は従来のような比較的容量の大き
いメモリ素子を不要にして比較的ローコスト、小スペー
スの構成にできる効果がある。
Effects of the Invention According to the present invention, the relevant bit digit is extracted using a multiplexer for bit modification, and the bit of the relevant digit is inverted depending on whether the data of the extracted bit digit and the written data match or do not match. This has the effect of eliminating the need for a memory element with a relatively large capacity, resulting in a relatively low cost and small space configuration.

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

第1図は本発明の一実施例を示す回路図、第2図は従来
のシーケンス制御装置のビットモディファイ回路図であ
る。 11・・・メモリ、13・・・ラッチ回路、14・・・
出力ゲート回路、15・・・排他的論理和回路、17・
・・マルチプレクサ、19・・・排他的論理和、20・
・・デコーダ、21・・・インバータ回路。 =43
FIG. 1 is a circuit diagram showing an embodiment of the present invention, and FIG. 2 is a bit modification circuit diagram of a conventional sequence control device. 11...Memory, 13...Latch circuit, 14...
Output gate circuit, 15... exclusive OR circuit, 17.
...Multiplexer, 19...Exclusive OR, 20.
... Decoder, 21... Inverter circuit. =43

Claims (1)

【特許請求の範囲】[Claims] メモリからの1ワードの読出しデータを一時記憶するラ
ッチ回路と、このラッチ回路のうちの1ビットをビット
選択信号によつて選択するマルチプレクサと、このマル
チプレクサの選択ビットデータと書込みビットデータの
一致、不一致を検出する排他的論理和と、この排他的論
理和の不一致出力で前記ビット選択信号のデコード出力
を得るデコーダと、前記ラッチ回路の記憶データのうち
前記デコーダのデコード出力に一致するビットデータを
反転させる排他的論理和回路と、この排他的論理和回路
のワードデータ出力を前記メモリ側へ出力する出力ゲー
ト回路とを備えたことを特徴とするシーケンス制御装置
のビットモディファイ回路。
A latch circuit that temporarily stores one word of read data from memory, a multiplexer that selects one bit of this latch circuit by a bit selection signal, and a match or mismatch between the selected bit data of this multiplexer and the write bit data. a decoder that obtains a decoded output of the bit selection signal based on the mismatch output of the exclusive OR, and inverts bit data that matches the decoded output of the decoder among the data stored in the latch circuit. 1. A bit modifying circuit for a sequence control device, comprising: an exclusive OR circuit that outputs word data from the exclusive OR circuit; and an output gate circuit that outputs word data output from the exclusive OR circuit to the memory side.
JP26684984A 1984-12-18 1984-12-18 Bit modify circuit of sequence control device Granted JPS61143808A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26684984A JPS61143808A (en) 1984-12-18 1984-12-18 Bit modify circuit of sequence control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26684984A JPS61143808A (en) 1984-12-18 1984-12-18 Bit modify circuit of sequence control device

Publications (2)

Publication Number Publication Date
JPS61143808A true JPS61143808A (en) 1986-07-01
JPH0564361B2 JPH0564361B2 (en) 1993-09-14

Family

ID=17436515

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26684984A Granted JPS61143808A (en) 1984-12-18 1984-12-18 Bit modify circuit of sequence control device

Country Status (1)

Country Link
JP (1) JPS61143808A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6226152B1 (en) 1995-03-10 2001-05-01 Nippon Petrochemicals, Co., Ltd. Joined metal-resin plate body, swing-type actuator made using the same, and processes for producing these

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6226152B1 (en) 1995-03-10 2001-05-01 Nippon Petrochemicals, Co., Ltd. Joined metal-resin plate body, swing-type actuator made using the same, and processes for producing these
US6289577B1 (en) 1995-03-10 2001-09-18 Nippon Petrochemicals Company, Limited Method of making a swing actuator

Also Published As

Publication number Publication date
JPH0564361B2 (en) 1993-09-14

Similar Documents

Publication Publication Date Title
KR900005282A (en) Single chip microcomputer
JPH0472255B2 (en)
US5265048A (en) Semiconductor storage device and method of accessing the same
JPS61143808A (en) Bit modify circuit of sequence control device
JPS6325748A (en) Control of electronic circuit and circuit for implementing the same method
KR950008440B1 (en) Semiconductor memory circuit having bit clear and register initialize fonction
JPH0227596A (en) Semiconductor memory
KR890004855Y1 (en) Address expending circuits of direct memory access device
KR200155592Y1 (en) Memory test circuit
JPH0235700A (en) Memory circuit
JP3251265B2 (en) Memory output control circuit
JPH064480Y2 (en) Semiconductor memory device
JPS59113600A (en) Highly reliable storage circuit device
JPH0262781A (en) Memory circuit
KR100453737B1 (en) digital data storage device
JPH08221381A (en) Microcomputer
JPS61289449A (en) High speed memory diagnozing processor
JPH01199399A (en) Semiconductor memory
JPH03116487A (en) Memory circuit
KR980004967A (en) Static RAM Device with Selectable Length of Input / Output Data
JPH04362752A (en) Memory write protection circuit
JPS6348688A (en) Memory device
JPH06337847A (en) Multiprocessor device
JPH03110647A (en) Memory capacity extending system for microcomputer system
JPH0517565B2 (en)