MTH 4350-STRA: Computer Architecture
Fall 2025
Assignment 1
Due: Thursday, September 25, 2025
Deliverables: Please submit a paper version of your answers to the following exercises. Preferably
your submission should be neatly hand-written. If your penmanship needs to be drastically
improved, then a printed PDF (preferably one derived from LaTeX) is acceptable. However, if you
insist on printing out an electronic document, please keep in mind that exams are hand-written,
therefore your penmanship actually matters. Please do not submit this homework electronically.
NB: Showing your process in these exercises is just as important as determining the correct final result.
1. Conversions
(a) Convert the following decimal integers to 5-bit two’s complement encoding: +6, −3, −7, +15.
(b) Convert the following 5-bit two’s complement numbers to decimal: 10110, 01001, 11100, 00011.
(c) Convert the following numbers with the indicated based to decimal:
i. (11010101)2
ii. (213)4
iii. (264)7
iv. (3B7E)16
2. Boolean Function Minimization
(a) Simplify each Boolean expression using just one application of De Morgan’s laws:
i. ¬(A ∧ B) ∨ C
(
)
ii. ¬ A ∨ (B ∧ C)
(
)
iii. ¬ (A ∧ B) ∨ (C ∧ ¬D)
(b) Express the following Boolean expressions in canonical minterm form:
i. (A ∧ B) ∨ (¬C)
ii. ¬(A ∨ B) ∧ (C ⊕ D)
iii. (A → B) ∧ (B ↔ C)
iv. (¬A ∨ B) ∧ (C ∨ D ∨ ¬E)
v. (A ∧ ¬B) ∨ (C ⊕ (D ∧ E))
(c) Given the function:
F (A, B, C, D, E) = Σm(0, 1, 3, 5, 7, 9, 15, 18, 26, 29)
having don’t-care values:
d(A, B, C, D, E) = Σm(6, 10, 17, 20, 22, 23, 25, 27, 28, 30)
i. Write the truth table for F .
ii. Determine the canonical form of F using minterms.
iii. Minimize F using a Karnaugh map, and express the minimized function using sum of products
standard form.
3. Sequential Circuit Design
State
A
B
C
D
E
F
G
H
I
J
on 0
C
D
G
H
A
B
E
F
I
J
on 1
E
F
I
I
J
J
I
I
J
J
Output
0
0
0
0
1
1
1
1
0
1
Given the above finite state machine:
(a) Draw the corresponding state transition diagram.
(b) Determine a simpler, but equivalent, finite state machine through state reduction. Express the resulting,
reduced FSM as a state transition table like the one given above.
(c) Design a sequential circuit using JK flip-flops and digital logic gates. Render your initial design using
sum-of-products standard form.
(d) Are there don’t-care values involved in this design scenario? Be sure to handle this aspect of the design
and discuss it properly.
4. Amdahl’s Law
(a) A program spends 40% of its execution time performing operations that can be parallelized. The remaining 60% is strictly serial.
i. Use Amdahl’s law to calculate the maximum possible speedup if an infinite number of processors are
available.
ii. Suppose the program is run on a system with 4 processors. What is the expected speedup?
iii. The hardware team proposes an optimization that reduces the serial portion of the program from
60% to 40%. With 4 processors, what is the new speedup?
iv. Compare your results from (b) and (c). Based on Amdahl’s law, which provides a larger performance
gain, adding more processors, or reducing the serial portion of the code? Justify your answer.
5. Throughput
A processor has the following characteristics:
• Clock frequency: 3.2 GHz
• Average cycles per instruction (CPI): 1.25
(a) Calculate the processor’s throughput in instructions per second (IPS).
(b) Suppose the processor is superscalar and can issue up to 2 instructions per cycle. If the workload
achieves an average of 1.6 instructions per cycle (IPC), recalculate the throughput in instructions
per second.
(c) Compare the results from part (a) and part (b). Which measurement (CPI or IPC) is more natural to
use when reasoninng about superscalar processors, and why?