JPS63174157A - Microprocessor device - Google Patents

Microprocessor device

Info

Publication number
JPS63174157A
JPS63174157A JP62004882A JP488287A JPS63174157A JP S63174157 A JPS63174157 A JP S63174157A JP 62004882 A JP62004882 A JP 62004882A JP 488287 A JP488287 A JP 488287A JP S63174157 A JPS63174157 A JP S63174157A
Authority
JP
Japan
Prior art keywords
data
circuit
memory
data bus
mpu
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
JP62004882A
Other languages
Japanese (ja)
Inventor
Kiminobu Fujisaki
藤咲 公宣
Mitsuru Yamauchi
山内 満
Kiyoshi Motoki
本木 潔
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
Fujitsu Micom System Co Ltd
Original Assignee
Fujitsu Ltd
Fujitsu Micom System 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 Fujitsu Ltd, Fujitsu Micom System Co Ltd filed Critical Fujitsu Ltd
Priority to JP62004882A priority Critical patent/JPS63174157A/en
Publication of JPS63174157A publication Critical patent/JPS63174157A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To selectively switch to the reciprocal two forms of the byte of data to be accessed at the time of accessing a memory by selectively switching and connecting a first and a second circuits between an internal and an external data buses. CONSTITUTION:A microprocessor (MPU) is constituted of 16 data buses of 16 bits and the data of the 16 bits is accessed for every access between the microprocessor and the memory 6. A first buffer circuit 1 is disposed between the internal data bus in the MPU and the external data bus and the data of the 16 bits is directly transferred to the memory 6 through the circuit 1. The second circuit is constituted of a byte swapper circuit 2 and a buffer circuit 3 and the byte array of the data of the 16 bits is inverted and the data is transferred to the memory 6. An instruction fed from the internal part of the MPU is decoded in a decoder 4 one of the circuits 1 or 3 is selectively turned on according to the contents of the instruction by a selection circuit 5.

Description

【発明の詳細な説明】 〔概 要〕 複数バイトのデータを転送する内部データバスをそなえ
、該内部データバスをそのまま外部データバスに接続す
る第1の回路と、該内部データバスをバイトスワツパ回
路を介して外部データバスに接続する第2の回路とが、
該内部データバスと該外部データバスとの間に選択的に
切換え接続されるようにしたマイクロプロセッサ装置で
あって、メモリアクセス時にアクセスされるデータのバ
イト並びを異にするマイクロプロセッサ装置同志間での
データの互換性が確保されている。
[Detailed Description of the Invention] [Summary] A first circuit includes an internal data bus that transfers data of multiple bytes, connects the internal data bus as it is to an external data bus, and a byte swapper circuit that connects the internal data bus. a second circuit connected to the external data bus via the
A microprocessor device selectively connected between the internal data bus and the external data bus, the microprocessor devices having different byte sequences of data accessed during memory access. data compatibility is ensured.

〔産業上の利用分野〕[Industrial application field]

本発明はマイクロプロセッサ装置に関し、複数バイトに
わたるデータ(例えば16ビツトのデータ)をメモリか
ら読み出し、またはメモリに書き込むように構成されて
いるマイクロプロセッサ装置に関する。
The present invention relates to a microprocessor device, and more particularly to a microprocessor device configured to read data from or write multiple bytes of data (for example, 16-bit data) into memory.

〔従来の技術〕[Conventional technology]

従来この種のマイクロプロセッサ装置(例えば16ビツ
ト又は32ビツトMPU)においては、複数バイトにわ
たるデータをメモリ (バイト単位にアドレスから付さ
れている)に格納する場合、下位アドレスが上位アドレ
スに向ってデータの下位バイトから順に格納していく方
法と、逆に該データの上位バイトから順に格納していく
方法の二種類が存在し、そのどちらを採用するがはプロ
セッサごとにまちまちであった。
Conventionally, in this type of microprocessor device (for example, a 16-bit or 32-bit MPU), when data spanning multiple bytes is stored in memory (addresses are assigned in units of bytes), the data is moved from the lower address toward the upper address. There are two methods: one in which data is stored in order from the lower byte of the data, and the other in which data is stored in order from the upper byte of the data, and which method is adopted differs from processor to processor.

