Skill code

Discussion in 'Cadence' started by saud, May 15, 2007.

  1. saud

    saud Guest

    While running the Skill code for the schematic, in which a wire is to
    be labelled a specific name as follows:


    cvId = dbOpenCellViewByType( "sar_adc" "comp_prac1" "schematic" ""
    'w )

    wireId = schCreateWire( cvId "route" "full" list(-0.75:1 0:1) 0.0625
    0.0625 0 )

    schCreateWireLabel( cvId wireId (0:1) "net6" "lowerCenter" "R0"
    "fixed" 0.1 nil )

    For the above code, an error was recieved saying, " *Error*
    Invalid value specified for argument "glue". "

    Please give me the solution.
     
    saud, May 15, 2007
    #1
  2. saud

    noopster Guest

    Because schCreateWire returns a list:
    you will need to either use
    wireId = car(schCreateWire( cvId "route" "full" list(-0.75:1 0:1)
    0.0625 0.0625 0 ))

    or

    schCreateWireLabel( cvId car(wireId) (0:1) "net6" "lowerCenter" "R0"
    "fixed" 0.1 nil )

    Terry
     
    noopster, May 17, 2007
    #2
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.