Author Topic: Signal naming styles in schematics  (Read 4498 times)

0 Members and 1 Guest are viewing this topic.

Offline BentaTopic starter

  • Super Contributor
  • ***
  • Posts: 5878
  • Country: de
Signal naming styles in schematics
« on: January 09, 2021, 11:14:32 pm »
This post is the result of a discussion in a different thread concerned with how to draw nice schematics. It relates mainly to digital design.
It has quite a lot to do with semantics on signal/net naming.

To me, a schematic is made to explain the function of a circuit, and creating an IC symbol that's the same as the pin layout makes little sense. Signal grouping is the way to go on a symbol.

Pin names are already defined in the supplier datasheets, and it's a good idea to stick with those on the parts.

But there are lots of nets that need their own name, simply because they connect parts with different signal names is a net, and you'll need a name that brings all that together.

Here's my style, intended as an invitation for discussion:

1: Always create a name that indicates the net's function. RESET, ENABLE, CLK, DISABLE, LOAD, CLK_INHIBIT etc. are good basic names. They describe the action of the net when the signal is asserted.
2: Indicate the assertion level. This I do by using this style: RESET(L), ENABLE(H), LOAD(L) etc. This indicates the assertion level without compromising the net's functional name.
Silicon suppliers tend to use either a "/" before a name (/RESET) or a bar above the name. I don't like this, as it mixes up assertion with signal level.

Examples of bad names are NRESET, NOT_RESET, NO_CLK etc.
Why? Because they describe what a net does NOT do. So how do I know what it DOES do?

This convention is not invented by me, but was taught in university based on this brilliant gentleman's book:

https://www.amazon.com/Engineering-Approach-Digital-Design/dp/B001947XOC

« Last Edit: January 09, 2021, 11:16:37 pm by Benta »
 

Offline langwadt

  • Super Contributor
  • ***
  • Posts: 4427
  • Country: dk
Re: Signal naming styles in schematics
« Reply #1 on: January 09, 2021, 11:23:49 pm »
NRESET, etc. is standard, doesn't use special characters and conveys exactly the same information as RESET(L), ENABLE(H), LOAD(L)
 

Offline S. Petrukhin

  • Super Contributor
  • ***
  • Posts: 1146
  • Country: ru
Re: Signal naming styles in schematics
« Reply #2 on: January 09, 2021, 11:29:27 pm »
You have good ideas, but they are not yet known to many people.

I'll easily understand /Reset or nRESET or Reset with a dash at the top, but I won't understand Reset (L).
What does (L) mean? I might think it's a Reset for a block named L. It doesn't seem logical to me.

And personally, I don't see anything wrong with simultaneously specifying the name of the signal and its present position.

Do you have any arguments other than German pedantry and attention to detail? :)
I can't buy the mentioned book and I don't know what am arguments.
« Last Edit: January 09, 2021, 11:31:35 pm by S. Petrukhin »
And sorry for my English.
 

Offline BentaTopic starter

  • Super Contributor
  • ***
  • Posts: 5878
  • Country: de
Re: Signal naming styles in schematics
« Reply #3 on: January 09, 2021, 11:37:35 pm »
NRESET, etc. is standard, doesn't use special characters and conveys exactly the same information as RESET(L), ENABLE(H), LOAD(L)

What standard? Reference, please. And () are not special characters.
 

Offline BentaTopic starter

  • Super Contributor
  • ***
  • Posts: 5878
  • Country: de
Re: Signal naming styles in schematics
« Reply #4 on: January 09, 2021, 11:49:48 pm »
And personally, I don't see anything wrong with simultaneously specifying the name of the signal and its present position.
Do you have any arguments other than German pedantry and attention to detail? :)

To your last question: that my locale is Germany does not mean I'm German. Don't jump to conclusions.

Second: yes, there are good reasons for separating assertion (which is the function of the net) and assertion level (which is the logic voltage level of the signal).

Suppose your RESET signal passes through an inverter. Then it suddenly needs to be called NRESET. and after another inverter, it's RESET again.

RESET(H), RESET(L), RESET(H) solves this and makes the schematic much easier to read and analyse.

