I am fairly confused as to why my CPU is not passing the test script because as far as I can determine, my CPU behaves correctly when given the instructions in the test script, however it fails literally every single line of the test script with the error "comparison failed at line n." For example, the first command in the test script is @12345, and when given this instruction my CPU dutifully stores 12345 in the A register, visible in the A register`s GUI. However, I still receive the aforementioned error.
Thanks for the response Mark,
I totally forgot to check the .out and .cmp files and you were absolutely correct my PC value did not increment correctly. For now, I would prefer to attempt to fix it myself however if I don`t figure it out then I will gladly email the HDL file to you.