FIELD: physics, computer engineering.
SUBSTANCE: invention can be used in digital computer engineering and in computer processors and digital automation devices. In the method, first and second elementary operations (EO) for logical multiplication (LM) are performed in a first time step TS1, the results of which are used to create a unit lending potential (LP) in high-order bits, the LM2 code is received in a second register B and the register flip-flops A are set to zero for unit code bits of the minuend and the subtrahend. In the second TS2, an EO for modulo 2 addition of the code Ai with LP from the least significant bit or code Bi is performed. Is said signals are present in the i-th bit, simultaneous modulo 2 addition is prohibited. The difference sign is also formed in TS2 and the LP from the most significant bit is recorded. If LP=0, i.e. when |A|>]B|, the operation is completed. If LP=1, i.e. |A|<|B|, the code of register A is inverted on TS3, 4 with addition of one to the least significant bit of the device. The device has AND elements, OR elements, digital inverters, RS flip-flops and control inputs.
EFFECT: faster subtraction owing to merging the time for performing the elementary operation for receiving the subtrahend and creating the lending potential.
2 cl, 2 dwg, 1 tbl
Title | Year | Author | Number |
---|---|---|---|
BINARY CODED DECIMAL SUMMATION METHOD AND DEVICE | 2007 |
|
RU2402803C2 |
METHOD AND DEVICE FOR ADDING BINARY CODES | 2008 |
|
RU2388041C2 |
METHOD AND DEVICE FOR ADDING AND SUBTRACTING BINARY DECIMAL CODE | 2008 |
|
RU2389064C1 |
PULSE COUNTER | 2010 |
|
RU2419200C1 |
COMBINATIVE ACCUMULATING ADDER | 2005 |
|
RU2292073C1 |
BINARY-CODED DECIMAL SUMMATION METHOD AND DEVICE | 2008 |
|
RU2395833C2 |
METHOD AND APPARATUS FOR SUBTRACTING UNITS | 2014 |
|
RU2540787C1 |
METHOD AND DEVICE FOR BINARY-CODED DECIMAL MULTIPLICATION | 2008 |
|
RU2386998C1 |
PULSE COUNTER | 2006 |
|
RU2308801C1 |
IMPULSE COUNTER | 2004 |
|
RU2284653C2 |
Authors
Dates
2011-01-27—Published
2010-02-08—Filed