-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug]: In Project 5: CPU, the order of the chips matters. #360
Comments
This looks like a duplicate of #337. Please re-verify with the most recent version (which you should get by refreshing the page), and if it is not fixed, please re-open this issue and include your code that is failing. |
I refreshed, but maybe there's some sort of cache issue? (Firefox) If the registers at
|
This is indeed not fixed yet, reopening. |
@DavidSouther maybe I'm missing something but I just don't think that the insertion sort approach is equivalent to a proper topological sort here. Changing to a topological sort fixes this issue. Again, I could be missing something, let me know what you think. |
It seems that I'm the one who's missing something - empirically, your topological sort works and the insertion sort isn't sufficient. I'll take a closer look at #381- if I can find the difference, I'll be pleased, but we'll go with what you've got that is working. |
It sounds like in #376 we're not sure whether it's the sort or the clock order based on the internal CPU implementation? |
Looks like a sorting issue after all. |
Tool
Hardware Simulator
Interface
Website (https://nand2tetris.github.io/web-ide)
Contact Details
No response
What happened?
If I put the registers above the ALU, I fail the test at time 19. If I put the ALU above the registers, I pass the test.
Additional Comments
This one might actually be an issue with my understanding, not with the Web IDE. If this is desired behavior, and I don't understand how HDL works, then please accept my apologies.
Do you want to try to fix this bug?
Code of Conduct
The text was updated successfully, but these errors were encountered: