drom/logidrom

Schematics/Waveform: Rendering of Low Active Signal Names

Opened this issue · 2 comments

Ist:

Low active signal names are usually rendered with an Overline. Recomendet implementation ( according to https://github.com/drom/wavedrom/wiki/Unicode ) is the usage of Unicode overline code sequences. While this is doable, human editing is quite limited due missing support. Even thru Unicode support is a definite need, basic functions should be accessible with ASCII only sequences.

Soll:

Signal names starting with '/' (Slash) or '-' (Hyphen/Minus) should be rendered with an overline. The the negation character is part of the signal name ('/A' vs. 'A') and must not to be removed. Example:

{ assign:
 [
  ["/A", ["NOT", "A"]],
  ["-B", ["NOT", "B"]],
 ]
}

Result:
neg-label

drom commented

I agree, that it is 'overline' is important feature to have for signal names. Why do you want to keep negation character? will it be nicer without it?

Yes it would look nicer without. At the same time it is needed as identifier when modifying the code. So I believe it might be helpful to see them. Then again, it realy isn't that pretty.

As a side issue, would it be possible to treat '/' and '-' as equvalent - so connecting a pin named '/A' and '-A'?