I'm having trouble understanding why in the comparison file
of the cpu.tst
of project 5 the inM pin input ***** when it dosnt have any value set
in my code im checking if the the instruction is c or A
if A im loading the valu to A
after im checking the abit and MSB
to chose between inM and A regester
but still got wrong output in outM
becouse inM pin send wrong input
There are NINE comparison files that come with Project 05. Do you really expect people to go hunting through them hoping that they are able to identify the specific one you are referring to? Or do you think that we have crystal balls that allow us to read your mind?
An * in the comparison file matches ANY character in the corresponding position of the output file.
Thanks for updating the initial post with that information.
In the CPU.cmp file, the inM is never '*', it is always either 0 or 11111.
The outM, on the other hand, is usually '*' except for a few times when it's value should be a specific, known value.
It's hard to tell you what you're doing wrong until you tell US what went wrong.
If the test says that there was a comparison failure on a certain line, then tell us what line and provide the output, at least for that line, from both the .out and the .cmp file. The feedback is give to you to help you track down the error, don't deny that feedback to the people you are asking for help from.
The text comparer program is just that -- it compares two text files and reports the first line in which the text in one file is not exactly equal to the text in the other file. It doesn't know that an asterisk should match any character.
The key is that the simulator is telling you that there is a mismatch on line 3. Look at line 3 of the .cmp file and you will see that the value in the "addre" column is 12345 while your output in that column is 0.
So look for why your value is different than what is expected.
i did it ther was aproblem in the first Mux i swiched between instruction and the aluoutput
and ther was some problem in my jump condtion
i rely need to practice the debugging
thanks a lot for your help