SU1751758A1 - Priority encoder - Google Patents
Priority encoder Download PDFInfo
- Publication number
- SU1751758A1 SU1751758A1 SU904838324A SU4838324A SU1751758A1 SU 1751758 A1 SU1751758 A1 SU 1751758A1 SU 904838324 A SU904838324 A SU 904838324A SU 4838324 A SU4838324 A SU 4838324A SU 1751758 A1 SU1751758 A1 SU 1751758A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- group
- switch
- inputs
- elements
- input
- Prior art date
Links
Landscapes
- Electronic Switches (AREA)
Abstract
Изобретение относитс к вычислительной технике. Цель изобретени - расширение области применени за счет возможности выработки выходного кода произвольной кодировки. В устройство вводитс группа элементов НЕРАВНОЗНАЧНОСТЬ , коммутатор и группа элементов НЕ В устройстве по вл етс возможность произвольной кодировки выходного кода и произвольного наращивани разр дности выходного кода, а также сокращаютс аппаратурные затраты за счет сокращени площади ,занимаемойтрассами межсоединений. 1 з п. ф-лы, 2 илThe invention relates to computing. The purpose of the invention is to expand the scope of application due to the possibility of generating the output code of an arbitrary encoding. The device introduces a group of elements UNCHARTERNESS, a switch and a group of elements NOT. The device allows for arbitrary encoding of the output code and arbitrary increasing of the output code, as well as reducing hardware costs by reducing the area occupied by the interconnect routes. 1 з п. Ф-л, 2 silt
Description
Изобретение относитс к вычислительной технике и может быть использовано в арифметических устройствах с плавающей зап той, устройствах управлени The invention relates to computing and can be used in floating point arithmetic, control devices.
Известно устройство дл шифрации крайней единицы в n-разр дном двоичном коде, содержащее первую группу узлов частичной шифрации, группа входов первой группы узлов частичной шифрации вл етс группой входов устройства, узел коммутации и вторую группу узлов частичной шифрации , причем первые, вторые и третьи выходы всех узлов частичной шифрации первой группы соединены с соответствующими группами входов узла коммутации, а их дополнительные выходы соединены с соответствующими входами узлов частичной шифрации второй группы, группа выходов второй группы узлов частичной шифрации соединена с группой управл ющих входов узла коммутации и. с группой выходов устройства , группа выходов узла коммутации соединена с группой выходов устройства.A device for encrypting an extreme unit in an n-bit binary code is known, which contains the first group of partial encryption nodes, the input group of the first group of partial encryption nodes is the device input group, the switching node and the second group of partial encryption nodes, the first, second and third outputs all nodes of the partial encryption of the first group are connected to the corresponding input groups of the switching node, and their additional outputs are connected to the corresponding inputs of the partial encryption nodes of the second group, the output group The second group of nodes of partial encryption is connected to the group of control inputs of the switching node and. with the device output group, the switching node output group is connected to the device output group.
Недостатком указанного устройства вл етс отсутствие возможности формировани выходного кода с разр дностью, не завис щей от разр дности входного кода, и произвольной кодировкой. Кроме того, указанное устройство не позвол ет произвольно наращивать разр дность входного кодаThe disadvantage of this device is the inability to form an output code with a size that does not depend on the size of the input code, and an arbitrary coding. In addition, the specified device does not allow arbitrarily increasing the input code width
Наиболее близким к предлагаемому по технической сущности вл етс устройство прерывани , содержащее два регистра, группу элементов ИЛИ, группу элементов НЕ и три элемента И, причем входы второго регистра вл ютс выходами устройства, пр мые выходы 1-го и следующих разр дов первого регистра (, n - число запросов ) соединены с входами i-ro и следующих элементов ИЛИ группы, устройство также содержит две группы элементов И-НЕ и элемент И-НЕ, причем выходы нечетных элементов ИЛИ группы соединены с первыми входами элементов И-НЕ первой группы , выходы J-x (. 6, 10 ) четных элементов ИЛИ группы через элементы НЕ группы соединены с вторыми входами эле (ЛThe closest to the proposed technical entity is an interrupt device containing two registers, a group of elements OR, a group of elements NOT and three elements AND, the inputs of the second register being the outputs of the device, the direct outputs of the 1st and the following bits of the first register ( , n - the number of requests) are connected to the inputs of the i-ro and the following elements of the OR group, the device also contains two groups of AND-NOT elements and an AND-NO element, and the outputs of the odd elements of the OR group are connected to the first inputs of the AND-NOT elements of the first group, out s J-x (. 6, 10) even elements or groups of elements through NOT group are connected to second inputs of the element (A
СWITH
х|x |
слcl
„ VJ„VJ
СЛ 00SL 00
ментов И-НЕ первой группы, выходы К-х (, 8, 12...) четных элементов ИЛИ группы соединены с первыми входами элементов И-НЕ второй группы, выходы четных зле- ментоп ИЛИ группы, начина с четвертого, через элементы НЕ группы соединены с пто рыми входами элементов И-МЕ второй группы, выход первого четного элемента ИЛИ группы соединен с первыми входом элемента И-НЕ, второй вход которого через четвертый элемент НЕ группы соединен с выходом второго черного элемента ИЛИ группы, выходы элементов И-НЕ первой группы соединены с входами первого элемента И, инверсный выход последнего раз р да первого регистра соединен с входом первого элемента И, выходы элементов И-НЕ второй группы соединены с входами второго элемента И, выход последнего элемента ИЛИ группы через последний элемент НЕ группы соединен с входом второго элемента И, первый и второй входы третьего элемента И,соединены соответственно с выходом элемента И-НЕ и с выходом предпоследнего элемента НЕ группы, входы разр дов с первого по четвертый второго регистра соединены соответственно с выходами с первого по третий элементов И и с выходом четвертого элемента НЕ группы.AND-NOT copies of the first group, the Kx outputs (, 8, 12 ...) of even elements OR of the group are connected to the first inputs of the AND-NOT elements of the second group, the outputs of the even terminals of the OR group, starting with the fourth, through the elements the groups are connected to the first inputs of the I-ME elements of the second group, the output of the first even element of the OR group is connected to the first input of the NAND element, the second input of which through the fourth element of the NOT group is connected to the output of the second black element OR group, the outputs of the NAND elements the first group is connected to the inputs of the first element And the last output output of the first register row is connected to the input of the first element AND, the outputs of the NAND elements of the second group are connected to the inputs of the second element AND, the output of the last element OR of the group is through the last element NOT of the group connected to the input of the second element AND, the first and second inputs The third element And, connected respectively with the output of the element AND-NOT and with the output of the penultimate element of the NOT group, the inputs of the bits from the first to the fourth of the second register are connected respectively to the outputs from the first to the third elements And and Exit the fourth element is not a group.
Недостатками известного устройства вп ютс ограниченность функциональных возможностей, обусловленна строгой зависимостью кодировки и разр дное)и формируемого выходного кода от входного, и сысокие аппаратурные затраты.The disadvantages of the known device are limited functionality due to the strict dependence of the coding and bit) and the generated output code on the input, and raw hardware costs.
Цель изобретени - расширение функциональных возможностей устройства путем формировани выходного кода произвольной разр дности и кодировки, сокращени аппаратурных затрат, The purpose of the invention is to expand the functionality of the device by generating the output code of an arbitrary size and coding, reducing hardware costs,
Поставленна цель достигаетс тем, что в устройство прерывани , содержащее группу элементов ИЛИ дополнительно введены группа элементов НЕРАВНОЗНАЧНОСТЬ , группа элементов НЕ и коммутатор, причем пыход первого элемента ИЛИ соединен с входом U1 первой группы управл ющих входов KOMMyfaTopaY BxoA 1-го элемента неравнозначность группы (1-1...п- 2), где п - количество входов шифратора) соединен с входом U1 (Н-1)-й группы управл ющих входов коммутатора и через 1-й элемент НЕ группы с входом U2 (П1)-й группы управл ющих входов коммутатора, выход (п-1)-го элемента НЕРАВНОЗНАЧНОСТЬ группы соединен с входом (п-1)-го элемента НЕ группы, первый вход первого элемента ИЛИ группы соединен с первым информационным входом шифратора, вход логического нул которого соединен с вторымThe goal is achieved in that the interrupt device containing a group of elements OR is additionally introduced a group of elements NOT EQUITY, a group of elements NOT and a switch, and the output of the first element OR is connected to the input U1 of the first group of control inputs KOMMyfaTopa BxoA of the 1st element is unequal to the group (1 -1 ... n-2), where n is the number of encoder inputs) is connected to the input U1 (H-1) of the group of control inputs of the switch and through the 1st element of the NOT group with the input of U2 (A1) -th group control inputs of the switch, the output of the (n-1) -th element is NOT AVNOZNACHNOST group connected to the input (n-1) -th group of NOT circuit, a first input of a first OR gate group connected to the first data input of the encoder, a logic-zero input connected to the second
входом первого элемента ИЛИ группы, входы (.,.n) элемента ИЛИ группы соединен с первого по 1-го входами шифратора входы К-го элемента НЕРАВНОЗНАЧНОСТЬ группы ( ,.п-1) соединены с выходами К-ro и (Ю 1)-го элементов ИЛИ группы, выходы коммутатора вл ютс выходами шифратора.the input of the first element OR of the group, the inputs (.,. n) of the element OR of the group are connected from the first to the 1st inputs of the encoder, the inputs of the K-th element UNEQUAL DIFFERENCE of the group (,. п-1) are connected to the outputs of K-ro and (Yu 1) th elements of the OR group, the switch outputs are the encoder outputs.
Кроме того, в шифраторе коммутаторIn addition, the switch in the encoder
содержит п групп МДП-транзисторов и од2П шин, причем затворы п-канальных транзисторов 1-й группы соединены с входом U1 1-й группы управл ющих входов коммутатора , затворы р-канальныхcontains n groups of MOS transistors and od2P buses, with the gates of n-channel transistors of the 1st group connected to the input U1 of the 1st group of control inputs of the switch, the gates of p-channel
транзисторов 1-й группы соединены с входом U2 1-й группы управл ющих входов коммутатора , истоки всех транзисторов вл ютс информационными входами коммутатора , стоки транзисторов К.1-К.1од2Пtransistors of the 1st group are connected to the input U2 of the 1st group of the control inputs of the switch, the sources of all the transistors are the information inputs of the switch, the drains of the transistors K.1-K.1od2P
(,.,п, К - номер группы транзисторов) соединены с шинами S ф S(log2n-1) соответст- венно, шины вл ютс выходами коммутатора.(,., p, K - group number of transistors) are connected to buses S S S (log2n-1), respectively, the buses are switch outputs.
На фиг. 1 изображен приоритетныйFIG. 1 depicts priority
шифратор дл случа (п - разр дность входного кода).encoder for the case (n is the width of the input code).
Приоритетный шифратор содержит группу элементов ИЛИ 1.1-1.л, группу элементов НЕРАВНОЗНАЧНОСТЬ 2.1-2.(п-1).The priority encoder contains a group of elements OR 1.1-1.l, a group of elements REQUIRED 2.1-2. (P-1).
группу инверторов 3.1-3.(п-1), коммутатор 4, причем выход первого элемента ИЛИ 1.1 соединен с входом U1.1 первой группы управл ющих входов коммутатора, выход элемента НЕРАВНОЗНАЧНОСТЬ 2.I группыgroup of inverters 3.1-3. (p-1), switch 4, with the output of the first element OR 1.1 connected to the input U1.1 of the first group of control inputs of the switch, the output of the element UNIMAL 2.I group
(,..14) соединен с входом U1.(i+1)(it 1)-й группы управл ющих входов коммутатора и через элемент НЕ 3.1 группы - с входом U2.(1-Й) (И 1)-й группы управл ющих входов коммутатора, выход элемента НЕРАВНОЗНАЧНОСТЬ 2.15 соединен с входом элемента НЕ 3.15, первый вход элемента ИЛИ 1.1 соединен с первым информационным входом шифратора X ф , вход логического нул которого соединен с вторым входом элемента 1.1, входы элемента ИЛИ 1.1 соединены с входами шифратора Хф -Х(Ы), входы элемента НЕРАВНОЗНАЧНОСТЬ 2.К(.. 15) соединены с выходами элементов ИЛИ 1.К и 1.(К+1), выходы коммутатора S S3 вл ютс выходами шифратора.(, .. 14) is connected to the input U1. (I + 1) (it 1) of the group of control inputs of the switch and through the element NOT 3.1 of the group to the input of U2. (1ST) (AND 1) of the group the control inputs of the switch, the output of the UNEQUALITY 2.15 element is connected to the input of the HE 3.15 element, the first input of the OR 1.1 element is connected to the first information input of the Xf encoder, the logical zero input of which is connected to the second input of the 1.1 element, the inputs of the OR 1.1 element are connected to the inputs of the Hf encoder -X (S), the inputs of the UNEQUALITY element 2.K (.. 15) are connected to the outputs of the elements OR 1.K and 1. (K + 1), the outputs of the switch and S S3 are the outputs of the encoder.
На фиг. 2 изображен коммутатор дл случа (п - разр дность входного кода приоритетного шифратора).FIG. 2 shows the switch for the case (n is the width of the input code of the priority encoder).
Коммутатор содержит 16 групп МДПтранзисторов и четыре шины 5ф -S3, причем затворы n-канальных транзисторов 1-й группы (...15) соединены с входом U1 i 1-й группы управл ющих входов коммутатора, затворы р-канальных транзисторов 1-й труппы соединены с входом U2.i 1-й группы управл ющих входов коммутатора, истоки всех транзисторов вл ютс информационными входами коммутатора, стоки транзисторов К.1-К.4 (КМ...16) соединены с шинами S ф - S3 соответственно, шины вл ютс выходами коммутатора.The switchboard contains 16 groups of MDPtransistors and four 5f-S3 buses, the gates of n-channel transistors of the 1st group (... 15) are connected to the input U1 i of the 1st group of control inputs of the switch, the gates of p-channel transistors of the 1st the groups are connected to the input U2.i of the 1st group of the control inputs of the switch, the sources of all the transistors are information inputs of the switch, the drains of the transistors K.1-K.4 (KM ... 16) are connected to the buses Sf - S3, respectively, buses are switch outputs.
Устройство работает следующим образом (на примере n-разр дного приоритетного шифратора с , фиг. 1).The device operates as follows (by the example of an n-bit priority encoder, fig. 1).
Входной код поступает на входы элементов ИЛИ, Хф - старший разр д входного кода. Допустим, входной код содержит старшую единицу в l-м разр де, тогда на выходах элементов 1.1-1.(i-1) устанавливаютс О, а на выходах элементов 1.1-1,п - 1. Далее сигналы с выходов.злементов 1.I-. 1.п поступают на входы элементовНЕРАВ- НОЗНАЧНОСТЬ, группа выходов которых формирует код 1 из п ( 1 на выходе элемента 2.(1-1). Сигнал с выхода элемента НЕРАВНОЗНАЧНОСТЬ , на выходе которого установилась 1 (2 (i-1)). поступает на управл ющий вход коммутатора U1.I (фиг. 2), открыва n-канальные транзисторы соответствующей группы, Р-канальные транзисторы открываютс сигналом с выхода инвертора 3.(i-1). Указанна группа транзисторов устанавливает на шинах S0 -S3 двоичный код количества нулей перед старшей единицей во входном коде, Зф - старший разр д выходного кода.The input code is fed to the inputs of the OR elements, HF is the most significant bit of the input code. Suppose the input code contains the highest unit in the lth order, then O, 1.1-1 (i-1) are set to O, and 1.1-1, and n are output to the outputs. Next, the signals from outputs.Element 1. I-. 1.p arrive at the inputs of the ELEVATOR element, the group of outputs of which forms code 1 of n (1 at the output of element 2. (1-1). The signal from the output of the element UNIMAL VALUE, at the output of which 1 (2 (i-1)) It enters the control input of the switch U1.I (Fig. 2), opening the n-channel transistors of the corresponding group, the P-channel transistors are opened with a signal from the output of inverter 3. (i-1). The specified group of transistors is installed on the S0 -S3 buses the binary code of the number of zeros before the highest unit in the input code, ZF is the most significant bit of output of the code.
Сравним функциональные возможности известного и предлагаемого устройства. В известном устройстве выходной код равен двоичному коду номера позиции старшей единицы во входном коде, а разр дность выходного кода однозначно св зана с разр дностью входного кода п как logan, что ограничивает функциональные возможности известного устройства.Compare the functionality of the known and the proposed device. In a known device, the output code is equal to the binary code of the position number of the highest unit in the input code, and the output code is uniquely associated with the input code n as logan, which limits the functionality of the known device.
Расширение функциональных возможностей в предлагаемом устройстве достигаетс тем, что разр дность выходного кода можно произвольно наращивать путем введени шин Si, а желаемую кодировку можно обеспечить путем изменени типа проводимости МДП-транзисторов и потенциалов, подаваемых на их истоки: применение п-ка- нальных транзисторов дл передачи О, Р- канальных - дл передачи 1.Expansion of functionality in the proposed device is achieved by the fact that the output code can be arbitrarily increased by introducing Si buses, and the desired coding can be achieved by changing the type of conductivity of MOS transistors and the potentials applied to their sources: using n-channel transistors for O, P channel transmissions - for transmission 1.
Сравним аппаратурные затраты в известном и предлагаемом устройствах, в случае их интегральной реализации используем следующее приближение: аппаратурные затраты , обусловленные шинами, проход щими перпендикул рно к входам устройства, равны одному входу логического элемента на один разр д входного кода. Аппаратурные затраты, вносимые двум транзисторами в схему предлагаемого устройства, совпадают со сложностью одного входа логического элемента. Известное устройст- во с разр дностью выходного кода К (разь 2-2Let us compare the hardware costs in the known and proposed devices, in the case of their integral implementation, we use the following approximation: the hardware costs due to buses running perpendicular to the device inputs are equal to one input of a logic element for one bit of the input code. The hardware costs introduced by two transistors in the circuit of the proposed device coincide with the complexity of a single input of a logic element. The known device with the output code K (bit 2-2
р дность входного кода ) имеет У IThe input code has) I
i 1i 1
входов элементов ИЛИ, входов ин- 0 верторов, 2x()-2x()f...+2x(21-1)the inputs of the OR elements, the inputs of the inverters, 0 inverters, 2x () - 2x () f ... + 2x (21-1)
k - 1k - 1
входов элементов И-НЕ, 2й входовinputs of elements NAND, 2nd inputs
I 1I 1
k - 1k - 1
элементов И и (2 -1) шин. перпенди151 1And elements and (2 -1) tires. perpendicular151 1
кул рных входам устройства. Предлагаемоеcool entrances to the device. Proposed
устройство содержит Ј входов элеменI 1device contains элем element inputs 1
тов ИЛИ, 2х(п-1) входов элементов НЕРАВНОЗНАЧНОСТЬ , п-1 входов инверторов и nxk транзисторов (n, k - разр дности входного и выходного кодов соответственно). При разр дности выходного кода К-4 аппаратурные затраты в известном устройстве составл ют 313 входов логических элементов , в предлагаемом устройстве - 245 входов , т.е. в предлагаемом устройстве достигнуто сокращение аппаратурных затрат примерно в 1,3 раза; дл . 6 аппаратурные затраты сокращаютс в 1,8 и 2,2 раза соответственно.Combo OR, 2x (p-1) of the inputs of the UNEQUAL VALUE elements, p-1 of the inputs of inverters and nxk transistors (n, k - the size of the input and output codes, respectively). When the output code K-4 is small, the hardware costs in the known device comprise 313 inputs of logic elements, in the proposed device there are 245 inputs, i.e. in the proposed device achieved a reduction in hardware costs by about 1.3 times; long 6, hardware costs are reduced by 1.8 and 2.2 times, respectively.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU904838324A SU1751758A1 (en) | 1990-06-11 | 1990-06-11 | Priority encoder |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU904838324A SU1751758A1 (en) | 1990-06-11 | 1990-06-11 | Priority encoder |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1751758A1 true SU1751758A1 (en) | 1992-07-30 |
Family
ID=21520391
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU904838324A SU1751758A1 (en) | 1990-06-11 | 1990-06-11 | Priority encoder |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1751758A1 (en) |
-
1990
- 1990-06-11 SU SU904838324A patent/SU1751758A1/en active
Non-Patent Citations (1)
Title |
---|
Авторское свидетельство СССР № 1252776, кл. G 06 F 9/46, 1984. Авторское свидетельство СССР Мг 864289, кл. G 06 F 9/46, 1979. * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4807172A (en) | Variable shift-count bidirectional shift control circuit | |
US4709226A (en) | Circuitry for complementing binary numbers | |
US4323982A (en) | Logic circuit arrangement in the integrated MOS-circuitry technique | |
US3932734A (en) | Binary parallel adder employing high speed gating circuitry | |
US4450432A (en) | Binary MOS parallel comparators | |
GB2145857A (en) | Up/down counter | |
KR910003486A (en) | Bit order switch | |
US6014074A (en) | Binary comparator | |
SU1751758A1 (en) | Priority encoder | |
US4903005A (en) | Comparator circuit | |
US4773033A (en) | Binary data identification circuit | |
KR20040019193A (en) | High speed binary comparator circuit and High speed binary data comparison method | |
KR880008545A (en) | Decoding circuit | |
KR100218279B1 (en) | Comparator | |
US5491803A (en) | Response resolver for associative memories and parallel processors | |
US5909386A (en) | Digital adder | |
US5216424A (en) | Binary data converter | |
US6195673B1 (en) | FOD (first-one-detector) circuit | |
SU1128251A1 (en) | Device for comparing binary numbers | |
US4918453A (en) | A/D converter having multiplication function | |
SU1605935A3 (en) | Method and apparatus for recoding m-digit coded words | |
US5239499A (en) | Logical circuit that performs multiple logical operations in each stage processing unit | |
SU1013935A1 (en) | Data input device | |
JP2624342B2 (en) | Barrel shifter | |
KR200169671Y1 (en) | Input signal comparator |