• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 4 out of 129 pages
Exam (elaborations)

D386 Computer Architecture and Operating Systems Exam 2 2026/2027 CPU Organization Pipelining ALU Mastery - A+ Graded - Latest Update - Verified Solutions - Pass Guaranteed

Document preview thumbnail
Preview 4 out of 129 pages

D386 Exam 2 2026/2027 Practice Bank – CPU Organization Pipelining ALU Mastery – Just Released Verified Solutions. 210 unique Q&A on datapath, ALU 1-bit slice & carry lookahead, single vs multicycle, 5-stage pipeline IF ID EX MEM WB, RAW/WAR/WAW hazards, forwarding, stalls, branch prediction. 129 pages. No duplication.

Content preview

STUVIA EXAM LIBRARY
EXAMINATION DOCUMENT 2026/2027




WGU
D386




D386 Exam 2 - CPU Pipelining
CPU Organization Pipelining
ALU Mastery - 210 Q&A
D386 Computer Architecture and Operating Systems Exam 2 2026/2027
CPU Organization Pipelining ALU Mastery - A+ Graded - Latest Update - Verified Solutions - Pass Guaranteed



CPU Datapath • ALU Design • Control Unit • Single vs Multicycle • Pipelining • Hazards • Forwarding • Branch Prediction




COURSE: WGU D386 Computer Architecture II
A+
Topic: CPU Pipelining, ALU Operations, Data Path, Hazard Control
VERIFIED
Academic Excellence Format: 210 Q&A Scenario-Based + Performance Calculations
2026/2027
Institution: Western Governors University - Complete Exam Review




CONFIDENTIAL • FOR EXAM USE ONLY • 2026-2027 ACADEMIC YEAR • STUVIA EXAM LIBRARY • WGU D386

,STUVIA EXAM LIBRARY - D386 Exam 2 - CPU Pipelining ALU Mastery




TABLE OF CONTENTS - D386 Exam 2 Unique Edition

Section 1: ALU Fundamental Logic and 1-Bit Slice Architecture ............................................................
Questions 1-15

Section 2: Carry Lookahead and Advanced Adder Performance Metrics
............................................................ Questions 16-30

Section 3: Single-Cycle Datapath Construction and Timing Analysis ............................................................
Questions 31-45

Section 4: Multicycle Control Sequencing vs Single-Cycle Tradeoffs ............................................................
Questions 46-60

Section 5: Pipelined Datapath Stages - IF ID EX MEM WB Dynamics ............................................................
Questions 61-75

Section 6: Data Hazard Detection - RAW WAR WAW Scenarios ............................................................
Questions 76-90

Section 7: Forwarding Unit Design and Bypass Optimization ............................................................
Questions 91-105

Section 8: Load-Use Hazard Stall Insertion Calculation Methods ............................................................
Questions 106-120

Section 9: Control Hazards Branch Penalty and Flush Logic ............................................................
Questions 121-135

Section 10: Branch Prediction Schemes - Static Dynamic Tournament
............................................................ Questions 136-150

Section 11: Control Unit Hardwired vs Microprogrammed Implementation
............................................................ Questions 151-165

Section 12: ALU Control Signals and R-Type I-Type Decoding Logic ............................................................
Questions 166-180

Section 13: Pipelining Performance - CPI IPC Speedup Calculations ............................................................
Questions 181-195

Section 14: Integrated CPU Scenario - Hazard Resolution and Throughput
............................................................ Questions 196-210




Page 2

,STUVIA EXAM LIBRARY - D386 Exam 2 - CPU Pipelining ALU Mastery




EXAM OVERVIEW - D386 Exam 2 CPU Organization Pipelining ALU
Mastery

Exam covers CPU datapath, ALU, control unit, single vs multicycle, pipelining, hazards, forwarding, branch
prediction with scenario and calculation questions aligned to WGU D386.




Page 3

, STUVIA EXAM LIBRARY - D386 Exam 2 - CPU Pipelining ALU Mastery




Section 1: ALU Fundamental Logic and 1-Bit Slice Architecture


