logidrom icon indicating copy to clipboard operation
logidrom copied to clipboard

Schematics/Waveform: Rendering of Low Active Signal Names

Open Raffzahn opened this issue 11 years ago • 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

Raffzahn avatar Jul 14 '14 21:07 Raffzahn

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?

drom avatar Sep 01 '14 00:09 drom

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'?

Raffzahn avatar Sep 17 '14 17:09 Raffzahn