help-gnucap
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gnucap] gnucap with verilog-ams netlist input


From: al davis
Subject: Re: [Help-gnucap] gnucap with verilog-ams netlist input
Date: Sun, 25 Jan 2009 12:53:27 -0500
User-agent: KMail/1.9.9

On Sunday 25 January 2009, John Griessen wrote:
> How do I connect a gnucap internal capacitor model to this
> netlist generated by gnetlist -g verilog?

some things don't work yet.

> /* structural Verilog generated by gnetlist */
> /* WARNING: This is a generated file, edits */
> /*        made here will be lost next time  */
> /*        you run gnetlist!                 */
> /* Id ..........$Id$ */
> /* Source.......$Source$ */
> /* Revision.....$Revision$ */
> /* Author.......$Author$ */

like /* */ comments
>
> module verilog_io (    GND ,    C ,    A  );

> /* Port directions begin here */
> inout GND ;
> inout C ;
> inout A ;

declarations don't work.
In real Verilog, they are optional if only structure is used.
"inout" and "electrical" are assumed,
but really they are only used for type checking.

> /* Package instantiations */
> cap #(.value(1250e-9) ) C1 ( .p(B), .n(GND));

It's "capacitor" and the name of the value is "c".

> ind #(.l(.001) ) L1 ( .n(C), .p(B));
"inductor", the name of the value is "l". (lower case..)

> res #(.r(1000) ) R1 ( .n(B), .p(A));
"resistor", the name of the value is "r".

> endmodule

If there is only one number that is thought of as the "value", 
you can specify it with name.

capacitor #(1u) C4 (f,r);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]