Skip to content
Tactiverge

Tactiverge Founding Cohort · Week 4 · Student worksheet

Digital Logic and Computational Architecture

This worksheet goes with Week 4. You need a pencil; a calculator is optional and the logic lab can check your truth tables. Write truth-table rows in counting order, from all 0s to all 1s.

Name or nickname: ____________________ Date: ____________

1. Worked example: binary

  1. Read this worked example. Binary 1101 means 1 × 8 + 1 × 4 + 0 × 2 + 1 × 1 = 13. Adding 6 gives 19, which is 1 × 16 + 0 × 8 + 0 × 4 + 1 × 2 + 1 × 1, so binary 10011. That needs 5 bits, because the largest 4-bit number is 1111 = 15.
  2. Convert 1010 and 0111 to decimal, add them, and write the answer in binary. How many bits does it need?
  3. What is the largest number 8 bits can hold? Write it in binary and in hexadecimal.

2. Truth tables

  1. Write the full truth table for Y = (A AND NOT B) OR C. (Check: Y is 1 in 5 of the 8 rows.)
  2. A full adder adds A, B and a carry-in. With A = 1, B = 1 and carry-in = 1, what are the sum bit and the carry-out? Explain using 1 + 1 + 1 = 3.

3. Faults and limits

  1. A majority vote takes three door sensors. If one sensor is stuck at 1 and the door is open, what does the vote output? What if two sensors are stuck at 1?
  2. Name one thing a real logic circuit does that the ideal logic lab ignores, and describe a situation where it could matter.

Reflection

  1. Which gate's behaviour surprised you most, and what would you now tell a friend about it?
  2. How did writing the full truth table change your confidence that your circuit was right?
  3. What is one thing ideal logic ignores that a real circuit would have to deal with?

CC BY 4.0 · tactiverge.win/cohort/digital-logic-and-computational-architecture/ · No hardware needed: paper, a calculator or the browser lab.