CSCI 174: Fall 2024

AI, Ethics, & Society

CSCI 174: Fall 2024

Assignments > Homework: Computer Architecture Lab

Due on Sun, 11/24 @ 11:59PM. 10 Points.

Instructions

Please answer the following questions in a Word / Google document, and upload your document to Moodle by the due date.

Guidelines for using online resources

You may use an any online resource, including an AI assistant, as a research and learning tool. However, it is not acceptable to copy / paste answers into this homework. Make sure that the answers are in your own words, and that you understand what you are typing. Please also note at the bottom of this document which research tools you used to help you learn.

Binary to Decimal

  1. What is the binary number system, and how does it differ from the decimal number system?

  2. Convert the following binary numbers to decimal, showing your work (e.g., 12^3 + 12^0). Feel free to take a photo of your work if you did it on paper and include it in your Google Doc.

       111
      1011
     11001
     10010
    
  3. Convert the following decimal numbers to binary, showing your work (e.g. First I divided by 16, then divided the remainder by 2, etc.). Feel free to take a photo of your work if you did it on paper and include it in your Google Doc.

     5
     12
     27
    
  4. Explain what a “bit” and a “byte” are. How many bits are in a byte?

  5. Perform the following binary addition problems, showing your work:

     0101 + 0011
     1010 + 0110
     1111 + 0001
    

Circuits & Logic Gates

  1. What is a transistor? How does it work? Why is it important for modern computing?

  2. In your own words, describe what the following logic gates do:

    1. AND
    2. OR
    3. NOT
    4. XOR
  3. Explain how the binary number system relates to logic gates and why binary is suitable for computers.

Logic Gate Challenges

Using a circuit builder (I recommend Logic.ly), design circuits for the following two challenges (described below). When you’ve gotten your circuit to work, take a screenshot and paste it in the appropriate section:

  1. Majority of Votes Wins
    Create a logic circuit with three inputs (A, B, C) that outputs HIGH only if the majority of the inputs are HIGH.

    • Consider when two or more of the inputs are HIGH.
    • This circuit will require multiple AND and OR gates.
  2. Garage Door Opener
    Create a logic circuit that acts like a digital combination lock. It should have four inputs (A, B, C, and D) and only light an LED if the correct combination of HIGH and LOW (ON / OFF) inputs is provided.

    For this example, let’s say that the combination is:

    • A = ON
    • B = OFF
    • C = ON
    • D = ON

    Use AND, OR, and NOT gates to implement the lock conditions.

The Von Neumann Architecture

  1. What is the Von Neumann architecture? List and describe its main components.
  2. Explain how the CPU, memory, and storage work together to execute a program.
  3. What are examples of of some input and output devices that your computer uses to send and receive information?

Computers v. The Brain

  1. Ask an AI Q&A tool like ChatGPT, Gemini, or Perplexity how computers and the human brain are similar and different. Then, in 200 words or less, describe some key differences that you found (consider things like energy use, capabilities like creativity and imagination, speed, and adaptability).