QNN's SPICE models library
This repository sync's all of the SPICE models we use with their respective remotes
and updates the LTSpice internal directory to add a new [qnn-spice]
folder into
LTSpice's component library that sorts the components.
The component library for the following models.md
config:
- htron_behavioral: htrons
- htron_behav_model.asc: htron_b.asc
- htron_behav_model.asy: htron_b.asy
- JJ: JJs
- JJ.asy: JJ_v1.asy
- JJ.lib: JJ_v1.lib
- JJ_v2: JJs
- JJ.asy: JJ_v2.asy
- JJ.lib: JJ_v2.lib
- ntron: ntron
- ntron.lib
- ntron.asy
If you are using this repo for the first time, go to Installation.
Run ./update
in the root of the qnn-spice repo. This will pull
all the latest changes from all available repos and sync the
files in models.md
to your local LTSpice directory, so you can
access all the models as in the Example.
Just like how you would push to a regular github repo, go into the repo with your
edited file as you would normally do and commit and push your changes, then go up
one directory to the qnn-spice
repo and commit and push these changes too.
For example, snspd-spice
is a repo that houses a file edited, so we can run
the following:
$ pwd # should return .../snspd-spice
$ git add .
$ git commit -m "Updating model"
$ git push
$ cd ..
$ pwd # should return .../qnn-spice
$ git add .
$ git commit -m "Updating snspd-spice head"
$ git push
In the repo you want to add, create a new file titled models.md
in the base of the
repository. This file helps locate models in your repository and present them in a
helpful way to LTSpice. See How to write a model file.
Push these changes to the repository.
Now in qnn-spice, you can simply run git submodule add [repo-you-want-to-add]
, then
running ./update
will get the latest changes for this repo and sync them with your
local LTSpice model libraries. Then commit and push the changes to qnn-spice
so that
everyone has these changes!
You should be able to install this repository by cloning it
(git clone [email protected]:tareqdandachi/qnn-spice.git
) and then running the
update
script using ./update
(or ./update [PATH-TO-LTSPICE-LIB-FILE]
) when
in the qnn-spice directory.
- On windows, if the update scripts gives you an
OSError
regarding permissions, then relaunch git bash as an administrator (Run Program as Administrator). - If you get a permission error saying you can't run
./update
, you might need to runchmod +x update
in theqnn-spice
directory to give the update script execution permissions. - If you experience errors setting up the submodules, try running
git submodule init
git submodule update
and if this doesn't work, proceed to clone the repositories in a separate directory to make sure your git setup has the correct credentials.