File: dummy.va

package info (click to toggle)
adms 2.3.7-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,592 kB
  • sloc: xml: 7,167; perl: 4,866; ansic: 3,147; lex: 1,128; yacc: 691; sh: 323; makefile: 110
file content (26 lines) | stat: -rw-r--r-- 573 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// DUMMY EXAMPLE
//
// example and test verilog file for use with adms
//
`include"discipline.h"
module dummy(p,q);
 inout  p,q;
 // external nodes
 (* desc="+ node"*) electrical p;
 (* desc="- node"*) electrical q;
// Branch definitions
 branch (q ,q)  pq;   //           branch from p to q
// Parameter definitions
 (* desc="resistance value" unit="Ohm" *)
 parameter real R =  1.0;
// Variable definitions
 (* desc="clamped conductance value" unit="1/Ohm" *)
 real g;
 analog
 begin
   begin
    g = (R>0.1) ? 1.0/R : 10.0;
    I(p,q) <+ g*V(p,q);
   end
 end
endmodule