Basic Hspice runner with Python

Related tags

MiscellaneousHspicePy
Overview

HSpicePy

Bilgisayarınıza PATH değişkenlerine eklediğiniz HSPICE programını python ile çalıştırmanızı sağlayan basit bir araç.

A simple tool that allows you to run the HSPICE program that you add to the PATH variables on your computer with python.

Usage/Examples

HSPICE Simulating

from hspicpy import HSpicePy

meAbsPath = os.path.dirname(os.path.realpath(__file__))
h = HSpicePy(file_name="amp",design_file_name="designparam",path=meAbsPath)
h.run()

Asynchronous HSPICE Simulating

Simülasyonların arkaplanda çalışmasını istiyorsanız bu yöntemi kullanmalısınız.

You should use this method if you want the simulations to run in the background.

from hspicpy import HSpicePy
import asyncio

meAbsPath = os.path.dirname(os.path.realpath(__file__))
h = HSpicePy(file_name="your_sp_file",design_file_name="your_cir_file",path=meAbsPath)
asyncio.run(h.run_async())

Simulasyon çalıştırıldıktan sonra projenizin bulunduğu dizinde "out" klasörü oluşacaktır. Simulasyon sonuçları bu klasöre kaydedilecektir.

Sadece bir adet .sp ve .cir dosyası girişte parametre olarak vermelisiniz.

After the simulation is run, an "out" folder will be created in the directory where your project is located. The simulation results will be saved in this folder.

You must provide only one .sp and .cir file as parameters at the entrance.

Results

from hspicpy import HSpicePy
import asyncio

meAbsPath = os.path.dirname(os.path.realpath(__file__))
h = HSpicePy(file_name="your_sp_file",design_file_name="your_cir_file",path=meAbsPath)
asyncio.run(h.run_async())

print(h.result)
print(h.operation_point_result)

Simulasyon sonuçlarını .json olarak out klasöründe bulabilirsiniz.

You can find operation point result and measure result which are saved json file format in "out" folder

Change Parameters on .cir File

//old
//my_parameters.cir

.PARAM
+ R1 = 8000
+ LM2 = 4.272405486964919e-06
+ LM3 = 5.066472271942056e-06
from hspicpy import HSpicePy
import asyncio

meAbsPath = os.path.dirname(os.path.realpath(__file__))
h = HSpicePy(file_name="amp",design_file_name="designparam",path=meAbsPath,timeout="")
h.change_parameters_to_cir(R1 = 12000, LM2 = 6.272405486964919e-06, LM3 = 7.272405486964919e-06)

asyncio.run(h.run_async())

print(h.result)
print(h.operation_point_result)
//new
//my_parameters.cir

.PARAM
+ R1 = 12000
+ LM2 = 6.272405486964919e-06
+ LM3 = 7.272405486964919e-06

Authors

Decentralized intelligent voting application.

DiVA Decentralized intelligent voting application. Hack the North 2021. Inspiration Following the previous US election, many voters were fearful that

Ali Shariatmadari 4 Jun 05, 2022
Removes all archived super productivity tasks. Just run the python script.

delete-archived-sp-tasks.py Removes all archived super productivity tasks. Just run the python script. This is helpful to do a cleanup every 3-6 month

Ben Herbst 1 Jan 09, 2022
Data on Free Food at MIT

MIT Free Food Timing Procrastinating research by plotting data on how long it takes emails on the free-food at mit edu mailing list to go through. Dat

Peter Sharpe 2 Nov 01, 2021
A simple watcher for the XTZ/kUSD pool on Quipuswap

Kolibri Quipuswap Watcher This repo holds the source code for the QuipuBot bot deployed to the #quipuswap-updates channel in the Kolibri Discord Setup

Hover Labs 1 Nov 18, 2021
1. 네이버 카페 댓글을 빨리 다는 기능

naver_autoprogram 기능 설명 네이버 카페 댓글을 빨리 다는 기능 네이버 카페 자동 출석 체크 기능 동작 방식 카페 댓글 기능 기본 동작은 주기적인 스케쥴 동작으로 해당 카페 ID 와 특정 API 주소로 대상이 새글을 작성했는지 체크. 해당 대상이 새글 등

1 Dec 22, 2021
In this repo, I will put all the code related to data science using python libraries like Numpy, Pandas, Matplotlib, Seaborn and many more.

Python-for-DS In this repo, I will put all the code related to data science using python libraries like Numpy, Pandas, Matplotlib, Seaborn and many mo

1 Jan 10, 2022
Render to print for blender 2.9+

render_to_print_blender_addon ** render2print: Blender AddOn for Blender 2.90.0+ ** Calculates camera parameters to allow printing a rendered image to

5 Nov 19, 2021
Scripts used in the RayStation medical radiation dosimetry treatment planning system

Med Phys Scripts These are scripts that I, the medical physics assistant at Cookeville Regional Medical Center, wrote for use in our radiation therapy

Kaley White 2 Oct 19, 2022
Library management using python & MySQL

Library management using python & MySQL Dev/Editor: Pavan Ananth Sharma & MK Akash Introduction: This is an intermediate project which is a user-frie

Pavan Ananth Sharma 2 Jul 05, 2022
Stop ask your soraka to ult you, just ult yourself

Lollo's auto-ultimate script Are you tired of your low elo friend who can't ult you with soraka when you ask for it? Use Useless Support and just ult

9 Oct 20, 2022
Providing a working, flexible, easier and faster installer than the one officially provided by Arch Linux

Purpose The purpose is to bring more people to Arch Linux by providing a working, flexible, easier and faster installer than the one officially provid

André Luís 0 Nov 09, 2022
Wrapper around anjlab's Android In-app Billing Version 3 to be used in Kivy apps

IABwrapper Wrapper around anjlab's Android In-app Billing Version 3 to be used in Kivy apps Install pip install iabwrapper Important ( Add these into

Shashi Ranjan 8 May 23, 2022
ClamNotif: A tool to send you ClamAV notifications

A tool to forward notifications to different recipients categorised by two severity levels of the regular health reports produced by `clamscan` bundled with the ClamAV antivirus engine.

PiSoft Company Ltd. 1 Nov 15, 2021
A collection of design patterns and idioms in Python (With tests!).

Python Patterns Help the project financially: Donate: https://smartlegion.github.io/donate/ Yandex Money: https://yoomoney.ru/to/4100115206129186 PayP

5 Sep 12, 2021
Hoopoe - Get notified of important stuff, right away.

Hoopoe - Get notified of important stuff, right away. Report a Bug · Request a Feature . Ask a Question Table of Contents About Getting Started Prereq

Vahid Al 8 Nov 12, 2022
The Google Assistant on a rotary phone

Google Assistant Rotary Phone Shoutout to my dad who had this idea a year ago and I'm only now getting around to doing it. Notes This is the code used

rydercalmdown 10 Nov 04, 2022
Age of Empires II recorded game parsing and summarization in Python 3.

mgz Age of Empires II recorded game parsing and summarization in Python 3. Supported Versions Age of Kings (.mgl) The Conquerors (.mgx) Userpatch 1.4

148 Dec 11, 2022
Similarity checking of sign languages

Similarity checking of sign languages This repository checks for similarity betw

Tonni Das Jui 1 May 13, 2022
A project for the Qvault Hackathon, 2022-01-17

musical-octo-engine Steps to run brew install python-tk brew install portaudio

Erik Kristofer Anderson 2 May 17, 2022
Fried Chicken Programming Language

Fried-Chicken Fried Chicken Programming Language How To Run Once downloaded and opened, choose any file for code. Any file extensions work. Just make

Attachment Studios 9 Jul 11, 2022