このため、異なるコンピュータシステム間のデータを互
換性や周辺ICの互換性がなく (例えば一方のタイプ
のMPUで該複数バイトのデータを書込んで他方のタイ
プのMPUで該データを読出すとバイト並びが逆になっ
たデータが読出されてしまう)、この非互換性をソフト
ウェアや外付は回路で吸収しているために、システム性
能の低下、およびソフト/ハード開発の負担増加を招く
という問題点があった。
For this reason, data between different computer systems and peripheral ICs are not compatible (for example, if one type of MPU writes multiple bytes of data and another type of MPU reads the data, This incompatibility is absorbed by the software and external circuits (data with the reverse order is read), resulting in a decrease in system performance and an increase in the burden of software/hardware development. There was a point.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

本発明はかかる問題点を解決するためになされたもので
、MPUのメモリアクセス時にアクセスされるデータの
バイト並びを逆転するハード機構を該MPU内部に設け
、該MPUからメモリに複数バイトのデータを格納する
(または該メモリから複数バイトのデータを読み出す)
にあたり、上記二種類の格、納方法(または読み出し方
法)を選択して使い分けることができるようにしたもの
である。
The present invention was made to solve this problem, and includes a hardware mechanism inside the MPU that reverses the byte order of data accessed when accessing the memory of the MPU, and transfers multiple bytes of data from the MPU to the memory. Store (or read multiple bytes of data from the memory)
In this case, it is possible to select and use the two storage methods (or reading methods) described above.

〔問題点を解決するための手段〕[Means for solving problems]

上記問題点を解決するために本発明においては、複数バ
イトのデータを転送する内部データバスをそなえ、該内
部データバスをそのまま外部データバスに接続する第1
の回路と、該内部データバスをバイトスワツパ回路を介
して外部データバスに接続する第2の回路とが、該内部
データバスと該外部データバスとの間に選択的に切換え
接続されるマイクロプロセッサ装置が提供される。
In order to solve the above problems, the present invention provides an internal data bus that transfers multiple bytes of data, and a first bus that connects the internal data bus directly to an external data bus.
and a second circuit that connects the internal data bus to an external data bus via a byte swapper circuit, the microprocessor device is selectively connected between the internal data bus and the external data bus. is provided.

〔作 用〕[For production]

上記構成によれば、該第1の回路と該第2の回路とが該
内部データバスと該外部データバスとの間に選択的に切
換え接続されるため、メモリアクセス時にアクセスされ
るデータのバイト並びを正逆二つの形態に選択的に切換
えることが可能となる。
According to the above configuration, the first circuit and the second circuit are selectively connected between the internal data bus and the external data bus, so that bytes of data accessed during memory access are It becomes possible to selectively switch the arrangement between forward and reverse.

〔実施例〕〔Example〕

第1図は本発明の1実施例としてのマイクロプロセッサ
装置の内部構成を示すもので、例えば16ビツトMPU
であるとすれば、MPU内部のデータバスとして16本
のデータバスが設けられ、16本の外部データバスを通
して接続されるメモU 6との間での各アクセス毎に1
6ビツトのデータがアクセスされる。なお該メモリ6の
アドレス自体はバイト単位で付されている。
FIG. 1 shows the internal configuration of a microprocessor device as an embodiment of the present invention, for example, a 16-bit MPU.
If so, 16 data buses are provided as internal data buses of the MPU, and 1 data bus is provided for each access to the memory U6 connected through 16 external data buses.
6 bits of data are accessed. Note that the address itself of the memory 6 is assigned in byte units.

tgMpu内部のデータバスと外部データバスとの間に
はバッファ回路1  (MPU内部のデータを増巾して
MPU外部に出力するゲート回路)を通して8亥16ビ
ツトのデータをそのままメモリに転送する第1の回路の
ほかに、バイトスワツパ回路2およびバッファ回路3を
通して該16ビツトのデータをそのバイト並びを反転し
て該メモリに転送する第2の回路が設けられ、該MPU
内部から送られて(る命令(該16ビツトのデータをそ
のまま転送するかそのバイト並びを反転して転送するか
を指令する)が命令デコーダ4において解読されること
により、選択回路5により、上記バッファ回路1又はバ
ッファ回路3の一方が、該命令の内容に応じて選択的に
オン状態とされる。
Between the data bus inside the tgMpu and the external data bus, there is a buffer circuit 1 (a gate circuit that amplifies the data inside the MPU and outputs it to the outside of the MPU) and transfers 8 to 16 bits of data as is to the memory. In addition to the above circuit, a second circuit is provided which inverts the byte arrangement of the 16-bit data and transfers it to the memory through the byte swapper circuit 2 and the buffer circuit 3,
The command (instructing whether to transfer the 16-bit data as is or to invert the byte arrangement) sent from the inside is decoded by the command decoder 4, and the selection circuit 5 selects the above-mentioned Either the buffer circuit 1 or the buffer circuit 3 is selectively turned on depending on the content of the instruction.

ここでバイトスワツパ回路2の内部では、第2図に示さ
れるように16本のデータバスD0乃至I)tsのバイ
ト並び(すなわち8本づつの並び)を反転するような結
線が形成されている。
Here, inside the byte swapper circuit 2, as shown in FIG. 2, connections are formed to invert the byte arrangement of the 16 data buses D0 to I)ts (that is, the arrangement of eight buses at a time).

