I want to show a global label name with negation (that it is active low). It won’t let me use a leading ‘/’ in the name. Is there a trick to this? Or is there a way to show a bar above the name? How is this normally handled?
Thanks for any suggestions,
Lloyd
Use the ~ Symbol. And use it again to terminate if you need a partial
Thanks Naib. Worked like a charm.
Lloyd
In software, a variable that is true when low, has the suffix -F
So you might use a label like ABC-F
Thanks for the suggestion but I prefer the bar over the name with ~ as suggested above.
for firmware, we prefer a _b suffix but its the same principle just different implementation
Since I have never seen that in 30 years of writing software, I am going to ask “citation needed”. Hyphen is also not valid in identifiers in most languages.
Now, if you said “in some software I worked on” then it might be true.
According to wikipedia : https://en.wikipedia.org/wiki/Logic_level
The name of an active-low signal is historically written with a bar above it to distinguish it from an active-high signal. For example, the name Q, read “Q bar” or “Q not”, represents an active-low signal.
The conventions commonly used are:
[ Unfortunately the overbars in the original text did not replicate here]
_B stands for “bar”, and _L for “low” I guess ?
Ha! I learned -F back in the assembly language days of 6800. 6502, 8051…
To what does “-b” refer?
That might be confused with bit, byte, binary.
“-F” indicates true when low (normally false)
That isn’t really an issue for firmware
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.