首页> 外国专利> Closed-loop reading of index registers using wide read and narrow write for multi-threaded system

Closed-loop reading of index registers using wide read and narrow write for multi-threaded system

机译:对于多线程系统,使用宽读和窄写对索引寄存器进行闭环读取

摘要

Indexed registers in controller chips are read in a two-step process. First, an 8-bit write instruction writes an index into an index register in the controller chip. Secondly, a 16-bit read instruction reads both the index register and a data register selected by the index from the index register. When index registers are read in a multi-threaded system, programs in two different threads could access the same index register, each writing a different index into the index register. When another thread over-writes an index written by a current thread, the wrong index and the wrong data are read by the current thread. The current thread detects that the index was overwritten by another thread by extracting the index from the 16-bit read and comparing it to the desired index. When the extracted index mis-matches, the current thread retries, again writing the index and reading back both the index and data. Additional slow I/O operations are only needed when both threads access the same index register, when the wrong data and index are read. The 16-bit read provides closed-loop feedback to the software reading the index register.
机译:控制器芯片中的索引寄存器分两步读取。首先,一条8位写指令将索引写入控制器芯片中的索引寄存器。其次,一条16位的读取指令从索引寄存器中读取索引寄存器和由索引选择的数据寄存器。在多线程系统中读取索引寄存器时,两个不同线程中的程序可以访问同一索引寄存器,每个线程都将不同的索引写入索引寄存器。当另一个线程覆盖由当前线程写入的索引时,当前线程将读取错误的索引和错误的数据。当前线程通过从读取的16位中提取索引并将其与所需索引进行比较,来检测索引是否已被另一个线程覆盖。当提取的索引不匹配时,当前线程重试,再次写入索引并读回索引和数据。仅当两个线程访问相同的索引寄存器且读取错误的数据和索引时,才需要其他缓慢的I / O操作。 16位读取将闭环反馈提供给读取索引寄存器的软件。

著录项

  • 公开/公告号US6188411B1

    专利类型

  • 公开/公告日2001-02-13

    原文格式PDF

  • 申请/专利权人 NEOMAGIC CORP.;

    申请/专利号US19980108789

  • 发明设计人 MICHAEL MAN LOK LAI;

    申请日1998-07-02

  • 分类号G09G50/00;

  • 国家 US

  • 入库时间 2022-08-22 01:05:15

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号