Readded IPDOM stack + SPLIT/Join tested

This commit is contained in:
felsabbagh3
2019-10-21 21:24:49 -04:00
parent 0672389edc
commit b6375e76de
15 changed files with 2204 additions and 2165 deletions

View File

@@ -9,7 +9,16 @@ _start:
li a0, 4
.word 0x0005006b # tmc a0
csrr a1, 0x20 # read thread IDs
csrr a2, 0x21 # read warp IDs
# csrr a2, 0x21 # read warp IDs
slti a0, a1, 2
.word 0x0005206b # split a0
beq a0, zero, ELSE
li a2, 5
j DONE
ELSE:
li a2, 7
DONE:
.word 0x0000306b #join
ecall
# li a0, 8 # Num Warps
# csrw 0x20, a0 # Setting the number of available warps