passes quick test: auipc

This commit is contained in:
Brendan Haines 2020-10-16 18:59:25 -06:00
parent c98881c5d7
commit c25b9bcb0f

View File

@ -4,7 +4,6 @@ _start:
# NOTE: nop required because cpu currently does not detect when something is needed from a later stage of the pipeline.
# 4 clocks allows one instruction to finish before the next reads the regfile
# AUIPC
# JAL
# JALR
@ -198,6 +197,15 @@ _start:
nop
nop
# auipc
auipc x3, 0 # x3 = pc + 0
auipc x4, 3 # x4 = pc + 0x3000
auipc x5, 0xfffff # x5 = pc + 0xfffff000
# TODO: verify auipc adds and does not concatenate
nop
nop
nop
# counter and infinite loop
nop