Benutzer-Werkzeuge

Webseiten-Werkzeuge


snaiks-study

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
snaiks-study [2016/05/25 14:09]
karl [Goals]
snaiks-study [2017/04/04 06:45] (aktuell)
karl [Any-Type Inputs/Outputs]
Zeile 1: Zeile 1:
-====== Snaiks ======+====== Snaiks Study ======
 **Signals and Systems from KiCad to C++** **Signals and Systems from KiCad to C++**
 {{ ::snaiks-logo.png?nolink&200|}} {{ ::snaiks-logo.png?nolink&200|}}
  
-7.4.2016+7.4.2016\\ 
 +For Updates please see [[Snaiks]]
  
 ---- ----
Zeile 17: Zeile 18:
 The C++ classes are based heavily on templates, so most of the components can be used either for floating point or for integer calculations.  The C++ classes are based heavily on templates, so most of the components can be used either for floating point or for integer calculations. 
  
-==== Goals ====+===== Goals =====
   * Generate beautiful C++ code from a KiCad schematic   * Generate beautiful C++ code from a KiCad schematic
   * Compiles without dynamic memory allocation (embedded, savety)   * Compiles without dynamic memory allocation (embedded, savety)
Zeile 23: Zeile 24:
   * Simple custom system creation (KiCad component editor + sub-class implementation)   * Simple custom system creation (KiCad component editor + sub-class implementation)
   * Hierarchical design (sub-systems)   * Hierarchical design (sub-systems)
 +  * full documentation within the schematic
 ===== Mini-Demo ===== ===== Mini-Demo =====
 {{ ::2016-04-07_001.png?direct&900 |}} \\ {{ ::2016-04-07_001.png?direct&900 |}} \\
Zeile 121: Zeile 123:
  
  
 +==== Any-Type Inputs/Outputs ====
 +Perhaps it would be useful, that not all inputs must have the same type. For example a mute gate, where the enable is bool and the signal is double. 
  
 +Pros:
 +  * more flexible systems
  
 +Cons:
 +  * every pin must have a type specified in KiCad (could be done with net-annotators, similar to PWR_FLAG). 
 +  * we cannot use a simple template-interface class any more, such as the SnsHybrid or SnsNumeric. 
  
 +=== Proposal ===
 +  * in cases, where this is really needed, a specific C++ class could be implemented
 +  * mixture of numbers and bool shouldn't be any problem
 +
 +{{tag>english software signals kicad snaiks technical}}
snaiks-study.1464178155.txt.gz · Zuletzt geändert: 2016/05/25 14:09 von karl