また上述したようなメモリアクセスを伴う命令として、
例えばメモリからのデータ読出し命令としてはLD(該
メモリからの16ビツトデータをそのまま読出す)およ
びLDX (該メモリがらの16ビツトデータをそのバ
イト並びを反転して読出す)の2種類の命令コードが用
意され、−労咳メモリへのデータ書込み命令してはST
(該メモリへ16ビツトデータをそのまま書込む)およ
び5TX(該メモリへ16ビツトデータをそのバイト並
びを反転して書込む)の2種類の命令コードが用意され
ている。そして該命令デコーダ4に該命令コードLD又
はSTが送られてきたときには該選択回路5を介して該
バッファ回路1がオンとされ、一方、該命令コードLD
X又はSTXが送られてきたときには該選択回路5を介
して該バッファ回路3がオンとされる。すなわち演算等
の処理はMPU内部のレジスタ同志で行うことにして、
メモリアクセスは只−ド(L D)およびストア(ST
)命令だけで行なうこととし、該ロードおよびストア命
令についてのみそれぞれ2種類(LDとLDX 、ST
と5TX)の命令を用意して上述した正逆両方のバイト
並びを扱いうるようにMPU内部データバスと外部デー
タバスとの間の接続を選択的に切換えうるように構成さ
れている。
In addition, as an instruction that involves memory access as mentioned above,
For example, there are two types of instruction codes for data read commands from memory: LD (reads 16-bit data from the memory as is) and LDX (reads 16-bit data from the memory with the byte order reversed). is prepared, and the command to write data to the cough memory is ST.
Two types of instruction codes are available: (writes 16-bit data into the memory as is) and 5TX (writes 16-bit data into the memory with the byte order reversed). When the instruction code LD or ST is sent to the instruction decoder 4, the buffer circuit 1 is turned on via the selection circuit 5;
When X or STX is sent, the buffer circuit 3 is turned on via the selection circuit 5. In other words, processing such as calculations is performed between registers inside the MPU,
Memory access is limited to read (LD) and store (ST)
) instructions, and there are two types of load and store instructions each (LD, LDX, ST
and 5TX), and is configured to selectively switch the connection between the MPU internal data bus and the external data bus so that both the forward and reverse byte arrangements described above can be handled.

このようにロードおよびストア命令をそれぞれ2種類設
けるだけで、該MPU内部において複数バイトのデータ
のバイト並びを正逆2種類の形態に切換えることが可能
となり、これによってメモリへの複数バイトのデータの
格納形式を互に異にする一方のMPtJによって格納さ
れたデータを他方のMPUによって正しく読み出すこと
ができ、そのデータ処理を正確かつ迅速に行うことがで
きる。
By simply providing two types of load and store instructions in this way, it is possible to switch the byte order of multiple bytes of data within the MPU into two types of forward and reverse formats, thereby allowing multiple bytes of data to be stored in memory. Data stored by one MPtJ having a different storage format can be correctly read by the other MPU, and the data can be processed accurately and quickly.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、MPUのメモリアクセス時にアクセス
されるデータのバイト並びを該MPU内部において正逆
2つの形態に切換えることができ、これによってメモリ
アクセスの形態を異にするMPU間でのデータ互換性が
確保され、そのデータ処理を正確かつ迅速に行うことが
できる。
According to the present invention, the byte arrangement of data accessed during memory access by an MPU can be switched between forward and reverse formats within the MPU, thereby improving data compatibility between MPUs that use different memory access formats. data processing can be performed accurately and quickly.

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

