Giter Site home page Giter Site logo

magic_analog_tests's Introduction

Example files for analog layout in Magic

Most of the interesting files are in the magic_files/ folder. Below are the commands to run for various magic functions.

LVS

From magic:

extract all
ext2spice lvs
ext2spice -o osc_adj_lvs.spice

From the magic_files/ folder:

module load netgen
export PDKPATH="/afs/ir.stanford.edu/class/ee272/PDKS/sky130A"
netgen -batch lvs "../netlist_from_xschem.spice osc_adj" "osc_adj_lvs.spice test_osc_adj" $PDKPATH/libs.tech/netgen/sky130A_setup.tcl

PEX

From magic:

extract all
ext2spice lvs
ext2spice cthresh 0
ext2spice rthresh 0
ext2spice -o osc_adj_pex.spice

GDS

From magic:

gds write osc_adj.gds

LEF

From magic:

lef write osc_adj.lef

Some useful magic shortcuts

Macro Result
s Select the thing under the cursor. Pressing it multiple times cycles through different selections.
Left click / Right click Move the lower-left of the box to the cursor / set the upper-right of the box to the cursor
Middle click Paint the box with whatever layers the cursor is over
z / Z zoom in / Zoom out
m / c Move / copy the selection to the cursor
:label Create a label where the box is
:findlabel abc Select the label with name “abc”
:port make Turn the selected label into a port. The “port” command can also set the direction/use of a port.
u / U undo / redo

More info about these commands and more at http://opencircuitdesign.com/magic/userguide.html

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.