KiCad Simulator gain is dBV
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
New
|
Unknown
|
Bug Description
Application: kicad
Version: (5.0.0-
Libraries:
wxWidgets 3.0.4
libcurl/7.54.0 LibreSSL/2.0.20 zlib/1.2.11 nghttp2/1.24.0
Platform: Mac OS X (Darwin 17.3.0 x86_64), 64 bit, Little endian, wxMac
Build Info:
wxWidgets: 3.0.4 (UTF-8,STL containers,
Boost: 1.61.0
Curl: 7.43.0
Compiler: Clang 7.3.0 with C++ ABI 1002
Build settings:
USE_
USE_
KICAD_
KICAD_
KICAD_
KICAD_
BUILD_
KICAD_
KICAD_SPICE=ON
When running the simulator with an ac sweep with an ac source of 20mV amplitude I noticed that the 'gain' plot implied a loss (approx -30dB) for my circuit. Running a transient analysis clearly shows a gain at the same frequency. Looking into it further I realised that the "gain" is actually not simple gain (dB), but is amplitude relative to 1V (dBV).
I imagine most people run ac analysis with 1V amplitude so would never notice this (as the dB amplitude relative to 1V is equivalent to the actual gain in this situation).
I propose that the "gain" axis either be configurable as dB gain or dBV amplitude (and other potentially useful scales), or it remain as dB gain but be corrected to account for the ac source amplitude (better option IMO).
tags: | added: ngspice |
Changed in kicad: | |
importance: | Medium → Unknown |
status: | Expired → New |
At a minimum we need to at least label the gain axis.