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

compact mode attributes #25

Open
drom opened this issue Dec 8, 2019 · 5 comments
Open

compact mode attributes #25

drom opened this issue Dec 8, 2019 · 5 comments

Comments

@drom
Copy link
Member

drom commented Dec 8, 2019

@nopeslide I have updated wavedrom.com to support compact mode. #23

{reg:[
  {name: 'IPO',   bits: 8, attr: 'RO', type: 6},
  {               bits: 7},
  {name: 'BRK',   bits: 5, attr: 'RW', type: 4},
  {name: 'CPK',   bits: 1 },
  {name: 'Clear', bits: 3 },
  {bits: 8 }
], config: {lanes: 4, compact: true}}

One issue is the field attributes. (RO, RW) In example above. Do you have ideas how we can place attributes in the compact mode?

@nopeslide
Copy link
Contributor

nopeslide commented Dec 8, 2019

@drom I don't think there is an elegant way to support attributes in the compact mode, except for just breaking it up.
Even multilines rendered normally have issues placing them right.
I think a dynamic spacing (dependent on the number of attributes) between the lines could solve the general multiline attribute issue.

@gabrielrad
Copy link
Contributor

@drom I believe tooltips are a good way to solve this:
1111111111111

I have issues with names overlapping and also want to represent more informations about the fields like the reset value and so on..

@drom
Copy link
Member Author

drom commented Dec 13, 2019

Tooltips are OK solution for HTML but not for PDF.

@drom
Copy link
Member Author

drom commented Dec 13, 2019

Here is another style with extension lines.

RB

regmap

LB

regmap001

LU

regmap002

@drom
Copy link
Member Author

drom commented Dec 13, 2019

Example with rotated and abbreviated field names.

regmap003

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants