[Magic-dev] invert simulation isn't working as should

Chitlesh GOORAH chitlesh at fedoraproject.org
Fri Apr 13 01:39:38 EDT 2007


Hello there,

I'm fair new to the magic world, however I'm trying to test a .sim
(from magic) simulation with irsim. My example is the inverter.

irsim scmos100 invert.sim -example.cmd

My problem is that my output is 'X'. I don't know what I'm missing and where.

Here is my :
- invert.mag
magic
tech scmos
timestamp 1176416578
<< polysilicon >>
rect 0 29 3 31
rect 9 29 11 31
rect 0 7 2 29
rect 0 5 3 7
rect 6 5 8 7
<< ndiffusion >>
rect 3 7 6 9
rect 3 2 6 5
<< pdiffusion >>
rect 3 31 9 34
rect 3 27 9 29
<< metal1 >>
rect -1 34 3 38
rect 9 34 16 38
rect 3 20 7 23
rect -5 16 -4 20
rect 3 16 16 20
rect 3 13 7 16
rect -1 -2 3 2
rect 7 -2 16 2
<< ntransistor >>
rect 3 5 6 7
<< ptransistor >>
rect 3 29 9 31
<< polycontact >>
rect -4 16 0 20
<< ndcontact >>
rect 3 9 7 13
rect 3 -2 7 2
<< pdcontact >>
rect 3 34 9 38
rect 3 23 9 27
<< psubstratepcontact >>
rect -5 -2 -1 2
<< nsubstratencontact >>
rect -5 34 -1 38
<< labels >>
rlabel metal1 13 36 13 36 6 Vdd!
rlabel metal1 12 0 12 0 8 GND!
rlabel metal1 5 17 5 17 1 out
rlabel metal1 -5 18 -5 18 1 in1
<< end >>

- invert.sim
| units: 100 tech: scmos format: MIT
p in1 out Vdd! 2 6 3 29
n in1 GND! out 2 3 3 5
R GND! 125
C out GND 3.6
R out 115
C in1 GND 10.0
R in1 489
C Vdd! GND 2.1
R Vdd! 96

- example.cmd
stepsize 50
analyzer in1 out
vector in in1 out

h in1
set in 00
s

h in1
set in 01
s

l in1
set in 10
s

h in1
set in 11
s

Chitlesh
-- 
http://clunixchit.blogspot.com



More information about the magic-dev mailing list