Exercises

Reference

Lecture Recordings (hosted on YouTube)

You can speed up the video playback… listening to myself at 1x speed is agonizing lmao

Examples

Right-click and save to download the asm and circuit files.

Safari users: Safari sometimes changes file extensions. Do not trust it.

MIPS examples
goto in C C has goto. Here's a dumb way to write a for loop. Looks a lot like asm...
01_variables.asm Declaring and accessing variables.
02_arrays.asm Different ways to declare arrays, and using a for loop to modify one.
Numerical examples
Bitwise.java Shows several bitwise operators and oddities.
Bitfields.java Using shifting, masking, and ORing to encode colors.
Bitflags.java Bitflags are a special case of bitfields. They're like a set or array of booleans.
Logisim Basics
constant_gates.circ Constants going into gates are pointless! Simplify!
tunnel_tutorial.circ Why you should use tunnels. THEY'RE GOOD OKAY
splitter_tricks.circ Using splitters more effectively.
splitter_bitfields.circ Using splitters to take apart/put together bitfields.
Combinational Circuits
full_adder.circ A 1-bit full adder made of gates.
fast_mult_4x4.circ A fast (combinational) 4x4 multiplier.