How can you run Calibre -drc both FLAT and HIERARCHIAL?

Status
Not open for further replies.

majd229

Member level 2
Joined
Jul 21, 2017
Messages
44
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Activity points
392
I know to run fat DRC, you run calibre -drc
but to run hier DRC, you run calibre -drc -hier
But each option produces one report and one database of the violation in the option (hier or flat) specified. How can I run drc and produce one hier database and one flat database?

Thanks
 

Sorry, Majd, you can't do that in one run, though you could modify the rule file to use variables and write a shell script to kick off both with one invocation. (You need the variables so that the flat and hierarchical runs aren't trying to write to the same database.)

Here are some examples of how to modify from some setups I use.

* For the shell script, declare your shell, set your CALIBRE_HOME to your release, and any other environment variables:
#! /bin/csh
setenv CALIBRE_HOME /to/your/network/path
setenv FLAT "flat_run"
setenv RESULT_LAYOUT "./${FLAT}/result.oas"
setenv DRC_RDB "./${FLAT}/drc_results.rdb"
setenv SUM_RPT "./${FLAT}/summary.rep"
setenv LOG_FILE "./${FLAT}/flatrun.log"
...
$CALIBRE_HOME/bin/calibre -drc ... > $LOG_FILE

# Now reset the variables; can just change the directory name and copy the first set of lines again.
setenv FLAT "hier_run"
setenv RESULT_LAYOUT "./${FLAT}/result.oas"
...

$CALIBRE_HOME/bin/calibre -drc -hier > $LOG_FILE



* For the SVRF file, substitute the variable for the appropriate name. For instance, change
DRC RESULTS DATABASE "./the_original_name.rdb" OASIS
to
DRC RESULTS DATABASE "$RESULT_LAYOUT" OASIS

Don't forget to back up your original files before starting the conversion.

Good luck-

Sam.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…