Comparison failure

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Comparison failure

footballfan21
This post was updated on .
I am getting a comparison failure that I don't quite understand. It seems as if the comparison is trying to compare the values before they are changed by the program. Is there a problem with the code?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Comparison failure

cadet1620
Administrator
This post was updated on .
The highlighted line in the test script is the command that will be executed next.

Your failure occurred on the first "output" command, when in was 0 and the expected value of out was 1.

[edit: Oops -- I didn't see right side of your image with the code.]

Your HDL is correct.

The most likely problem is that your edited code is not in the same folder as the Not.tst script you loaded. Can you see your edited code if you scroll down the HDL window?

--Mark
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Comparison failure

footballfan21
That is what it was. The test script was in a different folder. Thank you for the help.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Comparison failure

cadet1620
Administrator
footballfan21 wrote
That is what it was. The test script was in a different folder. Thank you for the help.
Great!

Please edit your post to remove the screenshot showing working HDL code.

--Mark
Loading...