RussianPatents.com
|
Device for selecting the lesser one of two binary numbers |
|||||||||||||||
IPC classes for russian patent Device for selecting the lesser one of two binary numbers (RU 2300130):
|
FIELD: computer engineering, possible use for building automatic devices, functional units of control systems, etc. SUBSTANCE: device for selecting the lesser one of two binary numbers contains AND element, 4(n-1) implication units and 3(n-2)+1 AND elements. Implication units and AND elements are grouped in n groups. Group number J contains two implication units and AND element. Group number M additionally contains two implication units and two AND elements. In group number r the output of i implication unit is connected to i input of first AND element. In m group output of i implication unit, connected by inverting input to first input of (i+1) AND element, and output of (i+1) AND element, connected by second input to of (3-i) implication unit, are connected respectively to inverting and non-inverting inputs of (i+2) implication unit. In first group, inverting and non-inverting inputs of first implication unit are connected respectively to non-inverting and inverting inputs of second implication unit, first and second inputs of first AND element. Output of i implication unit of first group and output of (i+2) implication unit of m group are connected respectively to inverting input of i implication unit of second group to inverting input of i implication unit of (m+1) group. Inputs of first AND element of first group, non-inverting inputs of implication units of r group and output of first AND element of j group form respectively (n+1), r, (n+r) inputs and j output of device for selecting the lesser one of two binary numbers. EFFECT: expanded functional capabilities due to ensured selection of the lesser one of two n-bit binary numbers set by binary signals. 1 dwg, 1 tbl
The invention relates to computer technology and can be used for building automation, functional units of the control systems and other The known device the selection of the smaller of the two binary numbers (see, for example, the lower Fig. in table on str in the book Handbook of digital computing. Malinowski, B., Alexandrov VA, Boun VP and others / edited Binalewala. Kyiv: Tekhnika, 1974)containing implicator and performs the operation y=min(x1x2) when x2<x1where x1x2∈{0, 1} - bit binary numbers, binary asked signals. For the reason that impede the achievement of specified following technical result when using known devices breeding the smaller of the two binary numbers are limited functionality due to the fact that not allowed the processing of n-bit binary numbers, binary asked signals. The closest device to the same destination to the claimed invention by the combination of features is adopted for the prototype device selection the smaller of the two binary numbers (figure 2 on page 24 in the book Digital and analog integrated circuits: Handbook / Sviatoslavsky, Lignosellus, Vigolana and other edited Svechenovskoj. M.: Radio and communication, 1989), which contains the incorporated element And performs the operation y=min(x 1x2), where x1x2∈{0,1} - bit binary numbers, binary asked signals. For the reason that impede the achievement of specified following technical result when using the prototype include limited functionality due to the fact that not allowed the processing of n-bit binary numbers, binary asked signals. The technical result of the invention is the extension of functionality by providing a selection of the smaller of the two n-bit binary numbers, binary asked signals. This technical result in the implementation of the invention is achieved in that in the device selection of the smaller of the two binary numbers containing the element And the peculiarity lies in the fact that it additionally introduced 4(n-1) implication and 3(n-2)+1 similar to the above-mentioned elements And, with all implicatory and elements are grouped into n groups so that j-Ithe group contains two implicator and item, and m-Ithe group additionally contains two implicator and two elements And, in the r-ththe group output of the i-thimplicator connected with i-th input of the first element And, in the m-th group of the output of the i-th implicator connected invert the dominant input to the first input of the (i+1)-th element, And and output (i+1)-th element And connected to the second input to output (3-i)-th implicator, are connected respectively to the inverting and reinvestiruet inputs (i+2)-th implicature, in the first group inverting and non-inverting inputs of the first implicator connected respectively to not inverting and inverting inputs of the second implicature, the first and second inputs of the first element And the output of the i-th implicator the first group and the output (i+2)-th implicator m-th group are connected respectively to the inverting input of the i-th second implicator group and the inverting input of the i-th implicator (m+1)-th group, and the first, second inputs of the first element And the first group, noninverting inputs of the first, second implication r-th group and the output of the first element And the j-th group respectively form first, (n+1)-th, r-th, (n+r)-th input and j-th output selection of the smaller of the two binary numbers. The drawing shows a diagram of the device of selection of the smaller of the two binary numbers. Device selection the smaller of the two binary numbers contains 4(n-1) implication 111, 121, 112, ..., 14(n-1), 11n, 12nelement 211and 3(n-2)+1 elements And 212, ..., 23(n-1), 21nand all implicatory and elements are grouped into n groups so that j-Ithe group contains implicate the ry 1 1j, 12jand item 21jand m-Ithe group additionally contains implicatory 13m, 14mand elements of 22m, 23mthe output of implicature lirconnected to the i-th input element 21rthe output of implicature 1imconnected inverting input to the first input element 2(i+1)mand the output element 2(i+1)mconnected to the second input to the output of implicature 1(3-i)mconnected respectively to the inverting and reinvestiruet inputs of implicature 1(i+2)m, inverting and non-inverting inputs of implicature 111connected respectively to not inverting and inverting inputs of implicature 121, the first and second inputs of the element 211the output of implicature 1i1and the output of implicature 1(i+2)mconnected respectively to the inverting input of implicature 1i2and inverting input of implicature 1i(m+1)and the first, second inputs of the element 211, noninverting inputs of implication 11r, 12rand the output element 21jform respectively the first, (n+1)-th, r-th, (n+r)-th input and j-th output selection of the smaller of the two binary numbers. The work of the proposed device selection the smaller of the two binary numbers is performed as follows. On his first, ..., n-th and (n+1)-th, ..., 2n)-th inputs are given correspondingly arbitrary binary signals x n-1, ..., x0∈{0,1} and yn-1, ..., y0∈{0,1}, which set you want to process n-bit binary numbers xn-1...x0and yn-1...y0(xn-1, yn-1and x0, y0determine the values of high and low, respectively). Then the signal at the j-ththe output of the device will be determined by the expression where The following table shows the values implemented by the expressions (2), (3) functions for all possible sets of values of their arguments. Bold in the table selected values of functions and their arguments when j=2. Analysis of the data given in the table allows us to conclude that: 1) if z1(j-2)=z2(j-2)=1 and xn-j+1=yn-j+1then z1(j-1)=z2(j-1)=1; 2) if z1(j-2))=z2(j-2)=1 and xn-j+1<yn-j+1(z1(j-2)=z2(j-2)=1 and yn-j+1<xn-j+1), z1(j-1)=1 and z2(j-1)=0 (z1(j-1)=0 and z2(j-1)=1); 3) if z1(j-2)=1 and z2(j-2)=0 (z1(j-2)=0 and z2(j-2)=1), then z1(j-1)=1 and z2(j-1)=0 (z1(j-1)=0 and z2(j-1)=1); 4) if xn-1=yn-1or xn-1<yn-1(yn-1<xn-1), respectively, z11=z21=1 z 11=1 and z21=0 (z11=0 and z21=1). Thus, the first and the r-ththe outputs of the proposed device according to (1) respectively receive and where xn-1...xn-r+1and yn-1...yn-r+1- fragments of the n-bit binary numbers xn-1...x0and yn-1...y0. Therefore, considering (4), (5) have wn-1...w0=min(xn-1...x0, yn-1...y0), where wn-1...w0n-bit binary number defined by the binary signal w0, ..., wn-1∈{0, 1} (wn-1and w0determine the values of older and younger categories, respectively). The above data allow us to conclude that the proposed device is wider compared to the prototype functionality, as it provides a selection of the smaller of the two n-bit binary numbers, binary asked signals. Device selection the smaller of the two binary numbers containing element, And characterized in that it additionally introduced 4(n-1) implication and 3(n-2)+1 similar to the above-mentioned elements And, with all implicatory and elements are grouped into n groups so that j-Ithe group contains two implicator and item, and m is the the group additionally contains two implicator and two elements And, in the r-ththe group output of the i-thimplicator connected with i-th input of the first element And, in the m-th group of the output of the i-th implicator connected inverting input to the first input of the (i+1)-th element, And the output (i+1)-th element And connected to the second input to output (3-i)-th implicator, are connected respectively to the inverting and reinvestiruet inputs (i+2)-th implicature, in the first group inverting and non-inverting inputs of the first implicator connected respectively to not inverting and inverting inputs of the second implicature, the first and second inputs of the first element And the output of the i-th implicator the first group and the output (i+2)-th implicator m-th group are connected respectively to the inverting input of the i-th implicator second group and the inverting input of the i-th implicator (m+1)-th group, and the first, second inputs of the first element And the first group, noninverting inputs of the first, second implication r-th group and the output of the first element And the j-th group respectively form first, (n+1)-th, r-th, (n+r)-th input and j-th output selection of the smaller of the two binary numbers.
|
© 2013-2014 Russian business network RussianPatents.com - Special Russian commercial information project for world wide. Foreign filing in English. |