首页> 外国专利> Method and apparatus for performing unaligned little endian and big endian data accesses in a processing system

Method and apparatus for performing unaligned little endian and big endian data accesses in a processing system

机译:在处理系统中执行未对齐的小字节序和大字节序数据访问的方法和装置

摘要

A system which is able to perform unaligned big endian and little endian accesses to memory with little or no added overhead to the system. In the preferred embodiment, the processor operates in little endian data format. The memory, however, can store data in big endian and little endian format in different memory regions. If an unaligned access is to be performed, the access requires translation to corresponding aligned memory accesses. However, if the processor operates in little endian format and accesses are to memory which store according big endian format, special code is required to perform proper translation of accesses. When the address generation unit of the processor detects an unaligned memory access, an unaligned signal is set which causes a microassist to initiate a microflow to execute microcode which performs the necessary translations for unaligned accesses. The address generation unit also sends the address to be access to the memory region table which maintains information regarding each memory region, including whether the region is big endian or little endian. The state bit indicative of the data format is logically combined with the unaligned access signal to generate an output which sets the state of the flag. The flag is then accessed by the microcode to determine the translation routine to process the memory access.
机译:能够执行不对齐的大端和小端对内存的访问的系统,而对系统的开销很少或没有增加。在优选实施例中,处理器以小端数据格式运行。但是,内存可以以大端和小端的格式在不同的存储区域中存储数据。如果要执行未对齐访问,则该访问需要转换为相应的对齐内存访问。但是,如果处理器以小字节序格式运行,并且访问是按大字节序格式存储的内存,则需要特殊代码来执行正确的访问转换。当处理器的地址生成单元检测到未对齐的存储器访问时,会设置未对齐的信号,该信号会导致微助手启动微流以执行微码,该微码将执行未对齐的访问所需的转换。地址生成单元还将要访问的地址发送到存储区域表,该存储区域表维护关于每个存储区域的信息,包括该区域是大字节序还是小字节序。将指示数据格式的状态位与未对齐的访问信号进行逻辑组合,以生成设置标志状态的输出。然后,微代码访问该标志,以确定用于处理内存访问的转换例程。

著录项

  • 公开/公告号US5519842A

    专利类型

  • 公开/公告日1996-05-21

    原文格式PDF

  • 申请/专利权人 INTEL CORPORATION;

    申请/专利号US19930023560

  • 发明设计人 YAN XU;DEIF N. ATALLAH;

    申请日1993-02-26

  • 分类号G06F12/04;G06F13/00;

  • 国家 US

  • 入库时间 2022-08-22 03:38:34

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号