dbCreateNet using itkDB

Discussion in 'Cadence' started by sg, Mar 24, 2011.

  1. sg

    sg Guest

    Hello Guys,

    using itkDB, I create a net, say "I5u<5>", using dbCreateNet C API, in
    a layout cell view. when I query that net in icfb 5141 framework, I
    find it created as "I5u#3c5#3e". I don't know how and where "<" and
    ">" bus chars converted into its ascii equivalent. When I query
    "I5u<5>" using dbFindNetByName, it returns nil, and if query
    "I5u#3c5#3e", it returns valid db id.

    If I use corresponding skill api "dbCreateNet", there is no such
    conversion. Is there any way to make dbCreateNet in itkDB, not to do
    this auto conversion of "I5u<5>" to "I5u#3c5#3e"?

    Thanks, and Regards,
     
    sg, Mar 24, 2011
    #1
  2. sg wrote, on 03/24/11 20:27:
    I don't see this problem. In my code I do:


    netId=dbCreateNet( cvId , "myNet",NULL);
    printf("netId from creating net 'myNet' is %d\n",netId);
    netId=dbCreateNet( cvId , "myBus<1>",NULL);
    printf("netId from creating net 'myBus<1>' is %d\n",netId);
    netId=dbCreateNet( cvId , "I5u<5>",NULL);
    printf("netId from creating net 'I5u<5>' is %d\n",netId);
    netId=dbCreateNet( cvId , "I5u<5>",NULL);
    printf("netId from creating net 'I5u<5> again' is %d\n",netId);
    netId=dbCreateNet( cvId , "I5u<6>",NULL);
    printf("netId from creating net 'I5u<6>' is %d\n",netId);

    dbSave( cvId );
    dbClose(cvId);

    And the program prints:

    netId from creating net 'myNet' is 140952736
    netId from creating net 'myBus<1>' is 140952812
    netId from creating net 'I5u<5>' is 140952892
    netId from creating net 'I5u<5> again' is 0
    netId from creating net 'I5u<6>' is 140952968
    *WARNING* : Already exists - I5u<5>

    (I tried recreating the same net multiple times, just in case).

    If I open it in icfb afterwards, I get:

    cv~>nets~>name
    ("I5u<6>" "I5u<5>" "myBus<1>" "myNet")

    Regards,

    Andrew.
     
    Andrew Beckett, Apr 13, 2011
    #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.