|
4 posts
|
This post was updated on May 10, 2020; 1:41am.
I've been banging my head against the wall all day. I even looked up the answer, which matches mine. Am I missing something? Or is there something wrong outside of the PARTS section (corruption of the .hdl or error in .tst file)?
|
Administrator
1552 posts
|
Well, let's look at what the output and comparison files tell us.
Line 4
| 1111111111111111 | 1111111111111111 | 0000000000000000 | (from out)
Looks like your OR gate is acting like and XOR gate.
Go back and verify that it is working properly.
|
4 posts
|
Thanks, my Or gate is essentially an Xor gate, hence my Or16 is as well. I thought I had tested it successfully, but at least I know what to do now.
|
Administrator
1552 posts
|
Glad you got it fixed. Even better, you learned a little bit more about debugging.
And thanks for deleting your code out of your original post -- that's just the way to do it.
|
|