{"id":21220872,"url":"https://github.com/adct-the-experimenter/ngspice-tools","last_synced_at":"2026-05-19T17:15:39.958Z","repository":{"id":128813401,"uuid":"140208663","full_name":"adct-the-experimenter/ngspice-tools","owner":"adct-the-experimenter","description":"Collection of tools to use with ngspice. So far only 1 perl script is available that reads MOSFET data(e.g. name,type,vds,vgs,gm,etc.) from 2 files. ","archived":false,"fork":false,"pushed_at":"2018-07-16T00:39:53.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-15T01:12:48.676Z","etag":null,"topics":["mosfet","mosfet-transistor","ngspice","perl","perl5"],"latest_commit_sha":null,"homepage":"","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adct-the-experimenter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-08T23:04:40.000Z","updated_at":"2023-09-08T17:42:34.000Z","dependencies_parsed_at":"2023-04-18T05:16:42.193Z","dependency_job_id":null,"html_url":"https://github.com/adct-the-experimenter/ngspice-tools","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/adct-the-experimenter/ngspice-tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adct-the-experimenter%2Fngspice-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adct-the-experimenter%2Fngspice-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adct-the-experimenter%2Fngspice-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adct-the-experimenter%2Fngspice-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adct-the-experimenter","download_url":"https://codeload.github.com/adct-the-experimenter/ngspice-tools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adct-the-experimenter%2Fngspice-tools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33225540,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-19T15:49:41.270Z","status":"ssl_error","status_checked_at":"2026-05-19T15:49:22.917Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mosfet","mosfet-transistor","ngspice","perl","perl5"],"created_at":"2024-11-20T22:14:24.550Z","updated_at":"2026-05-19T17:15:39.952Z","avatar_url":"https://github.com/adct-the-experimenter.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ngspice-tools\nCollection of tools to use with ngspice. So far only 1 perl script available that reads MOSFET data(e.g. name,type,vds,vgs,gm,etc.) from 2 files.\n\n# MOSFET Data Reader\n\nThe MOSFET Data Reader requires a text file that contains results from running ngspice -b some_circuit.cir\nand a text file containing names of MOSFETs to be read.\n\nRunning MOSFET Data Reader from command line:\n```\nperl -I /home/user/source_builds/ngspice-tools /home/user/source_builds/ngspice-tools/read_MOSFET_data.pl \\\n--sat --type --id --vgs --vds --vt --gm --vdsat \\\n--mos_file mos_read_file.txt \\\n--spice_results_file  spice_results_file.txt\n```\n\nOptions\n*  --mos_file specifies the path to text file that provides which names of MOSFETs from which to get data. Mandatory.\n*  --spice_results_file the path to text file that contains results of ngspice simulation. Mandatory.\n*  --sat option tells MOSFET reader to display whether MOSFET is saturated or not. \n*  --type option tells MOSFET reader to display MOSFET channel type(positive or negative).\n*  --id option tells MOSFET reader to display MOSFET drain current.\n*  --vgs option tells MOSFET reader to display MOSFET gate-to-source voltage.\n*  --vds option tells MOSFET reader to display MOSFET drain-to-source voltage.\n*  --vt option tells MOSFET reader to display MOSFET threshold voltage.\n*  --gm option tells MOSFET reader to display MOSFET transconductance gm.\n*  --vdsat option tells MOSFET reader to display MOSFET overdrive voltage vdsat.\n*  --model option tells MOSFET reader to display MOSFET model.\n\nText file providing names of MOSFETs to read.\n## MOSFETs-To-Read.txt\n```\n*Put all names in lower case letters since spice reads\n*it that way.\n*Do not put space after name!\n*Make sure name appears in ngpsice results text file and it is spelled correctly.\n*The format for specifying name of mosfet device. \n*MOSFET-Name: space mq2\nMOSFET-Name: mq2\nMOSFET-Name: mq3\nMOSFET-Name: mq4\n```\n\nAn example script to perform ngspice simulation, get results in text file, and read MOSFET data from ngspice simulation\nresults text file.\n## ngspice-sim.sh\n```\n#!/bin/sh\n\n#saves results to text file results.txt\nngspice -b some_circuit.cir \u003e results.txt  \n\n#saves results in output file that ngnutmeg can read and plot\nngspice -b some_circuit.cir -r output.raw \n\n#read and output to console saturation and type info on certain MOSFETs\nperl -I /home/user/source_builds/ngspice-tools /home/user/source_builds/ngspice-tools/read_MOSFET_data.pl \\\n--sat --type \\\n--mos_file /home/user/Circuits/Some-Circuit/MOSFETS-To-Read.txt \\\n--spice_results_file  /home/user/Circuits/Some-Circuit/results.txt\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadct-the-experimenter%2Fngspice-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadct-the-experimenter%2Fngspice-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadct-the-experimenter%2Fngspice-tools/lists"}