From 93d9409dd1aab0c0468660afc32bc7b2bca64c3e Mon Sep 17 00:00:00 2001 From: Abhijit Kshirsagar Kshirsagar Date: Tue, 13 Jul 2021 17:29:17 +0530 Subject: [PATCH] Add 'Symbol_Creation_In_gSchem' --- Symbol_Creation_In_gSchem.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Symbol_Creation_In_gSchem.md diff --git a/Symbol_Creation_In_gSchem.md b/Symbol_Creation_In_gSchem.md new file mode 100644 index 0000000..e8e7271 --- /dev/null +++ b/Symbol_Creation_In_gSchem.md @@ -0,0 +1,18 @@ +###### Procedure +1. Draw the graphical part of the symbol (lines, boxes, delineation of internal connections) +2. Add pins (keyboard shortcut: ap) and fill in the attributes ‘pinlabel’,‘pinnumber’,‘pinseq’,‘pintype’. Normally, the first two attributes are kept visible while the other two are kept invisible. Use the pin name mentioned in the device datasheet as your ‘pinlabel’. ‘pinnumber’ and ‘pinseq’ have the same value unless you are using [[slotting]]. ‘pintype’ should be one of the ten values mentioned in the [[File:geda-attributes-Hvezda.pdf | gEDA Master Attribute Document]] and should be in lower case. +3. Add at least the following symbol attributes to the symbol: ‘refdes’, ‘device’, ‘value’, ‘description’, ‘author’, ‘numslots’ and ‘footprint’ +4. Make all attributes invisible (keyboard shortcut ‘en’) and translate the symbol to the origin using the keyboard shortcut ‘et’. This ensures that the symbol appears at the right place when invoked. +5. Run [[gsymcheck]] on the symbol file to ensure it is alright. + +###### Hierarchical Symbols + +These are symbols which represent underlying schematics (or netlists). There are some additional requirements in this case: +1. *Source=* attribute pointing to source schematic +2. *model-name=* attribute pointing to model name or subcircuit name with parameters +3. *file=* pointing to relative path of the sub-circuit prototype (SPICE subckt file) + +###### Also see: +1. Some guidelines on the gEDA library page: on http://www.gedasymbols.org/csv.html +2. See the [[File:geda-attributes-Hvezda.pdf | gEDA Master Attribute Document]] for the meanings of the attributes. +3. Automated tool for converting schematic to symbol: [[geda_sch2sym]]