Single-cycle CPU design
Imagine an apocalypse in which the MEB vending
machine accepts only $1 bills and 50-cent pieces.
A Coke Zero is dispensed after $1.50 is deposited.
A $1 bill and a 50-cent piece cannot b
Constructing a basic ALU
Latches and ip-ops
Using Boolean algebra, express the sum of products
for output E.
Draw a circuit to describe output E.
li $s0, 6
li $s1, 1
li $s2, 0
loop: beq $s1, $s0, done
add $s2, $s2, $s1
addi $s1, $s1, 1
What is the value in $s2 after execution?
Provide equivalent C / Jav
Branching conditional and unconditional
Translating if statements and loops to MIPS
Translate x = A / 8; Assume A is in $s0 and
put x in $s1.
Give the hex encoding for the following instruction.
Intro to MIPS assembly language
What is the unsigned integer represented by 0x123?
What is the hexadecimal that represents -99 (2s
complement, 8 bits)?
Negate the number 0xCC (2s complement
Cost of manufacturing ICs
Review of signed numbers in binary
See the TA help hours schedule and TA queue on the
The schedule is in effect starting now. Please note
Key concepts of 3810
Review of binary numbers
Why are we here?
Understanding the hardware / software interface is
important, even though most of you will not end of
Single-cycle CPU design II
Using the simple CPU diagram printout, determine the
settings of all control lines for execution of this MIPS
sw rt, offset(rs)
For ALU control, simply give the na