Skip to content
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

Hex Digit Display: Improve visualisation of High-Z input value #365

Closed
edson-acordi opened this issue Mar 17, 2020 · 13 comments
Closed

Hex Digit Display: Improve visualisation of High-Z input value #365

edson-acordi opened this issue Mar 17, 2020 · 13 comments
Assignees
Labels
bug Yep, that's an insect. documentation What's up Doc? enhancement pri -1 Not that crucial (lower priority)

Comments

@edson-acordi
Copy link

Doing some tests with Hex digit display, I noted that if the data (4 bit) is in High-Z, display shows "H" instead of stay in adjusted "Off Color". It would be good if the Hex digit display works like the 7-segment display. Moreover, it would be nice to have the option "Active On High?" as the 7-segment display has.

@edson-acordi
Copy link
Author

edson-acordi commented Mar 29, 2020

It is ok with the display showing "H". But the documentation explains that a floating or error signal, will display a dash ('-') instead of "H".

@maehne
Copy link
Member

maehne commented Mar 29, 2020

@edson-acordi: If there is an inconsistency between the implementation and documentation, then please leave this issue open so that it can be fixed.

@edson-acordi edson-acordi reopened this Mar 30, 2020
@edson-acordi
Copy link
Author

Hi Maehne, issue reopened to be fixed! Thank you!

@maehne
Copy link
Member

maehne commented Mar 30, 2020

@BFH-ktt1, @kevinawalsh, and @mbaillif: I confirm the inconsistency reported by @edson-acordi between implementation and documentation of the Hex Digit Display component. I guess fixing it in the implementation is least effort, but maybe displaying "H" instead of "-" is preferable? For me, "-" means Don't Care, but under certain conditions it might be mistaken to be a minus sign in front of a value. However, this case might be less likely for use cases of the Hex Digit Display. Anyway, "H" might be also mistaken to signify "Hexadecimal".

What do you think?

@BFH-ktt1 BFH-ktt1 added the documentation What's up Doc? label Apr 2, 2020
@MarcinOrlowski
Copy link
Member

What about adding "High-Z" configurable color and then display "H" using it? As I agree, showing "H" in On color is confusing.

@maehne
Copy link
Member

maehne commented Jul 13, 2021

Why not simply use U (unassigned) instead of H? This wouldn't be ambiguous and consistent with the value shown at a output port?

image

@MarcinOrlowski
Copy link
Member

MarcinOrlowski commented Jul 13, 2021

This is already configurable in "Simulation" as "Unknown value character", however I do not thing "Z" is doable w/o confusing with "2". Also "Unconnected color:" is there already too:

z

From other hand, Hi-Z is not unknown...

PS: mind editing the subject here too?

@MarcinOrlowski MarcinOrlowski removed the documentation What's up Doc? label Jul 13, 2021
@maehne maehne changed the title Hex Digit Display Hex Digit Display: Improve visualisation of High-Z input value Jul 13, 2021
@maehne maehne added documentation What's up Doc? bug Yep, that's an insect. pri -1 Not that crucial (lower priority) labels Jul 13, 2021
@maehne
Copy link
Member

maehne commented Jul 13, 2021

I changed the title and added back the Documentation tag to remind us that documentation needs to get adjusted, too. After all, for the moment there's a mismatch between documented and actual behaviour.

@MarcinOrlowski
Copy link
Member

MarcinOrlowski commented Jul 13, 2021

Not sure which one:

z

I think "u" looks more like intentional shape than "U" that can be confused with "broken" zero

@maehne
Copy link
Member

maehne commented Jul 13, 2021

Personally, I would prefer capital 'U', as it would be consistent with the value shown on the port and the representation of uninitialized value in VHDL. High-Z outputs of a tristate buffer don't drive the connected signal to any value. So, it remains unknown if not driven by a different source. However, I could also live with a lower-case 'u'.

@BFH-ktt1, @edson-acordi, @davidhutchens, all: What's your opinion?

@MarcinOrlowski
Copy link
Member

Alternatively we can stay fully blank which is also fine and quite logical as there's no data to display anyway. In fact this is behavior I'd personally expect having such physical device.

@maehne
Copy link
Member

maehne commented Jul 13, 2021

@MarcinOrlowski: Indeed, this would also be a logical behaviour.

@MarcinOrlowski
Copy link
Member

MarcinOrlowski commented Jul 14, 2021

I made this behavior partially configurable (in code ATM:) and currently display stays blank (no segment lit) if there's no valid input. I also changed the shape shown if HD is fed with value outside 0-15 range. We had "-" shown previously which can be misleading. Now it will show this:

ss

BFH-ktt1 added a commit that referenced this issue Jul 16, 2021
Corrects HexDisplay behavior. Closes #365
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Yep, that's an insect. documentation What's up Doc? enhancement pri -1 Not that crucial (lower priority)
Projects
None yet
Development

No branches or pull requests

4 participants