Replies: 2 comments 14 replies
-
I do not understand how you added new instructions. How can you make the AMD compilers generate the instructions? Can I see the assembly? |
Beta Was this translation helpful? Give feedback.
-
You are right. I set the input as fixed and unchangeable. No matter how I modify the three added instruction functions, the resulting output is still incorrect and does not change with the modifications to the instruction functions. I even set the added instruction functions as empty functions and still got the same error result. It seems that the instruction functions I added only allow the program to run but do not implement the corresponding functionality. Why is this happening? |
Beta Was this translation helpful? Give feedback.
-
Teacher Sun, hello, I was recently researching the emulator's local memory, and I wanted to load some global memory data into local memory for use, so I added three new instructions.
DS_WRITE_B8: DS[A] = D0[7:0]; byte write
,DS_READ_I8: R = signext(DS[A][7:0]}; signed byte read
andDS_READ_U8: R = {24 'h0,DS[A][7:0]}; unsigned byte read
. However, after this I got the wrong result, which was found to be due to the inconsistency between the data loaded into local memory and the data in global memory. Therefore, I suspect that the three instruction functions added are not correct, but I have checked for several times but could not find the error, so I would like to ask you to help me check where the error is. Looking forward to your reply.Beta Was this translation helpful? Give feedback.
All reactions