首页> 外国专利> Method and circuit for fast generation of zero flag condition code in a microprocessor-based computer

Method and circuit for fast generation of zero flag condition code in a microprocessor-based computer

机译:在基于微处理器的计算机中快速生成零标记条件代码的方法和电路

摘要

An adder circuit in parallel with a zero flag generation circuit. In a preferred embodiment, an arithmetic logic unit (ALU) circuit in a microprocessor based computer system includes an adder circuit preferably adapted to receive first and second operands. The preferred adder circuit is further adapted to produce a result equal to the sum of the first and second operands. The ALU circuit further includes a zero flag generation circuit. The zero flag generation circuit is adapted to receive the first and second operands in parallel with the adder circuit and to produce a zero flag signal in response to the operands. The zero flag signal is indicative of whether the sum of the operands is equal to zero. In one embodiment, the zero flag generation circuit includes N half adders in parallel wherein each adder receives a bit from the first operand and a corresponding bit from the second operand. Each half adder produces a sum bit and a carry bit in response to the inputs. Preferably, the zero flag generation circuit further includes N-1 Exclusive OR (EXOR) gates. Each of the N-1 EXOR gates receives one bit of the N sum bits and a corresponding bit of the N carry bits as inputs. The N-1 outputs from the EXOR gates, together with an inverted least significant sum bit, are routed to a logic circuit. The logic circuit functions as an AND gate, producing an output signal indicative of whether each input signal is equal to 1.
机译:与零标志产生电路并联的加法器电路。在优选实施例中,基于微处理器的计算机系统中的算术逻辑单元(ALU)电路包括加法器电路,该加法器电路优选地适于接收第一和第二操作数。优选的加法器电路还适于产生等于第一和第二操作数之和的结果。 ALU电路还包括零标志产生电路。零标志产生电路适于与加法器电路并行地接收第一和第二操作数,并响应于这些操作数产生零标志信号。零标志信号指示操作数之和是否等于零。在一个实施例中,零标志生成电路包括并行的N个半加法器,其中每个加法器从第一操作数接收比特,并从第二操作数接收对应比特。每个半加法器响应于输入产生一个和位和一个进位位。优选地,零标志产生电路还包括N-1个异或(EXOR)门。 N-1个异或门中的每一个接收N个和位中的一位,并且N个进位位中的对应位作为输入。来自EXOR门的N-1个输出与反相的最低有效和位一起被路由到逻辑电路。逻辑电路用作“与”门,产生指示每个输入信号是否等于1的输出信号。

著录项

  • 公开/公告号US5862065A

    专利类型

  • 公开/公告日1999-01-19

    原文格式PDF

  • 申请/专利权人 ADVANCED MICRO DEVICES INC.;

    申请/专利号US19970799452

  • 发明设计人 KARTHIKEYAN MUTHUSAMY;

    申请日1997-02-13

  • 分类号G06F7/00;

  • 国家 US

  • 入库时间 2022-08-22 02:08:52

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号