diff options
| author | Clément Zrounba <clement.zrounba@ec-lyon.fr> | 2023-12-07 10:47:23 +0000 |
|---|---|---|
| committer | Clément Zrounba <clement.zrounba@ec-lyon.fr> | 2023-12-07 10:48:56 +0000 |
| commit | 0e4b33a965e8eabb687ba07580be749e5f0ffe4c (patch) | |
| tree | c5dfd6564a6b8809dd23aba06e5b165af7bbe766 /src/parser/parse_element.h | |
| parent | 4b1c60c90936b52093d287f59eb118f93bc82407 (diff) | |
| download | specs-0e4b33a965e8eabb687ba07580be749e5f0ffe4c.tar.gz specs-0e4b33a965e8eabb687ba07580be749e5f0ffe4c.zip | |
Add power meter element to measure DC optical power
This device replaces photodetector in cases where the DC power should be
measured efficiently, without considering realistic effects (bandwidth,
noise, responsivity...).
* Syntax in netlist: `PWRnnnn <optical net>`
* Parameters: none
Diffstat (limited to 'src/parser/parse_element.h')
| -rw-r--r-- | src/parser/parse_element.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/parser/parse_element.h b/src/parser/parse_element.h index ebd08ab..8bd3bf3 100644 --- a/src/parser/parse_element.h +++ b/src/parser/parse_element.h @@ -1,6 +1,7 @@ #pragma once #include "alldevices.h" +#include "power_meter.h" #include "subcircuit_instance.h" #include "parse_tree.h" #include "specs.h" @@ -95,6 +96,7 @@ DECLARE_UNIDIR_ELEMENT(PCMCellElement, "PCM CELL", PCMElement, 2); DECLARE_UNIDIR_ELEMENT(PhotodetectorElement, "PHOTODETECTOR", Detector, 2); DECLARE_UNIDIR_ELEMENT(ProbeElement, "PROBE", Probe, 1); DECLARE_UNIDIR_ELEMENT(MLProbeElement, "MULTIWAVELENGTH PROBE", MLambdaProbe, 1); +DECLARE_UNIDIR_ELEMENT(PowerMeterElement, "POWER METER", PowerMeter, 1); // TODO: take care of subcircuit instance... DECLARE_UNIDIR_ELEMENT(XElement, "SUBCIRCUIT", SubcircuitInstance, 1); @@ -103,4 +105,4 @@ DECLARE_UNIDIR_ELEMENT(XElement, "SUBCIRCUIT", SubcircuitInstance, 1); /** Undefine macros **/ /** ******************************************* **/ #undef DECLARE_UNIDIR_ELEMENT -#undef DECLARE_BIDIR_ELEMENT
\ No newline at end of file +#undef DECLARE_BIDIR_ELEMENT |