This concept of separating function and actual logic level is not only known from Fletcher, by the way.
 

Offline langwadt

  • Super Contributor
  • ***
  • Posts: 4427
  • Country: dk
Re: Signal naming styles in schematics
« Reply #5 on: January 09, 2021, 11:50:03 pm »
NRESET, etc. is standard, doesn't use special characters and conveys exactly the same information as RESET(L), ENABLE(H), LOAD(L)

What standard? Reference, please. And () are not special characters.

the ginormous amount of schematics and datasheets since the dawn of time that uses it. 

sure () is not "special" but they might have special meaning in other tools down the line






 
The following users thanked this post: Jacon

Offline langwadt

  • Super Contributor
  • ***
  • Posts: 4427
  • Country: dk
Re: Signal naming styles in schematics
« Reply #6 on: January 09, 2021, 11:52:56 pm »
And personally, I don't see anything wrong with simultaneously specifying the name of the signal and its present position.
Do you have any arguments other than German pedantry and attention to detail? :)

To your last question: that my locale is Germany does not mean I'm German. Don't jump to conclusions.

Second: yes, there are good reasons for separating assertion (which is the function of the net) and assertion level (which is the logic voltage level of the signal).

Suppose your RESET signal passes through an inverter. Then it suddenly needs to be called NRESET. and after another inverter, it's RESET again.

RESET(H), RESET(L), RESET(H) solves this and makes the schematic much easier to read and analyse.

This concept of separating function and actual logic level is not only known from Fletcher, by the way.

what difference does it make if NRESET changes to RESET, vs. RESET(L) changes to RESET(H) ?
 

Offline S. Petrukhin

  • Super Contributor
  • ***
  • Posts: 1146
  • Country: ru
Re: Signal naming styles in schematics
« Reply #7 on: January 09, 2021, 11:53:07 pm »
NRESET, etc. is standard, doesn't use special characters and conveys exactly the same information as RESET(L), ENABLE(H), LOAD(L)

What standard? Reference, please. And () are not special characters.

Same as uF.  :-//
Someone once used out of desperation and liked by almost everyone, which quickly came into use.
Clear without explanation, logical, convenient, but, of course, not yet issued by officials in the form of a large and muddy paper.  :)

And programmers write !Reset, or ~Reset, or not Reset, or not(Reset).

It became normal.  :) You understood nRESET, and I wouldn't understand reset (L). Spare my feelings.  :scared:
And sorry for my English.
 

Offline JohnnyMalaria

  • Super Contributor
  • ***
  • Posts: 1154
  • Country: us
    • Enlighten Scientific LLC
Re: Signal naming styles in schematics
« Reply #8 on: January 09, 2021, 11:54:57 pm »
NRESET, etc. is standard, doesn't use special characters and conveys exactly the same information as RESET(L), ENABLE(H), LOAD(L)

What standard? Reference, please. And () are not special characters.

"Standard" has a number of meanings, including something established by authority, custom, or general consent as a model or example. Prefixing a signal with N to indicate that the line needs to be pulled low has been done for decades. My first exposure to it was for a Z80. i.e., it is customary and, therefore, standard.

EDIT: Although the official Zilog documentation uses the "line-above-the-name" convention which, when you glance at the pinout diagram, very quickly reveals those signals that need to be pulled low. It also avoids the confusion with signals starting with N before modifying with an N-prefix. e.g, NMI.
« Last Edit: January 10, 2021, 12:05:48 am by JohnnyMalaria »
 

Offline S. Petrukhin

  • Super Contributor
  • ***
  • Posts: 1146
  • Country: ru
Re: Signal naming styles in schematics
« Reply #9 on: January 10, 2021, 12:03:45 am »
And personally, I don't see anything wrong with simultaneously specifying the name of the signal and its present position.
Do you have any arguments other than German pedantry and attention to detail? :)

To your last question: that my locale is Germany does not mean I'm German. Don't jump to conclusions.

Second: yes, there are good reasons for separating assertion (which is the function of the net) and assertion level (which is the logic voltage level of the signal).

Suppose your RESET signal passes through an inverter. Then it suddenly needs to be called NRESET. and after another inverter, it's RESET again.

