Description
CSCI 463-1 Computer Systems Organization Spring 2025 Homework #5 focuses on MARIE computer architecture, register transfer language (RTL), and CPU instruction execution. The assignment requires tracing assembly instructions, tracking register and memory changes, converting instruction operands into hexadecimal, and understanding the fetch-decode-execute cycle, including direct and indirect addressing.
Original Assignment / Project Question
Formatting Guide for Register Contents
Always write the full number of hexadecimal or binary digits required by each register. A 16-bit register requires four hexadecimal digits, while a 12-bit register requires three. Register cells in the assignment spreadsheet are formatted as text to preserve leading zeros.
Note 1: Multi-line RTL
RTL instructions can appear on the same line when operations occur during the same clock cycle through a direct datapath connection.
For example:
MBR <- M[MAR], AC <- MBR
The same convention applies to STORE. However, this assignment does not implement simultaneous RTL operations because of inconsistencies in the textbook.
Note 2: Redundant RTL
The reference chart presents the LOAD instruction using three RTL operations:
MAR <- X
MBR <- M[MAR]
AC <- MBR
Slide 4c-39 shows only:
AC <- MBR
The shorter version works because the earlier operations have already occurred during the decode and operand-fetch stages.
Similar redundancy applies to ADD, SUBT, ADDI, and JUMPI instructions.
Assignment
Questions 1–9: MARIE Execution Trace
Create an execution trace for program lines 100–108. Line 109 contains HALT and does not require additional instructions.
The execution trace must:
- Track changes to CPU registers and memory locations.
- Record updated memory addresses and their new values.
- Distinguish between register updates, memory updates, and combinational operations.
- Carry forward final register values from one instruction to the next.
- Convert decimal constants into hexadecimal where required.
- Include the appropriate fetch, decode, operand-fetch, and execution operations.
- Hand-assemble instructions using hexadecimal opcodes and operands.
- Add spreadsheet rows as necessary, leaving a blank line between instructions.
- Highlight updated values using bold text or a light background color.
MARIE Assembly Program
100 LOAD Addr Initialize Next with
101 STORE Next starting address
102 LOAD Num Initialize Ctr
103 SUBT One
104 STORE Ctr
105 Loop LOAD Sum
106 ADD Num1
107 STORE Sum
108 JUMP Loop
109 End HALT
111 Addr HEX 117
112 Next HEX 0
113 Num DEC 5
114 Sum DEC 32
115 Ctr HEX 0
116 One DEC 1
117 Num1 DEC 10
118 Num2 DEC 15
119 Num3 DEC 2
11A Num4 DEC 25
11B Num5 DEC 30
Question 10: ADD vs. ADDI
Explain why the register transfer language for ADDI (slide 4e-46) is longer than the RTL for ADD (slide 4b-29). Refer to the MARIE instruction summary sheet where necessary.
Additional Assignment Guidelines
- Fetch and decode operations are the same for every instruction.
- Operand-fetch steps may be omitted when no operand is required.
- At most one CPU register changes during each RTL step. If memory is updated, no register changes during that step.
- Final values from one instruction become the initial values for the next.
- Redundant RTL operations already completed during decoding or operand fetching may be omitted.
- Redundant RTL instructions do not change the outcome but add unnecessary operations.
XrepresentsIR[11-0].- Instructions must be manually assembled using the hexadecimal opcodes provided in the MARIE summary sheet.
Solution Overview
The solution covers execution traces for MARIE instructions 100–108, including hexadecimal instruction encoding, register values, memory updates, and RTL operations. It addresses instruction sequencing, redundant execution steps, and an explanation of why ADDI requires more RTL operations than ADD.
Downloadable ZIP File
The downloadable ZIP file contains the homework solution and relevant assignment materials covering the MARIE execution trace and RTL analysis requirements.
Get the Assignment Resource
Explore this resource to review MARIE instruction execution and computer organization concepts. Need help with another programming or computer systems assignment? Request Custom Programming Assistance.


