Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Circuit-Simulator

⭐This repository is the end of year project of Imperial College EIE course in Year 1. The project is selected as the best Circuit Simulator Project (overall Runner-Up Award) among the cohort.

Overview

Our circuit simulator is a C++ software package that performs DC and AC analysis for a given circuit. The circuit will be passed into the program in the form of a netlist (sample files listed in the /test folder). DC operation is performed first to find the DC operating point, which is then used to calculate parameters of non-linear devices. Then AC analysis is performed based on these parameters. It will find the transfer functions of selected nodes and output a netlist (simdata.txt) that contains the magnitude and phase of a transfer function under different frequencies. Then MATLAB is used to plot a magnitude-frequency graph and a phase-frequency graph.

To run the code

The code can be executed by running the bash file: ./run.sh

Then, MATLAB code plotsim.mat is used to plot the output data (simdata.txt) on graphs.

Directories

doc

This folder contains the initial project specification, the final report for the project and a short explanation video.

include

This folder contains all the header files.

src

This folder contains all the cpp source code files.

test

This folder contains some examples of the input circuits in the form of netlists. These can be used to test the program.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages