Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages


home | help
lepton-tragesym(1)		    lepton-tragesym(1)

       lepton-tragesym - create	Lepton EDA symbols from	structured text	files

       lepton-tragesym SOURCE-FILE SYMBOL-FILE

       lepton-tragesym	creates	 lepton-schematic symbols from structured text

       lepton-tragesym can:

       o      create pins, their elements (clocksign,  negation	 bubble),  and
	      attributes ("pinnumber", "pinseq", "pintype", and	"pinlabel");

       o      sort the pins alphabetically by their attributes;

       o      rotate  pinlabel	attributes  of	the top	and bottom pins	if re-

       o      swap words in the	pinlabel attributes if requested (only for at-
	      tributes	of  the	right and top pins, in the latter case only if
	      rotation is also requested);

       o      do some syntax checking to the input file.

       Source file is a	text file consisting of	three sections:
       o [geda_attr]
       o [options]
       o [pins]

       Section name should be enclosed in square brackets.

       Empty lines, lines consisting of	whitespaces only, as well as lines be-
       ginning with the	character '#' (comments) are silently ignored.

       The  section contains export settings.  The following settings are sup-

       o      wordswap (boolean)
	      Swap labels if the pin is	on the right side and  contains	 space
	      between  words, that is, looks like this:	"PB1 (CLK)".  That may
	      be useful	for micro controller port labels.

       o      rotate_labels (boolean)
	      Rotate the "pinlabel" attribute of the top and bottom pins by 90
	      degrees.	 This  may be useful for large symbols like FPGAs with
	      more than	100 pins.

       o      sort_labels (boolean)
	      Sort the pins by their "pinlabel"	attributes,  which  is	useful
	      for address ports, busses, etc.

       o      generate_pinseq (boolean)
	      Automatically  generate "pinseq" attributes for those pins whose
	      corresponding field in the source	file is	empty.	The  generated
	      attribute	 values	 are  numbers incremented in the order the pin
	      description lines	appear in the [pins] section  except  for  al-
	      ready existing numbers.

       o      sym_width	(integer)
	      Minimum box width	of the resulting symbol.

       o      pinwidthvertical (integer)
	      The  vertical  distance  between	pins on	the left or right hand
	      side of the symbol.

       o      pinwidthhorizontal (integer)
	      The horizontal distance between pins on the top or bottom	of the

	      The boolean values are specified in the source file by the words
	      "yes" or "on" meaning TRUE and "no" or "off" meaning FALSE.

       The section contains the	list of	Lepton symbol attributes ("name=value"
       pairs)  which  you would	want to	see in the symbol file.	 The attribute
       names may be separated by the equal or  tabulation  character  ("="  or
       "\t").	The  tab  separator  is	 supported  for	convenient export from
       spreadsheet programs.

       The section contains the	description of symbol pins to be made, one pin
       per  line.  The pin description consists	of seven tab separated fields,
       any of which may	contain	empty value (no	character between tabs).   The
       fields define the following pin attributes and properties:

       1. "pinnumber" attribute
	  The "pinnumber" attribute represents the physical number of the com-
	  ponent pin.

       2. "pinseq" attribute
	  The "pinseq" attribute is used in Lepton to assign pin  numbers  for
	  slotted components and by the	SPICE backends to output pins in right
	  order.  Leave	the field blank	if it doesn't matter.

       3. "pintype" attribute
	  The "pintype"	attribute defines the  pin  function  (input,  output,
	  power, etc.) and can be one of "in", "out", "io", "oc", "oe",	"pas",
	  "tp",	"tri", "clk", or "pwr".	 The attribute	is  used  by  the  DRC
	  backends to check component interconnection validity.

       4. pin style
	  Pin  style  determines  the appearance of the	pin.  It can be	one of
	  "line" (simple pin), "dot" (pin with negation	 bubble),  "clk"  (pin
	  with	clock  symbol),	 "dotclk"  (bubble and clock), "spacer"	(not a
	  pin, just additional empty space between two pins),  or  "none"  (to
	  add a	virtual	pin via	the "net" attribute).

       5. pin position
	  Pin  position	determines the side of the component the pin should be
	  placed on.  It can be	"l" (left), "r"	(right), "t" (top), "b"	 (bot-
	  tom),	 or empty ("") when the	pin should be defined in the "net" at-

       6. pin net
	  Specifies the	net name of the	pin to define via the "net" attribute,
	  for example, "Vcc" or	"GND".

       7. "pinlabel" attribute
	  The  "pinlabel"  attribute represents	the visible pin	label defining
	  its name in the component, for example "A" (anode) or	"C"  (cathode)
	  in a diode symbol.  Negation lines can be added with "\_", for exam-
	  ple, "\_enable\_".  If you want to add the character "\",  use  "\\"
	  as escape sequence.  This is supported by `lepton-schematic`.

       There  is a tutorial on the use of tragesym, the	predecessor of lepton-
       tragesym, at:

       The initial Python  script  has	been  written  by  Werner  Hoch	 <wer->.	 The program has been rewritten	almost from scratch in
       Scheme by Vladimir Zhbanov <>.


       Copyright (C) 2012-2017 gEDA Contributors.
       Copyright (C) 2019-2020 Lepton EDA Contributors.
       License GPLv2+: GNU GPL version 2 or later. Please see the `COPYING'
       file included with this program for full	details.

       This is free software: you are free to change and redistribute it.
       There is	NO WARRANTY, to	the extent permitted by	law.

Lepton EDA		       December	4, 2020		    lepton-tragesym(1)


Want to link to this manual page? Use this URL:

home | help