You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
415 B

from architecture import *
from debug import *
from run import run
arch = Architecture()
prog = [
getInstr('load', 0, 1, 0, 0),
getInstr('fmul', 4, 0, 2, 0),
getInstr('store', 0, 4, 1, 0),
getInstr('addi', 1, 1, 0, -8),
getInstr('jump', 0, 0, 0, -4)
]
arch = program(arch, prog)
print('')
for i in range(6):
arch = run(arch)
dumpClk(arch)
print('')
dumpPC(arch)