首页> 外国专利> Apparatus for testing binary-coded decimal arithmetic digits by binary parity checking circuits

Apparatus for testing binary-coded decimal arithmetic digits by binary parity checking circuits

机译:通过二进制奇偶校验电路测试二进制编码的十进制算术数字的设备

摘要

The invention relates to parity checking in arithmetic circuits utilizing binary-coded decimal operands, and provides, inter alia, means to calculate a parity bit for the output of an arithmetic circuit from the inputs to the circuit. In Fig. 2A, two binary-coded operands A1- A4, B1- B4 with associated parity bits PA, PB are stored in registers 26, 27. Assuming that these operands are binary-coded decimal digits of numbers supplied serially by decimal digit which are to be added, control line t is energized (ONE bit) and decimal modifier 21 adds six to operand B1-B4 to produce modified operand BE1-BE4 which is added to operand A1-A4 in binary adder 20 producing result S1-S4. If a carry bit ONE is also produced by adder 20 on line 212, result S1-S4 is passed through decimal corrector 22 unchanged to constitute final result R1-R4 but otherwise six is subtracted from it in corrector 22. On the other hand, if the operands are to be subtracted, decimal modifier 21 simply inverts each bit B1-B4, achieved by energizing control line c which also constitutes an input C IN to adder 20 to add in an extra one to convert the ones complement form of operand B1-B4 supplied to the adder to twos complement form. Decimal corrector 22 operates as before. As a further mode of operation, if the operands A1-A4 and B1-B4 are to be treated as pure binary, energization of control line b ensures that decimal modifier 21 and decimal corrector 22 pass their inputs unchanged. As the above calculations are performed, the circuit of Fig. SB is adjusting parity bits correspondingly and performing a parity check. Parity modifier 23 receives operand bits B2, B3 and parity bit PB and produces a parity bit PBE corresponding to the output BE1-BE4 from decimal modifier 21. Binary parity predictor/checker 24 checks the parity of operand A1-A4 against parity bit PA and that of BE1-BE4 against PBE and produces an output at 17 in the absence of error. It also (from bits A1-A4, BE1-BE4 and control bit c alone and using ripple-carry addition) produces a parity bit PS to correspond to the output S1-S4 of adder 20. A parity corrector 25 produces a final parity bit PR to correspond to final result R1-R4, corrector 25 being fed with bit PS and result bits S2-S4. Both parity modifier 23 and parity corrector 25 also receive control bits t, c, b. The following possible forms for adder 20 are mentioned: ripple carry, carry propagate, carry lookahead, carry save, and carry eliminate. Modifications mentioned.-Binary adder 20 may be replaced by a subtracter. Adder 20 may deal with several decimal characters in parallel. Operation may be entirely serial. The excess-six code may be replaced by excess-three.
机译:本发明涉及利用二进制编码的十进制操作数的算术电路中的奇偶校验,并且除其他外,提供了一种手段,用于计算从输入到电路的算术电路的输出的奇偶校验位。在图2A中,两个具有相关奇偶校验位PA,PB的二进制编码的操作数A1-A4,B1-B4存储在寄存器26、27中。假定这些操作数是二进制编码的十进制数字,该数字是由十进制数字顺序提供的将被加,控制线t被加电(一位),并且十进制修改器21将六加到操作数B1-B4上以产生修改的操作数BE1-BE4,其被加到二进制加法器20中的操作数A1-A4上,产生结果S1-S4。如果加法器20在线212上也产生进位1,则结果S1-S4不加改变地通过十进制校正器22以构成最终结果R1-R4,否则在校正器22中从中减去六。如果要减去操作数,则十进制修改器21只需对每个位B1-B4求反,这是通过给控制线c供电来实现的,该控制线c也构成加法器20的输入C IN,再加上一个附加值以转换操作数B1-的补码形式B4提供给加法器为二进制补码形式。十进制校正器22如前操作。作为另一种操作模式,如果将操作数A1-A4和B1-B4视为纯二进制,则控制线b的通电可确保十进制修改器21和十进制校正器22不变地传递其输入。当执行上述计算时,图SB的电路相应地调整奇偶校验位并执行奇偶校验。奇偶校验修改器23接收操作数位B2,B3和奇偶校验位PB,并产生与十进制修改器21的输出BE1-BE4相对应的奇偶校验位PBE。二进制奇偶校验预测器/校验器24对照奇偶校验位PA和B检查操作数A1-A4的奇偶校验。 BE1-BE4相对于PBE的误差,在没有错误的情况下在17处产生输出。它还(仅从比特A1-A4,BE1-BE4和控制比特c并且使用脉动进位加法)产生奇偶校验位PS以对应于加法器20的输出S1-S4。奇偶校验校正器25产生最终的奇偶校验位。 PR对应于最终结果R1-R4,向校正器25馈送比特PS和结果比特S2-S4。奇偶校验修改器23和奇偶校验校正器25也都接收控制位t,c,b。提到了加法器20的以下可能形式:波纹进位,进位传播,进位提前,进位保存和进位消除。提及的修改。-二进制加法器20可以由减法器代替。加法器20可以并行处理几个十进制字符。操作可能完全是串行的。多余的六位代码可以由多余的三位代替。

著录项

  • 公开/公告号ES306696A1

    专利类型

  • 公开/公告日1965-04-16

    原文格式PDF

  • 申请/专利权人 INTERNATIONAL BUSINESS MACHINES CORPORATION;

    申请/专利号ES19640306696

  • 发明设计人

    申请日1964-12-09

  • 分类号G06F7/50;G06F11/10;

  • 国家 ES

  • 入库时间 2022-08-23 16:02:21

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号