Small enhancements for Spice reader

- Detects recursive subcircuit calls now
- Dismisses empty top level circuit which happened to be created
  when there were not top level elements and control statements
  were present (such as .param)
This commit is contained in:
Matthias Koefferlein
2024-04-18 21:27:09 +02:00
parent e8ecaa6472
commit cba126e9ee
6 changed files with 85 additions and 1 deletions
+14
View File
@@ -0,0 +1,14 @@
* Testing recursive call detection
.subckt c1 a b
x1 a b c2
.end
.subckt c2 a b
x1 a b c1
.ends
xtop vdd vss c2
.end
+11
View File
@@ -0,0 +1,11 @@
* Test: dismiss empty top level circuit
.subckt top a b
m1 a b a b nmos
.ends
* this triggered generation of a top level circuit
.param p1 17
.end