1lytics

Text Gates List Syntax

This topic describes the Gorgeous Schematic “Text Gates List” logic gate list definition file format.

General format syntax

  • Text file can be plain ASCII text file, or Unicode UTF-encoded text file;
  • Each line, started with “#” is a comment;
  • Each comment line exact before “GATE” line, adds description to gate output, that can be displayed on diagram;
  • Each line contains only one definition;
  • “OUTPUT_GATES” statement describes all diagram outputs (optional statement);
  • “GATE” statement describes single gate - gate ID, gate type, and gate output connections.

OUTPUT_GATES statement syntax

OUTPUT_GATES statement describes all diagram outputs. This statement must be used before any GATE statement and it is an optional.

OUTPUT_GATES OutID1 [, OutID2 [, OutID3 [, ...] ] ]

Where:

  • OutID1, OutID2, OutID3, ... - list of diagram outputs.

GATE statement syntax

GATE statement describes single gate - gate ID, gate type, and gate output connections.

GATE ID:TYPE; O#1 => ID2:I#1, ID3:I#2[; O#2 => ID4:I#1, ID5:I#1; [...] ]

Where:

  • ID:TYPE; - Gate id and type, separated by “:”;
  • O#1 - Output #1 connection, separated from connected gates list with “=>”;
  • ID2:I#1, ID3:I#2 - list of other gates inputs, to which Output O#1 is connected;
  • [; O#2 => ID4:I#1, ID5:I#1; [...] ] - other outputs of gate with id “ID”.

If logic gate has one output, the “#N” output pin number may be absent.

Sample

Next statement describes gate “D1” with gate type “NOT”, which output pin is connected to gate “D2” input pin #1 and to gate “D10” input pin #2.

GATE D1:NOT; O#1 => D2:I#1, D10:I#2

Gate Types

To find information about gate types, see Gate Types topic.