X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-TCPREMOTEIP: 63.119.35.194 X-Authenticated-UID: jpd AT noqsi DOT com Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: [geda-user] netlisting libraries (was: memory planning and pcb file format) From: John Doty In-Reply-To: <55DDCF2E.6070505@ecosensory.com> Date: Wed, 26 Aug 2015 12:21:43 -0400 Message-Id: <6CBA9A3C-526A-4364-9E70-83A910349E14@noqsi.com> References: <20150824223846 DOT 0ba61ba7 AT jive DOT levalinux DOT org> <55DBA2B7 DOT 1080501 AT ecosensory DOT com> <55DC31E0 DOT 9050606 AT jump-ing DOT de> <20150825215611 DOT 1794b153c4160dddb739b6d3 AT gmail DOT com> <55DDCF2E DOT 6070505 AT ecosensory DOT com> To: geda-user AT delorie DOT com X-Mailer: Apple Mail (2.1878.6) Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t7QGMUqG020090 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 26, 2015, at 10:37 AM, John Griessen wrote: > Think of the non-standard use case of creating a FPGA schematic that replaces a discrete logic chunk > with a module that is only in verilog: > Save the discrete logic to a new sch file, create a symbol for the verilog chunk, For SPICE, using gnet-spice-noqsi, it would be the same symbol for the model and the schematic. The choice would be which subcircuit file you include in the simulation. > connect up after deleting the discrete logic, generate a new netlist. Generate a new netlist for the > discrete part. > > Now you want to check things. This is all new code for future. > 1. generate a simulatable verilog-ams netlist from the verilog chunk. > 2. create a simulation version schematic and generate simulatable verilog-ams netlist from the top interconnect. Why a simulation version of the schematic? You may need a separate schematic as a simulation “test fixture”, but your simulation netlister should be able to handle an ordinary schematic, with appropriate simulation attributes, as input. Since gnetlist back ends generally ignore attributes they don’t recognize, that isn’t much of a problem. The overloading of pinseq is really the only one I’ve found troublesome, so gnet-spice-noqsi gives you other ways to handle slotted devices. > 3. concatenate and simulate together > 4. create a simulation version schematic and generate simulatable verilog-ams netlist from the discrete logic. > concatenate discrete logic verilog-ams netlist and verilog-ams netlist from the top interconnect. > 5. They should be equal. I’ve done similar things comparing SPICE subcircuits extracted from IC layout to SPICE subcircuits generated from schematics. There’s no barrier to doing this. John Doty Noqsi Aerospace, Ltd. http://www.noqsi.com/ jpd AT noqsi DOT com