Spring 2025 - CS501 - 1 (BSCS) .
Spring 2025 - CS501 - 1 (BSCS) .
Deadline
(CS501) 12/05/2025
Assignment # 01
Spring 2025
Please carefully read the following instructions before attempting the assignment.
You should consult the recommended books to clarify your concepts, as handouts are insufficient.
You are supposed to submit your assignment in Doc or Docx format.
Any other formats like scanned images, PDF, ZIP, RAR, PPT, BMP, etc. will not be accepted.
Topic Covered:
- Based on knowledge of different instruction type a student will be able to differentiate between
instructions.
- How RTL (Register Transfer Language) helps in understanding the process between coding and
hardware component.
Topics Covered
Lecture # 1 to Lecture # 12
NOTE
No assignment will be accepted via email after the due date (whether it is due to load shedding, internet
malfunctioning, etc.). Hence, refrain from uploading assignments within the last hour of the deadline. It is
recommended that the solution be uploaded at least two days before its closing date.
If you find any mistakes or confusion in the assignment (Question statement), please consult your instructor
before the deadline. After the deadline, no queries will be entertained in this regard.
Consider the below given Pseudo Code which has been writtend for SRC (Simple RISC Computer)
processor.
Pseudo Code:
// Load values from memory
a = memory[100]
b = memory[104]
// Halt execution
END
You are required to first carefully understand the given code and and then answer the following
questions.
a) By considering the programmer’s view of SRC architecture, find the final expression which is
being evaluated in the given code.
b) Fill the below given Table 1 by writing the missing instructions, instruction type and RTL
syntax for each missing instruction.
Good Luck!