Coder Social home page Coder Social logo

islam0mar / gm_id_kit.jl Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 169.03 MB

Julia port of Prof. Boris Murmann's gm/ID Starter Kit https://web.stanford.edu/~murmann/gmid

License: MIT License

Julia 100.00%
gm-id julia lookup-table microelectronics

gm_id_kit.jl's Introduction

Gm_ID_kit

Port from Gm/ID Starter Kit

Stable Dev Build Status

Examples

After loading .mat file.

using Gm_ID_kit
nch = ParseMAT(joinpath(dirname(pathof(Gm_ID_kit)), "..", "test", "180nch.mat"), "nch")

LookUp

ID = LookUp(nch, "ID"; VGS = 0.6, L = 0.28)[1]
GM_CGG = LookUp(nch, "GM_CGG"; VGS = 0.6, L = 0.28)[1]
GM_CDD = LookUp(nch, "GM_CDD", "GM_ID", 15.0; VDS = 0.6, L = 0.28)[1]

LookUpVGS

VGS = LookUpVGS(nch; GM_ID = 10, VDS = 0.6, VSB = 0.1, L = 0.18)[1]
VGS = LookUpVGS(nch; GM_ID = 10.0, VDB = 0.6, VGB = 1.0, L = 0.18)[1]

Plot

# Plot ID versus VDS
vds = nch["VDS"]
vgs = collect(0.4:0.05:0.6)
ID = LookUp(nch, "ID"; VDS=vds, VGS=vgs)
plot(vds, ID[1,1,:,1], label="VGS=$(vgs[1])")
plot!(vds, ID[1,2,:,1], label="VGS=$(vgs[2])")
plot!(vds, ID[1,3,:,1], label="VGS=$(vgs[3])")
plot!(vds, ID[1,4,:,1], label="VGS=$(vgs[4])")
plot!(vds, ID[1,5,:,1], label="VGS=$(vgs[5])")
# plot!(legend=:outerbottom, legendcolumns=5)
title!("ID vs VDS")
xlabel!("VDS")
ylabel!("ID")

IDvsVDS

for more see tests.

Motivation

To be used with JuMP.

TODO

  • Refactor LookUp + unittest
  • Refactor LookUpVGS + unittest
  • Rename to GM_ID_Kit
  • use Julia naming conventions
  • Optimization with JuMP
  • Extract LUTs from spice simulators
  • Generate .mat files or better file format!
  • Add examples
  • Get rid of allocations

Copyright

Original MATLAB code: Copyright (c) 2019 Boris Murmann ([email protected])

Test example is taken from Analog/Mixed-Signal Simulation and Modeling Lab 04: Copyright (c) 2022 Dr. Hesham Omran ([email protected])

Copyright (c) 2022 Islam Omar ([email protected])

gm_id_kit.jl's People

Contributors

islam0mar avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

ocakgun

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.