CS 251 Fall 2019 Principles of Programming Languages
Ben Wood
λ
CS 240 Spring 2020
Foundations of Computer Systems
Ben Wood https://cs.wellesley.edu/~cs240/s20/
Digital Logic
Gateway to computer science transistors, gates, circuits, Boolean algebra
Digital Logic 1
Devices (transistors, etc.) Solid-State Physics
Hardware
Digital Logic
Microarchitecture Instruction Set Architecture Operating System Programming Language Compiler/Interpreter Program, Application
Software
Digital Logic 2
Digital data/computation = Boolean
Boolean value (bit): 0 or 1 Boolean functions (AND, OR, NOT, …) Electronically:
bit = high voltage vs. low voltage Boolean functions = logic gates, built from transistors
Digital Logic 3
0.0V 0.5V 2.8V 3.3V 1
Abstraction! Truth table
Transistors (more in lab)
Digital Logic 4
Base Collector Emitter
If Base voltage is high: Current may flow freely from Collector to Emitter. If Base voltage is low: Current may not flow from Collector to Emitter. Vin Vout low high high low in
- ut
1 1 in
- ut
F T T F
= =
NOT gate
Abstraction!
+Vcc (Supply Voltage) (Ground)
resistor
Vin Vout