delorie.com/archives/browse.cgi   search  
Mail Archives: geda-help/2015/06/28/07:16:25

X-Authentication-Warning: delorie.com: mail set sender to geda-help-bounces using -f
X-Recipient: geda-help AT delorie DOT com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=date:from:to:subject:message-id:mail-followup-to:references
:mime-version:content-type:content-disposition:in-reply-to
:user-agent;
bh=Nmrnz7rlP2JvWH2jxQa4PezP3VooCO36uaE4tzQ3rE4=;
b=PpV8VoCbcTar3Je5pqRePu/kSo12HAZAz5JJidk7J/CUYFllzP31gCkitWNEfs/jqi
UHx27pFCz4LZhD0GXjWJx2yUC+7EjgaCIUyQZ215a1YfnDl+nIzjcWOlTxskJQh6yC+2
QpDSOQi9lt5yAbW4+qcEgO2ZdG4y+R1HVA3dmyNV7x+I/ChDwShksVRrlAjtT4AnTktm
66jWHPwU8UpDKaMCK8wjbD3sM9lzHjU6likQPaCDtgN3mR2/s72G8DUDkiozO504YUt8
/2ylzwem6s92yqFErxXWNI6Num1zBwe1D90B/E5GBQD1g1vmyeiiZluz0LfTSRNSDQ9q
teMg==
X-Received: by 10.152.6.1 with SMTP id w1mr9313429law.91.1435490151486;
Sun, 28 Jun 2015 04:15:51 -0700 (PDT)
Date: Sun, 28 Jun 2015 14:15:48 +0300
From: "Vladimir Zhbanov (vzhbanov AT gmail DOT com)" <geda-help AT delorie DOT com>
To: geda-help AT delorie DOT com
Subject: Re: [geda-help] Double file inclusion with spice-sdb backend
Message-ID: <20150628111548.GA23984@localhost.localdomain>
Mail-Followup-To: geda-help AT delorie DOT com
References: <CAMonFrTvtcfpcFeb+VZ5yNF=Hn+nOfZmG6c0UuvODcSULa-LPQ AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <CAMonFrTvtcfpcFeb+VZ5yNF=Hn+nOfZmG6c0UuvODcSULa-LPQ@mail.gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Reply-To: geda-help AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-help AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Sun, Jun 28, 2015 at 10:38:07AM +0200, Andrea D'Amore (and DOT damore AT gmail DOT com) wrote:
> Hello,
> including a file that contains a .model directive using a
> spice-include symbol in gschem and then exporting the netlist using
> gnetlist's spice-sdb backend results in a netlist where the included
> file is present twice.
> 
> Is this an intended behavior or a bug? If the former, what's the
> rationale for that?
> 
> Here's a SSCCE to reproduce the issue, include-test.sch:
> 
>     v 20130925 2
>     C 45200 52200 1 0 0 spice-directive-1.sym
>     {
>     T 45300 52500 5 10 0 1 0 0 1
>     device=directive
>     T 45300 52600 5 10 1 1 0 0 1
>     refdes=A1
>     T 45300 52300 5 10 1 0 0 0 1
>     file=include-test.sim
>     }
> 
> and include-test.sim:
> 
>    V1 0 1 5
>    .model MOSN NMOS
> 
> Save the schematic and then run
> 
>     gnetlist -g spice-sdb -o include-test.cir include-test.sch
> 
> 
> The resulting include-test.cir file, removing some comment line, is:
> 
>     * gnetlist -v -g spice-sdb -o include-test.cir include-test.sch
>     *vvvvvvvv  Included SPICE model from include-test.sim vvvvvvvv
>     V1 0 1 5
>     .model MOSP PMOS
>     *^^^^^^^^  End of included SPICE model from include-test.sim ^^^^^^^^
>     *
>     *==============  Begin SPICE netlist of main design ============
>     *vvvvvvvv  Included SPICE model from include-test.sim vvvvvvvv
>     V1 0 1 5
>     .model MOSP PMOS
>     *^^^^^^^^  End of included SPICE model from include-test.sim ^^^^^^^^
>     *
>     .end
> 
> see how the file is present twice.

Yes, I see it.

Could you file a bug report on launchpad [1], please?

Thanks,
  Vladimir

[1] http://wiki.geda-project.org/geda:howto_report_bugs

- Raw text -


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