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

Wavedrom encodings are inconsistently formatted #1430

Closed
christian-herber-nxp opened this issue May 28, 2024 · 12 comments
Closed

Wavedrom encodings are inconsistently formatted #1430

christian-herber-nxp opened this issue May 28, 2024 · 12 comments

Comments

@christian-herber-nxp
Copy link

I am failing to understand the logic behind the formatting of instruction encodings in wavedrom.
For one, it is quite inconsistent between extensions (e.g. compare C to Zc).
But even within extensions, or even a single instruction, I do not understand how the type is assigned (that translates to the background color). See e.g.:
image

Two parts of one immediate have different colors. One operand red, one operand green.

Having clarity on how to format the instructions will greatly help authors of extensions to do it right from the start.

@wmat
Copy link
Collaborator

wmat commented May 28, 2024 via email

@ved-rivos
Copy link
Collaborator

I feel the color code is arbitrary and perhaps not intentional. The version 2.2 manual had no such color scheme.

@christian-herber-nxp
Copy link
Author

@wmat : thanks, i updated the colors in riscv/riscv-zilsd#18.
From that, I can for sure say that the types in C need to be revisited.

@gfavor
Copy link
Collaborator

gfavor commented May 28, 2024

Given that the "old" ISA manuals did not use color coding, should we drop all color coding in the new manuals? Or should we have Bill identify one standard color coding that we will gradually convert to?

@ved-rivos
Copy link
Collaborator

IMO: The colors are a bit distracting and don't add much. The look and feel of the "old" manual was better.

@wmat
Copy link
Collaborator

wmat commented May 28, 2024 via email

@gfavor
Copy link
Collaborator

gfavor commented May 28, 2024

Let's see if @aswaterman concurs with dropping all color coding.

@christian-herber-nxp
Copy link
Author

personally, I like the colors, if used meaningfully and consistently.
Especially in less regular encodings like C/Zc, helps to get an overview.

@aswaterman
Copy link
Member

I think the two valid resolutions are to drop the colors or to use the colors consistently. Given the latter option is much more work, and isn't exactly of high priority, I'd be fine with dropping them. We can always reverse course in the future if we have the bandwidth.

@wmat
Copy link
Collaborator

wmat commented May 28, 2024 via email

@aswaterman
Copy link
Member

Right, they’re just there to improve the visual appearance and help readers see the boundaries between fields. There’s no semantic content.

@kersten1
Copy link
Collaborator

kersten1 commented Jan 9, 2025

This is done.

@kersten1 kersten1 closed this as completed Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants