https://open-source-silicon.dev logo
Channels
aa
abcc
activity
adiabatonauts
analog-design
announce
announcements
b2aws
b2aws-tutorial
bag
basebands
beagleboard
bluetooth
board-respin
cadence-genus
cadence-innovus
cadence-spectre
cadence-virtuoso
caravan
caravel
caravel-board
chilechipmakers
chip-yard
chipignite
chipignite2206q_stanford_bringup
chisel
coalition-for-digital-environmental-sustainability
community_denmark_dtu
containers
courses
design-review
design-services
dffram
digital-design
digital-electronics-learners
discord-mods
dynamic-power-estimation
efabless
electric
events
fasoc
fault
foss-asic-tools
fossee-iitb-esim
fossee-iitb-google-sky130
fpga
funding
fuserisc
general
generative-ai-silicon-challenge
genius-vlsi
gf180
gf180mcu
hardware-beginners
help-
ieee-sscs-cac-23
ieee-sscs-dc-21q3
ieee-sscs-dc-22
ieee-sscs-dc-23
ihp-sg13g2
images
infiniband
j-core
japan-region
junk
klayout
latam_vlsi
layouteditor
lvs
lvs-analysis
magic
magical
maker-projects
maker-zone
microwatt
mpw-2-silicon
mpw-one-clean-short
mpw-one-silicon
neuro-mem
nydesign
open_pdks
open-pdk
openadiabaticlogic
openfpga
openhighqualityresonators
openlane
openlane_cloudrunner
openlane-development
openocd
openpositarithmetic
openpower
openram
openroad
opentitan
osu
pa-test-chip
paracells
pd-openlane-and-sky130
picosoc
pll
popy_neel
power
private-shuttle
rad-lab-silicon
radio
rdircd
reram
researchers
rf-mmw-design
rios
riscv
sdram
serdes
shuttle
shuttle-precheck
shuttle-status
silicon-photonics
silicon-validation
silicon-validation-private
sky130
sky130-ci
sky130-pv-workshop
sky65
sky90
skywater
sram
stdcelllib
strive
swerv
system-verilog-learners
tapeout-job
tapeout-pakistan
team-awesome
timing-closure
toysram
travis-ci
uvm-learners
vendor-synopsys
venn
verification-be
verification-fe
verilog-learners
vh2v
vhdl
vhdl-learners
vliw
vlsi_verilog_using_opensource_eda
vlsi_verilog_using_opensoure_eda
vlsi-learners-group
vlsi101
waveform-viewers
xls
xschem
xyce
zettascale
Powered by
Title
a

Amro Tork

02/02/2023, 11:59 AM
@mohamed hassan You could do that in 2 different ways: 1. FFT in ngspice, please refer to documentation. 2. Run ngspice transient simulation and read the data as a vector in numpy and apply fft on it: https://numpy.org/doc/stable/reference/routines.fft.html
m

mohamed hassan

02/02/2023, 12:02 PM
I tried to run fft in NGspice for an output signal but it seems to perform the fft for only one value of the signal, do you have any idea what may be the issue here?
a

Amro Tork

02/02/2023, 1:55 PM
@mohamed hassan What do you mean by one value?
I personally, prefer option 2, run ngspice, get the vectors and do whatever I want in Numpy + Scipy
@mohamed hassan such questions #analog-design is the right channel for that.
s

Stefan Schippers

02/02/2023, 6:02 PM
Remember to run the ngspice
linearize
command on vectors you want to export for python fft. By default ngspice raw files are not constant time step. They are after applying
linearize
.
šŸ‘ 1
r

Robin Tsang

02/05/2023, 10:44 PM
I use .option INTERP to get equidistant sample points. The period is the time step specified in .tran For example, in ā€œ.tran 1u 100nā€, the 100n will specify the period of samples.