Abstract
A pipelined algorithm for computing the remainder when dividing an arbitrary binary number of a given bit capacity (numerator) by a certain constant value (a constant) is proposed. The algorithm is based on the same types of operations of comparisons and addition–subtraction of partial remainders upon division by this constant. Depending on whether an intermediate result during computation of the remainder is positive or negative, addition with the value of the intermediate result or subtraction from it of the remainder upon division of a given power of two occur. The number of algorithm stages compared with the model is known in advance and depends on the bit capacities of both the dividend and constants. The estimates of the time complexity of the proposed pipelined algorithm are determined by the maximum delay time of operation of the pipeline stage. The estimates of the hardware complexity of the proposed algorithm, as well as the model of the device that implements the algorithm, are determined at the abstract and structural levels.
Similar content being viewed by others
References
Moldovyan, N.A., Algorithms of information authentication for the automatic control systems on the basis of structures in finite vector spaces, Autom. Remote Control, 2008, vol. 69, no. 12, pp. 2142–2155.
Latypov, R.Kh., Nurutdinov, Sh.R., Stolov, E.L., and Faradzhev, R.G., Application of the theory of linear sequential machines in diagnostic systems, Avtom. Telemekh., 1988, no. 8, pp. 3–27.
Kuznetsov, V.M. and Pesoshin, V.A., Generatory sluchainykh i psevdosluchainykh posledovatel’-nostei na tsifrovykh elementakh zaderzhki (Generators of Random and Pseudo-Random Sequences on Digital Delay Elements), Kazan: Izd. Kazan. Gos. Tekh. Univ., 2013.
Petrenko, V.I., Kuz’minov, Yu.V., Karagulyan, D.L., and Mosin, O.V., RF Patent 2324972, Byull. Izobret., 2008, no. 14.
Ovcharenko, L.A. and Turchenyak, V.I., RF Patent 2192092, Byull. Izobret., 2002, no. 30.
Berezhnoi, V.V., Chervyakov, N.I., and Olenev, A.A., RF Patent 1785081, Byull. Izobret., 1992, no. 48.
Shalagin, S.V., Kaibushev, F.Kh., and Zelinskii, R.V., PLD-based implementation of generators of pseudo-random sequences and means of their CRC-control, Vestn. Kaliningr. Gos. Tekh. Univ. im. A. N. Tupoleva, 2009, no. 2, pp. 57–61.
Pesoshin, V.A., Kuznetsov, V.M., and Shirshova, D.V., Generators of the equiprobable pseudorandom nonmaximal-length sequences based on linear-feedback shift registers, Autom. Remote Control, 2016, vol. 77, no. 9, pp. 1622–1631.
Kuzelin, M.O., Knyshev, D.A., and Zotov, V.Yu., Sovremennye semeistva PLIS firmy Xilinx. Sprav. posobie (Modern PLD-Families from Xilinx: Handbook), Moscow: Goryachaya liniya–Telekom, 2004.
Virtex-7. Highest Performance and Integration at 28 nm. Xilinx, Inc. https://www.xilinx.com/products/silicondevices/fpga/virtex-7.html.
Zotov, V.Yu., Proektirovanie vstraivaemykh mikroprotsessornykh sistem na osnove SAPR firmy Xilinx (Design of CAD-Based Embedded Microprocessor Systems from Xilinx), Moscow: Goryachaya liniya–Telekom, 2006.
Paar, C., Fleischmann, P., and Soria-Rodriguez, P., Fast arithmetic for public-key algorithms in Galois fields with composite exponents, IEEE Trans. Comput., 1999, vol. 48, no. 10, pp. 1025–1034.
Zakharov, V.M., Nurutdinov, Sh.R., and Shalagin, S.V., Hardware implementation of multiplication of Galois field elements on programmable FPGA architecture chips, Vestn. Kaliningr. Gos. Tekh. Univ. im. A. N. Tupoleva, 2001, no. 1, pp. 36–41.
Shalagin, S.V., Computer evaluation of a method for combinational-circuit synthesis in FPGAs, Russ. Microelectron., 2004, vol. 33, no. 1, pp. 46–54.
Shalagin, S.V., Multiplication of Galois field expansion elements in the PLD/FPGA basis, Inf. Tekhnol., 2007, no. 12, pp. 22–27.
Zakharov, V.M., Stolov, E.L., and Shalagin, S.V., An algorithm for computing the residue modulo and estimating its complexity, Inf. Tekhnol., 2010, no. 11, pp. 32–36.
Zakharov, V.M., Stolov, E.L., and Shalagin, S.V., RF Pat. 2421781 MPK8G06F 7/72, H03M 7/18, Byull. Izobret., 2011, no. 17.
Author information
Authors and Affiliations
Corresponding author
Additional information
Original Russian Text © V.M. Zakharov, V.A. Pesoshin, S.V. Shalagin, 2018, published in Avtomatika i Vychislitel’naya Tekhnika, 2018, No. 4, pp. 79–85.
About this article
Cite this article
Zakharov, V.M., Pesoshin, V.A. & Shalagin, S.V. The Complexity of a Pipelined Algorithm for Remainder Computing in a Given Modulo. Aut. Control Comp. Sci. 52, 251–255 (2018). https://doi.org/10.3103/S0146411618040120
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.3103/S0146411618040120