JPH0120513B2 - - Google Patents

Info

Publication number
JPH0120513B2
JPH0120513B2 JP58090238A JP9023883A JPH0120513B2 JP H0120513 B2 JPH0120513 B2 JP H0120513B2 JP 58090238 A JP58090238 A JP 58090238A JP 9023883 A JP9023883 A JP 9023883A JP H0120513 B2 JPH0120513 B2 JP H0120513B2
Authority
JP
Japan
Prior art keywords
data
write
ram table
writing
horizontal
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
JP58090238A
Other languages
Japanese (ja)
Other versions
JPS59217281A (en
Inventor
Hidetoshi Amari
Kyohiro Yamazaki
Kazuhisa Yoshimura
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 JP9023883A priority Critical patent/JPS59217281A/en
Publication of JPS59217281A publication Critical patent/JPS59217281A/en
Publication of JPH0120513B2 publication Critical patent/JPH0120513B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C7/00Arrangements for writing information into, or reading information out from, a digital store

Description

【発明の詳細な説明】 (a) 発明の技術分野 本発明ははマイクロ・プロセツサ等のプロセツ
サによるリアル・タイム処理等に於けるデータ
RAMテーブル書込み方法に係り、特に書き込も
うとするデータが“1”又は“0”により横方向
書込み位置フラグに基づいて高速度で書込みが実
行出来るデータRAMテーブル書込み方法に関す
るものである。
[Detailed Description of the Invention] (a) Technical Field of the Invention The present invention relates to data processing in real-time processing by a processor such as a microprocessor.
The present invention relates to a RAM table writing method, and particularly relates to a data RAM table writing method in which writing can be executed at high speed based on a horizontal writing position flag when the data to be written is "1" or "0".

(b) 従来技術と問題点 第1図はデータRAMテーブル書込みに必要な
機器の構成を説明する図である。図中、Cは例え
ば8ビツトのバイトを1語とし0〜Nの記憶位置
を有するデータRAMテーブル、Aはデータ
RAMテーブルCの1語と同じビツト長の例えば
1バイトからなる横方向書込み位置フラグ
(SNWF)、BはデータRAMテーブルCの記憶位
置を指示する縦方向書込み位置カウンタ(N進カ
ウンタ)、Dはレジスタ、Eは書込みデータであ
る。
(b) Prior Art and Problems FIG. 1 is a diagram illustrating the configuration of equipment necessary for writing data RAM tables. In the figure, C is a data RAM table with 8-bit bytes as one word and storage locations from 0 to N, and A is data RAM table.
A horizontal write position flag (SNWF) consisting of, for example, 1 byte with the same bit length as one word of RAM table C, B is a vertical write position counter (N-ary counter) that indicates the storage position of data RAM table C, and D is a Register E is write data.

第2図は従来のデータRAMテーブル書込み方
法の一実施例を示す図である。
FIG. 2 is a diagram showing an example of a conventional data RAM table writing method.

以下第1図、第2図に従つて従来のデータ
RAMテーブル書込み方法を説明する。
The conventional data is shown below according to Figures 1 and 2.
Explain how to write to RAM table.

今横方向書込み位置フラグA(SNWF)及び書
込みデータEは第2図のaに示す通りであるとす
る。即ち、横方向書込み位置フラグA(SNWF)
のデータは、11110111であり、ビツト3の“0”
が書込みビツト位置を指示するフラグである。
It is now assumed that the horizontal direction write position flag A (SNWF) and the write data E are as shown in a of FIG. That is, horizontal writing position flag A (SNWF)
The data is 11110111, and bit 3 is “0”.
is a flag indicating the write bit position.

書込みデータは、書込みデータEのビツト7に
示す(斜線で示す)値であるとする。
It is assumed that the write data is the value shown in bit 7 of the write data E (indicated by diagonal lines).

最初横方向書込み位置フラグAの“0”ビツト
のフラグがビツト7の位置にあるかテストし(第
4図の処理ステツプ10)、ビツト7に無ければ
第2図のbに示す様に横方向書込み位置フラグA
(SNWF)のフラグを1つ左に移動させ、同時に
書込みデータEのビツト7に示すデータを右に1
つ移動し(処理ステツプ11及び12)、処理ス
テツプ10に戻つて横方向書込み位置フラグAの
ビツト7にフラグが来たかテストする。此の操作
を4回繰り返すと、第2図のcに示す様に、横方
向書込み位置フラグA(SNWF)のフラグは最左
位置に、書込みデータEの斜線部はビツト3の位
置に来るので、処理ステツプ10では横方向書込
み位置フラグAのビツト7にフラグが来たことを
検出して、処理ステツプ13に分岐する。
First, it is tested whether the "0" bit of the horizontal write position flag A is at the bit 7 position (processing step 10 in Figure 4). Write position flag A
(SNWF) flag is moved to the left by 1, and at the same time the data shown in bit 7 of write data E is moved to the right by 1.
1 (processing steps 11 and 12), and returns to processing step 10 to test whether the flag has arrived at bit 7 of the horizontal write position flag A. If you repeat this operation four times, the horizontal write position flag A (SNWF) will be at the leftmost position, and the diagonally shaded part of write data E will be at the bit 3 position, as shown in Figure 2c. In processing step 10, it is detected that the flag has arrived at bit 7 of the horizontal writing position flag A, and the process branches to processing step 13.

処理ステツプ13でデータRAMテーブルC
の、縦方向書込み位置カウンタBが指示する記憶
位置nから1バイトのデータをレジスタDに読出
し、処理ステツプ14で1バイトのデータの内、
ビツト3のみを第2図のdの様に消去して“0”
とする。
Data RAM table C in processing step 13
One byte of data is read from the storage position n indicated by the vertical write position counter B to the register D, and in processing step 14, among the one byte data,
Erase only bit 3 as shown in d in Figure 2 and set it to “0”.
shall be.

次に第2図のcに示す4回シフトした書込みデ
ータEのビツト3以外を消去して、第2図のeに
示す様なデータとし、第2図のeに示す様なデー
タと第2図のdに示す様なデータとのORを取
り、第2図のfの様なデータを生成して(処理ス
テツプ15及び16)、此れをデータRAMテー
ブルCの中の縦方向書込み位置カウンタBの指示
する個所に書込む(処理ステツプ17)。
Next, erase bits other than bit 3 of the write data E that has been shifted four times as shown in c in FIG. 2 to obtain data as shown in e in FIG. OR with the data as shown in d in the figure to generate data as in f in Fig. 2 (processing steps 15 and 16), and store this data in the vertical write position counter in the data RAM table C. Write to the location indicated by B (processing step 17).

此の様にして書込みデータEの内容を順次デー
タRAMテーブルCに格納していた。然し此の様
なシフト方法は処理時間が長いと云う欠点があ
り、フラグの位置により処理時間が大幅に変動す
ると云う欠点もあつた。
In this way, the contents of the write data E were stored in the data RAM table C sequentially. However, this type of shift method has the disadvantage that the processing time is long, and the processing time varies greatly depending on the position of the flag.

(c) 発明の目的 本発明の目的は従来技術の有する上記の欠点を
除去し、高速度で且つ一定の時間内に処理出来る
データRMテーブル書込み方法を提供することで
ある。
(c) Object of the Invention The object of the present invention is to eliminate the above-mentioned drawbacks of the prior art and to provide a data RM table writing method that can be processed at high speed and within a certain amount of time.

(d) 発明の構成 上記の目的は本発明によれば、プロセツサの制
御により、縦方向書込み位置カウンタにより指示
されるデータRAMテーブル上の1語について、
該語の各ビツトに対応するビツトを有する横方向
書込み位置フラグに設定されるフラグによつて書
込みを指示されるビツトに、書込みデータとして
指定されるビツトを書き込むに際し、該縦方向書
込み位置カウンタにより指示される該データ
RAMテーブル上の1語のデータを読み出し、該
書込みデータが“0”の場合には、該横方向書込
み位置フラグの該フラグをすべて“0”とし、他
のビツトをすべて“1”としたデータと該読み出
したデータとの論理積のデータを生成し、書込み
データが“1”の場合には、該横方向書込み位置
フラグの該フラグをすべて“1”とし、他のビツ
トをすべて“0”としたデータと該読み出したデ
ータとの論理和のデータを生成し、該生成したデ
ータを該データRAMテーブル上の該縦方向書込
み位置カウンタにより指示される記憶位置に書き
込むことを特徴とするデータRAMテーブル書込
み方法を提供することにより達成される。
(d) Structure of the Invention According to the present invention, the above object is achieved by controlling a processor to write a word on a data RAM table indicated by a vertical write position counter.
When writing bits specified as write data to the bits designated as write data by the flag set in the horizontal write position flag, which has bits corresponding to each bit of the word, the vertical write position counter The data indicated
Reads one word of data on the RAM table, and if the write data is “0”, data with all horizontal write position flags set to “0” and all other bits set to “1” and the read data, and if the write data is "1", all the horizontal write position flags are set to "1" and all other bits are set to "0". The data RAM is characterized in that it generates logical sum data of the read data and the read data, and writes the generated data to a storage position indicated by the vertical write position counter on the data RAM table. This is achieved by providing a table writing method.

(e) 発明の実施例 本発明の要点は書き込もうとするデータの
“1”又は“0”を判断し、他ビツトに影響を与
えることなく且つ高速度でデータRAMテーブル
書込みを行う為、縦方向書込み位置カウンタによ
り示される横1バイト分のデータを取り出し、横
方向書込み位置フラグとAND又はORを取ること
により横方向書込み位置フラグと縦方向書込み位
置カウンタにより示されるビツトのみを書込み、
書込みが終了した1バイトのデータを元の位置に
戻す様にするものである。
(e) Embodiments of the Invention The main point of the present invention is to judge whether the data to be written is "1" or "0" and to write the data into the RAM table at high speed without affecting other bits. Take out 1 horizontal byte of data indicated by the write position counter, AND or OR with the horizontal write position flag to write only the bit indicated by the horizontal write position flag and the vertical write position counter,
The 1-byte data that has been written is returned to its original position.

第3図は本発明によるデータRAMテーブル書
込み方法の一実施例を示す図、第5図は本発明に
よる処理の流れ図である。
FIG. 3 is a diagram showing an embodiment of the data RAM table writing method according to the present invention, and FIG. 5 is a flow chart of the process according to the present invention.

以下第1図、第3図及び第5図に従つて本発明
の詳細を説明する。
The details of the present invention will be explained below with reference to FIGS. 1, 3, and 5.

今連続的に入力される“1”叉“0”と云うデ
ータ〔書込みデータEのビツト7に示すデータ
(斜線で示す)〕を読み取りデータRAMテーブル
Cに格納しようとする時を考える。
Now, let us consider the case where data "1" or "0" [data shown in bit 7 of write data E (indicated by diagonal lines)] which are continuously input is to be stored in the read data RAM table C.

此の時横方向書込み位置フラグA及び縦方向書
込み位置カウンタBは夫々第1図に示す状態であ
るとする。
At this time, it is assumed that the horizontal writing position flag A and the vertical writing position counter B are in the states shown in FIG. 1, respectively.

即ち、横方向書込み位置フラグAは、 11110111 縦方向書込み位置カウンタBはnを示している
ものとする。
That is, it is assumed that the horizontal writing position flag A is 11110111 and the vertical writing position counter B is n.

先づ、データRAMテーブルCのnビツト目
の1バイトのデータを、レジスタDに読み出す
(第5図の処理ステツプ20)。
First, 1-byte data of the n-th bit of data RAM table C is read into register D (processing step 20 in FIG. 5).

次に処理ステツプ21で書込みデータを識別
し、書込みデータが“1”である〔書込みデー
タEのビツト7に示すデータ(斜線で示す)が
“1”の時〕時は、横方向書込み位置フラグA
を反転し(処理ステツプ22)、反転した値、
即ち 00001000 とレジスタDのデータ 10101010 との間で論理和(OR)を取り(処理ステツプ
23)、其の結果 10101010 をレジスタDに収容し、更に此のレジスタDの
値をデータRAMテーブルCの中の縦方向書込
み位置カウンタBの指示する記憶位置に書き込
む(処理ステツプ24)。
Next, in processing step 21, the write data is identified, and when the write data is "1" [when the data shown in bit 7 of the write data E (indicated by diagonal lines) is "1"], the horizontal write position flag is set. A
is inverted (processing step 22), and the inverted value is
That is, the logical sum (OR) is performed between 00001000 and the data 10101010 in register D (processing step 23), the result 10101010 is stored in register D, and the value of register D is stored in data RAM table C. The data is written to the storage position indicated by the vertical write position counter B (processing step 24).

又書込みデータが“0”である時は、横方向
書込み位置フラグAの値、即ち 11110111 とレジスタDのデータ 10101010 との間で論理積(AND)を取り(処理ステツ
プ25)、其の結果 10100010 をレジスタDに収容し、更に此のレジスタDの
値をデータRAMテーブルCの中の縦方向書込
み位置カウンタBの指示する記憶位置に書き込
む(処理ステツプ24)。
When the write data is "0", the logical product (AND) is performed between the value of the horizontal write position flag A, that is, 11110111, and the data 10101010 of register D (processing step 25), and the result is 10100010. is stored in register D, and the value of register D is further written to the storage location indicated by vertical write position counter B in data RAM table C (processing step 24).

此の様な操作により順次書込みデータEのデー
タをデータRAMテーブルCに格納する。
Through such operations, the data of the write data E is sequentially stored in the data RAM table C.

本発明による書込み方法では、例えば2MHzの
クロツクのマイクロ・プロセツサによる実施例で
は、書込み時間は16.5μS〜17μSとなり、従来方
法の28μS〜70μSに比し、格段と高速化される。
なお、前記説明では書込み位置を示すフラグの値
を“0”としたが、フラグの値が“1”であつて
も、同様に本発明を適用できることは以上の説明
から明らかである。又、一度に書き込むビツトの
数を1個として説明したが、2個以上のビツトに
同時に同じ書込みデータを書き込む場合にも、同
様に本発明を適用できることは以上の説明から明
らかである。
In the write method according to the present invention, for example, in an embodiment using a microprocessor with a 2 MHz clock, the write time is 16.5 .mu.S to 17 .mu.S, which is much faster than the 28 .mu.S to 70 .mu.S of the conventional method.
In the above description, the value of the flag indicating the write position is set to "0", but it is clear from the above description that the present invention can be similarly applied even if the value of the flag is "1". Further, although the description has been made assuming that the number of bits to be written at one time is one, it is clear from the above description that the present invention can be similarly applied to the case where the same write data is written to two or more bits at the same time.

(f) 発明の効果 以上詳細に説明した様に本発明によれば、マイ
クロ・プロセツサのリアル・タイム処理に対し大
きな影響を与える処理時間を大幅に短縮出来ると
云う大きい効果がある。
(f) Effects of the Invention As described above in detail, the present invention has the great effect of significantly shortening the processing time, which has a great impact on the real-time processing of a microprocessor.

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

第1図はデータRAMテーブル書込みに必要な
機器の構成を説明する図である。第2図は従来の
データRAMテーブル書込み方法の一実施例を示
す図である。第3図は本発明によるデータRAM
テーブル書込み方法の一実施例を示す図である。
第4図は従来の処理の流れ図、第5図は本発明の
処理の流れ図である。
FIG. 1 is a diagram illustrating the configuration of equipment necessary for data RAM table writing. FIG. 2 is a diagram showing an example of a conventional data RAM table writing method. Figure 3 shows data RAM according to the present invention.
FIG. 3 is a diagram illustrating an example of a table writing method.
FIG. 4 is a flowchart of conventional processing, and FIG. 5 is a flowchart of processing of the present invention.

Claims (1)

【特許請求の範囲】 1 プロセツサの制御により、縦方向書込み位置
カウンタにより指示されるデータRAMテーブル
上の1語について、該語の各ビツトに対応するビ
ツトを有する横方向書込み位置フラグに設定され
るフラグによつて書込みを指示されるビツトに、
書込みデータとして指定されるビツトを書き込む
に際し、 該縦方向書込み位置カウンタにより指示される
該データRAMテーブル上の1語のデータを読み
出し、 該書込みデータが“0”の場合には、該横方向
書込み位置フラグの該フラグをすべて“0”と
し、他のビツトをすべて“1”としたデータと該
読み出したデータとの論理積のデータを生成し、 書込みデータが“1”の場合には、該横方向書
込み位置フラグの該フラグをすべて“1”とし、
他のビツトをすべて“0”としたデータと該読み
出したデータとの論理和のデータを生成し、 該生成したデータを該データRAMテーブル上
の該縦方向書込み位置カウンタにより指示される
記憶位置に書き込むことを特徴とするデータ
RAMテーブル書込み方法。
[Scope of Claims] 1. Under the control of the processor, for one word on the data RAM table indicated by the vertical write position counter, a horizontal write position flag having bits corresponding to each bit of the word is set. The bits instructed to be written by the flags are
When writing the bit specified as write data, read one word of data on the data RAM table indicated by the vertical write position counter, and if the write data is "0", write the horizontal write data. Generates logical product data of the read data and data with all position flags set to "0" and all other bits set to "1", and if the write data is "1", the corresponding data is Set all horizontal writing position flags to “1”,
Generates logical sum data of the data with all other bits set to “0” and the read data, and stores the generated data in the storage location indicated by the vertical write position counter on the data RAM table. Data characterized by writing
RAM table writing method.
JP9023883A 1983-05-23 1983-05-23 Table writing method of data ram Granted JPS59217281A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9023883A JPS59217281A (en) 1983-05-23 1983-05-23 Table writing method of data ram

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9023883A JPS59217281A (en) 1983-05-23 1983-05-23 Table writing method of data ram

Publications (2)

Publication Number Publication Date
JPS59217281A JPS59217281A (en) 1984-12-07
JPH0120513B2 true JPH0120513B2 (en) 1989-04-17

Family

ID=13992909

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9023883A Granted JPS59217281A (en) 1983-05-23 1983-05-23 Table writing method of data ram

Country Status (1)

Country Link
JP (1) JPS59217281A (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5664599U (en) * 1979-10-18 1981-05-30

Also Published As

Publication number Publication date
JPS59217281A (en) 1984-12-07

Similar Documents

Publication Publication Date Title
US4016409A (en) Longitudinal parity generator for use with a memory
JPS58115673A (en) System and device for stored information control
JPS60245062A (en) Data transfer device
JPH0120513B2 (en)
US4638454A (en) Digital data storage apparatus
JPS59111533A (en) Digital data arithmetic circuit
JPS61120260A (en) Access device for sequential data memory circuit
JPS5758280A (en) Method for making memory address
JPH0120514B2 (en)
JPS60243696A (en) Expansion data generator
JPS6051748B2 (en) Memory writing method
KR880008140A (en) Integrated Circuits for Digital Signal Processing
JPS59193513A (en) Interleave circuit
JP2969645B2 (en) Time slot replacement circuit
JP2989962B2 (en) Vector processing equipment
JPS60218146A (en) Storage device address control system
JPS61246848A (en) Operation hysteresis storage circuit
JPH0546465A (en) Data access system for computer
JPS58208997A (en) Continuous operating system including partial write of storage device for error correction
JPS638951A (en) Information memory device
JPH05265941A (en) First-in first-out memory
JPS63307556A (en) Memory device
JPH07101552B2 (en) Memory integrated circuit
JPH0519797B2 (en)
JPS63155186A (en) Font fault processing system for display device