SU1561074A1 - Device for determining ratio of 16/90 sets - Google Patents
Device for determining ratio of 16/90 sets Download PDFInfo
- Publication number
- SU1561074A1 SU1561074A1 SU864063098A SU4063098A SU1561074A1 SU 1561074 A1 SU1561074 A1 SU 1561074A1 SU 864063098 A SU864063098 A SU 864063098A SU 4063098 A SU4063098 A SU 4063098A SU 1561074 A1 SU1561074 A1 SU 1561074A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- input
- output
- comparison
- elements
- inputs
- Prior art date
Links
Landscapes
- Complex Calculations (AREA)
Abstract
Изобретение относитс к вычислительной технике и может быть использовано при построении систем управлени банками данных. Цель изобретени - расширение области применени устройства за счет реализации сравнени всех соответствующих элементов двух множеств. Устройство содержит два коммутатора 3 и 4, два регистра 5 и 6 признаков, блок 10 сравнени , элемент НЕ 14, элементы ИЛИ 9 и дешифратор 8The invention relates to computing and can be used in the construction of data bank management systems. The purpose of the invention is to expand the field of application of the device by implementing a comparison of all the relevant elements of the two sets. The device contains two switches 3 and 4, two registers 5 and 6 signs, a block 10 of comparison, the element NOT 14, elements OR 9 and a decoder 8
в него введены два блока 1 и 2 пам ти, шифратор 7, два счетчика 11 и 12, три элемента И 16,17 и 20, второй элемент НЕ 15, элемент 19 задержки и элемент ИЛИ 18 начальной установки. После подачи на вход устройства кода операции сравнени на информационные входы блоков сравнени поступают поочередно элементы множеств и, если критерии сравнени выполн ютс , на выходе устройства по вл ютс код отношени множеств. 1 ил.Two blocks 1 and 2 of memory, an encoder 7, two counters 11 and 12, three elements AND 16,17 and 20, a second element NOT 15, a delay element 19 and an OR element 18 of the initial installation are entered into it. After the comparison operation code is input to the device input, the elements of the sets are received alternately at the information inputs of the comparison blocks and, if the comparison criteria are fulfilled, the set ratio code appears at the output of the device. 1 il.
Description
| Изобретение относитс к вычислительной технике и может быть использовано , в системах управлени банками данных.| The invention relates to computing and can be used in data bank management systems.
Целью изобретени вл етс расширение области применени устройства за счет реализации сравнени всех соответствующи;-; элементов двух множеств . The aim of the invention is to expand the field of application of the device by implementing a comparison of all relevant; -; elements of two sets.
На чертеже приведена схема устройства .The drawing shows a diagram of the device.
Устройство содержит блоки 1 и 2 пам ти, коммутаторы 3 и 4 регистры 5 и 6 признаков, шифратор 7, дешифратор 8, элементы ИЛИ 9, блоки сравнени 10, счетчики 11 и 12, выходной элемент ИЛИ 13, элементы НЕ 14 и 15, элементы И 16, 17,, элемент ИЛИ 18 начальной установки, элемент 19 задержки, элемент И 20, входы 21 и 22, вход 23 запуска, выходы 24 и тактовый вход 25„ Блок сравнени 10 осуществл ет проверку следующих отношений сравнени : , Ј , , , . Он выдает сигнал на своем выходе лишь в том случае, когда отношение сравнени , конкретно определ емое подачей на соответствующий управл ющий вход единичного сигнала, не удовлетвор етс между кодами на группах его информационных входов и присутствует сигнал на его разрешающем входе.The device contains blocks 1 and 2 of memory, switches 3 and 4, registers 5 and 6 signs, encoder 7, decoder 8, elements OR 9, comparison blocks 10, counters 11 and 12, output element OR 13, elements NOT 14 and 15, elements And 16, 17 ,, the initial installation element OR 18, the delay element 19, the AND element 20, the inputs 21 and 22, the start input 23, the outputs 24 and the clock input 25 "Comparison unit 10 checks the following comparison relations:,,, , It outputs a signal at its output only when the comparison relation, specifically determined by applying a single signal to the corresponding control input, is not satisfied between the codes on the groups of its information inputs and there is a signal at its enable input.
Шифратор 7 выдает сигнал на своем выходе при подаче на его управл ющий вход единичного сигнала.The encoder 7 outputs a signal at its output when a single signal is applied to its control input.
Блоки 1 и 2 пам ти хран т элементы сравниваемых множеств. Последний элемент каждого множества помечаетс единицей в 0-ом разр де. Остальные элементы множеств отмечены нулем. Адрес элементов множеств представл ет собой целое число в интервале от 1 до L, где L - число элементов множеств Сравниваемые множества имеют одинаковую размерность. БлокиBlocks 1 and 2 of the memory store the elements of the compared sets. The last element of each set is marked with a unit in the 0th digit. The remaining elements of the sets are marked with a zero. The address of the elements of a set is an integer in the range from 1 to L, where L is the number of elements of the sets. The compared sets have the same dimension. Blocks
00
5five
00
5five
00
5five
00
5five
1 и 2 выдают содержимое соответствующих чеек пам ти на свои выходы и поддерживают его там при подаче соответствующего адреса на адресный вход о1 and 2 output the contents of the corresponding memory cells to their outputs and maintain it there when submitting the corresponding address to the address input about
Элементы множеств состо т из п компонент . Пусть заданы списки , рг ,.. .,The elements of sets consist of n components. Let lists be given, pg, ...,
р VYI и компонент, определ ющие элементы двух множеств А и В, подлежащих сравнению (р, f - номера (имена) компонент, i 1,2, ..., m, ). Тогда под критерием сравнени элементов множеств А и В понимаютp VYI and components defining the elements of two sets A and B to be compared (p, f are the numbers (names) of the components, i 1,2, ..., m,). Then, the criterion for comparing the elements of the sets A and B is
Ц,,9ВГ, ) Л ( Ъ,2 )А . .. )C ,, 9VG,) L (b, 2) A. ..)
где а о. -а компонента элементаwhere and oh element component
множества А, В. компонента элементаsets A, B. element component
множества В, 9 - одно из отношений: ,sets B, 9 - one of the relations:
Ґ , , , , Каждой компоненте элементов мно- жеств в регистрах 5 и 6 соответствует один разр д.Ґ,,,, Each component of the elements of the sets in registers 5 and 6 corresponds to one bit.
Устройство работает следующим образом .The device works as follows.
По гр.упце 21 входов в разр ды регистра 5 записываютс единицы, соответствующие списку X. Аналогично в разр ды регистра 6 по группе 22 входов записываютс единицы, соответствующие списку Y0 Коммутаторы 3 и 4 настраиваютс на выдачу компонент элементов множеств А и В в соответствии со списками X и Y.According to the group of 21 entries in the bits of the register 5, the units corresponding to the list X are written. Similarly, the bits of the register 6 in the group of 22 inputs write the units corresponding to the list Y0 Switches 3 and 4 are configured to output components of the elements of the sets A and B in accordance with lists X and Y.
Дешифратор 8 анализирует количество единиц в регистре 5. Если в регистре 5 находитс код, содержащий m единиц, то по вл етс сигнал на m-ом выходе дешифратора 8. Этот сигнал через элементы ИЛИ 9 поступает на разрешающие входы блоков сравнени 10 с первого по га-ый. Следовательно , во внимание принимаютс результаты сравнени га компонент элементов множеств А и В.Decoder 8 analyzes the number of units in register 5. If register 5 contains a code containing m units, a signal appears at the m-th output of the decoder 8. This signal, via the OR 9 elements, goes to the enable inputs of comparison blocks 10 of the first by ha th Consequently, the results of the comparison of the components of the elements of the sets A and B are taken into account.
В исходном состо нии счетчики 11 и 12 содержат информацию, относ щуюс к предыдущему сравнению некоторых двух множеств (при подаче питани предыдущим будет какое-то фиктивное сравнение). Результатом предыдущего сравнени вл етс блокировка подачи синхроимпульсов со входа 25 устройства.In the initial state, the counters 11 and 12 contain information related to the previous comparison of some two sets (with the power supply the previous one will be some kind of dummy comparison). The result of the previous comparison is blocking the supply of clock pulses from the input 25 of the device.
Запуск устройства осуществл етс подачей сигнала на вход 23 устройства . По этому сигналу содержимое счетчиков 11 и 12 стает равным единице . Блоки 1 и 2 пам ти выдают на свои выходы первые элементы множеств Аи В. С выхода счетчика 11 . сигнал поступает на первый управл ющий вход включенных блоков сравнени 10. Выделенные коммутаторами 3 и 4 компоненты элементов провер ютс блоками сравнени 10 на выполнение первой операции сравнени .Starting the device is accomplished by applying a signal to the input 23 of the device. On this signal, the contents of counters 11 and 12 become equal to one. Blocks 1 and 2 of memory produce at their outputs the first elements of sets A and B. From the output of counter 11. The signal arrives at the first control input of the included comparison units 10. The components of the elements selected by the switches 3 and 4 are checked by the comparison units 10 for the first comparison operation.
Если критерий сравнени выполн етс , то единичный сигнал с выходаIf the comparison criterion is satisfied, then a single signal from the output
На выходах следующие . Блоки сравэлемента НЕ 14 поступает на третий вход элемента И 17, на первый вход которого подаетс единичный сигнал с выхода элемента НЕ 15 (так как элементы множеств не последние). Синхроимпульс , поступивший со входа 25 устройства, увеличивает значение счетчика 12 на единицу„ блоков 1 и 2 по вл ютс элементы множеств А и В нени 10 производ т их сравнение. Если критерий сравнени выполн етс , следующий синхроимпульс увеличивает значение счетчика 12 еще на единицу. Сравниваютс следующие элементы множеств и т.д„, пока на выходах блоков 1 и 2 не по в тс компоненты последних элементов множеств. Единичный сигнал с выхода блока 2 блокирует приращение значени счетчика 12„ В случае успешного сравнени последних элементов множества А и В на оба входа элемента И 20 поступают единичные сигналы с управл ющих выходов блоков 1 и 2 (элемент задержки 19 компенсирует врем переходных процессов при сравнении). Когда сигнал поступает на управл ющий вход шифратора 7, последний выдает на выходе 24 код, соответствующий найденному отношению.At the outputs of the following. The blocks of the HE element 14 do not enter the third input of the element AND 17, the first input of which is supplied with a single signal from the output of the element NOT 15 (since the elements of the sets are not the last). The clock pulse received from the input 25 of the device increases the value of the counter 12 by one unit of blocks 1 and 2, and the elements of the sets A and B of the lower 10 appear to compare them. If the comparison criterion is met, the next clock pulse increases the value of the counter 12 by one more. The following elements of the sets are compared, and so on, while the outputs of blocks 1 and 2 do not match the components of the last elements of the sets. A single signal from the output of block 2 blocks the increment of the counter value 12 "In case of successful comparison of the last elements of set A and B, single inputs of the element 20 receive single signals from the control outputs of blocks 1 and 2 (delay element 19 compensates for transient time during comparison) . When the signal arrives at the control input of the encoder 7, the latter outputs at code 24 a code corresponding to the ratio found.
56107465610746
Если при каком-либо сравнении критерий сравнени не выполнитс , тс единичный сигнал с выхода элементаIf, for any comparison, the comparison criterion is not fulfilled, then a single signal from the output of the element
с ИЛИ 13 присвоит содержимому счетчика 12 значение, равное единице. Кроме того, сигнал с выхода элемента ИЛИ 13 поступает на второй вход элемента И 16. Пришедший синхроим10 пульс увеличивает на единицуwith OR 13 will assign the contents of the counter 12 a value equal to one. In addition, the signal from the output of the element OR 13 is fed to the second input of the element And 16. The incoming sync pulse 10 increases by one
значение счетчика 11, Элементы множеств А и В сравниваютс , начина оп ть с первых элементов, на выпол- ,- нение следующей операции сравнени .the value of counter 11, the elements of the sets A and B are compared, starting again from the first elements, to the execution, of the following comparison operation.
15 Дальнейша работа устройства аналогична описанной. Перебором определ етс наконец то отношение, дл которого операци сравнени выполн етс дл всех элементов множеств А и В.15 Further operation of the device is similar to that described. The search finally determines the relation for which the comparison operation is performed for all elements of the sets A and B.
20 Код операции сравнени подаетс на вход устройствао Пусть имеютс два множества, отношение между которыми необходимо определить. Решение этой задачи требует применени следующего20 The comparison operation code is fed to the input of the device. Let there be two sets, the relationship between which must be determined. Solving this problem requires applying the following
25 алгоритма: выбор операции сравнени ; подача на информационные входы компараторов первых элементов множеств; сравнение элементов множеств; если критерий сравнени не выполн етс ,25 algorithms: selection of comparison operation; submission to the information inputs of the first element set comparators; comparison of elements of sets; if the comparison criterion is not met,
30 то переход на п.1; если элементы множеств последние, то переход на п. 8; подача на информацион ые входы компараторов следующих элементов мно530 then the transition to claim 1; if the elements of the sets are the last, then go to step 8; submission to the information inputs of the comparators of the following elements of the multi
00
5five
00
жеств переход на п.З; выдача кода операции сравнени .Steps to p.Z; issuing a comparison operation code.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU864063098A SU1561074A1 (en) | 1986-04-25 | 1986-04-25 | Device for determining ratio of 16/90 sets |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU864063098A SU1561074A1 (en) | 1986-04-25 | 1986-04-25 | Device for determining ratio of 16/90 sets |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1561074A1 true SU1561074A1 (en) | 1990-04-30 |
Family
ID=21236082
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU864063098A SU1561074A1 (en) | 1986-04-25 | 1986-04-25 | Device for determining ratio of 16/90 sets |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1561074A1 (en) |
-
1986
- 1986-04-25 SU SU864063098A patent/SU1561074A1/en active
Non-Patent Citations (1)
Title |
---|
Авторское свидетельство СССР № 1543419, кл. G 06 F 15/38, 1985. Авторское свидетельство СССР № 1211759, кл. G 06 F 15/38, G Ob F 7/02, 1985. * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4490786A (en) | Vector processing unit | |
US3900836A (en) | Interleaved memory control signal handling apparatus using pipelining techniques | |
US2995303A (en) | Matrix adder | |
SU1561074A1 (en) | Device for determining ratio of 16/90 sets | |
US4424730A (en) | Electronic musical instrument | |
SU1478213A1 (en) | Sine and cosine computer | |
SU1372322A1 (en) | Homogeneous structure cell | |
SU1583941A1 (en) | Device for comparison of information files | |
SU1661754A1 (en) | Device for detecting extreme numbers | |
US3889110A (en) | Data storing system having single storage device | |
SU1270900A1 (en) | Device for converting serial code to parallel code | |
SU1293844A1 (en) | Device for transforming programs | |
SU1254475A1 (en) | Device for transforming coordinates | |
SU1228115A1 (en) | Device for restricting relations among data and concepts | |
SU1280639A1 (en) | Device for loading data | |
SU842966A1 (en) | Storage cell for shift register | |
SU1206807A1 (en) | Device for constructing list | |
SU1117631A1 (en) | Device for sorting numbers | |
SU1309042A1 (en) | Device for finding faulted blocks and elements | |
SU1254484A1 (en) | Device for loading data in computer system | |
SU1552174A1 (en) | Dividing device | |
SU1043633A1 (en) | Comparison device | |
SU1292000A1 (en) | Device for determining routes in graph | |
SU780041A1 (en) | Associative storage | |
SU1273930A2 (en) | Device for sequential selecting of ones from n-bit binary code |