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 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1085) Subject: Re: [geda-user] Include VHDL code in sym file? From: John Doty In-Reply-To: <520F96F1.2090304@iae.nl> Date: Sat, 17 Aug 2013 10:10:37 -0600 Message-Id: References: <520F96F1 DOT 2090304 AT iae DOT nl> To: geda-user AT delorie DOT com X-Mailer: Apple Mail (2.1085) Content-Transfer-Encoding: 8bit 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 Precedence: bulk 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