delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2013/08/17/12:11:05

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-TCPREMOTEIP: 207.224.51.38
X-Authenticated-UID: jpd AT noqsi DOT com
Mime-Version: 1.0 (Apple Message framework v1085)
Subject: Re: [geda-user] Include VHDL code in sym file?
From: John Doty <jpd AT noqsi DOT com>
In-Reply-To: <520F96F1.2090304@iae.nl>
Date: Sat, 17 Aug 2013 10:10:37 -0600
Message-Id: <F4EF3868-82D8-4F4F-B060-A5B0498D1EC9@noqsi.com>
References: <520F96F1 DOT 2090304 AT iae DOT nl>
To: geda-user AT delorie DOT com
X-Mailer: Apple Mail (2.1085)
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id r7HGAjN1017308
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Aug 17, 2013, at 9:29 AM, myken wrote:

> Hello all,
> 
> Is it possible to include VHDL code in the sym file or attach it through an external file?

Sure. Just stick it in an attribute.

> I like to use gschem to make a top level design and include some VHDL blocks. After that I will generate the VHDL code through gnetlist. It would be nice if I could include some VHDL code which will also be include in the code generated by gnetlist.

I don't know how the vhdl back end for gnetlist works. However, my experimental SPICE back end at https://github.com/noqsi/gnet-spice-noqsi processes symbol attributes (spice-prototype and file) as well as toplevel attributes (spice-prolog and spice-epilog) to create arbitrary SPICE code output. It processes these through a simple macro expander, so they can refer to other attributes and net/pin connections. This might be an approach you could use for VHDL as well.

John Doty              Noqsi Aerospace, Ltd.
http://www.noqsi.com/
jpd AT noqsi DOT com



- Raw text -


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