what is an unef value that printf can accept

Discussion in 'Cadence' started by Svenn Bjerkem, Sep 26, 2006.

  1. Hi,

    I am plotting some I/V curves where one transistor type (thick-ox)
    cannot be of minimum Length because the model file binning doesn't
    support it. When I tell ocnPrint to print the waveforms it stuffs the
    smallest l's with the lowes value.

    setq tmp1 (getData "M1:s" ?result "regular") ;60n ->
    setq tmp2 (getData "M1:s" ?result "low-vt") ;60n ->
    setq tmp3 (getData "M1:s" ?result "thick-ox") ;200n ->

    ocnPrint ?output "ascii.txt" tmp1 tmp2 tmp3

    give me the value for l=200n also for all values below 200n for
    thick-ox instead of an empty space. In the table tool in wavescan, this
    is implemented.

    I try to write my own ocnPrint (see other posting) and now I need a way
    to have printf give an empty space with the format character %e. I
    cannot use t or nil as printf react allergic to that.

    Or do I have to do a if-then-else to test if the value is valid?
     
    Svenn Bjerkem, Sep 26, 2006
    #1
  2. It should have been 'undef' instead of 'unef'
     
    Svenn Bjerkem, Sep 27, 2006
    #2
  3. Sven,

    I guess you will end up doing this
    printf( "%s\n" "" )

    Bernd

    PS: Please let us know the result of you custom ocnPrint
     
    Bernd Fischer, Sep 27, 2006
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.