Sign in
foss-eda-tools
/
third_party
/
shuttle
/
sky130
/
mpw-003
/
slot-016
/
6931bdbd6dab55b4ee327e28378313d35ca05ee7
/
.
/
xschem
/
src
/
behavior_mdl
/
comparator.spice
blob: 5e11fccaf71855abd3b70a3c70e63f74b532bf85 [
file
] [
log
] [
blame
]
.
subckt comparator inp inn
out
vdd gnd
Bcmp
out
gnd V
=((
V
(
inp
)-
V
(
inn
))*
700
>
0.9
?
1.8
:
(
V
(
inp
)-
V
(
inn
))*
700
<-
0.9
?
0
:
((
V
(
inp
)-
V
(
inn
))*
700
)+
0.9
)
.
ends