2.10. Hardware Abstractions Logic Gates¶
This lesson provides a second look at computer hardware and software. It drills deeper into the various abstraction levels that make up computer systems. On the hardware side students are introduced to low-level examples such as gates and flip-flops. Students see that at the very lowest level computer circuits are made up of logical elements that obey Boolean logic. On the software side students are introduced to the distinction between high-level languages, such as App Inventor and Python, and low-level machine language, which is based on the binary system (0s and 1s). This lesson reinforces the enduring understanding that multiple levels of abstraction are used in both hardware and software.
The Student Lesson: Complete the activities for Mobile CSP Unit 2 Lesson 2.10: Hardware and Software Abstractions.
- Projection system
- Access to computer, laptop, or Chromebook (install the Companion app on Chromebooks)
- Access to Logicly
- POGIL Role Cards
2.10.1. Learning Activities¶
Estimated Length: 45 minutes
Hook/Motivation (5 minutes):Here are some options:
- Ask students what's inside a computer chip? They may say circuits or wires. See if they know what a transistor is, a tiny switch controlling the flow of electricity. The invention of transistors won the Nobel prize in 1956 and have changed the world! Show the first minute of this video about transistors, and/or this video zooming into a chip. Transistors are used to make logic gates that can store information and make decisions inside a computer.
Ask students if they have learned about Boolean logic in their math courses. If so, have them share what they know about the AND, OR, and NOT logical operators. Share an example relevant to the students. For example, you could say that two inputs to whether or not you can see a movie this evening could be: 1) Having $20 in their pocket and 2) Spiderman is playing at 7 pm. If both of those conditions are true, then the output (result) is that they can go to the movie. If only one or neither of them are true, then the output is that they can't go to the movie.
Draw a truth table such as the following to explain AND, OR, and NOT briefly.
AND OR NOT Input A Input B Output Z F F F F T F T F F T T T Input A Input B Output Z F F F F T T T F T T T T Input Output T F F T
Experiences and Explorations (30 minutes):
- Lecture: Topic: Hardware and Software Abstractions (Slides) Use this presentation to give examples of varying levels of abstractions in hardware, including logic gates and flip-flops.
- Logicly Activity: Break students into POGIL teams and have them explore logic gates using Logicly. In Logicly, the push button (or toggle) represents the input (true or false) and the light bulb represents the output. The output is true if the lightbulb is lit up (blue). Go through the live example of the AND gate with your class (If you don't see the Live Example, click on the Adobe Flash link and enable Flash). Go to Logicly Edit mode to create your own circuits. A simple example to demonstrate how Logicly works would be to create a circuit with a toggle switch and a light bulb. As the switch is toggled from true to false, the light bulb should change whether or not it's lit up. Try adding a NOT gate between the toggle and the light bulb and show how that changes the output. (Read more about Logicly components here.) They can create more complex designs (including using flip flops) and test them against an appropriate truth table.
See solutions to POGIL Activity in the Assessment and Solutions section below.
Rethink, Reflect and/or Revise (10 minutes):
- Review the answers to the POGIL prompts with the class, asking the spokesperson to report out for each group
- Ask the students to complete the interactive exercises on the Mobile CSP lesson
- Have the students complete their portfolio reflection
The College Board's AP Classroom provides a question bank and Topic Questions. You may create a formative assessment quiz in AP Classroom, assign the quiz (a set of questions), and then review the results in class to identify and address any student misunderstandings.The following are suggested topic questions that you could assign once students have completed this lesson.
Suggested Topic Questions: None
Assessment Opportunities and Solutions
- Note: Solutions are only available to verified educators who have joined the Teaching Mobile CSP Google group/forum in Unit 1.
- Quizly Solutions
- Logic Gates POGIL Solutions
- Portfolio Reflection Questions Solutions
You can examine students’ work on the interactive exercise and their reflection portfolio entries to assess their progress on the following learning objectives. If students are able to do what is listed there, they are ready to move on to the next lesson.
- Interactive Exercises:
- Portfolio Reflections:
Differentiation: More Practice
How Stuff Works has a series on How Boolean Logic Works that includes information on flip-flops and gates.
Students can build more complex circuits with Logicly. For example, a 2 bit (or 4 bit!) ripple counter using D flip flops (Q’ is connected to D and the next clock input, push the button to start the counter):
Have students read this article explaining how SSDs (solid state drives) are composed of NAND or NOR logic gates. You might want to follow it up with portions of this video that explains how SSDs work, especially the first part (up to 4:30).
Background Knowledge: Boolean Logic
2.10.2. Professional Development Reflection¶
Discuss the following questions with other teachers in your professional development program.
- This lesson dives deeper into the basic components of computers and how they operate, the foundation for understanding other logic components and programming concepts. How does this lesson help students toward the enduring understanding that computer systems are built up through several layers of abstractions?
I am confident I can teach this lesson to my students.
- 1. Strongly Agree
- 2. Agree
- 3. Neutral
- 4. Disagree
- 5. Strongly Disagree