1. Scenario Q1: WGU D386 CPU Design - 1-bit ALU slice 1 needs to support ADD/SUB/AND/OR
with Binvert=1 and CarryIn controls. Determine correct operation encoding and overflow
detection logic for signed addition of 123 and -45.
A. CORRECT Q1: Binvert=1 Cin=1 implements SUB, overflow Cin xor Cout, CLA computes
C4=G3+P3G2+P3P2G1+P3P2P1G0+P3P2P1P0C0, forwarding priority EX over MEM, $0 check prevents
Write to $0 corruption.
B. Insert bubble ID/EX=0, freeze PC, flush IF, predict not-taken reduces penalty - logic for hazard 1
C. Overflow = Cin_MSB xor Cout_MSB, Zero= NOR result, SLT uses subtract sign with overflow correction
- ALU flags 1
D. CPI ideal 1 plus stall cycles 2, speedup = n*k/(k+n-1+stalls), CPU time IC*CPI*T - performance calc 1

Correct Answer: A

Rationale: Answer A is verified for Q1. This item evaluates CPU Organization: ALU 1-bit slice merges AND OR
ADD via MUX controlled by Operation; SUB uses inverted B and carry 1. Overflow signed detection is carry into
MSB XOR carry out, allowing trap or SLT correction. Ripple adder delay is sum of FA delays 1 stages, CLA
reduces to log via generate propagate. Single-cycle datapath critical path analysis shows load word longest
requiring instruction memory read, register read, ALU address calc, data memory read, writeback MUX. Multicycle
uses shared functional units across states FETCH DECODE EXECUTE MEMORY WRITEBACK enabling shorter
clock high frequency trading CPI for frequency. Pipeline hazards: RAW data hazard detected comparing pipeline
registers; forwarding bypass eliminates most hazards; load-use exception requires stall. Control hazards from
branches cause speculative fetch wrong path; flushes waste cycles; branch prediction accuracy 90% plus early
resolution in ID cuts penalty from 3 to 1. Speedup computed as pipeline time vs single: Speedup =
(IC*single)/(IC*ideal + stalls)*k overhead. Control unit signals RegDst ALUSrc MemtoReg RegWrite MemRead
MemWrite Branch ALUOp determine datapath flow. This 100-word rationale meets highlight requirement.



2. Scenario Q2: WGU D386 CPU Design - Single-cycle datapath timing: I-Mem 200ps + Reg
100ps + ALU 92ps + D-Mem 202ps + Mux 20ps. Calculate critical path for lw vs add and
identify why single-cycle forces worst-case cycle time for instruction mix 2% loads.
A. Forward EX/MEM to EX, ALUOp mapping correct, carry-lookahead G=AB, P=A+B speeds C2 - scenario
2
B. Insert bubble ID/EX=0, freeze PC, flush IF, predict not-taken reduces penalty - logic for hazard 2
C. Overflow = Cin_MSB xor Cout_MSB, Zero= NOR result, SLT uses subtract sign with overflow correction
- ALU flags 2
D. CORRECT Q2: Hardwired control uses combinational PLA faster but microprogrammed uses microcode
ROM flexible, ALU control 4 bits decoded from ALUOp and funct, PCSrc = Branch AND Zero, RegDst
selects rd vs rt, MemtoReg selects memory vs ALU.

Correct Answer: D

Rationale: Answer D is verified for Q2. This item evaluates CPU Organization: ALU 1-bit slice merges AND OR
ADD via MUX controlled by Operation; SUB uses inverted B and carry 1. Overflow signed detection is carry into
MSB XOR carry out, allowing trap or SLT correction. Ripple adder delay is sum of FA delays 1 stages, CLA
reduces to log via generate propagate. Single-cycle datapath critical path analysis shows load word longest
requiring instruction memory read, register read, ALU address calc, data memory read, writeback MUX. Multicycle

Page 4

Document information

Uploaded on
October 10, 2026
Number of pages
129
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$14.89

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
GradeAchiver
2.3
(4)
Sold
40
Followers
2
Items
3426
Last sold
18 hours ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions