Replies: 1 comment 13 replies
-
|
Beta Was this translation helpful? Give feedback.
13 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There are a lot of things I don't understand when I modify my instructions based on what mgpusim has implemented.
First of all,
dst0offset
anddata0offset
when do they equaluint(8 + 64*4), uint(8 + 64*4 + 256*4), uint(8 + 64*4 + 256*4*2)
and how do we get this?Second, when the instruction is described as
DS[ADDR+offset0*4] = D0; DS[ADDR+ Offset1*4]
In this case,addr0 := layout.ADDR[i] + Int.offset0 *4
andaddr1 := layout.ADDR[i] + Int.offset1 *4
I can understand, But in the case ofDS[A] = D0
andR = DS[A]
, can addr only beaddr0 := layout.ADDR[i] + st.offset0
?Third, the
runDSREAD2B32
function needs to write data to two registers why onlydst0offset
and notdst1offse
?Fourth, how can we ensure that
DS[A] = D0[7:0]
reaches the lower eight?&0xFF
?Fifth,
go test
can't run the test file, showing something undecided, but the file is fine.Beta Was this translation helpful? Give feedback.
All reactions