( ESNUG 296 Item 6 ) ---------------------------------------------- [7/23/98]
From: Paul Fletcher <paulf@chdasic.sps.mot.com>
Subject: DesignWare, get_licence, remove_licence, and Infinite Looping Bugs
John,
I just couldn't resist writing about this after I read the DesignWare
Technical Bulletin. I wonder how many other users have had this problem?
On page 4 of the DesignWare Technical Bulletin V.3 1.2 Q1 98, it shows a
script to get the DesignWare-Foundation license.
get_license DesignWare-Foundation
while (dc_shell_status == 0) {
sh "sleep 60"
get_license DesignWare-Foundation
}
It should be noted that this must be done before any pre-compiled db files
are read in that use any designware components.
If this is not done the loop will hang forever.
I have had this problem with the get_license function in the past.
I have suggested that Synopsys fix the get_license command. The fix would
be that if you already have a license AND execute the get_license command
trying to get the license you already have, then the get_license command
should return a "1" so that the while loop will not loop forever.
The get_license command is already smart enough to know that you already
have the license you are trying to get so it should be easy to fix it to
work correctly. Message from while loop if you already have the license:
Information: You already have a 'DesignWare-Foundation' license. (UI-31)
Information: You already have a 'DesignWare-Foundation' license. (UI-31)
For all of the other licenses it is possible to work around this BUG in the
get_license command by first removing the license before trying to get it.
This will also work for the DesignWare-Foundation license as long as it was
not already gotten by reading in a db that required it.
If this happens and you try to do a remove_license DesignWare-Foundation
you get a message stating that you cannot remove the license until you
remove the design.
I will admit that it is possible to kludge up scripts to work with the
get_license command, it just seems like it would make lots of users
lives easier if Synopsys fixed the command to work as one would expect.
- Paul Fletcher
Motorola SPS Chandler, AZ
|
|