Implementation of Kogge-Stone Adders Using Computer-Based Tools
Implementation of Kogge-Stone Adders Using Computer-Based Tools
Abstract—The paper presents the application of inquiry-based addition of binary numbers, such as “Carry Propagation–Look-
2022 21st International Symposium INFOTEH-JAHORINA (INFOTEH) | 978-1-6654-3778-3/22/$31.00 ©2022 IEEE | DOI: 10.1109/INFOTEH53737.2022.9751260
learning and teamwork when teaching the topic “Kogge-Stone Ahead Carry Generator”, “Kogge-Stone Adders”, etc. They had
Adders” implemented with various computer-based tools, such as to implement these devices with various computer-based tools,
MS Excel, Logisim, ISE Project Navigator, LearningApps, as an such as MS Excel, Logisim, ISE Project Navigator that helped
approach for attractive presenting the topic to the students, their students understand their principle of operation better.
motivation for studying and improving their grades in the course.
The paper presents the application of inquiry-based learning
Keywords-21st-century skills; teamwork; inquiry-based and teamwork on the topic “Kogge-Stone Adders” implemented
learning; digital electronics; arithmetic circuits; Kogge-Stone with different computer-based tools. Different stages in
adders; computer-based tools. students’ work are described and illustrated with examples in the
paper. The applications are planned to be included when
I. INTRODUCTION updating the curriculum in the courses “Digital Electronics” and
Nowadays, school teachers and lecturers from universities in “Pulse and Digital Devices” next academic year.
Bulgaria are provoked to apply innovative approaches, such as
creative teaching, audio and video tools, work in teams on II. METHODOLOGY
various project, etc., in order to increase students’ interest to the A. Inquiry-Based Learning in Science Education
studied problems, as well as to make the learning process more
efficient and long-lasting. John Dewey, a famous philosopher of education at the
beginning of the 20th century, was the first person criticizing the
Key topics in the field of digital electronics are presented to fact that “science education was not taught in a way to develop
students-bachelors in the electrical specialties at the University young scientific thinkers” and proponed that “science should be
of Ruse in the courses “Digital Electronics” and “Pulse and taught as a process and way of thinking – not as a subject with
Digital Devices”. Various combinational circuits (encoders and facts to be memorized”. Later, Joseph Schwab proposed that
decoders, multiplexers and demultiplexers, code converters, “science did not need to be a process for identifying stable truths
arithmetic circuits, etc.) and sequential circuits (counters, about the world that we live in, but rather science could be a
registers, pseudorandom number generators, etc.) are studied in flexible and multi-directional inquiry driven process of thinking
these courses. and learning”. Schwab developed three levels of open-ended
research (open inquiry) that might be seen today: “1) Students
Due to the COVID-19 pandemic, in the last academic year
are provided with questions, methods and materials and are
(2020-2021), the lecturers in the courses “Digital Electronics”
challenged to discover relationships between variables;
for students-bachelors in the specialty “Computer Systems and
2) Students are provided with a question, however, the method
Technologies” (fourth semester) and “Pulse and Digital
for research is up to the students to develop; 3) Phenomena are
Devices” for students-bachelors in the specialties “Electronics”
proposed but students must develop their own questions and
(sixth semester), “Internet and Mobile Communications”,
method for research to discover relationships among variables.”
(fourth semester), “Computer Control and Automation” (fourth
[1, 2].
semester) and “Information and Communication Technologies”
(second semester) decided to apply inquiry-based learning (IBL) Today, it is known that students at all levels of education
and teamwork. (schools, colleges, universities) can successfully develop deeper
level thinking skills through scientific inquiry [1].
The students had to work in teams on various projects,
getting acquainted with different digital devices not included in IBL is a pedagogical approach where issues (questions) are
the curriculum of the courses at the moment, for example, BCD identified and researched to develop knowledge (solutions).
adders, binary multipliers, various adders’ circuits for fast Fig. 1 illustrates the learning processes included in IBL (the first
ed licensed use limited to: Vignan's Foundation for Science Technology & Research (Deemed to be University). Downloaded on October 18,2024 at 09:02:13 UTC from IEEE Xplore. Restriction
example, the least-significant “sum” bit is calculated by XORing questions by the students. The teacher is rather a facilitator,
the “propagate” bit in the farthest-right red box (“1”) with the supporting the communication process between the students.
carry-in bit (“0”), producing “1”. The second from the right This 4-week task develops their reading literacy, namely
“sum” bit is calculated by XORing the “propagate” bit in the extracting, summarizing, interpreting and evaluating
second from the right red box (“0”) with C0 (“0”), producing information from texts, pictures, figures, etc. [2, 3].
“0”, and so on [7].
During the discussion, students had to additionally describe
the building block (Fig. 2 b) of a four-bit adder, listing the input
and output signals for each full one-bit adder. Then, for the LSB
full adder, the students had to build the truth table and write the
output functions for the sum and the carry of the adder. They had
to build the circuit of the full adder using these functions in
Logisim and test it for all 8 combinations of the truth table
(Fig. 4), confirming their previously acquired knowledge of
adders.
In the preliminary preparation on the topic of Kogge-Stone
adders, the students had to follow the receipt of all values in the
blocks of Fig. 3 and to write in detail the expressions for their
calculation (Fig. 5), as well as to derive display the Boolean
expressions for all intermediate and output variables of the
circuit (CARRY PROPAGATE, CARRY GENERATE, SUM,
and OUTPUT CARRY) of the four-bit Kogge-Stone adder
(Fig. 6), which are necessary for the realization of the device
with the various computer-based tools.
Figure 3. Example of a 4-bit Kogge–Stone adder with zero carry-in [7]
ed licensed use limited to: Vignan's Foundation for Science Technology & Research (Deemed to be University). Downloaded on October 18,2024 at 09:02:13 UTC from IEEE Xplore. Restriction
P1 = A3 ⊕ B3 , G1 = A3 .B3 , P2 = A2 ⊕ B2 , G2 = A2 .B2 ,
Level № 1
P3 = A1 ⊕ B1 , G3 = A1 .B1 , P4 = A0 ⊕ B0 , G4 = A0 .B0 ,
P5 = P1 .P2 = ( A3 ⊕ B3 ) . ( A2 ⊕ B2 )
G5 = P1 .G2 ∨ G1 = ( A3 ⊕ B3 ) . ( A2 .B2 ) ∨ ( A3 .B3 )
P6 = P2 .P3 = ( A2 ⊕ B2 ) . ( A1 ⊕ B1 )
G6 = P2 .G3 ∨ G2 = ( A2 ⊕ B2 ) . ( A1 .B1 ) ∨ ( A2 .B2 ) Level № 2
P7 = P3 .P4 = ( A1 ⊕ B1 ) . ( A0 ⊕ B0 )
G7 = P3 .G4 ∨ G3 = ( A1 ⊕ B1 ) .( A0 .B0 ) ∨ ( A1 .B1 )
P8 = P4 = A0 ⊕ B0 , G8 = G4 = A0 .B0 ,
P9 = P5 .P7 = ( A3 ⊕ B3 ) . ( A2 ⊕ B2 ) . ( A1 ⊕ B1 ) . ( A0 ⊕ B0 )
G9 = P5 .G7 ∨ G5 = ( A3 ⊕ B3 ) . ( A2 ⊕ B2 ) . ( ( A1 ⊕ B1 ) . ( A0 .B0 ) ∨ ( A1 .B1 ) ) ∨ ( ( A3 ⊕ B3 ) .( A2 .B2 ) ∨ ( A3 .B3 ) )
P10 = P6 .P8 = ( A2 ⊕ B2 ) . ( A1 ⊕ B1 ) . ( A0 ⊕ B0 )
G10 = P6 .G8 ∨ G6 = ( A2 ⊕ B2 ) .( A1 ⊕ B1 ) . ( A0 .B0 ) ∨ ( ( A2 ⊕ B2 ) .( A1 .B1 ) ∨ ( A2 .B2 ) )
P11 = P7 = ( A1 ⊕ B1 ) . ( A0 ⊕ B0 )
G11 = G7 = ( A1 ⊕ B1 ) . ( A0 .B0 ) ∨ ( A1 .B1 ) Level № 3
P12 = P8 = A0 ⊕ B0 , G12 = G8 = A0 .B0
C3 S3 S2 S1 S0 FINAL RESULT
Figure 6. Determining the variables Pi and Gi and the final result in the
example of a 4-bit Kogge–Stone adder with zero carry-in (next steps of
students' activities when studying the topic)
ed licensed use limited to: Vignan's Foundation for Science Technology & Research (Deemed to be University). Downloaded on October 18,2024 at 09:02:13 UTC from IEEE Xplore. Restriction
as in Fig. 3 is used in the application (Fig. 7), for easier in terms of the number of stages, which determines the speed of
perception by students. the circuit.
Using some directions given in [3, 6, 8, 9, 10, 11, 16],
Student № 3 had to draw the circuit of a four-bit Kogge-Stone
adder in the environment of ISE Project Navigator (Fig. 9),
program the FPGA-based laboratory board and test the device.
The matching between the signals of the lab-board (columns
LAB) and the input and output variables (columns VAR) is
shown in Table II. The same example is presented in Table II
(columns VAL, where GREEN = 1, RED = 0). Four photos of
the lab-board (for the following 4 cases: 1) x1 = 0, x0 = 0;
2) x1 = 0, x0 = 1; 3) x1 = 1, x0 = 0; 4) x1 = 1, x0 = 1) are
presented in Fig. 10: the two 4-bit binary numbers to be added
are A3…A0 = 1001, B3…B0 = 1100, the variables CARRY
PROPAGATE and CARRY GENERATE are as follows:
Figure 7. Implementation of a four-bit Kogge-Stone adder in MS Excel
• P1G1…P4G4 = 01100010 (Fig. 10 a, case 1);
Student № 2 had to build the following circuits in Logisim • P5G5…P8G8 = 01000010 (Fig. 10 b, case 2);
using the directions in [3, 6, 8, 9, 10, 11, 16] and test them: a) a
four-bit full adder according to Fig. 2 a and Fig. 2 b; b) a four- • P9G9…P12G12 = 01000010 (Fig. 10 c, case 3).
bit Kogge-Stone adder based on the formulas in Fig. 5 and The carry bits are C3…C0 = 1000 and the sum bits are
Fig. 6. The circuits are presented in Fig. 8, where the same S3…S0 = 0101. Therefore, the result of the addition operation
example is presented (Fig. 8). will be C3S3…S0 = 10101 (Fig. 10 a, case 4).
ed licensed use limited to: Vignan's Foundation for Science Technology & Research (Deemed to be University). Downloaded on October 18,2024 at 09:02:13 UTC from IEEE Xplore. Restriction
REFERENCES
[1] K. Lu, F. Pang, R. Shadiev, “Understanding the mediating effect of
learning approach between learning factors and higher order thinking
skills in collaborative inquiry-based learning”. Education Tech Research
Dev 69, pp. 2475-2492, 2021, https://doi.org/10.1007/s11423-021-
10025-4.
[2] S. K. Chu, R. B. Reynolds, N. J. Tavares, M. Notari, C. W. Lee. “21st
a) b) century skills development through inquiry-based learning. From theory
to practice”. ISBN: 978-981-10-2481-8, 2017.
[3] A. Borodzhieva, “21st century skills development using inquiry-based
learning when teaching the topic “Arithmetic Circuits for Fast Addition:
Carry Propagation–Look-Ahead Carry Generator”. 16th Annual
International Technology, Education and Development Conference,
Valencia (Spain), INTED2022, 7 – 8 March 2022 (in press).
[4] A. K. Maini, “Digital electronics: principles, devices and applications”,
c) d) doi 10.1002/9780470510520, Accessed January 2022. Retrieved from
researchgate.net/publication/290729475_Digital_Electronics_Principles
Figure 10. FPGA implementation of a four-bit Kogge-Stone adder in _Devices_and_Applications/citations, 2007.
ISE Project Navigator based on its schematic view
[5] A. Borodzhieva. “Pulse and digital circuits. Laboratory practice with
modern circuit solutions – FPGA (part 1)”. Ruse, Academic Publishing
House, 2019, ISBN: 978-954-712-783-8 (in Bulgarian).
[6] A. Borodzhieva, I. Stoev, V. Mutkov. “Active learning methods applied
in the course "Digital Electronics" on the topic "Arithmetic Circuits Using
FPGA Design"”, 29th Annual Conference of the European Association
for Education in Electrical and Information Engineering (EAEEIE) 2019,
Ruse, Bulgaria, Proceedings, pp. 310 – 313, ISBN: 978-1-7281-3221-1.
[7] Kogge–Stone adder, https://en.wikipedia.org/wiki/ Kogge–Stone_adder,
Accessed January 2022.
[8] A. Borodzhieva, “Project-based learning approach used for teaching and
learning the topic “BCD Adders” in the course “Digital Electronics”
during COVID-19 pandemic”. 13th Annual International Conference on
Education and New Learning Technologies, Palma de Mallorca (Spain),
EDULEARN21, pp. 4772 – 4781, ISBN: 978-84-09-31267-2.
[9] А. Borodzhieva, I. Tsvetkova, S. Zaharieva, D. Dimitrov and V. Mutkov.
“Inquiry-based learning used for implementation of BCD adders in the
course "Digital Electronics"”. 2021 IEEE 27th International Symposium
Figure 11. Developing interactive multimedia testing exercises on the topic for Design and Technology in Electronic Packaging, SIITME 2021,
studied application in LearningApps Timisoara, Romania, IEEE Xplore Compliant Proceedings, pp. 150-155,
Electronic ISBN: 978-1-6654-2110-2, doi:
III. CONCLUSIONS 10.1109/SIITME53254.2021.9663683.
[10] A. Aorodzhieva, I. Tsvetkova, S. Zaharieva, D. Dimitrov and V. Mutkov.
In the last academic year, the lecturers in the courses “Digital “Project-based learning approach applied in the course “Digital
Electronics” and “Pulse and Digital Devices” at the University Electronics” for studying the topic “Binary Multipliers”. 22nd
of Ruse “Angel Kanchev” decided to apply inquiry-based International Conference on Computer Systems and
learning (IBL) and teamwork. IBL helps develop and practice Technologies – CompSysTech’21, 2021, Ruse, Bulgaria; Proceedings,
pp. 212 – 217, ISBN: 978-145038982-2, doi: 10.1145/3472410.3472446.
some of the 21st-century skills: literacy and numeracy, scientific
[11] A. Borodzhieva, I. Tsvetkova, S. Zaharieva, D. Dimitrov and V. Mutkov.
numeracy, critical thinking, problem-solving, creativity, Application of Active and Interactive Learning Methods Used to Teach
initiative, collaboration, and communication skills. the Topic “Binary Multipliers” Implemented with Different Computer-
Based Tools. 13th Annual International Conference on Education and
The paper presents the application of IBL and teamwork on New Learning Technologies, Palma de Mallorca (Spain),
the topic “Kogge-Stone Adders” implemented with different EDULEARN21, pp. 10812 – 10822, ISBN: 978-84-09-31267-2.
computer-based tools, such as MS Excel, Logisim, ISE Project [12] MS Excel, oficial site, https://www.microsoft.com/bg-bg/microsoft-
Navigator, LearningApps. The applications described in the 365/excel (January 2022)
paper are planned to be included when updating the curriculum [13] Logisim, www.cburch.com/logisim/ (January 2022).
in the courses in the field of digital electronics. Using these [14] Xilinx documentation, https://www.xilinx.com/content/xilinx/en/
approaches in the teaching process in the courses mentioned downloadNav/design-tools/v2012_4---14_7.htm (January 2022).
showed an increase in the interest and success of the students. [15] LearningApps, https://learningapps.org/
[16] A. Borodzhieva, I. Stoev, I. Tsvetkova, S. Zaharieva, V. Mutkov,
Future plans provide for the development of similar “Computer-based education in the course “Digital Electronics” teaching
applications for other adders, such as the Brent-Kung adder, the the topic “Adders-Subtractors””, 43rd International Convention on
Han-Carlson adder, the Lynch-Swartzlander spanning tree Information and Communication Technology, Electronics and
adder, Carry-save adder, Carry-select adder, Carry-skip adder. Microelectronics, MIPRO 2020, Computers in Education, Opatija,
Croatia, 2020, pp. 790-795, doi: 10.23919/MIPRO48935.2020.9245149.
ed licensed use limited to: Vignan's Foundation for Science Technology & Research (Deemed to be University). Downloaded on October 18,2024 at 09:02:13 UTC from IEEE Xplore. Restriction