From 0e4b33a965e8eabb687ba07580be749e5f0ffe4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Zrounba?= Date: Thu, 7 Dec 2023 10:47:23 +0000 Subject: 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 ` * Parameters: none --- src/parser/parse_element.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/parser/parse_element.h') 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 -- cgit v1.2.3