From 7649cec683a937288a0eefd7d18fe29f066f326a Mon Sep 17 00:00:00 2001
From: Stefan Schippers
XSCHEM schematics and symbols are stored in .sch and .sym files respectively. The two file formats are identical, with the
- exception that symbol (.sym) files do not contain wires and component instantiations.
+ exception that symbol (.sym) files usually do not contain wires and component instantiations (although they can).
every schematic/symbol object has a corresponding record in the file.
@@ -122,9 +122,11 @@ p{padding: 15px 30px 10px;}
Example:
Two attributes are defined, the xschem version and the file format version.
- Current file format version is 1.0. This string is guaranteed to be the first one in XSCHEM .sch and .sym files.
+ Current file format version is 1.2. This string is guaranteed to be the first one in XSCHEM .sch and .sym files.
@@ -204,14 +206,15 @@ template="name=U1 footprint=TO220"}
Global properties define a property string bound to the parent schematic/symbol file,
there is one global property record per netlisting mode,
currently SPICE, VHDL, Verilog, tEDAx.XSCHEM FILE FORMAT SPECIFICATION
+ For schematic it is used if instantiated as a component (file format 1.2 and newer) VERSION STRING
-v {xschem version=2.8.2_RC3 file_version=1.0}
+v {xschem version=2.9.7 file_version=1.2}
GLOBAL SCHEMATIC/SYMBOL PROPERTIES
- In addition (only in file_format 1.2 and newer) for schematics there is a global attribute ('K')
- that defines how to netlist the schematic if placed as a
- symbol into another parent schematic (should be set in the same way as the 'G' global attribute for symbols).
- Normally only 'G' type property strings are used for symbols and define attributes
+ In addition (only in file_format 1.2 and newer) for schematics and symbols there is a global attribute ('K')
+ that defines how to netlist the schematic/symbol if placed as a
+ symbol into another parent schematic (should be set in the same way as the 'G' global attribute for symbols
+ in pre-1.2 file format).
+ Normally only 'G' ('K' in 1.2 file format) type property strings are used for symbols and define attributes
telling netlisters what to do with the symbol, while global property
strings in schematic files corresponding to the active netlisting mode of XSCHEM are
copied verbatim to the netlist.
- the object tag (S, V, G, E) is followed by the property string enclosed in curly braces
+ the object tag (S, V, G, E, K) is followed by the property string enclosed in curly braces
({...}). This allows strings to contain any white space and newlines.
Curly braces if present in the string are automatically escaped with the '\' character
by XSCHEM when saving data.
@@ -241,7 +244,17 @@ in this case only the verilog-related global property has some definition. This
with respect to its anchor point.
+
+
+