Source Code


Simulation Results

#pcoprdqd (hex)qd (dec)addr
100sub2FFFFFFFE-2
201and1200044
302or13FFFFFFFE-2
403add1400011
504xor15FFFFFFFB-5
605halt

Pipeline Results

#IFIDEXMEMWBok
10000
sub






20001
and
0000
2 1 3





30002
or
0001
12 2 5
0000
0xfffffffe





qa forwarded: 0xfffffffe (ra: 2)
40003
add
0002
13 6 2
0001
0x4
0000




qb forwarded: 0xfffffffe (rb: 2)

qb transferred: 0xfffffffe (rb: 2)
50004
xor
0003
14 3 2
0002
0xfffffffe
0001

0000
0xfffffffe
0000
0xfffffffe
60005
halt
0004
15 2 5
0003
0x1
0002

0001
0x4
0001
0x4
7
0005

0004
0xfffffffb
0003

0002
0xfffffffe
0002
0xfffffffe
8

0005

0004

0003
0x1
0003
0x1
9


0005

0004
0xfffffffb
0004
0xfffffffb

Registers

formatr0r1r2r3r4r5r6r7
hex0000000000000001FFFFFFFE0000000300000004000000050000000600000007
decimal01-234567
formatr8r9r10r11r12r13r14r15
hex00000008000000090000000A0000000B00000004FFFFFFFE00000001FFFFFFFB
decimal8910114-21-5
formatr16r17r18r19r20r21r22r23
hex0000001000000011000000120000001300000014000000150000001600000017
decimal1617181920212223
formatr24r25r26r27r28r29r30r31
hex00000018000000190000001A0000001B0000001C0000001D0000001E0000001F
decimal2425262728293031

Memory

addr0123456789ABCDEF
000000000000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000
000000100000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000