CS501MidtermSolvedSubjectiveWithReferencesbyMoaaz.pdf
Verified academic study resource for CS501 (Advance Computer Architecture) under the Computer Science at Virtual University of Pakistan. This PDF document (Midterm Solved Past Paper & Revision File compiled by Moaaz Siddhu) covers Mid-Term Exam Scope (Lectures 1 to 22) spanning approximately 240 pages across 4 curriculum modules, and is indexed for student examination review with instant in-browser preview and 100% free direct download.
- Course
- CS501 – Advance Computer Architecture
- Faculty
- Computer Science
- Format
- Type
- Midterm
- Coverage
- Mid-Term Exam Scope (Lectures 1 to 22)
- Compiled by
- Moaaz Siddhu
Focus on core definitions and repeated MCQs from Lectures 1–22. Remember that scoring in the First Half builds your safety buffer toward the mandatory 20% Two-Half passing rule in CS501.
What this file covers — CS501 syllabus roadmap
- Core Architecture, Syntax & Primitive Data Structures — Lectures 1 to 6 (Pages 1 to 65). 15% Objective Marks (8–10 MCQs)
- Conditional Branching, Loops & Logical Control Flow — Lectures 7 to 12 (Pages 66 to 140). 18% Exam Marks (MCQs + 2-Mark Short Questions)
- Memory Management, Pointers, Arrays & Functions — Lectures 13 to 18 (Pages 141 to 215). 22% Exam Marks (High Yield for Midterms)
- Midterm Consolidation, Strings & Algorithm Synthesis — Lectures 19 to 22 (Pages 216 to 280). Midterm Exam Culmination (Lectures 1–22 Scope)
Frequently asked questions
Where can I download CS501MidtermSolvedSubjectiveWithReferencesbyMoaaz.pdf for free?
You can preview and download "CS501MidtermSolvedSubjectiveWithReferencesbyMoaaz.pdf" (CS501 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs501midtermsolvedsubjectivewithreferencesbymoaaz-pdf) with 100% free high-speed downloads and zero registration requirements.
What syllabus chapters and lectures are covered in this CS501 file?
This document covers Mid-Term Exam Scope (Lectures 1 to 22) across 4 distinct lecture units (Lectures 1 to 6, Lectures 7 to 12, Lectures 13 to 18, Lectures 19 to 22), featuring comprehensive definitions, solved objective questions, and examiner marking rubrics.
What is the passing criteria for CS501 under the VU 20% Two-Half Rule?
Under official Virtual University regulations, students must score at least 20% in the First Half (Quizzes, Assignments, GDBs, and Midterm combined) AND independently at least 20% in the Final-Term examination paper. Scoring under 20% in the final exam results in an automatic F grade regardless of earlier marks.
Are CS501 solved past papers and handouts verified for 2026 exams?
Yes. All CS501 materials on MIHORA VU—including Moaaz, Waqar Siddhu, and team archives—are reviewed against the current VU syllabus to help students prepare for 2026 Midterm, Final-Term, and online quiz examinations.
Inside this file
CS501- Advance Computer Architecture
Solved Subjective DEC 01,2012
From Midterm Papers
MC100401285 Moaaz.pk@gmail.com Mc100401285@gmail.com PSMD01
MIDTERM EXAMINATION
Spring 2012
CS501- Advance Computer Architecture
1- Two approaches for control unit.
Answer:- (Page 150)
Additionally, there are two different approaches to the control unit design; it can be either hard-wired or micro-
programmed
2- What is micro program?
Answer:- (Page 222)
A collection of microinstructions is called a microprogram. These microprograms generate the sequence of
necessary control signals required to process an instruction. These microprograms are stored in a memory
called the control store.
3- structural RTL for mov ra, rb
Answer:- (Page 164)
1
4- Structural RTL and explanation for instruction fetch.
Answer:- (Page 152)
The instruction fetch procedure takes three time steps as shown in the table. During the first time step, T0,
address of the instruction is moved to the Memory Address Register (MAR) and value of PC is incremented. In
T1 the instruction is brought from the memory into the Memory Buffer Register (MBR), and the incremented
PC is updated. In the third and final timestep of the instruction fetch phase, the instruction from the memory
buffer register is written into the IR for execution. What follows the instruction fetch phase, is the instruction
execution phase. The number of timing steps taken by the execution phase generally depends on the type and
function of instruction. The more complex the instruction and its implementation, the more timing steps it will
require completing execution. In the following discussion, we will take a look at various types of instructions,
related timing steps requirements and data path implementations of these in terms of the structural RTL.
MIDTERM EXAMINATION
Spring 2012
CS501- Advance Computer Architecture
Q1. Which register holds the address of the next instruction to be executed in the processor? (2 Marks)
Answer:- (Page 28)
The program counter (PC) that holds the address of the next instruction in memory that is to be executed.
Q2. What do you know about Machine Exception? (2 Marks)
Answer:- (Page 197)
• Anything that interrupts the normal flow of execution of instructions in the processor is called an exception.
• Exceptions may be generated by an external or internal event such as a mouse click or an attempt to divide by
zero etc.
• External exceptions or interrupts are generally asynchronous (do not depend on the system clock) while
internal exceptions are synchronous (paced by internal clock)
2
Q3. How exception may be generated write the difference between external and internal exceptions?
(3marks)
Answer:- (Page 197)
External exceptions or interrupts are generally asynchronous (do not depend on the system clock) while internal
exceptions are synchronous (paced by internal clock)
Q4. Write the structure RTL description for mov instruction (3 Marks)
Answer:- (Page 164)
In mov instruction the data in register rb, which is the source register, is to be moved in the register ra, which is
the destination register. In first three steps, mov instruction is fetched. In step T3 the contents of register rb are
placed in buffer register C through the ALSU unit while in step T4 the buffer register C transfers the data to
register ra through internal uni-bus.
Q5. Write the structure RTL description for shift instruction? (5 Marks)
Answer:- (Page 157)
Shift instructions are rather complicated in the sense that they require extra hardware to hold and decrement the
count. For an ALSU that can perform only single bit shifts, the data must be repeatedly cycled through the
ALSU and the count decremented until it reaches zero. This approach presents some timing problems, which
can be overcome by employing multiple-bit shifts using a barrel shifter.
MIDTERM EXAMINATION
Spring 2012
CS501- Advance Computer Architecture
Q - Write a structural RTL for Shift instruction for Uni-Bus data path implementation.
shiftr ra, rb, c1 [5 Marks]
Answer:- (Page 163)
3
Q - Write down one Advantage and Disadvantage of Microprogramming? [3 Marks]
Answer:- Click here for detail
Advantages
Great sophistication in the user instruction set can be achieved for relatively low cost. Adding new instructions
is cheap.
Disadvantages
For a simple machine, the extra hardware needed for the control store and sequencer may be more complex
than hardwiring.
Q - Difference between Memory Address Register and Memory Buffer Register? [2 Marks]
Answer:- (Page 151)
MAR
The Memory Address Register takes input from the ALSU as the address of the memory location to be
accessed and transfers the memory contents on that location onto the memory sub-system.
MBR
The Memory Buffer Register has a bi-directional connection with both the memory sub-system and the
registers and ALSU. It holds the data during its transmission to and from memory.
MIDTERM EXAMINATION
Spring 2012
CS501- Advance Computer Architecture
Which register holds the address of the next instruction to b executed in the processor? 2 marks
Answer:- Rep
Write the structural RTL for the following instruction for the uni- bus path implementation? in ra,rc
3 marks
More CS501 files
- CS501 MIDTERM FILE 1 SOLVED BY TEAM HADI-1.pdf (PDF · Midterm)
- CS501 MIDTERM FILE 1 SOLVED BY TEAM HADI.pdf (PDF · Midterm)
- CS501 MIDTERM FILE 2 SOLVED BY TEAM HADI-1.pdf (PDF · Midterm)
- CS501 MIDTERM FILE 2 SOLVED BY TEAM HADI.pdf (PDF · Midterm)
- CS501 MIDTERM FILE 3 SOLVED BY TEAM HADI.pdf (PDF · Midterm)
- CS501 MIDTERM FILE 4 SOLVED BY TEAM HADI.pdf (PDF · Midterm)
- CS501 MIDTERM FILE 5 SOLVED BY TEAM HADI.pdf (PDF · Midterm)
- CS501 MIDTERM FILE 6 SOLVED BY TEAM HADI.pdf (PDF · Midterm)