RESET(H), RESET(L), RESET(H) solves this and makes the schematic much easier to read and analyse.

This concept of separating function and actual logic level is not only known from Fletcher, by the way.

German pedantry is a compliment. :) Being in German culture, you are probably exposed to it. this is a positive print.  :-+

I understand your idea not to change the name of the signal in whatever position it is. This is a perfectly understandable and good idea. But that is why they do not write NRESET, but write nReset/nRESET - the prefix is clearly shown. It is compact and does not risk suffering from gaps.

By the way, I remembered: even saw schemes with a similar designation under discussion. I didn't understand the letters in parentheses at the time, honestly.  :)
« Last Edit: January 10, 2021, 12:17:48 am by S. Petrukhin »
And sorry for my English.
 

Offline AlfBaz

  • Super Contributor
  • ***
  • Posts: 2184
  • Country: au
Re: Signal naming styles in schematics
« Reply #10 on: January 10, 2021, 12:39:38 am »
Pin names are already defined in the supplier datasheets, and it's a good idea to stick with those on the parts.
Some manufacturers name the pins based on the port number and then give a table listing alternate functions while others will name the pin with every function it can do.
What I've settled on is creating the original symbol with port name only such as PA0 PA1 etc. When placed on the schematic I name the net based on the alternate pin function used in that design
Quote
2: Indicate the assertion level. This I do by using this style: RESET(L), ENABLE(H), LOAD(L) etc. This indicates the assertion level without compromising the net's functional name.
Silicon suppliers tend to use either a "/" before a name (/RESET) or a bar above the name. I don't like this, as it mixes up assertion with signal level.

Examples of bad names are NRESET, NOT_RESET, NO_CLK etc.
Why? Because they describe what a net does NOT do. So how do I know what it DOES do?
Active High and Active Low signals are one of the first things taught in digital electronics. It's well established in most text books and in most schematics that an undecorated name is active high and one decorated with N, / or overbar is active low.
The examples of bad names you gave tell ME exactly what they do AND how they do it
 

Offline JohnnyMalaria

  • Super Contributor
  • ***
  • Posts: 1154
  • Country: us
    • Enlighten Scientific LLC
Re: Signal naming styles in schematics
« Reply #11 on: January 10, 2021, 03:54:00 am »
NRESET, etc. is standard, doesn't use special characters and conveys exactly the same information as RESET(L), ENABLE(H), LOAD(L)

What standard? Reference, please. And () are not special characters.

Well, good luck when you start to write any software to control your hardware and you want to use variable names the same as the signal names. Which would cause problems: NRESET or RESET(L)?
 
The following users thanked this post: Jacon

Offline SVFeingold

  • Frequent Contributor
  • **
  • Posts: 260
  • Country: us
Re: Signal naming styles in schematics
« Reply #12 on: January 10, 2021, 05:30:34 am »
Silicon suppliers tend to use either a "/" before a name (/RESET) or a bar above the name. I don't like this, as it mixes up assertion with signal level.

Not sure I understand this part. I personally do the bar above the name. Its explicit purpose is to define the signal level, no? ENABLE with a bar means "enable when low." Without a bar means "enable when high." Seems perfectly straightforward to me. Am I misunderstanding something?
 
The following users thanked this post: Siwastaja, tooki, Jacon

Offline ledtester

  • Super Contributor
  • ***
  • Posts: 3036
  • Country: us
Re: Signal naming styles in schematics
« Reply #13 on: January 10, 2021, 05:50:06 am »
I suppose you could try to satisfy everybody...

$$
\text{/n}\overline{\text{RESET}}\text{(L)}
$$
 
The following users thanked this post: Siwastaja, tooki, SVFeingold, Jacon, S. Petrukhin, rHermes

Offline langwadt

  • Super Contributor
  • ***
  • Posts: 4427
  • Country: dk
Re: Signal naming styles in schematics
« Reply #14 on: January 10, 2021, 06:07:01 am »
I suppose you could try to satisfy everybody...

$$
\text{/n}\overline{\text{RESET}}\text{(L)}
$$

some put the n at the end :P
 

Offline S. Petrukhin

  • Super Contributor
  • ***
  • Posts: 1146
  • Country: ru
Re: Signal naming styles in schematics
« Reply #15 on: January 10, 2021, 10:19:52 am »
Silicon suppliers tend to use either a "/" before a name (/RESET) or a bar above the name. I don't like this, as it mixes up assertion with signal level.

Not sure I understand this part. I personally do the bar above the name. Its explicit purpose is to define the signal level, no? ENABLE with a bar means "enable when low." Without a bar means "enable when high." Seems perfectly straightforward to me. Am I misunderstanding something?

The bar above the name is difficult to reproduce in the description text - ordinary text editors have no desire to help you with this. And when programming, if it's a digital circuit, you'll have a hard time specifying variable names that match the pin names.
And sorry for my English.
 

Offline S. Petrukhin

  • Super Contributor
  • ***
  • Posts: 1146
  • Country: ru
Re: Signal naming styles in schematics
« Reply #16 on: January 10, 2021, 10:33:27 am »
I suppose you could try to satisfy everybody...

$$
\text{/n}\overline{\text{RESET}}\text{(L)}
$$

And sorry for my English.
 

Offline tooki

  • Super Contributor
  • ***
  • Posts: 11561
  • Country: ch
Re: Signal naming styles in schematics
« Reply #17 on: January 10, 2021, 02:39:33 pm »
I suppose you could try to satisfy everybody...

$$
\text{/n}\overline{\text{RESET}}\text{(L)}
$$
FTFY:$$
\text{!/n}\overline{\text{RESET}}\text{(L)}
$$
 

Offline tooki

  • Super Contributor
  • ***
  • Posts: 11561
  • Country: ch
Re: Signal naming styles in schematics
« Reply #18 on: January 10, 2021, 02:42:37 pm »
Silicon suppliers tend to use either a "/" before a name (/RESET) or a bar above the name. I don't like this, as it mixes up assertion with signal level.
How do you figure? It's telling you that it's active low. What do you even mean by "signal level"??
 

Offline nigelwright7557

  • Frequent Contributor
  • **
  • Posts: 690
  • Country: gb
    • Electronic controls
Re: Signal naming styles in schematics
« Reply #19 on: January 10, 2021, 02:56:14 pm »
NRESET, etc. is standard, doesn't use special characters and conveys exactly the same information as RESET(L), ENABLE(H), LOAD(L)

On PIC's I use /MCLR VCC AND VDD
These are as datasheet as pin names.


 

Offline S. Petrukhin

  • Super Contributor
  • ***
  • Posts: 1146
  • Country: ru
Re: Signal naming styles in schematics
« Reply #20 on: January 10, 2021, 05:59:55 pm »
I suppose you could try to satisfy everybody...

$$
\text{/n}\overline{\text{RESET}}\text{(L)}
$$
FTFY:$$
\text{!/n}\overline{\text{RESET}}\text{(L)}
$$

$$
\text{~!/n}\overline{\text{ReseT}}\text{n\!~(L)}
$$
« Last Edit: January 10, 2021, 06:02:18 pm by S. Petrukhin »
And sorry for my English.
 
The following users thanked this post: tooki

Offline tggzzz

  • Super Contributor
  • ***
  • Posts: 19517
  • Country: gb
  • Numbers, not adjectives
    • Having fun doing more, with less
Re: Signal naming styles in schematics
« Reply #21 on: January 10, 2021, 08:52:37 pm »
This convention is not invented by me, but was taught in university based on this brilliant gentleman's book:

https://www.amazon.com/Engineering-Approach-Digital-Design/dp/B001947XOC

Fletcher's book is indeed excellent.

Consider a TTL IC where an input has to be held at 0V in order to reset the IC. That could be represented by either of:
  • the name "RESET" inside the IC outline, with a negating "O" outside the IC outline
  • the name "NRESET" or similar inside the IC outline, without a negating "O" outside the IC outline
Personally I prefer the former.

That technique can also be used when using the deMorgan equivalents of NAND, NOR, AND, OR gates, in order to visually "remove" the active low etc.

