nedd help about Hspice simulation

Discussion in 'General Electronics Chat' started by AdvBrain, Apr 13, 2010.

  1. AdvBrain

    Thread Starter New Member

    Apr 13, 2010
    4
    0
    Hello Everybody

    In this circuit
    [​IMG]

    The diode current is :
    Code ( (Unknown Language)):
    1.  
    2. iD = 200*(vD-0.5)^2             vD>=0.5
    3. iD = 0                          vD<=0.5
    4.  
    And the output is "Diode Voltage"

    I MUST define the diode as a voltage controlled current source
    It is my program
    Code ( (Unknown Language)):
    1.  
    2. option post
    3. .tran 0.5ns  500us
    4. .PRINT TRAN v(1,2)
    5. r1 1 0 80
    6. r2 2 3 20
    7. i1 1 0 25m
    8. [COLOR=royalblue]Vs 3 0 sin(0 0.1 5k 0 0 90)[/COLOR]
    9. [COLOR=red]GD1 1 2  CUR='200*(V(1,2)-0.5)*(V(2,1)-0.5)*(-1)'    [/COLOR]
    10. .end
    But my teacher say me it is Wrong

    I define the blue line as COS but Hspice show this Error :
    Also I change the red line with

    Code ( (Unknown Language)):
    1. GD1 1 2  CUR='200*(V(1,2)-0.5)*(V(1,2)-0.5)*'
    Code ( (Unknown Language)):
    1. GD1 1 2  CUR='200*pow(V(1,2)-0.5,2)'
    Code ( (Unknown Language)):
    1.  
    2. GD1 1 2  CUR='200*sqr(V(1,2)-0.5)'
    3.  
    and Simulation not work

    Help me plz :confused:

    [ Excuseme if my english is not good :D ]
     
  2. AdvBrain

    Thread Starter New Member

    Apr 13, 2010
    4
    0
    Any body no there?
     
  3. AdvBrain

    Thread Starter New Member

    Apr 13, 2010
    4
    0
    If you can , HELP ME PLEASE :-(
     
  4. AdvBrain

    Thread Starter New Member

    Apr 13, 2010
    4
    0
    :( :( :(
    PLZ reply its take just a minute;)
     
  5. SgtWookie

    Expert

    Jul 17, 2007
    22,182
    1,728
    A reply only takes a minute.

    Useful replies take a lot longer.

    I'm not familiar with HSpice, I'd never heard of it before. Perhaps that is why you are not getting any responses, as other people are not familiar with it either.

    Perhaps you should ask on a board dedicated to HSpice questions.
    Here is one: http://synopsysoc.org/forums/viewtopic.php?f=5&t=22

    You posted in the wrong area, as this is a school assignment. It belongs in the "Homework Help" forum.
     
    AdvBrain likes this.
Loading...