第1図は、本発明の1実施例としてのマイクロプロセッ
サ装置の内部構成を示す図、 第2図は、第1図に示されるバイト入りソバ回路の内部
結線を説明する図である。 (符号の説明) 1.3:バッファ回路、 2:バイトスワツパ回路、 4;命令デコーダ、 5:選択回路、 6:メモリ。
FIG. 1 is a diagram showing the internal configuration of a microprocessor device as an embodiment of the present invention, and FIG. 2 is a diagram illustrating the internal wiring of the soba circuit with bites shown in FIG. 1. (Explanation of symbols) 1.3: Buffer circuit, 2: Byte swapper circuit, 4: Instruction decoder, 5: Selection circuit, 6: Memory.

Claims (1)

【特許請求の範囲】[Claims] 1、複数バイトのデータを転送する内部データバスをそ
なえ、該内部データバスをそのまま外部データバスに接
続する第1の回路と、該内部データバスをバイトスワッ
パ回路を介して外部データバスに接続する第2の回路と
が、該内部データバスと該外部データバスとの間に選択
的に切換え接続されることを特徴とするマイクロプロセ
ッサ装置。
1. A first circuit that has an internal data bus that transfers multiple bytes of data and connects the internal data bus directly to an external data bus, and a second circuit that connects the internal data bus to the external data bus via a byte swapper circuit. A microprocessor device characterized in that a circuit No. 2 is selectively connected between the internal data bus and the external data bus.
JP62004882A 1987-01-14 1987-01-14 Microprocessor device Pending JPS63174157A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62004882A JPS63174157A (en) 1987-01-14 1987-01-14 Microprocessor device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62004882A JPS63174157A (en) 1987-01-14 1987-01-14 Microprocessor device

Publications (1)

Publication Number Publication Date
JPS63174157A true JPS63174157A (en) 1988-07-18

Family

ID=11596047

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62004882A Pending JPS63174157A (en) 1987-01-14 1987-01-14 Microprocessor device

Country Status (1)

Country Link
JP (1) JPS63174157A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63208972A (en) * 1987-02-26 1988-08-30 Nec Corp Memory board

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61148562A (en) * 1984-12-22 1986-07-07 Nec Corp Data transfer system of information processor

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61148562A (en) * 1984-12-22 1986-07-07 Nec Corp Data transfer system of information processor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63208972A (en) * 1987-02-26 1988-08-30 Nec Corp Memory board

Similar Documents

Publication Publication Date Title
US5907865A (en) Method and data processing system for dynamically accessing both big-endian and little-endian storage schemes
JPS6259822B2 (en)
US6041387A (en) Apparatus for read/write-access to registers having register file architecture in a central processing unit
EP0026648A2 (en) Digital data transfer apparatus
US6463483B1 (en) Low latency input-output interface
JPS63174157A (en) Microprocessor device
US6681273B1 (en) High performance, variable data width FIFO buffer
JPH0997211A (en) Bus controller and information processor provided with the same
US5251307A (en) Channel apparatus with a function for converting virtual address to real address
JPS59173828A (en) Data processing system
JP2517154B2 (en) Data processing device
JP2976443B2 (en) Information processing device that exchanges data via system bus
JPS6330658B2 (en)
JP2945525B2 (en) Processor, memory, and data processing device
JPH05250310A (en) Data processor
JPS63313251A (en) Addressing circuit
JPH09146877A (en) Inter-memory data transfer controller
KR890002468B1 (en) Main storage fallure address control system in a data processing system
JP2563807B2 (en) Direct memory access control circuit
JPH01158554A (en) Data processing system providing dma device
JPH05151150A (en) Computer data input/output device
JPS60142450A (en) Storage system
JPH0423293B2 (en)
JPS62259158A (en) Interruption request circuit
JPH01219930A (en) Interrupt control circuit device for indirect address system