-
Notifications
You must be signed in to change notification settings - Fork 592
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
Direction Woes #668
Comments
Perhaps of interest to @sdtwigg as well |
So:
|
Did #673 resolve this? |
I guess it's resolved enough. It's still a regression in functionality but transparently so. Posterity can reopen if it comes up again. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Consider the following compatibility code:
Prior to the directions refactor, this would print
On master (with exceptions replaced with text), this prints
There are several issues here:
The behavior of the last point is due to the fact that
Chisel.dir
gives ActualDirection if the Data is bound, otherwise it gives UserDirection. WhatChisel.dir
used to do was give the "current actual direction." If something has a local direction that is later flipped,.dir
would give the flipped direction.It looks like there really 3 "types" of direction:
It seems to me that
Chisel.dir
implements only (3), which makes sense, because (3) can give all of the information of the other 2 if just in a somewhat less obvious way.In my opinion, (3) is much more useful than (2), especially because (2) is pretty easy to derive with (3). For example
The text was updated successfully, but these errors were encountered: