starting a layout cell name with a number

24 views
Skip to first unread message

R. Jacob Baker

unread,
Oct 21, 2013, 2:57:17 PM10/21/13
to electr...@googlegroups.com
Hi All,

There appears to be an issue with a (layout) cell name that begins with a number. 

Attached and below are examples. The schematic simulates fine; however, a "_" is added when the subcircuit spice code is written when simulating a layout (so the simulation doesn't run). 

If this is a user error please let me know ;-)

Inline image 1

--
http://cmosedu.com/jbaker/jbaker.htm

image.png
number.jelib

Steven Rubin

unread,
Oct 22, 2013, 2:18:27 PM10/22/13
to electr...@googlegroups.com
This is strange, because the latest version of Electric prepends the library name to each cell name to prevent name conflicts when there are multiple libraries. However, this is a bug for versions of Electric before that change.

The source code fix is easy. Find the module com.sun.electric.tool.io.output.Spice.java

Find the line that reads:
                infstr.append(subCellName);
and change it to:
                infstr.append(getSafeCellName(subCellName));

   -Steve
Reply all
Reply to author
Forward
0 new messages