Of course, active low inputs are predominately an artifact of TTL logic which ahd asymmetrical logic levels and strengths, where pull-down was stronger than pull-up. Moder CMOS logic is symmetrical, so the benefit of having an active low input is moot.
There are lies, damned lies, statistics - and ADC/DAC specs.
Glider pilot's aphorism: "there is no substitute for span". Retort: "There is a substitute: skill+imagination. But you can buy span".
Having fun doing more, with less
 

Offline S. Petrukhin

  • Super Contributor
  • ***
  • Posts: 1146
  • Country: ru
Re: Signal naming styles in schematics
« Reply #22 on: January 10, 2021, 09:06:00 pm »
This convention is not invented by me, but was taught in university based on this brilliant gentleman's book:

https://www.amazon.com/Engineering-Approach-Digital-Design/dp/B001947XOC

Fletcher's book is indeed excellent.

Consider a TTL IC where an input has to be held at 0V in order to reset the IC. That could be represented by either of:
  • the name "RESET" inside the IC outline, with a negating "O" outside the IC outline
  • the name "NRESET" or similar inside the IC outline, without a negating "O" outside the IC outline
Personally I prefer the former.

That technique can also be used when using the deMorgan equivalents of NAND, NOR, AND, OR gates, in order to visually "remove" the active low etc.

Of course, active low inputs are predominately an artifact of TTL logic which ahd asymmetrical logic levels and strengths, where pull-down was stronger than pull-up. Moder CMOS logic is symmetrical, so the benefit of having an active low input is moot.

Yes, in TTL the flying input has state 1, in CMOS it is an undefined state. But the negation of the RESET signal, as I think, has a different origin, logical. This is also used in industrial automation: all readiness signals and emergency sensors must explicitly give a value of 1 in the normal state, and in the event of an accident, give 0.
And sorry for my English.
 

Offline langwadt

  • Super Contributor
  • ***
  • Posts: 4427
  • Country: dk
Re: Signal naming styles in schematics
« Reply #23 on: January 10, 2021, 09:12:20 pm »
This convention is not invented by me, but was taught in university based on this brilliant gentleman's book:

https://www.amazon.com/Engineering-Approach-Digital-Design/dp/B001947XOC

Fletcher's book is indeed excellent.

Consider a TTL IC where an input has to be held at 0V in order to reset the IC. That could be represented by either of:
  • the name "RESET" inside the IC outline, with a negating "O" outside the IC outline
  • the name "NRESET" or similar inside the IC outline, without a negating "O" outside the IC outline
Personally I prefer the former.

That technique can also be used when using the deMorgan equivalents of NAND, NOR, AND, OR gates, in order to visually "remove" the active low etc.

Of course, active low inputs are predominately an artifact of TTL logic which ahd asymmetrical logic levels and strengths, where pull-down was stronger than pull-up. Moder CMOS logic is symmetrical, so the benefit of having an active low input is moot.

Yes, in TTL the flying input has state 1, in CMOS it is an undefined state. But the negation of the RESET signal, as I think, has a different origin, logical. This is also used in industrial automation: all readiness signals and emergency sensors must explicitly give a value of 1 in the normal state, and in the event of an accident, give 0.

for reset it also makes sense to have things held in reset during powerup

 

Offline dmills

  • Super Contributor
  • ***
  • Posts: 2093
  • Country: gb
Re: Signal naming styles in schematics
« Reply #24 on: January 10, 2021, 09:51:35 pm »
Personally for me, nReset and Reset are DIFFERENT nets (possibly with an inverter between them, possibly being driven by two pins on an FPGA to save on the external inverter, whatever), and as such absolutely must have different names.

nReset, Reset_n, /Reset, I know what they all mean and there is useful information in that negation when I am poking around someone else's design or doing review.

The bigger question is what do we do about different logic levels? I like MOSI_1V8 and MOSI_3V3 for example, but other opinions would be appreciated.

Speaking of SPI, this is one place where I often do NOT follow the datasheet pin naming, SDO for example, is depending on which device, either MISO or MOSI, (Or whatever the yanks will tell me I should be using to avoid giving offence) naming that net SDO is just asking for trouble.
Note that sometimes the CAD tools impose requirements, Altium for example likes _P,_N on the end of differential pairs and will bitch if not present.

