gsch2pcb work <--> lepton-sch2pcb does not, different netlists #528
Comments
|
@nik570, |
|
On Wed, 18 Dec 2019 13:21:23 -0800 Vladimir Zhbanov ***@***.***> wrote:
@nik570,
A little example schematic would be very handy for us in order to solve your issue.
Thanks in advance.
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#528 (comment)
Searched and did not find anywhere to put example schematic, found button with funny looking faces. Sent attached files to geda-user mailing list a few hours ago, example was not so small and are not certain it work without symbols/packages.
Regards Nicklas Karsson
|
|
@nik570 At the bottom of the box where you write a comment, there is text |
|
Nicklas, I haven't seen any attachments in your posts on geda-user, sorry. |
|
Example files attached, missed the text on bottom and got distracted by the funny looking figures. File formats .sch .sym .net .pcb does not however seem to be supported, added them, lines where added then looking into the message only blank lines, tried pdf without pressing the button and it seems to stick. |
|
@nik570 Supported file extensions are listed in the drop-down box of the |
|
test_sch2pcb.zip |
|
Think I nailed the problem to several layers of hierarchy. gsch2pcb work with several layers of hierarchy while lepton-sch2pcb work only with single layer of hierarchy. Same schematic but layers further down is not connected. |
|
@nik570, Thank you for your report! |
|
Embedded symbols and added symbols in separate file in case I missed some. If I know about it embedding had been a better option from start then updated could be done then decided and no symbols will be missing. stepperSym.zip Karl Aspo Data also provided me a working example with multiple levels of hierarchy there net attribute had been use. Though I still consider it a problem gsch2pcb work with several layers of attribute but lepton-sch2pcb only work with a single layer then refdes is used and guess it is not supposed to be like this. |
|
Nicklas, I cannot promise I'll look into the issue just now, I'll have holidays and am going to go to my mother who lives far away from me, so I'm going to look into it after my holidays, sorry. Happy New Year! |
|
Nicklas, I cannot promise I'll look into the issue just now, I'll have holidays and am going to go to my mum, so I'm going to look into it after my holidays, sorry. Happy New Year!
Of course not, you have no obligations to do anything. I have to be grateful for anything that get done.
|
|
@nik570
The hierarchy will look like this: Main schematic: First sub-schematic: Second sub-schematic:
[gnetlist.hierarchy]
mangle-net-attribute=false
mangle-netname-attribute=false
mangle-refdes-attribute=falseThen we run $ lepton-netlist -o - -g PCB main.sch
GND R3-2 V1-2 V2-2
base Q1-2 R1-2
csin R1-1 V2-1
emitter Q1-3 R2-1
mid R2-2 R3-1
vcc Q1-1 V1-1It looks like a correct netlist. Now try $ lepton-sch2pcb project.sch2pcbAnd, sure enough, if we can produce a correct netlist, there will be So, |
|
2. `lepton-sch2pcb` has nothing to do with errors in generated netlists.
As can be seen in its [man page](https://graahnul-grom.github.io/ref-man/lepton-sch2pcb.html),
it only invokes the netlister program three times to produce appropriate
files that can be read by the `pcb` layout editor.
Well lepton-sch2pcb is what I use and I know it call lepton-netlist to get work done.
3. Wherever the actual problem is, in situation where we want to discover
whether a particular tool do perform correctly a certain task, it's much
better to design a test case (as simple as possible) and do not try to find
where and why it misbehaves in large, complex projects.
Inded but as someone asked and time was limited I used what I had at hand.
4. Having said that, I propose to check whether `lepton-netlist` supports
more than two levels of hierarchy (IIUC, that is your problem, isn't it?).
...
[hier2nick.tar.gz](https://github.com/lepton-eda/lepton-eda/files/4021032/hier2nick.tar.gz)
Yes this one work. I have also concluded for my schematic there is a difference between gsch2pcb and lepton-sch2pcb and lepton-sch2pcb work with one layer of hierachy, will try to nail it further with a more simple example.
|
|
@graahnul-grom, @nik570, |
|
@nik570, |






Then working with a schematic with hierarchy I have discovered gsch2pcb work but then using leptong-sch2pcb net name is not propagated down in hierarchy and there is no warning.
The text was updated successfully, but these errors were encountered: