{"id":17502063,"url":"https://github.com/itstorque/qnn-spice","last_synced_at":"2025-03-28T19:24:07.524Z","repository":{"id":48115549,"uuid":"516500598","full_name":"itstorque/qnn-spice","owner":"itstorque","description":"QNN's SPICE models library","archived":false,"fork":false,"pushed_at":"2023-11-03T15:04:49.000Z","size":1097,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-02T20:53:54.238Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/itstorque.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":"2022-07-21T19:39:02.000Z","updated_at":"2022-07-21T21:46:07.000Z","dependencies_parsed_at":"2022-08-12T19:00:16.963Z","dependency_job_id":"994c1f5c-9326-48c6-98a7-b67ee1ec5694","html_url":"https://github.com/itstorque/qnn-spice","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itstorque%2Fqnn-spice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itstorque%2Fqnn-spice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itstorque%2Fqnn-spice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itstorque%2Fqnn-spice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itstorque","download_url":"https://codeload.github.com/itstorque/qnn-spice/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246086387,"owners_count":20721339,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-19T20:36:45.042Z","updated_at":"2025-03-28T19:24:07.482Z","avatar_url":"https://github.com/itstorque.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# qnn-spice\nQNN's SPICE models library\n\nThis repository sync's all of the SPICE models we use with their respective remotes\nand updates the LTSpice internal directory to add a new `[qnn-spice]` folder into\nLTSpice's component library that sorts the components.\n\n- [Installation](#Installation)\n- [Usage](#Usage)\n- [Troubleshooting](#Troubleshooting)\n\n## Example\n\n\u003ccenter\u003e\u003cimg src=\"example.png\" width=\"350px\"/\u003e\u003c/center\u003e\n\nThe component library for the following `models.md` config:\n\n```\n- htron_behavioral: htrons\n  - htron_behav_model.asc: htron_b.asc\n  - htron_behav_model.asy: htron_b.asy\n- JJ: JJs\n  - JJ.asy: JJ_v1.asy\n  - JJ.lib: JJ_v1.lib\n- JJ_v2: JJs\n  - JJ.asy: JJ_v2.asy\n  - JJ.lib: JJ_v2.lib\n- ntron: ntron\n  - ntron.lib\n  - ntron.asy\n```\n\n\n## Usage\n\nIf you are using this repo for the first time, [go to Installation](#Installation). \n\n#### How to sync repos and download the latest models?\n\nRun `./update` in the root of the qnn-spice repo. This will pull\nall the latest changes from all available repos and sync the\nfiles in `models.md` to your local LTSpice directory, so you can\naccess all the models as in the Example.\n\n#### How to push changes to a model?\n\nJust like how you would push to a regular github repo, go into the repo with your \nedited file as you would normally do and commit and push your changes, then go up \none directory to the `qnn-spice` repo and commit and push these changes too.\nFor example, `snspd-spice` is a repo that houses a file edited, so we can run\nthe following:\n``` bash\n$ pwd # should return .../snspd-spice\n$ git add .\n$ git commit -m \"Updating model\"\n$ git push\n$ cd ..\n$ pwd # should return .../qnn-spice\n$ git add .\n$ git commit -m \"Updating snspd-spice head\"\n$ git push\n```\n\n#### How to add a new repo?\n\nIn the repo you want to add, create a new file titled `models.md` in the base of the \nrepository. This file helps locate models in your repository and present them in a \nhelpful way to LTSpice. See [How to write a model file](#How_to_write_a_model_file).\nPush these changes to the repository.\n\nNow in qnn-spice, you can simply run `git submodule add [repo-you-want-to-add]`, then\nrunning `./update` will get the latest changes for this repo and sync them with your \nlocal LTSpice model libraries. Then commit and push the changes to `qnn-spice` so that\neveryone has these changes!\n\n## How to write a model file\n\n## Installation\n\nYou should be able to install this repository by cloning it \n(`git clone git@github.com:tareqdandachi/qnn-spice.git`) and then running the\n`update` script using `./update` (or `./update [PATH-TO-LTSPICE-LIB-FILE]`) when\nin the qnn-spice directory.\n\n## Troubleshooting\n\n- On windows, if the update scripts gives you an `OSError` regarding permissions, then\nrelaunch git bash as an administrator (Run Program as Administrator).\n- If you get a permission error saying you can't run `./update`, you might need to run\n`chmod +x update` in the `qnn-spice` directory to give the update script execution\npermissions.\n- If you experience errors setting up the submodules, try running `git submodule init`\n`git submodule update` and if this doesn't work, proceed to clone the repositories in\na separate directory to make sure your git setup has the correct credentials.\n- \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitstorque%2Fqnn-spice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitstorque%2Fqnn-spice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitstorque%2Fqnn-spice/lists"}