Net names should give clarity to designs, anything that does not make the ting easier to follow is to be avoided.
That style of schematic with the little stubs of net names and no actual connectivity drawn has to die, it is impossible to follow.
 

Offline tggzzz

  • Super Contributor
  • ***
  • Posts: 19517
  • Country: gb
  • Numbers, not adjectives
    • Having fun doing more, with less
Re: Signal naming styles in schematics
« Reply #25 on: January 10, 2021, 10:03:11 pm »
The bigger question is what do we do about different logic levels? I like MOSI_1V8 and MOSI_3V3 for example, but other opinions would be appreciated.

That sounds like you are confusing analogue voltages with digital signals.
There are lies, damned lies, statistics - and ADC/DAC specs.
Glider pilot's aphorism: "there is no substitute for span". Retort: "There is a substitute: skill+imagination. But you can buy span".
Having fun doing more, with less
 

Offline dmills

  • Super Contributor
  • ***
  • Posts: 2093
  • Country: gb
Re: Signal naming styles in schematics
« Reply #26 on: January 11, 2021, 01:17:48 pm »
You are very lucky these days if your digital signals are all one logic level for high.

My current design has 1.5V (40R terminated, DDR3 Data and address), 1.5V differential (DDR Clocks), 80 ohm terminated, USB (90 ohm lines), LVDS (100R diff pairs), 1.8V LVCMOS, 2.5V LVCMOS, 3.3V LVCMOS, some 5V doings, some 12Gb/s CML down at the 1V common mode and a few hundred mV signal level, and that is before we get to the nominally 'analogue' doings (All the fast stuff is functionally analogue, if you have to look at eye diagrams then it is analogue design).

FPGA Projects be like that.

The days when all logic had the same reference voltage are LONG GONE, that basically never happens to me on work projects these days and annotating nets with expected voltage is valuable at review time for making checking easier.


 
The following users thanked this post: tooki

Offline richard.cs

  • Super Contributor
  • ***
  • Posts: 1191
  • Country: gb
  • Electronics engineer from Southampton, UK.
    • Random stuff I've built (mostly non-electronic and fairly dated).
Re: Signal naming styles in schematics
« Reply #27 on: January 11, 2021, 01:27:57 pm »
No mention of directionality yet? At work we've started naming UART signals with things like "uC_TX_ext_RX", "uC_RX_ext_TX", "Modem_TX_Controller_RX" because too many instances of TX/RX crossovers escaped review, and many of the micros we use don't allow us to fix it by switching around in software. It seems to have helped, fewer screwups since.
 
The following users thanked this post: tooki

Offline dmills

  • Super Contributor
  • ***
  • Posts: 2093
  • Country: gb
Re: Signal naming styles in schematics
« Reply #28 on: January 11, 2021, 01:34:40 pm »
RS232 is a hot mess for that, the whole DCE/DTE thing.
But that is why in my view SDO and SDI are right out and MOSI and MISO in for SPI, been bitten by a contractor.

Regards, Dan.
 
The following users thanked this post: tooki

Offline richard.cs

  • Super Contributor
  • ***
  • Posts: 1191
  • Country: gb
  • Electronics engineer from Southampton, UK.
    • Random stuff I've built (mostly non-electronic and fairly dated).
Re: Signal naming styles in schematics
« Reply #29 on: January 11, 2021, 01:41:05 pm »
But that is why in my view SDO and SDI are right out and MOSI and MISO in for SPI, been bitten by a contractor.
Yes, I think it was that SPI naming convention that inspired the UART one.
 

Offline tggzzz

  • Super Contributor
  • ***
  • Posts: 19517
  • Country: gb
  • Numbers, not adjectives
    • Having fun doing more, with less
Re: Signal naming styles in schematics
« Reply #30 on: January 11, 2021, 02:41:24 pm »
You are very lucky these days if your digital signals are all one logic level for high.

My current design has 1.5V (40R terminated, DDR3 Data and address), 1.5V differential (DDR Clocks), 80 ohm terminated, USB (90 ohm lines), LVDS (100R diff pairs), 1.8V LVCMOS, 2.5V LVCMOS, 3.3V LVCMOS, some 5V doings, some 12Gb/s CML down at the 1V common mode and a few hundred mV signal level, and that is before we get to the nominally 'analogue' doings (All the fast stuff is functionally analogue, if you have to look at eye diagrams then it is analogue design).

