This proof shows that when an ADDI instruction is executed, the Program Counter (PC) increments by 1. Specifically, when the PC is 1, it is incremented to 2.

Note that src imm, and dst are left as variables because these values do not affect the PC. In other words, this property is true regardless of the values of src, imm, and dst.

For reference, here is the simulator. We cannot use variable values in the simulator so src, imm, and dst are given numerical values. Initially, the PC is 0, then 1, and finally 2.

Instructions
Memory Cells
Program Counter Time
0 0
LW Computer Simulator

Quiz (1 point)

Given that:
instruction #1 is addi dst=dst src=src imm=imm
the PC at time 1 = 1

Prove that:
the PC at time 2 = 2

The following properties may be helpful:

Please write your proof in the table below. Each row should contain one claim. The last claim is the statement that you are trying to prove.

Step Claim Reason (optional) Error Message (if any)
1
2
3
4
5
6
7
8
9
10

Become a subscriber to save your progress, see the correct answer, and more!