hneemann / Digital

A digital logic designer and circuit simulator.
GNU General Public License v3.0
4.43k stars 445 forks source link

Improved graphical distinction of wires and buses. #21

Closed hneemann closed 7 years ago

hneemann commented 7 years ago

One should clearly see if a connection is a simple wire or a bus. Color discrimination is not sufficient. Maybe one could draw several parallel lines?

hneemann commented 7 years ago

This seems hard to implement because in draw mode there is no information about the number of bits on the wire. Only if a model is created and the model is running, the number of bits is available. And if the model is running there is already a special color indicating a bus (blue). Also a wire can not have a state, because wires are something very fluent. Wire objects are merged and replaced by other wire objects all the time. So its hard to keep the bit number from the past model run. Also this approach will led to an inconsistent drawing sooner or later. The only thing I can do is to change the visual representation in run mode. Does this make sense? It does not help while drawing the schematic.

hneemann commented 7 years ago

@engstad: I played a bit with the buses: Drawing two parallel lines as suggested looks awful: Two thick lines make the buses looking extremly wide which does not work well with the pins, drawing two thiner lines makes them appear less important. Also increasing the width does not work well with the pins. As long as no one has a really good idea, I'll leave it as it is.

engstad commented 7 years ago

Interesting. I suppose you would also have to add thick bus input and output lines for it to look good.

Is another possibility to do "cross-marks" like you see sometimes on schematics?

Finally, you could go the Kicad route, by marking them in dark blue.