diff --git a/hardware/eda/circuits/indicator.py b/hardware/eda/circuits/indicator.py index 84f7870..e2c2922 100644 --- a/hardware/eda/circuits/indicator.py +++ b/hardware/eda/circuits/indicator.py @@ -47,7 +47,7 @@ def peak_detect(src): def threshold(div_top, div_bot): n = Net(); rt = R(value=div_top); rb = R(value=div_bot) - p15 += rt[1]; rt[2] += n; rb[1] += n; rb[2] += gnd + rt[1] += p15; rt[2] += n; rb[1] += n; rb[2] += gnd # rt[1]+=p15 (not p15+=...) to avoid local rebind return n # signal-present: low threshold ; clip: high threshold (TUNABLE)