delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2022/09/10/20:08:43

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.7+dev
X-Exmh-Isig-CompType: comp
X-Exmh-Isig-Folder: geda
From: "karl AT aspodata DOT se [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
To: geda-user AT delorie DOT com
Subject: [geda-user] Hierarchical pcb design
Mime-Version: 1.0
Message-Id: <20220910234819.6013F8071ECF@turkos.aspodata.se>
Date: Sun, 11 Sep 2022 01:48:19 +0200 (CEST)
X-Virus-Scanned: ClamAV using ClamSMTP
Reply-To: geda-user AT delorie DOT com

 At the schematic level designing with subsheets is established.
I want to make that possible at the pcb level also.

By comparing net-files for the whole design and the net-file
for a subsheet (as if it was the complete design), I realise
that what is need to make this happen is to prepend the refdes's
of the elements in the sub pcbs, rm their netlist() since the
net file for the complete design contains the nets for all sub
designs.

 For example:
tot.sch contains a src symbol with refdes=s and source=sub.sch

Run lepton-sch2pcb/gsch2pcb as usual but on sub.sch,
make a sub.pcb which realises the design in sub.sch.
Prepare the sub.pcb by running ([1])
pcb_shrink.pl refdes the.pcb > new_file.pcb, e.g.
pcb_shrink.pl s sub.pcb > ssub.pcb

Now run sch2pcb on tot.sch
Open tot.pcb with pcb, load layout -> ssub.pcb and place it somewhere
load layout -> tot.new.pcb, load net file etc.

Seems to work fine, except the when I load the ssub.pcb it is upside
down in the buffer.

///

pcb_shrink.pl removes symbol[] and netlist() from the orig file,
and adds the given refdes as a prefix on all elements in sub.pcb.

This code is just a prototype for a proof of concept, it isn't
final in any way.

I'd like this functionality to be included in resp. upstream
repo. If anyone is interested I'll make a example design for
this.

What is missing is the ability to cut/copy to buffer and move
the whole buffer to the other side of the board. Do anyone
know if that already is implemented ?

Regards,
/Karl Hammar

[1] http://aspodata.se/git/openhw/bin/pcb_shrink.pl


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019