mirror of
https://gitlab.com/brendanhaines/cpu.git
synced 2024-11-09 21:14:57 -07:00
passes quick test: auipc
This commit is contained in:
parent
c98881c5d7
commit
c25b9bcb0f
10
test/test.S
10
test/test.S
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user