FPGA Projects be like that.

The days when all logic had the same reference voltage are LONG GONE, that basically never happens to me on work projects these days and annotating nets with expected voltage is valuable at review time for making checking easier.

I understand where you are coming from, but if you go in that direction where do you stop? 50ohm, differential, terminations...

Presuming the tool allows it, I would prefer to set a net's attribute to indicate voltage. That might enable further automated DRC.

Failing that, I'd stick a comment on the schematic.
There are lies, damned lies, statistics - and ADC/DAC specs.
Glider pilot's aphorism: "there is no substitute for span". Retort: "There is a substitute: skill+imagination. But you can buy span".
Having fun doing more, with less
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 7770
  • Country: de
  • A qualified hobbyist ;)
Re: Signal naming styles in schematics
« Reply #31 on: January 11, 2021, 03:18:00 pm »
2: Indicate the assertion level. This I do by using this style: RESET(L), ENABLE(H), LOAD(L) etc. This indicates the assertion level without compromising the net's functional name.

Don't forget to add a legend explaining that naming convention to prevent any confusion. ;)
 

Offline dmills

  • Super Contributor
  • ***
  • Posts: 2093
  • Country: gb
Re: Signal naming styles in schematics
« Reply #32 on: January 11, 2021, 03:40:30 pm »

I understand where you are coming from, but if you go in that direction where do you stop? 50ohm, differential, terminations...
Presuming the tool allows it, I would prefer to set a net's attribute to indicate voltage. That might enable further automated DRC.

Failing that, I'd stick a comment on the schematic.
My usual practise is that everything gets a net class that deals with the impedance and such, and that I don't designate voltage on things like LVDS or DDR3 when it ought to be clear from the context.

Things like SPI, I2C, and other random LVCMOS stuff however do get the voltage tacked on, especially if a port name heading off to another page or such where notes on the originating page may not be remembered.

There is little point in getting dogmatic about any of this stuff, you can wind up so far down the 'coding standard' rabbit hole that you stop asking the two questions that really matter : Does it make the intent clearer for the next guy (Or me in a year), and does it help the reviewers to spot errors? Consistency is nice, but those two questions are the IMPORTANT ones. 

Regards, Dan.
 

Offline tggzzz

  • Super Contributor
  • ***
  • Posts: 19517
  • Country: gb
  • Numbers, not adjectives
    • Having fun doing more, with less
Re: Signal naming styles in schematics
« Reply #33 on: January 11, 2021, 04:01:28 pm »
There is little point in getting dogmatic about any of this stuff, you can wind up so far down the 'coding standard' rabbit hole that you stop asking the two questions that really matter : Does it make the intent clearer for the next guy (Or me in a year), and does it help the reviewers to spot errors? Consistency is nice, but those two questions are the IMPORTANT ones. 

Very true :)

To a large extent it is a matter of taste, and what is tasteful here isn't necessarily tasteful there.

"A foolish consistency is the hobgoblin of a little mind" - Ralph Waldo Emerson.
There are lies, damned lies, statistics - and ADC/DAC specs.
Glider pilot's aphorism: "there is no substitute for span". Retort: "There is a substitute: skill+imagination. But you can buy span".
Having fun doing more, with less
 

Offline emece67

  • Frequent Contributor
  • **
  • !
  • Posts: 614
  • Country: 00
Re: Signal naming styles in schematics
« Reply #34 on: January 11, 2021, 04:11:28 pm »
.
« Last Edit: August 19, 2022, 04:09:32 pm by emece67 »
 

Offline nigelwright7557

  • Frequent Contributor
  • **
  • Posts: 690
  • Country: gb
    • Electronic controls
Re: Signal naming styles in schematics
« Reply #35 on: March 26, 2021, 11:38:27 pm »
The biggest danger of using net names is accidentally duplicating one.
I try to draw gates fairly close so I just run the nets without a name.
This changes with things like GND and VCC when I just use net name tags.


 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf