Code Monkey home page Code Monkey logo

asysc's Introduction

Introduction

asysc is an analog system compiler based on the lightweight Computer Algebra System lightcas.

Using a Computer Algebra System (CAS), you can write your own components by using algebraic descriptions.

Description example for a resistor:

NAME.CR(@1,@2,R) := { 
    NAME.U=ACROSS(@1,@2); 
    NAME.I=THROUGH(@1,@2); 
    NAME.U=R*NAME.I 
};

For more examples, see the component.rule and examples directories.

The analog system compiler is invoked with the following command (Example with the RLC circuit in AC mode analysis):

cd examples/ac/RLC
../../../lightcas/bin/asysc -i RLC.cir -o RLC.py -t ac

Once the libraries and netlists are compiled, the Python code is generated for simulation.

Requirements

C++ requirement

- g++ or clang
- make

Python requirements

- numpy
- matplotlib

Getting source code

git clone https://github.com/analog-system-compiler/asysc.git
cd asysc
git submodule update --init

Code compilation

make clean
make

Run all tests

make run

Run a specific test

To execute a particular test, type:

cd examples
make
cd examples/<directory>
python3 simulation.py

License

This project is licensed under the GNU General Public License - see the LICENSE file for details.

Examples

Some transient analysis examples

Transient examples

Some AC analysis examples

AC examples

asysc's People

Contributors

analog-system-compiler avatar cycollineau avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.