delorie.com/archives/browse.cgi | search |
> Nope. I sometimes have to make multiple copies of a subcircuit > schematic: same topology but different components. Having more > control over hierarchy expansion in gnetlist would be good. I was thinking about the m4 problem in pcb and thought "I wonder if we could put a generic expression parser in where we expect simple values". I don't think it would help much for pcb (without a looping construct, at least), but it might help for heirarchical schematics if a component could have a value that was an expression referencing inherited attributes from the parent. The schematic flattener (if you're flattening it for netlisting, for example) would expand the expression. Part of me says "put a guile expression there" but that opens up the problem of having a schematic with executable code in it. Given the nature of electronics, a mathematical (TeX? Mathematica?) expression would be more natural, but bring its own can of worms...
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |